/* ========================================
   CSS Variables (Design Tokens)
======================================== */
:root {
  --maroon: #7C1D1D;
  --maroon-dark: #5A1515;
  --maroon-light: #9E2B2B;
  --cream: #F7F3ED;
  --gold: #C9A227;
  --gold-light: #E8D48A;
  --transition-base: 0.3s;
  --shadow-card: 0 10px 25px -5px rgba(0,0,0,0.1);
  --shadow-card-hover: 0 25px 50px -12px rgba(124, 29, 29, 0.25);
}

/* ========================================
   Page Load Animation (Scroll Reveal)
======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.8s ease-out forwards;
}

.animate-scaleIn {
  animation: scaleIn 0.7s ease-out forwards;
}

/* Staggered animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* Initially hidden for scroll animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Base Styles
======================================== */
body {
  font-family: 'Noto Sans Thai', sans-serif;
  background-color: var(--cream);
  margin: 0;
  padding: 0;
}

.font-heading {
  font-family: 'Playfair Display', serif;
}

/* ========================================
   Header (Navigation)
======================================== */
.header {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Top Nav Links */
.top-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  border-radius: 0.5rem;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.top-nav-link:hover,
.top-nav-link.active {
  background: rgba(255,255,255,0.15);
  color: white;
}

.top-nav-link.ita-badge {
  background: var(--gold);
  color: var(--maroon-dark);
  font-weight: 700;
}

.top-nav-link.ita-badge:hover {
  background: var(--gold-light);
  color: var(--maroon-dark);
}

/* Menu Dropdown */
.menu-group {
  position: relative;
}

.menu-group:hover .menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-dropdown {
  position: absolute;
  top: 100%;
  margin-top: 0.5rem;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  z-index: 100;
}

.menu-dropdown-inner {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}

.menu-dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--maroon);
  background: var(--cream);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.menu-dropdown-header svg {
  color: var(--gold);
}

.menu-items {
  padding: 0.5rem;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  border-radius: 0.5rem;
  transition: all 0.15s;
  text-decoration: none;
}

.menu-item:hover {
  background: var(--cream);
  color: var(--maroon);
}

.menu-item.active {
  background: var(--cream);
  color: var(--maroon);
  font-weight: 600;
}

.menu-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgba(124, 29, 29, 0.1);
  color: var(--maroon);
  flex-shrink: 0;
}

.program-menu-dropdown {
  left: 50%;
  width: min(760px, calc(100vw - 2rem));
  transform: translate(-50%, -10px);
}

.menu-group:hover .program-menu-dropdown {
  transform: translate(-50%, 0);
}

.program-menu-body {
  max-height: min(72vh, 620px);
  overflow-y: auto;
  padding: 0.75rem;
}

.program-menu-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.8rem 0.95rem;
  border-radius: 0.75rem;
  color: var(--maroon);
  background: var(--cream);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.program-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.program-menu-category {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 0.85rem;
  background: #fff;
}

