/* ================================
   ABRSM Homepage - Modern Creative Design
   Seamless Flow from Hero to Footer
   ================================ */

:root {
  /* Colors - Modern Palette */
  --primary-red: #D81118;
  --primary-blue: #005587;
  --accent-teal: #16AC96;
  --accent-green: #28a745;
  --accent-purple: #6f42c1;
  --accent-orange: #fd7e14;
  
  --dark: #0a0a0a;
  --dark-900: #1a1a1a;
  --dark-800: #2d2d2d;
  --dark-700: #404040;
  --light: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;
  --space-48: 12rem;
  --space-64: 16rem;
  
  /* Layout */
  --container-max: 1400px;
  --container-wide: 1600px;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.20);
  --shadow-2xl: 0 32px 80px rgba(0, 0, 0, 0.24);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition: 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-smooth: 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
  overflow-x: hidden;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 -20px;
}

/* ================================
   HERO SECTION - Immersive Full Screen
   ================================ */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  max-height: 1000px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(1.1);
  transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-section.visible {
  opacity: 1;
  transform: scale(1);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7) saturate(1.2);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(216, 17, 24, 0.8) 0%,
    rgba(0, 85, 135, 0.6) 50%,
    rgba(22, 172, 150, 0.8) 100%
  );
  z-index: 2;
}

.hero-content {
  display: none;
}

.hero-section.visible .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--light);
  margin-bottom: var(--space-8);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-12);
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-actions {
  display: none;
}

/* Promo Banner - Floating */
.promo-banner {
  display: none;
}

.hero-section.visible .promo-banner {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.promo-content h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: var(--space-3);
}

.promo-content p {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

.promo-btn {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  background: linear-gradient(135deg, var(--primary-red) 0%, #b50e14 100%);
  color: var(--light);
  text-decoration: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
}

.promo-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

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

@keyframes promoFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ================================
   CAMPUS SECTIONS - Seamless Flow
   ================================ */
.campus-section {
  position: relative;
  padding: var(--space-40) 0;
  overflow: hidden;
  margin-top: -1px;
}

/* Dark overlay to increase text contrast */
.campus-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
  z-index: 0;
}


/* Seamless Gradient Backgrounds */
.campus-section.theme-red {
    background: linear-gradient(
      180deg,
      #000000 0%,
      #1a0000 10%,
      #330000 20%,
      #4d0000 30%,
      #660000 40%,
      #800000 50%,
      #660000 60%,
      #4d0000 70%,
      #330000 80%,
      #1a0000 90%,
      #000000 100%
    );
  color: #ffffff;
}

.campus-section.theme-red .campus-title {
  color: #ffffff !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.campus-section.theme-red .campus-description {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
}

.campus-section.theme-red .campus-badge {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.campus-section.theme-teal {
  background: linear-gradient(
    180deg,
    #000000 0%,
    #001a2a 10%,
    #003d4a 20%,
    #006080 30%,
    #0080a0 40%,
    #00a0c0 50%,
    #0080a0 60%,
    #006080 70%,
    #003d4a 80%,
    #001a2a 90%,
    #000000 100%
  );
  color: #e8f4f8;
}

.campus-section.theme-teal .campus-title {
  color: #e8f4f8 !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.campus-section.theme-teal .campus-description {
  color: rgba(232, 244, 248, 0.95) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
}

.campus-section.theme-teal .campus-badge {
  background: rgba(232, 244, 248, 0.25) !important;
  color: #e8f4f8 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.campus-section.theme-green {
  background: linear-gradient(
    180deg,
    #000000 0%,
    #001a0a 10%,
    #003d1a 20%,
    #006030 30%,
    #008040 40%,
    #00a050 50%,
    #008040 60%,
    #006030 70%,
    #003d1a 80%,
    #001a0a 90%,
    #000000 100%
  );
  color: #f0f8f0;
}

.campus-section.theme-green .campus-title {
  color: #f0f8f0 !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.campus-section.theme-green .campus-description {
  color: rgba(240, 248, 240, 0.95) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
}

.campus-section.theme-green .campus-badge {
  background: rgba(240, 248, 240, 0.25) !important;
  color: #f0f8f0 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* Creative Layout with Overlapping */
.campus-content {
  display: grid;
  grid-template-columns: 840px 1fr; /* ảnh rộng hơn nữa */
  gap: var(--space-20);
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-6);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.campus-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Different animations for each campus section */
#practical-grades .campus-content.visible {
  opacity: 1;
  transform: translateY(0) translateX(-20px);
  animation: slideInFromLeft 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#performance-grades .campus-content.visible {
  opacity: 1;
  transform: translateY(0) scale(1.05);
  animation: bounceInScale 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#theory-grades .campus-content.visible {
  opacity: 1;
  transform: translateY(0) translateX(20px);
  animation: slideInFromRight 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateY(60px) translateX(-80px) scale(0.8);
  }
  50% {
    opacity: 0.7;
    transform: translateY(20px) translateX(-40px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(-20px) scale(1);
  }
}

@keyframes bounceInScale {
  0% {
    opacity: 0;
    transform: translateY(80px) scale(0.3);
  }
  30% {
    opacity: 0.8;
    transform: translateY(-20px) scale(1.3);
  }
  60% {
    opacity: 0.9;
    transform: translateY(10px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1.05);
  }
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateY(50px) translateX(80px) scale(0.8);
  }
  50% {
    opacity: 0.7;
    transform: translateY(15px) translateX(40px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(20px) scale(1);
  }
}

/* Reverse Layout */
.campus-section.reverse .campus-content {
  grid-template-columns: 1fr 840px;
}

.campus-section.reverse .campus-image {
  order: 2;
}

.campus-section.reverse .campus-text {
  order: 1;
}

/* Modern Image with Creative Effects */
.campus-image {
  position: relative;
  width: 850px;
  height: 661px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  transition: all var(--transition-smooth);
  transform: rotate(0deg);
  will-change: transform;
}

.campus-section.reverse .campus-image {
  transform: rotate(0deg);
}

.campus-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-smooth);
  filter: brightness(1.05) contrast(1.05);
  will-change: transform, filter;
}

