/* ==========================================================================
   TIPCO ENGINEERING — NEWS & ANNOUNCEMENTS DETAILS NEW (CSS)
   Design Reference: home-new, about-us-new, events_new
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --nd-brand:       #186B6D;
  --nd-brand-dark:  #114d4f;
  --nd-brand-light: #e8f6f5;
  --nd-brand-border:#d1f0ed;
  --nd-brand-accent:#8FE0D6;
  --nd-fg:          #111827;
  --nd-fg-muted:    #4b5563;
  --nd-fg-subtle:   #6b7280;
  --nd-bg:          #ffffff;
  --nd-bg-subtle:   #fafafa;
  --nd-border:      #e5e7eb;
  --nd-border-light:#f3f4f6;
  --nd-radius-sm:   8px;
  --nd-radius-md:   14px;
  --nd-radius-lg:   20px;
  --nd-radius-xl:   26px;
  --nd-shadow-sm:   0 1px 3px rgba(0, 0, 0, 0.05);
  --nd-shadow-md:   0 6px 20px rgba(0, 0, 0, 0.06);
  --nd-shadow-lg:   0 15px 35px rgba(0, 0, 0, 0.08);
  --nd-font-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --nd-font-display:'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--nd-font-sans);
  color: var(--nd-fg);
  background: var(--nd-bg-subtle);
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.nd-hero {
  background: linear-gradient(135deg, #0f4c4e 0%, #186b6d 60%, #1a8080 100%);
  padding: 72px 24px 64px 24px;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}


.nd-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.nd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.nd-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.nd-breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.nd-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.nd-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 9999px;
}

.nd-dateline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nd-news-title {
  font-family: var(--nd-font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 16px 0;
  max-width: 1000px;
}

/* ==========================================================================
   2-COLUMN ARTICLE LAYOUT
   ========================================================================== */
.nd-layout-container {
  max-width: 1280px;
  margin: 48px auto 80px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .nd-layout-container {
    grid-template-columns: 1fr 340px;
    gap: 56px;
  }
}

.nd-main-content {
  background: #ffffff;
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-radius-xl);
  padding: 32px;
  box-shadow: var(--nd-shadow-sm);
}

@media (min-width: 768px) {
  .nd-main-content {
    padding: 48px;
  }
}

.nd-hero-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--nd-radius-lg);
  margin-bottom: 32px;
  box-shadow: var(--nd-shadow-md);
}

.nd-prose {
  font-size: 16px;
  line-height: 1.8;
  color: var(--nd-fg-muted);
}

.nd-prose h2 {
  font-family: var(--nd-font-display);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--nd-fg);
  margin: 40px 0 16px 0;
  line-height: 1.3;
}

.nd-prose h3 {
  font-family: var(--nd-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--nd-fg);
  margin: 28px 0 12px 0;
}

.nd-prose p {
  margin: 0 0 20px 0;
}

.nd-prose blockquote {
  border-left: 4px solid var(--nd-brand);
  background: var(--nd-bg-subtle);
  padding: 20px 24px;
  margin: 28px 0;
  font-style: italic;
  font-size: 16.5px;
  color: var(--nd-brand-dark);
  border-radius: 0 var(--nd-radius-md) var(--nd-radius-md) 0;
}

/* Boilerplate Box */
.nd-boilerplate-box {
  background: var(--nd-bg-subtle);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-radius-lg);
  padding: 24px;
  margin-top: 36px;
}

.nd-boilerplate-title {
  font-family: var(--nd-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--nd-fg);
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nd-boilerplate-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--nd-fg-muted);
  margin: 0;
}

/* Sidebar */
.nd-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (min-width: 1024px) {
  .nd-sidebar {
    position: sticky;
    top: 100px;
  }
}

.nd-widget {
  background: #ffffff;
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-radius-lg);
  padding: 24px;
  box-shadow: var(--nd-shadow-sm);
}

.nd-widget-title {
  font-family: var(--nd-font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--nd-fg);
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--nd-border-light);
}

.nd-media-card {
  background: var(--nd-brand-light);
  border: 1px solid var(--nd-brand-border);
}

.nd-media-card .nd-widget-title {
  color: var(--nd-brand-dark);
  border-bottom-color: var(--nd-brand-border);
}

.nd-contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--nd-fg);
  margin-bottom: 12px;
}

.nd-contact-line svg {
  color: var(--nd-brand);
  flex-shrink: 0;
}

.nd-contact-line a {
  color: var(--nd-brand);
  text-decoration: none;
  font-weight: 600;
}

.nd-contact-line a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   OTHER ANNOUNCEMENTS SIDEBAR LIST (Fixed Alignment & Thumbnails)
   ========================================================================== */
.dt-recent-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dt-recent-item {
  display: flex !important;
  flex-direction: row !important;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--nd-border-light);
}

.dt-recent-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dt-recent-thumb {
  width: 72px !important;
  height: 72px !important;
  min-width: 72px !important;
  min-height: 72px !important;
  border-radius: 12px;
  object-fit: cover !important;
  flex-shrink: 0;
  display: block;
}

.dt-recent-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.dt-recent-title {
  font-family: var(--nd-font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--nd-fg);
  margin: 0;
  transition: color 0.2s;
}

.dt-recent-item:hover .dt-recent-title {
  color: var(--nd-brand);
}

.dt-recent-date {
  font-size: 12px;
  color: var(--nd-fg-subtle);
  display: block;
}

/* Toast */
.nd-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111827;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--nd-shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  pointer-events: none;
  z-index: 9999;
}

.nd-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE OVERRIDES: News Details (Tablet & Mobile Only)
   ========================================================= */
@media (max-width: 1024px) {
  .nd-layout-container {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
    padding: 0 20px !important;
    margin: 36px auto 60px auto !important;
  }
  .nd-hero {
    padding: 56px 20px 48px 20px !important;
  }
  .nd-sidebar {
    position: static !important;
  }
}
@media (max-width: 767px) {
  .nd-hero {
    padding: 44px 16px 36px 16px !important;
  }
  .nd-news-title {
    font-size: clamp(22px, 5.5vw, 32px) !important;
  }
  .nd-layout-container {
    padding: 0 16px !important;
    margin: 24px auto 48px auto !important;
  }
  .nd-main-content {
    padding: 20px 16px !important;
    border-radius: 16px !important;
  }
  .nd-hero-img {
    border-radius: 12px !important;
    margin-bottom: 20px !important;
    max-height: 280px !important;
  }
  .nd-prose {
    font-size: 15px !important;
    line-height: 1.7 !important;
  }
  .nd-prose h2 {
    font-size: 20px !important;
    margin: 28px 0 12px 0 !important;
  }
  .nd-widget {
    padding: 18px 16px !important;
    border-radius: 14px !important;
  }
}
@media (max-width: 480px) {
  .nd-news-title {
    font-size: 20px !important;
  }
  .dt-recent-thumb {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
  }
  .dt-recent-title {
    font-size: 13px !important;
  }
}