.program-menu-category-title {
  display: inline-flex;
  margin-bottom: 0.55rem;
  color: var(--maroon);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.program-menu-group-title {
  margin: 0.55rem 0 0.3rem;
  color: #8a7d74;
  font-size: 0.72rem;
  font-weight: 800;
}

.program-menu-course-list {
  display: grid;
  gap: 0.25rem;
}

.program-menu-course {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  min-height: 2rem;
  padding: 0.4rem 0.5rem;
  border-radius: 0.55rem;
  color: #374151;
  font-size: 0.8rem;
  line-height: 1.35;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.program-menu-course:hover {
  background: rgba(124,29,29,0.06);
  color: var(--maroon);
}

.program-menu-course small {
  flex-shrink: 0;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
}

/* Mobile Navigation */
.mobile-nav-link {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: white;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s;
}

.mobile-nav-link:hover {
  background: rgba(255,255,255,0.1);
}

.mobile-nav-link.active,
.mobile-menu-toggle.active {
  background: rgba(201,162,39,0.16);
  color: var(--gold);
}

.mobile-nav-link.sub {
  padding-left: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
}

.mobile-program-category {
  padding: 0.85rem 1rem 0.35rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.mobile-program-group {
  padding: 0.45rem 1rem 0.2rem 1.35rem;
  color: rgba(255,255,255,0.56);
  font-size: 0.74rem;
  font-weight: 800;
}

.mobile-nav-link.mobile-program-course {
  padding-left: 2rem;
  font-size: 0.82rem;
}

.mobile-nav-link.ita {
  background: var(--gold);
  color: var(--maroon-dark);
  font-weight: 700;
  text-align: center;
}

.mobile-menu-group {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-toggle {
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: white;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-toggle::after {
  content: '+';
  font-size: 1.25rem;
}

.mobile-menu-group.active .mobile-menu-toggle::after {
  content: '-';
}

.mobile-menu-content {
  display: none;
  padding-bottom: 0.5rem;
}

.mobile-menu-group.active .mobile-menu-content {
  display: block;
}

.nav-link {
  position: relative;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  transition: color var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.nav-link:hover { color: var(--maroon); }
.nav-link:hover::after { width: 100%; }

.btn-primary {
  background-color: var(--maroon);
  color: white;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--transition-base);
  font-size: 0.875rem;
}

.btn-primary:hover { background-color: var(--maroon-dark); }

/* Mobile Dropdown */
.mobile-dropdown-btn {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-dropdown-content a {
  border-bottom: none;
}

/* ========================================
   Hero Slider
======================================== */
.slider-section {
  position: relative;
  height: 70vh;
  min-height: 400px;
  max-height: 700px;
  overflow: hidden;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.slider-slide {
  min-width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: 20;
}

.slider-btn:hover { background: var(--gold); color: var(--maroon); }
.slider-btn-prev { left: 24px; }
.slider-btn-next { right: 24px; }

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--transition-base);
}

.slider-dot.active { background: var(--gold); transform: scale(1.2); }

.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* ========================================
   Congratulations Carousel
======================================== */
.congrats-section {
  padding: 4rem 0;
  background-color: var(--cream);
}

.congrats-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.congrats-slider {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
}

.congrats-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.congrats-item {
  min-width: 33.3333%;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

.congrats-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  height: 16rem;
}

.congrats-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.congrats-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  box-shadow: var(--shadow-card);
  color: var(--maroon);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: 10;
  border: none;
}

.congrats-btn:hover { background: var(--maroon); color: white; }
.congrats-btn-prev { left: 0.5rem; }
.congrats-btn-next { right: 0.5rem; }

.congrats-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}

.congrats-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all var(--transition-base);
}

.congrats-dot.active { background: var(--maroon); transform: scale(1.2); }

/* ========================================
   Awards & Achievements Carousel
======================================== */
.awards-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
}

.awards-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.awards-container .section-title {
  color: white;
}

.awards-container .text-gray-600 {
  color: rgba(255, 255, 255, 0.7);
}

.awards-slider {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.awards-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.awards-item {
  min-width: 20%;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

.awards-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
  height: 14rem;
  position: relative;
}

.awards-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.awards-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--gold);
  color: var(--maroon-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.awards-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
  color: var(--maroon);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: 10;
  border: none;
}

.awards-btn:hover { background: var(--gold); color: var(--maroon-dark); }
.awards-btn-prev { left: 0.5rem; }
.awards-btn-next { right: 0.5rem; }

.awards-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}

.awards-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition-base);
}

.awards-dot.active { background: var(--gold); transform: scale(1.2); }

/* ========================================
   e-Service Section
======================================== */
.eservice-section {
  padding: 5rem 0;
  background-color: var(--cream);
}

.eservice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 15px -3px rgba(0,0,0,0.08);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.eservice-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(124, 29, 29, 0.15);
  border-color: var(--maroon);
}

.eservice-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.eservice-card:hover .eservice-icon {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--maroon-dark);
  transform: scale(1.1);
}

.eservice-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--maroon);
  margin-bottom: 0.25rem;
}

.eservice-desc {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.3;
}

/* ========================================
   Section Titles
======================================== */
.section-title {
  font-family: 'Playfair Display', serif;
  color: var(--maroon);
  font-size: 32px;
  font-weight: 1200;
}

.section-subtitle {
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

.gold-line {
  position: relative;
  display: inline-block;
}

.gold-line::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ========================================
   About Section
======================================== */
.about-section {
  padding: 6rem 0;
  background-color: var(--cream);
}

.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--gold);
  color: var(--maroon);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
}

.about-image {
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(124, 29, 29, 0.8));
  color: white;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(124, 29, 29, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon);
  flex-shrink: 0;
}

/* ========================================
   Department Cards
======================================== */
.dept-section {
  padding: 6rem 0;
  background: white;
}

.dept-card {
  background: var(--cream);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.4s;
}

.dept-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.dept-card-image {
  height: 12rem;
  overflow: hidden;
  position: relative;
}

.dept-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.dept-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(transparent, rgba(124, 29, 29, 0.8));
}

