/* ==========================================================================
   TIPCO ENGINEERING — NEWS & ANNOUNCEMENTS 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 {
  --nw-brand:       #186B6D;
  --nw-brand-dark:  #114d4f;
  --nw-brand-light: #e8f6f5;
  --nw-brand-border:#d1f0ed;
  --nw-brand-accent:#8FE0D6;
  --nw-fg:          #111827;
  --nw-fg-muted:    #4b5563;
  --nw-fg-subtle:   #6b7280;
  --nw-bg:          #ffffff;
  --nw-bg-subtle:   #fafafa;
  --nw-border:      #e5e7eb;
  --nw-border-light:#f3f4f6;
  --nw-radius-sm:   8px;
  --nw-radius-md:   14px;
  --nw-radius-lg:   20px;
  --nw-radius-xl:   26px;
  --nw-shadow-sm:   0 1px 3px rgba(0, 0, 0, 0.05);
  --nw-shadow-md:   0 6px 20px rgba(0, 0, 0, 0.06);
  --nw-shadow-lg:   0 15px 35px rgba(0, 0, 0, 0.08);
  --nw-font-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --nw-font-display:'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

/* ==========================================================================
   HERO SECTION (Matching Events & Exhibitions Teal Gradient + Plus Pattern)
   ========================================================================== */
.nw-hero {
  background: linear-gradient(135deg, #0f4c4e 0%, #186b6d 60%, #1a8080 100%);
  padding: 88px 24px 72px 24px;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}


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

.nw-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-family: var(--nw-font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
  letter-spacing: 0.02em;
}

.nw-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5eead4;
  box-shadow: 0 0 8px #5eead4;
}

.nw-hero-title {
  font-family: var(--nw-font-display);
  font-size: clamp(32px, 4.5vw, 50px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px 0;
  max-width: 960px;
  color: #ffffff !important;
}

.nw-hero-desc {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88) !important;
  max-width: 820px;
  margin: 0 0 32px 0;
}

/* ==========================================================================
   TOOLBAR & FILTER BAR
   ========================================================================== */
.nw-toolbar-section {
  max-width: 1280px;
  margin: -32px auto 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 30;
}

.nw-toolbar-card {
  background: #ffffff;
  border-radius: var(--nw-radius-xl);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--nw-border);
}

@media (min-width: 992px) {
  .nw-toolbar-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.nw-filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.nw-filter-tabs::-webkit-scrollbar {
  display: none;
}

.nw-tab-btn {
  padding: 9px 18px;
  border-radius: 9999px;
  border: 1px solid var(--nw-border);
  background: #ffffff;
  color: var(--nw-fg-muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: var(--nw-font-sans);
}

.nw-tab-btn:hover {
  background: var(--nw-border-light);
  color: var(--nw-fg);
}

.nw-tab-btn.active {
  background: var(--nw-brand);
  color: #ffffff;
  border-color: var(--nw-brand);
  box-shadow: 0 4px 10px rgba(24, 107, 109, 0.3);
}

.nw-search-box {
  position: relative;
  min-width: 260px;
}

.nw-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--nw-fg-subtle);
  pointer-events: none;
}

.nw-search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: 9999px;
  border: 1px solid var(--nw-border);
  font-size: 13.5px;
  color: var(--nw-fg);
  outline: none;
  background: var(--nw-bg-subtle);
  font-family: inherit;
  transition: all 0.2s;
}

.nw-search-input:focus {
  border-color: var(--nw-brand);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(24, 107, 109, 0.12);
}

/* ==========================================================================
   NEWS LISTING GRID
   ========================================================================== */
.nw-grid-section {
  max-width: 1280px;
  margin: 48px auto 80px auto;
  padding: 0 24px;
}

.nw-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 640px) {
  .nw-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .nw-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.nw-card {
  background: #ffffff;
  border: 1px solid var(--nw-border);
  border-radius: var(--nw-radius-lg);
  overflow: hidden;
  box-shadow: var(--nw-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
}

.nw-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--nw-shadow-md);
  border-color: var(--nw-brand-border);
}

.nw-card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #111827;
}