.campus-section:hover .campus-image {
  transform: translateY(-12px) scale(1.01);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.campus-section:hover .campus-image img {
  transform: scale(1.03);
  filter: brightness(1.08) contrast(1.08) saturate(1.05);
}

/* Creative Text Content */
.campus-text {
  max-width: none;
  position: relative;
  z-index: 2;
}

.campus-badge {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  backdrop-filter: blur(20px);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  animation: badgePulse 2s ease-in-out infinite;
}

.campus-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.2rem); /* nhỏ hơn */
  font-weight: 700;
  margin-bottom: var(--space-6);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.campus-description {
  font-size: 1.1rem;
  font-size: 1rem; /* nhỏ hơn */
  margin-bottom: var(--space-10);
  line-height: 1.8;
  font-weight: 400;
}

.campus-actions {
  display: flex;
  flex-direction: column; /* xếp dọc */
  gap: var(--space-4);
  align-items: center;
  width: 100%;
  max-width: 400px; /* độ rộng nút */
  margin: calc(var(--space-8) * -1 + 10px) auto 0; /* dịch lên cao hơn để đè lên ảnh, xuống thêm 7px */
  position: relative;
  z-index: 10;
}

/* Campus actions buttons - hẹp và dài hơn */
.campus-actions .btn {
  width: 100%;
  height: 50px;
  max-width: 400px;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  opacity: 1 !important;
  transform: translateY(0) !important;
  position: relative;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.campus-content.visible .campus-actions .btn { opacity: 1; transform: translateY(0); }
.campus-content.visible .campus-actions .btn:nth-child(1) { transition-delay: 120ms; }
.campus-content.visible .campus-actions .btn:nth-child(2) { transition-delay: 240ms; }
.campus-content.visible .campus-actions .btn:nth-child(3) { transition-delay: 360ms; }

/* Đảm bảo nút trắng có chữ đen trong campus-actions */
.campus-actions .btn-white {
  background: #ffffff !important;
  color: #1a1a1a !important;
  border-color: #ffffff !important;
}

.campus-actions .btn-white:hover {
  background: #cc0000 !important;
  color: #ffffff !important;
  border-color: #cc0000 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(204, 0, 0, 0.3);
}

.campus-actions .btn-outline-white:hover {
  background: #cc0000 !important;
  color: #ffffff !important;
  border-color: #cc0000 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(204, 0, 0, 0.3);
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

/* ================================
   PROGRAMS SECTION - Creative Cards
   ================================ */
.programs-section {
  padding: var(--space-40) 0;
  background: linear-gradient(
    180deg,
    var(--gray-50) 0%,
    var(--light) 50%,
    var(--gray-100) 100%
  );
  position: relative;
  overflow: hidden;
}

.programs-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 20% 80%,
    rgba(216, 17, 24, 0.05) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-20);
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-badge {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  background: linear-gradient(135deg, var(--primary-red) 0%, #b50e14 100%);
  color: var(--light);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-md);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--space-6);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray-600);
  line-height: 1.6;
  font-weight: 300;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-12);
  margin-top: var(--space-16);
  position: relative;
  z-index: 2;
}

