/* ===== TABS ===== */
.news-carousel-wrapper .category-tabs {
  display: flex;
  align-items: flex-end;
  gap: 2.5rem;
  position: relative;
  border-bottom: 3px solid #FFB81C;
}

.news-carousel-wrapper .tab-btn {
  padding: 0.75rem 0;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  margin-bottom: -3px;
  transition: color 0.2s ease;
}

.news-carousel-wrapper .tab-btn:hover {
  color: #1e3a8a;
}

.news-carousel-wrapper .tab-btn.active {
  color: #003594;
}

.news-carousel-wrapper .tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #003594;
}

/* ===== CAROUSEL MAIN ===== */
.news-carousel-wrapper .carousel-main-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.news-carousel-wrapper .carousel-image-area {
  position: relative;
  height: 450px;
  background: #f3f4f6;
  overflow: visible;
}

.news-carousel-wrapper .carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: none;
  overflow: visible;
  transition: opacity 0.5s ease;
}

.news-carousel-wrapper .carousel-slide.visible {
  display: block;
}

.news-carousel-wrapper .carousel-slide.active {
  opacity: 1;
}

/* ===== SLIDE IMAGES (uploaded and placeholder) ===== */
.news-carousel-wrapper .carousel-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
}

/* ===== PLACEHOLDERS ===== */
.news-carousel-wrapper .carousel-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.news-carousel-wrapper .placeholder-image {
  width: 100%;
  height: 100%;
}

.news-carousel-wrapper .placeholder-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
}

/* ===== CAROUSEL CONTROLS ===== */
.news-carousel-wrapper .carousel-controls {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
}

.news-carousel-wrapper .carousel-dots {
  display: flex;
  gap: 8px;
}

.news-carousel-wrapper .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  padding: 0;
}

.news-carousel-wrapper .dot.active {
  background: #fff;
}

.news-carousel-wrapper .carousel-arrows {
  display: flex;
  gap: 8px;
}

.news-carousel-wrapper .carousel-arrow {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  padding: 0;
}

.news-carousel-wrapper .carousel-arrow:hover {
  background: #fff;
  transform: scale(1.05);
}

.news-carousel-wrapper .carousel-arrow svg {
  width: 20px;
  height: 20px;
  color: #374151;
}

/* ===== CAROUSEL CONTENT ===== */
.news-carousel-wrapper .carousel-content-area {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

.news-carousel-wrapper .news-content {
  display: none;
}

.news-carousel-wrapper .news-content.active {
  display: block;
}

.news-carousel-wrapper .category-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 155px;
  height: 40px;
  padding: 0 9px;
  background: #FFB81C;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  border-radius: 0;
}

.news-carousel-wrapper .news-title {
  font-family: 'Alternate Gothic Compressed ATF', Impact, sans-serif;
  font-weight: 800;
  font-size: 64px;
  line-height: 64px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #003594;
  margin-bottom: 20px;
  margin-top: 0;
}

.news-carousel-wrapper .news-description {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 26px;
  color: #0F419B;
  margin-bottom: 24px;
  margin-top: 0;
}

.news-carousel-wrapper .news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 24px;
}

.news-carousel-wrapper .tag {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  padding: 1.35px 12.15px;
  background: rgba(108, 117, 125, 0.12);
  color: #6b7280;
  border-radius: 5.4px;
}

.news-carousel-wrapper .read-now-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #003594;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.news-carousel-wrapper .read-now-btn:hover {
  background: #002470;
  color: #fff;
  text-decoration: none;
}

/* ===== ARTICLE CARDS ===== */
.news-carousel-wrapper .article-card {
  position: relative;
  display: none;
  transition: transform 0.3s ease;
}

.news-carousel-wrapper .article-card.visible {
  display: block;
}

.news-carousel-wrapper .article-card:hover {
  transform: translateY(-4px);
}

.news-carousel-wrapper .article-image {
  aspect-ratio: 386 / 257;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 16px;
  position: relative;
}

.news-carousel-wrapper .article-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  transition: transform 0.3s ease;
}

.news-carousel-wrapper .article-card:hover .article-image img {
  transform: scale(1.05);
}

.news-carousel-wrapper .article-info {
  padding: 0;
}

.news-carousel-wrapper .article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.news-carousel-wrapper .article-category {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 13.95px;
  line-height: 12.88px;
  letter-spacing: 1.07px;
  text-transform: uppercase;
  color: #FFB81C;
}

.news-carousel-wrapper .meta-divider,
.news-carousel-wrapper .read-time {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  color: #9ca3af;
}

.news-carousel-wrapper .article-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 35px;
  color: #013594;
  margin: 0;
}

.news-carousel-wrapper .article-title a {
  text-decoration: none;
  color: inherit;
}

.news-carousel-wrapper .article-title a:hover {
  text-decoration: underline;
}

/* ===== CONTEXTUAL EDIT LINKS ===== */
.news-carousel-wrapper .contextual-edit-link {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 100;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  transition: all 0.2s ease;
  font-size: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  border: none;
}

.news-carousel-wrapper .carousel-slide:hover .contextual-edit-link,
.news-carousel-wrapper .article-card:hover .contextual-edit-link {
  opacity: 1;
  background: #003594;
  transform: scale(1.1);
}

.news-carousel-wrapper .contextual-edit-link:hover {
  background: #FFB81C !important;
}

.news-carousel-wrapper .contextual-edit-link::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M12.146.854a.5.5 0 0 1 .708 0l2.292 2.292a.5.5 0 0 1 0 .708L5.854 13.146l-3 .5a.5.5 0 0 1-.574-.574l.5-3L12.146.854zM11.207 2.5L13.5 4.793 14.793 3.5 12.5 1.207 11.207 2.5zm1.586 3L10.5 3.207 4 9.707V10h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.293l6.5-6.5z'/%3E%3C/svg%3E") no-repeat center center;
  background-size: contain;
}

.news-carousel-wrapper .carousel-slide.active .contextual-edit-link {
  opacity: 0.7;
}

.news-carousel-wrapper .carousel-slide.active:hover .contextual-edit-link {
  opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .news-carousel-wrapper .carousel-image-area {
    height: 350px;
  }

  .news-carousel-wrapper .news-title {
    font-size: 48px;
    line-height: 48px;
  }

  .news-carousel-wrapper .news-description {
    font-size: 18px;
    line-height: 24px;
  }
}

@media (max-width: 768px) {
  .news-carousel-wrapper .category-tabs {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .news-carousel-wrapper .carousel-content-area {
    padding: 24px;
  }

  .news-carousel-wrapper .news-title {
    font-size: 36px;
    line-height: 36px;
  }

  .news-carousel-wrapper .news-description {
    font-size: 16px;
    line-height: 22px;
  }

  .news-carousel-wrapper .article-title {
    font-size: 18px;
    line-height: 28px;
  }

  .news-carousel-wrapper .carousel-arrow {
    width: 36px;
    height: 36px;
  }

  .news-carousel-wrapper .carousel-arrow svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .news-carousel-wrapper .carousel-image-area {
    height: 280px;
  }

  .news-carousel-wrapper .carousel-content-area {
    padding: 16px;
  }

  .news-carousel-wrapper .news-title {
    font-size: 28px;
    line-height: 30px;
  }

  .news-carousel-wrapper .category-badge {
    min-width: auto;
    height: 32px;
    font-size: 12px;
    padding: 0 8px;
  }

  .news-carousel-wrapper .tab-btn {
    font-size: 11px;
  }
}