.nw-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.nw-card:hover .nw-card-img {
  transform: scale(1.05);
}

/* Date Ribbon on card */
.nw-date-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

.nw-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.nw-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--nw-fg-subtle);
}

.bl-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--nw-fg-subtle);
}

.bl-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--nw-border);
}

.bl-category-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--nw-brand-light);
  color: var(--nw-brand);
}

.nw-card-title {
  font-family: var(--nw-font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--nw-fg);
  margin: 0;
  transition: color 0.2s;
}

.nw-card:hover .nw-card-title {
  color: var(--nw-brand);
}

.nw-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--nw-fg-muted);
  margin: 0;
  flex: 1;
}

.nw-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--nw-border-light);
  font-size: 12.5px;
  color: var(--nw-fg-subtle);
}

/* No results notice */
.nw-no-results {
  display: none;
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
}

/* ==========================================================================
   PRESS MEDIA CONTACT CTA BOX (Fixed & Styled Perfectly with White Text)
   ========================================================================== */
.bl-cta-section {
  max-width: 1280px;
  margin: 0 auto 80px auto;
  padding: 0 24px;
}

.bl-cta-card {
  background: linear-gradient(135deg, #0f4c4e 0%, #186b6d 100%) !important;
  border-radius: var(--nw-radius-xl);
  padding: 48px;
  color: #ffffff !important;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--nw-shadow-lg);
}

@media (min-width: 768px) {
  .bl-cta-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.bl-cta-content {
  max-width: 680px;
}

.bl-cta-title {
  font-family: var(--nw-font-display) !important;
  font-size: clamp(24px, 3vw, 34px) !important;
  font-weight: 800 !important;
  margin: 0 0 12px 0 !important;
  line-height: 1.25 !important;
  color: #ffffff !important;
}

.bl-cta-desc {
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: #ffffff !important;
  opacity: 0.94 !important;
  margin: 0 !important;
}

.bl-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff !important;
  color: var(--nw-brand) !important;
  font-size: 14.5px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 12px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
}

.bl-cta-btn:hover {
  background: var(--nw-brand-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.bl-cta-btn svg {
  color: var(--nw-brand) !important;
}

/* =========================================================
   RESPONSIVE OVERRIDES: News Announcements (Tablet & Mobile Only)
   ========================================================= */
@media (max-width: 1024px) {
  .nw-hero {
    padding: 64px 20px 56px 20px !important;
  }
  .nw-toolbar-section {
    padding: 0 20px !important;
  }
  .nw-grid-section {
    padding: 0 20px !important;
    margin: 36px auto 60px auto !important;
  }
  .bl-cta-section {
    padding: 0 20px !important;
    margin-bottom: 60px !important;
  }
}
@media (max-width: 767px) {
  .nw-hero {
    padding: 48px 16px 40px 16px !important;
  }
  .nw-hero-title {
    font-size: clamp(26px, 6vw, 36px) !important;
    margin-bottom: 12px !important;
  }
  .nw-hero-desc {
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    margin-bottom: 24px !important;
  }
  .nw-toolbar-section {
    margin: -24px auto 0 auto !important;
    padding: 0 16px !important;
  }
  .nw-toolbar-card {
    padding: 12px 14px !important;
    border-radius: 16px !important;
  }
  .nw-search-box {
    min-width: 0 !important;
    width: 100% !important;
  }
  .nw-grid-section {
    padding: 0 16px !important;
    margin: 32px auto 56px auto !important;
  }
  .nw-cards-grid {
    gap: 20px !important;
  }
  .nw-card-body {
    padding: 18px !important;
  }
  .nw-card-title {
    font-size: 17px !important;
  }
  .bl-cta-section {
    padding: 0 16px !important;
    margin-bottom: 56px !important;
  }
  .bl-cta-card {
    padding: 28px 20px !important;
    border-radius: 18px !important;
  }
  .bl-cta-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}
@media (max-width: 480px) {
  .nw-cards-grid {
    grid-template-columns: 1fr !important;
  }
  .nw-card-img-wrap {
    height: 190px !important;
  }
}