.program-card {
  background: var(--light);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 800px;
  display: flex;
  flex-direction: column;
}

.program-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(216, 17, 24, 0.02) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 1;
}

.program-card:hover::before {
  opacity: 1;
}

.program-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-2xl);
}

.card-image {
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-slow);
  filter: brightness(1.05) contrast(1.05);
}

.program-card:hover .card-image img {
  transform: scale(1.08);
  filter: brightness(1.1) contrast(1.1) saturate(1.1);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: var(--space-6);
}

.card-badge {
  background: linear-gradient(135deg, var(--primary-red) 0%, #b50e14 100%);
  color: var(--light);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-md);
}

.card-content {
  padding: var(--space-10);
  position: relative;
  z-index: 2;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.card-content p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.card-actions {
  margin-top: var(--space-6);
}

/* ================================
   WHY SECTION - Campus Style Design
   ================================ */
.why-section {
  padding: var(--space-40) 0;
  background: linear-gradient(
    180deg,
    #1a0a00 0%,
    #331a00 10%,
    #4d2a00 20%,
    #663a00 30%,
    #804a00 40%,
    #663a00 50%,
    #4d2a00 60%,
    #331a00 70%,
    #1a0a00 80%,
    #000000 100%
  );
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.why-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,140,0,0.2) 0%, rgba(255,140,0,0.3) 40%, rgba(255,140,0,0.4) 70%, rgba(255,140,0,0.5) 100%);
  pointer-events: none;
  z-index: 0;
}

.why-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-20);
  align-items: center;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.why-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.why-text {
  max-width: none;
  padding-right: var(--space-8);
}

.why-text .section-badge {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  animation: badgePulse 2s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.why-text .section-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--space-6);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.why-text .section-subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.2rem;
  margin-bottom: var(--space-12);
  line-height: 1.7;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.features-list {
  margin: var(--space-12) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.feature-item {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all var(--transition-smooth);
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left var(--transition-smooth);
}

.feature-item:hover::before {
  left: 100%;
}

.feature-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(15px) translateY(-5px);
  box-shadow: var(--shadow-2xl);
  border-color: rgba(255, 255, 255, 0.4);
}

.feature-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: all var(--transition-smooth);
}

.feature-item:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.feature-content h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-3);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.feature-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.why-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin: calc(var(--space-8) * -1 + 10px) auto 0;
  position: relative;
  z-index: 10;
}