.dept-link {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--transition-base);
}

.dept-link:hover { gap: 0.75rem; }

/* ========================================
   News Section
======================================== */
.news-section {
  padding: 6rem 0;
  background: var(--cream);
}

.news-card {
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.4s;
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px -12px rgba(124, 29, 29, 0.2);
  border-color: var(--gold);
}

.news-card:hover .news-image img {
  transform: scale(1.08);
}

.news-image {
  height: 14rem;
  overflow: hidden;
  position: relative;
}

.news-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(transparent, rgba(124, 29, 29, 0.15));
  pointer-events: none;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.news-tag-red { background: var(--maroon); color: white; }
.news-tag-gold { background: var(--gold); color: var(--maroon-dark); }
.news-tag-green { background: #16a34a; color: white; }
.news-tag-blue { background: #2563eb; color: white; }
.news-tag-purple { background: #7c3aed; color: white; }

/* ========================================
   Info News Section (Procurement & Recruitment)
======================================== */
.info-news-section {
  padding: 4rem 0;
  background: white;
}

.info-news-card {
  background: var(--cream);
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(0,0,0,0.05);
}

.footer-card {
  background: var(--cream);
}

.info-news-item {
  display: block;
  padding: 0.875rem;
  background: white;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.info-news-item:hover {
  border-color: var(--gold);
  transform: translateX(5px);
  box-shadow: 0 4px 15px -3px rgba(0,0,0,0.08);
}

.info-news-date {
  font-size: 0.7rem;
  font-weight: 600;
  color: #9ca3af;
  white-space: nowrap;
  min-width: 60px;
}

.info-news-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  line-height: 1.4;
  margin-bottom: 0.35rem;
}

.info-news-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  background: #fee2e2;
  color: #dc2626;
}

.info-news-tag.info-tag-green {
  background: #d1fae5;
  color: #059669;
}

.info-news-tag.info-tag-blue {
  background: #dbeafe;
  color: #2563eb;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--maroon);
  transition: gap 0.2s ease;
}

.view-all-link:hover {
  gap: 0.5rem;
}

/* ========================================
   Programs Section
======================================== */
.programs-section {
  padding: 5rem 0;
  background: var(--cream);
}

.programs-section .section-title {
  color: var(--maroon);
}

/* Tab Buttons */
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  border-color: var(--maroon);
  color: var(--maroon);
}

.tab-btn.active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: white;
}

.tab-btn svg {
  flex-shrink: 0;
}

/* Tab Content */
.tab-content {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Program Card */
.program-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--cream);
  border-radius: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.program-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -5px rgba(201, 162, 39, 0.3);
}

.program-code {
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.4rem 0.65rem;
  background: var(--maroon);
  color: white;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.program-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .tab-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
  .tab-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* ========================================
   CTA Section
======================================== */
.cta-section {
  padding: 5rem 0;
  background: var(--maroon);
  position: relative;
  overflow: hidden;
}

.cta-blob {
  position: absolute;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(60px);
}

.cta-blob-1 { top: 0; left: 25%; background: var(--gold); }
.cta-blob-2 { bottom: 0; right: 25%; background: white; }

.cta-btn {
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-base);
}

.cta-btn-gold { background: var(--gold); color: var(--maroon); }
.cta-btn-gold:hover { background: var(--gold-light); }
.cta-btn-outline { border: 2px solid white; color: white; }
.cta-btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ========================================
   Contact Section
======================================== */
.contact-section {
  padding: 6rem 0;
  background: white;
}

.contact-card {
  background: var(--cream);
  border-radius: 1.5rem;
  padding: 2rem;
}

.contact-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  outline: none;
  transition: all var(--transition-base);
  font-size: 1rem;
}

.contact-input:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(124, 29, 29, 0.1);
}

.contact-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(124, 29, 29, 0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon);
  flex-shrink: 0;
}

/* ========================================
   Footer
======================================== */
.footer {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: white;
  /* padding: 5rem 0; */
}

.footer-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-link:hover { color: var(--gold); }

.social-btn {
  width: 3rem;
  height: 3rem;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all var(--transition-base);
}

.social-btn:hover { background: var(--gold); color: var(--maroon); }

/* ========================================
   Privacy Policy & Consent
======================================== */
.privacy-hero {
  background:
    radial-gradient(circle at 78% 24%, rgba(201, 162, 39, 0.28), transparent 28rem),
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.12), transparent 22rem),
    linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
}

.privacy-hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(120deg, black, transparent 72%);
}

