/* ==========================================================================
   NTA IMPLANT — NEWS PAGE STYLES (nta-news.css)
   Pixel-perfect styling matching reference design
   ========================================================================== */

.nta-news-wrapper {
  position: relative;
  width: 100%;
  min-height: 85vh;
  background-color: #fcfdfe;
  background-image: url('/assets/img/news-hero-bg.webp?v=20261001b');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  padding: 60px 24px 100px 24px;
  box-sizing: border-box;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.nta-news-container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* --- Hero Typography --- */
.nta-news-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 38px auto;
}

.nta-news-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #4b5563;
  margin-bottom: 14px;
}

.nta-news-title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: clamp(32px, 3.8vw, 50px) !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  letter-spacing: -0.02em !important;
  line-height: 1.18 !important;
  margin: 0 0 16px 0 !important;
}

.nta-news-title .nta-news-accent {
  color: #c49a62 !important;
  font-weight: 600 !important;
}

.nta-news-subtitle {
  font-size: 16px;
  line-height: 1.62;
  color: #4b5563;
  max-width: 620px;
  margin: 0 auto;
  font-weight: 400;
}

/* --- Category Filter Pills --- */
.nta-news-filter {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 auto 38px auto !important;
  max-width: 860px !important;
}

.nta-filter-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 18px !important;
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 9999px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  color: #374151 !important;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1.5px solid rgba(230, 188, 133, 0.5) !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  outline: none !important;
  user-select: none !important;
  box-sizing: border-box !important;
}

.nta-filter-btn:hover {
  background: #ffffff !important;
  border-color: #c49a62 !important;
  color: #b88646 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(230, 188, 133, 0.35) !important;
}

.nta-filter-btn.active {
  background: linear-gradient(135deg, #e6bc85 0%, #c49a62 100%) !important;
  border-color: #c49a62 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(196, 154, 98, 0.45) !important;
  transform: none !important;
}

/* --- Cards Grid --- */
.nta-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  width: 100%;
  box-sizing: border-box;
}

/* --- News Card --- */
.nta-news-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.nta-news-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 69, 101, 0.18);
}

.nta-card-media {
  position: relative;
  width: 100%;
  padding: 12px 12px 0 12px;
  box-sizing: border-box;
  display: block;
  text-decoration: none;
}

.nta-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #f1f3f5;
}

.nta-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nta-news-card:hover .nta-card-img {
  filter: grayscale(0%);
  transform: scale(1.025);
}

.nta-card-body {
  padding: 22px 24px 28px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.nta-card-date {
  font-size: 13px;
  font-weight: 500;
  color: #8b95a5;
  margin-bottom: 12px;
}

.nta-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.nta-card-title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.36 !important;
  color: #1e293b !important;
  margin: 0 !important;
  flex-grow: 1;
  transition: color 0.25s ease;
}

.nta-card-title a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.25s ease;
}

.nta-news-card:hover .nta-card-title a,
.nta-news-card:hover .nta-card-title {
  color: #c49a62 !important;
}

.nta-card-arrow {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  background: #ffffff;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.nta-card-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.nta-news-card:hover .nta-card-arrow {
  background: linear-gradient(135deg, #e6bc85 0%, #c49a62 100%) !important;
  border-color: #c49a62 !important;
  color: #ffffff !important;
}

.nta-news-card:hover .nta-card-arrow svg {
  transform: translateX(2px);
}

.nta-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
  font-weight: 400;
}

/* --- Active Header Underline for News --- */
.elementor-1867 ~ * .elementor-element-f4d4ea8 .elementor-item[href*="news"],
body.page-id-1867 .elementor-element-f4d4ea8 .elementor-item[href*="news"],
body.page-id-1867 .elementor-nav-menu a[href*="news"] {
  color: #c49a62 !important;
  border-bottom: 2px solid #c49a62 !important;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .nta-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .nta-news-wrapper {
    background-size: cover;
    padding: 50px 24px 80px 24px;
  }
  .nta-card-title {
    font-size: 17px !important;
  }
}

@media (max-width: 767px) {
  .nta-news-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 460px;
    margin: 0 auto;
  }
  .nta-news-wrapper {
    padding: 40px 20px 60px 20px;
  }
  .nta-news-title {
    font-size: 28px !important;
  }
  .nta-news-subtitle {
    font-size: 14px;
  }
  .nta-br-desktop {
    display: none;
  }
  .nta-filter-btn {
    padding: 6px 15px;
    font-size: 11px;
  }
  .nta-card-body {
    padding: 18px 20px 22px 20px;
  }
}