.why-actions .btn {
  width: 100%;
  height: 50px;
  max-width: 400px;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  opacity: 1 !important;
  transform: translateY(0) !important;
  position: relative;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.why-content.visible .why-actions .btn { opacity: 1; transform: translateY(0); }
.why-content.visible .why-actions .btn:nth-child(1) { transition-delay: 120ms; }
.why-content.visible .why-actions .btn:nth-child(2) { transition-delay: 240ms; }

.why-actions .btn-white {
  background: #ffffff !important;
  color: #1a1a1a !important;
  border-color: #ffffff !important;
}

.why-actions .btn-white:hover {
  background: #ff8c00 !important;
  color: #ffffff !important;
  border-color: #ff8c00 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
}

.why-actions .btn-outline-white {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.why-actions .btn-outline-white:hover {
  background: #ff8c00 !important;
  color: #ffffff !important;
  border-color: #ff8c00 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
}

.why-image {
  position: relative;
  width: 100%;
  height: 700px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  transition: all var(--transition-smooth);
  transform: rotate(0deg);
  will-change: transform;
}

.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-smooth);
  filter: brightness(1.05) contrast(1.05);
  will-change: transform, filter;
}

.why-section:hover .why-image {
  transform: translateY(-12px) scale(1.01);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.why-section:hover .why-image img {
  transform: scale(1.03);
  filter: brightness(1.08) contrast(1.08) saturate(1.05);
}

/* ================================
   STATS SECTION - Animated Numbers
   ================================ */
.stats-section {
  padding: var(--space-32) 0;
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--primary-red) 50%,
    var(--accent-teal) 100%
  );
  color: var(--light);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-16);
  text-align: center;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stats-grid.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-item {
  padding: var(--space-8);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stat-item.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--light);
  margin-bottom: var(--space-4);
  line-height: 1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ================================
   CTA SECTION - Call to Action
   ================================ */
.cta-section {
  padding: var(--space-40) 0;
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    #b50e14 50%,
    var(--primary-red) 100%
  );
  color: var(--light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 30% 70%,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.cta-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--space-6);
  line-height: 1.2;
  color: var(--light);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cta-content p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-12);
  line-height: 1.6;
  font-weight: 300;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-actions {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  flex-wrap: wrap;
}

/* ================================
   BUTTONS - Modern Design
   ================================ */
.btn {
  display: inline-block;
  padding: var(--space-5) var(--space-8);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0; /* vuông góc */
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  position: relative;
  overflow: hidden;
  width: 100%; /* kéo dài toàn khối */
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-red) 0%, #b50e14 100%);
  color: var(--light);
  border-color: var(--primary-red);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #b50e14 0%, #9a0d12 100%);
  border-color: #b50e14;
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}