.privacy-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.privacy-body {
  background:
    linear-gradient(180deg, var(--cream) 0%, #fffaf1 100%);
}

.privacy-summary,
.privacy-card {
  border: 1px solid rgba(201, 162, 39, 0.22);
  background: rgba(255, 252, 248, 0.88);
  box-shadow: 0 24px 70px rgba(61, 30, 22, 0.08);
}

.privacy-summary {
  height: fit-content;
  border-radius: 1.5rem;
  padding: 1.5rem;
}

.privacy-summary__seal {
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border-radius: 1.15rem;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: var(--gold);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.privacy-summary h2 {
  margin: 0 0 0.65rem;
  color: var(--maroon);
  font-size: 1.15rem;
  font-weight: 800;
}

.privacy-summary p {
  margin: 0;
  color: #6f6258;
  line-height: 1.85;
  font-size: 0.92rem;
}

.privacy-summary__link {
  display: inline-flex;
  margin-top: 1.25rem;
  color: var(--maroon);
  font-weight: 800;
  text-decoration: none;
}

.privacy-card {
  border-radius: 1.75rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.privacy-section {
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.18);
}

.privacy-section:first-child { padding-top: 0; }
.privacy-section:last-of-type { border-bottom: 0; }

.privacy-section h2 {
  color: var(--maroon);
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.privacy-section p,
.privacy-section li {
  color: #584c44;
  line-height: 1.95;
}

.privacy-section ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.privacy-note {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(124, 29, 29, 0.06);
  color: var(--maroon);
}

.privacy-note i { font-size: 1.4rem; }
.privacy-note p { margin: 0.2rem 0 0; color: #6f6258; }

.privacy-consent {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 120;
  width: min(92vw, 520px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(201, 162, 39, 0.32);
  border-radius: 1.35rem;
  background: rgba(255, 252, 248, 0.96);
  box-shadow: 0 28px 90px rgba(43, 20, 15, 0.22);
  backdrop-filter: blur(18px);
  overflow: hidden;
  transform: translateY(1.25rem) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease, transform 280ms ease;
}

.privacy-consent.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.privacy-consent__orb {
  position: absolute;
  width: 11rem;
  height: 11rem;
  right: -4.5rem;
  top: -5rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.34), transparent 67%);
  pointer-events: none;
}

.privacy-consent__icon {
  position: relative;
  width: 3.15rem;
  height: 3.15rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: var(--gold);
  font-size: 1.55rem;
}

.privacy-consent__content {
  position: relative;
  min-width: 0;
}

.privacy-consent__eyebrow {
  margin: 0 0 0.2rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.privacy-consent h2 {
  margin: 0;
  color: var(--maroon);
  font-size: 1rem;
  font-weight: 800;
}

.privacy-consent p {
  margin: 0.35rem 0 0;
  color: #62564d;
  line-height: 1.65;
  font-size: 0.88rem;
}

.privacy-consent__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  position: relative;
}

.privacy-consent__link,
.privacy-consent__accept {
  min-height: 2.45rem;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.privacy-consent__link {
  color: var(--maroon);
  background: rgba(124, 29, 29, 0.07);
}

.privacy-consent__accept {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  box-shadow: 0 10px 24px rgba(124, 29, 29, 0.25);
}

.privacy-consent[hidden] { display: none; }

/* ========================================
   Utilities
======================================== */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 1024px) {
  .slider-section { height: 60vh; }
  .congrats-item { min-width: 50%; }
  .awards-item { min-width: 33.3333%; }
}

@media (max-width: 768px) {
  .slider-section { height: 50vh; min-height: 300px; }
  .slider-btn { width: 40px; height: 40px; }
  .slider-btn-prev { left: 12px; }
  .slider-btn-next { right: 12px; }
  .congrats-item { min-width: 100%; }
  .awards-item { min-width: 50%; }
  .about-image img { height: 300px; }
  .about-badge { right: 0; bottom: -1rem; }
}

@media (max-width: 640px) {
  .slider-section { height: 40vh; min-height: 250px; }
  .awards-item { min-width: 100%; }
  .eservice-card { padding: 1rem 0.75rem; }
  .eservice-icon { width: 3rem; height: 3rem; }
  .eservice-name { font-size: 0.85rem; }
  .privacy-consent {
    left: 1rem;
    right: 1rem;
    width: auto;
  }
  .privacy-consent__actions {
    justify-content: stretch;
  }
  .privacy-consent__link,
  .privacy-consent__accept {
    flex: 1;
    text-align: center;
  }
}