.btn-outline:hover {
  background: var(--dark);
  color: var(--light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-white {
  background: #ffffff;
  color: #1a1a1a;
  border-color: #ffffff;
  box-shadow: var(--shadow-md);
  font-weight: 600;
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000000;
  border-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-outline-white:hover {
  background: #ffffff;
  color: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-shadow: none;
}

/* Theme-specific button colors */
.campus-section.theme-red .btn-white {
  background: #ffffff;
  color: #7e0c11;
  border-color: #ffffff;
}

.campus-section.theme-red .btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #5f1127;
}

.campus-section.theme-red .btn-outline-white {
  color: #ffffff;
  border-color: #ffffff;
}

.campus-section.theme-teal .btn-white {
  background: #e8f4f8;
  color: #002a43;
  border-color: #e8f4f8;
}

.campus-section.theme-teal .btn-white:hover {
  background: rgba(232, 244, 248, 0.9);
  color: #041c2c;
}

.campus-section.theme-teal .btn-outline-white {
  color: #e8f4f8;
  border-color: #e8f4f8;
}

.campus-section.theme-green .btn-white {
  background: #f0f8f0;
  color: #0b5e53;
  border-color: #f0f8f0;
}

.campus-section.theme-green .btn-white:hover {
  background: rgba(240, 248, 240, 0.9);
  color: #0a2f16;
}

.campus-section.theme-green .btn-outline-white {
  color: #f0f8f0;
  border-color: #f0f8f0;
}

.btn-large {
  padding: var(--space-6) var(--space-12);
  font-size: 1.1rem;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 1024px) {
  .campus-content {
    grid-template-columns: 567px 1fr;
    gap: var(--space-16);
    padding: 0 20px;
  }
  
  .campus-section.reverse .campus-content {
    grid-template-columns: 1fr 567px;
  }
  
  .campus-image {
    width: 567px;
    height: 441px;
  }
  
  .why-content {
    grid-template-columns: 1fr;
    gap: var(--space-16);
    text-align: center;
  }
  
  .why-text {
    padding-right: 0;
    max-width: 100%;
  }
  
  .features-list {
    gap: var(--space-6);
  }
  
  .feature-item {
    padding: var(--space-5);
    gap: var(--space-5);
  }
  
  .feature-icon {
    font-size: 2.2rem;
  }
  
  .feature-content h4 {
    font-size: 1.1rem;
  }
  
  .feature-content p {
    font-size: 0.9rem;
  }
  
  .why-actions {
    margin: var(--space-8) auto 0;
    max-width: 300px;
  }
  
  .why-actions .btn {
    height: 45px;
    font-size: 0.9rem;
  }
  
  .why-image {
    height: 550px;
    transform: none;
    order: -1;
  }
  
  .why-section:hover .why-image {
    transform: scale(1.02) translateY(-10px);
  }
  
  .promo-banner {
    position: static;
    margin: var(--space-8);
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .campus-content {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    text-align: center;
    padding: 0 20px;
  }
  
  .campus-section.reverse .campus-content {
    grid-template-columns: 1fr;
  }
  
  .campus-image {
    width: 100%;
    max-width: 500px;
    height: 400px;
    margin: 0 auto;
    transform: none;
  }
  
  .campus-section.reverse .campus-image {
    transform: none;
  }
  
  .campus-text {
    max-width: 100%;
  }
  
  .campus-actions,
  .hero-actions,
  .why-actions,
  .cta-actions {
    justify-content: center;
  }
  
  .why-image {
    height: 400px;
    transform: none;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
  
  .programs-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-item {
    padding: var(--space-4);
  }
}

@media (max-width: 480px) {
  .hero-actions,
  .campus-actions,
  .why-actions,
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .campus-image {
    height: 300px;
  }
  
  .why-section {
    padding: var(--space-32) 0;
  }
  
  .why-content {
    gap: var(--space-12);
  }
  
  .why-text .section-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }
  
  .why-text .section-subtitle {
    font-size: 1rem;
  }
  
  .features-list {
    gap: var(--space-5);
  }
  
  .feature-item {
    padding: var(--space-4);
    gap: var(--space-4);
    flex-direction: column;
    text-align: center;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
  
  .feature-content h4 {
    font-size: 1.1rem;
  }
  
  .feature-content p {
    font-size: 0.9rem;
  }
  
  .why-actions {
    margin: var(--space-6) auto 0;
    max-width: 280px;
  }
  
  .why-actions .btn {
    height: 40px;
    font-size: 0.85rem;
  }
  
  .why-image {
    height: 350px;
  }
}

/* ================================
   SCROLL ANIMATIONS
   ================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* Staggered animations for better flow */
.campus-content {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.campus-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.program-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.program-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-item {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.stat-item {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stat-item.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* FORCE OVERRIDE - Campus Section Colors */
#practical-grades .campus-title,
#practical-grades .campus-description,
#practical-grades .campus-badge {
  color: #ffffff !important;
}

#performance-grades .campus-title,
#performance-grades .campus-description,
#performance-grades .campus-badge {
  color: #e8f4f8 !important;
}

#theory-grades .campus-title,
#theory-grades .campus-description,
#theory-grades .campus-badge {
  color: #f0f8f0 !important;
}

/* Programs Grid Responsive */
@media (max-width: 1200px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .programs-grid {
    grid-template-columns: 1fr;
  }
}
