/* ===== CSS RESET & GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0066CC;
  --primary-dark: #004C99;
  --secondary: #00C2FF;
  --accent: #FFD700;
  --accent-dark: #FFB800;
  --dark: #0A192F;
  --light: #F8FAFF;
  --gray: #64748B;
  --gray-light: #E2E8F0;
  --success: #10B981;
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

.section-title span {
  color: var(--primary);
  position: relative;
}

.section-title span::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: white;
}

.btn-accent {
  background-color: var(--accent);
  color: var(--dark);
  font-weight: 700;
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  transform: translateY(-3px);
}

/* ===== HEADER & NAVIGATION ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999; /* Increased z-index */
    padding: 20px 0;
    transition: var(--transition);
}

.main-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}


/* Smooth Icon rotation for Mobile Menu */
.mobile-menu-btn i {
    transition: transform 0.4s ease;
}

.nav-links.active ~ .nav-actions .mobile-menu-btn i {
    transform: rotate(90deg);
}

/* Active link glow effect */
.nav-link.active {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 102, 204, 0.2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 700;
  font-size: 1.8rem;
}

.logo-img {
  height: 50px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text span:first-child {
  font-size: 1.2rem;
  color: var(--primary);
}

.logo-text span:last-child {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-link {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-icon {
  font-size: 1.3rem;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
}

.nav-icon:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh; /* Changed from height: 100vh to allow content to grow */
  height: auto;      /* Ensures content is not cut off on smaller screens */
  background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.8)), url('hero-bg.jpg');
  background-size: cover;
  background: 
    linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.8)), 
    url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?q=80&w=2560&auto=format&fit=crop');

  /* SIZE & POSITION SETTINGS */
  background-size: cover;       /* Ensures image covers the whole area without stretching */
  background-position: center;  /* Keeps the main part of the image in the center */
  background-repeat: no-repeat; /* Prevents tiling */
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px; 
  padding-bottom: 80px; /* Fix C: Added bottom space so stats don't touch scholarship bar */
}
.hero-container {
  text-align: center;
  color: white;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-title span {
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 60px;
  flex-wrap: wrap;
  flex-direction: row; /* ENSURE ROW DIRECTION FOR PC */
}

.hero-stat {
  text-align: center;
  /* Added animation for "alive" feel */
  animation: statsFadeUp 0.8s ease-out forwards;
  opacity: 0;
}

/* Staggered animation delays */
.hero-stat:nth-child(1) { animation-delay: 0.2s; }
.hero-stat:nth-child(2) { animation-delay: 0.4s; }
.hero-stat:nth-child(3) { animation-delay: 0.6s; }

/* Keyframes for stats entry */
@keyframes statsFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1;
}

.hero-stat-label {
  font-size: 1rem;
  opacity: 0.8;
  margin-top: 5px;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-element {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  backdrop-filter: blur(5px);
  animation: float 6s infinite ease-in-out;
}

.floating-element:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 15%;
  animation-delay: 1s;
}

.floating-element:nth-child(3) {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 20%;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* ===== QUICK SEARCH SECTION ===== */
.quick-search {
  background-color: white;
  padding: 40px 0 60px 0; /* REDUCED TOP PADDING from 60px to 40px */
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  margin-top: -50px;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow);
}

.search-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--border-radius);
  padding: 40px 30px; /* REDUCED PADDING from 50px */
  color: white;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.search-title {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.search-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-form {
  display: flex;
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-input {
  flex: 1;
  padding: 20px 30px;
  border: none;
  outline: none;
  font-size: 1.1rem;
  color: var(--dark);
}

.search-btn {
  padding: 20px 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--dark);
  border: none;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-btn:hover {
  padding: 20px 50px;
}

/* ===== FEATURED UNIVERSITIES ===== */
.universities-section {
  background-color: var(--light);
}

.university-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.university-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.university-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.university-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--accent);
  color: var(--dark);
  padding: 6px 15px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 2;
}

.university-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.university-content {
  padding: 25px;
}

.university-name {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.university-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.university-programs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.program-tag {
  background-color: var(--gray-light);
  color: var(--dark);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
}

.university-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.university-link:hover {
  gap: 12px;
}

.view-all-container {
  text-align: center;
  margin-top: 60px;
  width: 100%; /* Ensure full width */
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically if needed */
}

/* ===== PROCESS STEPS ===== */
.process-section {
  background: linear-gradient(135deg, var(--dark), #162B4D);
  color: white;
}

.process-title, .process-subtitle {
  color: white;
}

.process-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 1;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 250px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 25px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.step-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.step-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}


/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-title {
  font-size: 3rem;
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-whatsapp {
  background-color: #25D366;
  color: white;
}

.cta-whatsapp:hover {
  background-color: #128C7E;
  transform: translateY(-3px);
}

.cta-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: particle-float 15s infinite linear;
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* ===== FOOTER ===== */
.main-footer {
  background-color: var(--dark);
  color: white;
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

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

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-contact {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact p {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact i {
  color: var(--secondary);
  margin-top: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

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

.social-link:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.developer-link {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .process-steps {
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
  }
  
  .process-steps::before {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- IMPROVED MOBILE SEARCH BAR --- */
@media (max-width: 768px) {
  .search-card {
    padding: 25px 20px;
    border-radius: 24px;
    margin: 0 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
  }
  
  .search-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    animation: shimmer 2s infinite linear;
  }
  
  .search-title {
    font-size: 2rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--accent), white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
  }
  
  .search-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
  }
  
  .search-input-group {
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    padding: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
  }
  
  .search-input-group:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
  }
  
  .search-input {
    width: 100%;
    text-align: left;
    padding: 18px 50px 18px 20px;
    border-radius: 14px;
    font-size: 1.1rem;
    border: none;
    background: white;
    color: var(--dark);
    margin-bottom: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .search-input::placeholder {
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
  }
  
  .search-btn {
    width: 100%;
    margin-top: 12px;
    padding: 18px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), #FFB900);
    color: var(--dark);
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
  }
  
  .search-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 2s infinite;
  }
  
  .search-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #FFB900, var(--accent));
  }
  
  .search-btn:active {
    transform: translateY(-1px);
  }
  
  .btn-text {
    display: inline !important;
    margin-left: 10px;
    font-weight: 700;
  }
  
  /* Search icon animation */
  .search-btn i {
    animation: bounce 2s infinite ease-in-out;
  }
}

/* New animations */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

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


  /* 3. ACTIVE STATE (Triggered by JS) */
  .nav-links.active {
    max-height: 500px; /* Expands to show content */
    opacity: 1;
    padding: 40px 0;
  }

  /* 4. LINK STYLES FOR MOBILE */
  .nav-links .nav-link {
    font-size: 1.2rem;
    font-weight: 600;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    display: block;
  }

  /* Hide or adjust extra icons if needed */
  .nav-actions {
    gap: 15px;
  }

  /* --- FIX: HERO STATS VERTICAL LAYOUT --- */
@media (max-width: 768px) {
  .hero-stats {
    flex-direction: column; /* Stacks stats vertically as requested */
    align-items: center;
    gap: 30px; 
    margin-top: 40px;
    width: 100%;
  }
  
  .hero-stat {
    width: 100%;
  }
}

/* --- SMALL PHONE VIEW --- */
@media (max-width: 576px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .university-grid {
    grid-template-columns: 1fr;
  }
}

/* --- ANIMATION UTILITIES --- */
/* Hide extra cards initially */
.hidden-card {
  display: none !important;
}

/* Ensure smooth transition when cards appear */
@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.university-card.revealed {
  display: block !important;
  animation: fadeInCard 0.5s ease forwards;
}

/* ===== SCHOLARSHIP PROMO BANNER ===== */
.scholarship-promo-container {
  background-color: var(--dark); /* Matches hero bottom */
  padding-bottom: 80px; /* Space for the search bar to overlap */
  position: relative;
  z-index: 5;
}

.promo-banner {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), rgba(0, 102, 204, 0.2));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--border-radius);
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  backdrop-filter: blur(10px);
  animation: glowPulse 3s infinite;
}

@keyframes glowPulse {
  0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.1); }
  50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
  100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.1); }
}

.promo-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.promo-icon {
  width: 50px;
  height: 50px;
  background-color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--dark);
  flex-shrink: 0;
  animation: bounce 2s infinite;
}

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

.promo-text h3 {
  color: var(--accent);
  margin-bottom: 4px;
  font-size: 1.3rem;
}

.promo-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin: 0;
}

/* Adjust Quick Search to overlap correctly */
.quick-search {
  margin-top: -50px; /* Keep existing overlap */
}

/* Mobile Responsive for Banner */
@media (max-width: 768px) {
  .promo-banner {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }
  
  .promo-content {
    flex-direction: column;
  }
  
  .promo-btn {
    width: 100%;
  }
}

/* ===== UNIVERSITY CARD BUTTONS UPDATE ===== */
.university-card-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  width: 100%;
}

.card-btn {
  flex: 1; /* Makes both buttons equal width */
  padding: 10px 5px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap; /* Prevents text wrapping */
}

/* Left Button: View Programs (Subtle/Secondary) */
.card-btn.programs {
  background-color: var(--light);
  color: var(--primary);
  border-color: var(--primary);
}

.card-btn.programs:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 102, 204, 0.15);
}

/* Right Button: View Details (Primary/Gradient) */
.card-btn.details {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 10px rgba(0, 102, 204, 0.2);
}

.card-btn.details:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

/* Mobile Adjustment for very small screens */
@media (max-width: 380px) {
  .university-card-buttons {
    flex-direction: column;
  }
  .card-btn {
    width: 100%;
  }
}

/* ===== SEARCH RESULTS & ANIMATIONS ===== */

/* 1. Container adjustments */
.search-container-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.search-input-group {
  display: flex;
  background: white;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  padding: 5px; /* Creates a nice border gap */
}

.search-input {
  flex: 1;
  padding: 20px 30px;
  border: none;
  outline: none;
  font-size: 1.1rem;
  color: var(--dark); /* ENSURE TEXT IS VISIBLE */
}

/* Add this with other input styles */
.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
  background: rgba(255, 255, 255, 0.2);
}

.search-btn {
  border-radius: 40px;
  padding: 15px 40px; /* Big clickable area */
  cursor: pointer;
  transition: all 0.3s ease;
}


/* --- C. FILTER BUTTON STYLES --- */
.filter-buttons-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  animation: fadeIn 0.5s ease;
}

.filter-btn {
  background: transparent;
  border: 1px solid white; /* White border to stand out on the blue background */
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  background: var(--accent); /* Gold background for active */
  color: var(--dark);
  border-color: var(--accent);
  font-weight: 700;
}

/* --- D. SEE MORE BUTTON FIX (ALWAYS VISIBLE) --- */
.see-more-custom {
  background: var(--dark); /* Dark background by default */
  color: white;
  border: 2px solid white;
  opacity: 1; /* Force visibility */
  padding: 12px 40px;
  font-weight: 600;
  margin-top: 20px;
  display: inline-block; /* Ensures it respects margin/padding */
}

.see-more-custom:hover {
  background: var(--accent); /* Gold on hover */
  color: var(--dark);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}


/* 6. Animations */
@keyframes cardPopIn {
  to { opacity: 1; transform: translateY(0); }
}

.see-more-wrapper {
  text-align: center;
  margin-top: 30px;
  animation: fadeIn 0.5s ease;
}

/* Mobile Tweaks */
@media (max-width: 600px) {
  .search-input-group { flex-direction: column; border-radius: 20px; padding: 15px; }
  .search-input { width: 100%; text-align: center; padding: 10px; border-bottom: 1px solid #eee; }
  .search-btn { width: 100%; margin-top: 10px; }
  .btn-text { display: inline; } /* Ensure text shows */
}


/* ===== IMPROVED SEARCH RESULT CARDS ===== */
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
  width: 100%;
}

/* Enhanced Card Design */
.result-card {
  background: white;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 102, 204, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: cardPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 102, 204, 0.15);
  border-color: var(--primary);
}

/* University Name - MORE PROMINENT */
.result-uni {
  font-size: 1rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-uni i {
  font-size: 1.2rem;
  color: var(--accent);
  -webkit-text-fill-color: initial;
}

/* Program Name - Slightly less prominent */
.result-program {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 15px;
}

/* Meta Tags */
.result-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center; /* ADD THIS to center the tags */
  flex-wrap: wrap; /* ADD THIS to wrap on small screens */
}

.meta-tag {
  background: var(--light);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--gray-light);
}

.meta-tag i {
  color: var(--primary);
  font-size: 0.9rem;
}

/* View Fees Button */
.view-fees-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 0.95rem;
}

.view-fees-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 102, 204, 0.25);
  gap: 12px;
}

/* Mobile adjustments for result cards */
@media (max-width: 768px) {
  .search-results-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 15px;
  }
  
  .result-card {
    padding: 20px;
  }
  
  .result-uni {
    font-size: 0.95rem;
  }
  
  .result-program {
    font-size: 1rem;
  }
  .hero-section {
    padding-top: 160px; /* Increased from default to clear the navbar area */
    padding-bottom: 100px; /* Extra breathing room at bottom for mobile */
    align-items: flex-start; /* Aligns content better for vertical stacking */
  }
}


/* ===== DREAM COUNTRY SECTION (UPDATED) ===== */
.dream-country-section {
  position: relative;
  padding: 80px 0 100px;
  background-color: var(--dark);
  overflow: hidden;
  transition: background 0.8s ease;
  min-height: 700px;
}

/* 1. The Dynamic Color Gradient (Now at the bottom: z-index 0) */
.country-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* This gradient color is updated by JS */
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.6));
  z-index: 0; 
  transition: background 0.8s ease;
}

/* 2. The World Map (Now on top: z-index 1) */
.world-map-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* High quality vector map */
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/8/80/World_map_-_low_resolution.svg'); 
  background-size: contain; /* Ensures the whole world fits on screen */
  background-repeat: no-repeat;
  background-position: center;
  
  /* Modern Tech Look settings */
  opacity: 0.15; /* Subtle visibility */
  filter: invert(1); /* Turns the black map to White */
  z-index: 1; 
  pointer-events: none;
  
  /* Animation to make it look alive */
  animation: mapPulse 20s infinite ease-in-out;
}

/* 3. The Content (On top of everything: z-index 10) */
.relative-container {
  position: relative;
  z-index: 10;
}

/* Animation for the map */
@keyframes mapPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); } /* Zoom in slightly */
  100% { transform: scale(1); }
}

/* Carousel Layout */
.carousel-wrapper {
  position: relative;
  height: 200px; 
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.flag-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1000px;
  display: flex;
  justify-content: center;
}

/* Individual Flag Item */
.flag-item {
  position: absolute;
  top: 50%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 4px solid white;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  transform-origin: center center;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.flag-item::after {
  content: attr(data-name);
  position: absolute;
  bottom: -30px;
  color: white;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.flag-item:hover::after {
  opacity: 1;
}

/* Flag Positions */
.flag-item.pos-0 {
  width: 120px;
  height: 120px;
  z-index: 10;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
  border-color: var(--accent);
}

.flag-item.pos-1 {
  left: 65%;
  transform: translate(-50%, -30%) scale(0.8);
  z-index: 5;
  opacity: 0.8;
}
.flag-item.pos-minus-1 {
  left: 35%;
  transform: translate(-50%, -30%) scale(0.8);
  z-index: 5;
  opacity: 0.8;
}

.flag-item.pos-2 {
  left: 80%;
  transform: translate(-50%, -10%) scale(0.6);
  z-index: 2;
  opacity: 0.5;
}
.flag-item.pos-minus-2 {
  left: 20%;
  transform: translate(-50%, -10%) scale(0.6);
  z-index: 2;
  opacity: 0.5;
}

.flag-item.hidden {
  opacity: 0;
  transform: translate(-50%, 0) scale(0);
  pointer-events: none;
}

/* Nav Arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.nav-arrow:hover {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}

.left-arrow { left: 0; }
.right-arrow { right: 0; }

/* Info Card - Glassmorphism Restored */
.country-info-container {
  display: flex;
  justify-content: center;
  margin-top: 30px; /* Reduced top margin */
}

.country-info-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 30px; /* Reduced padding */
  width: 100%;
  max-width: 500px; /* Kept narrow like the 'Before' image */
  color: white;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  animation: fadeUp 0.5s ease;
}

.country-name {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.country-details-grid {
  display: flex;
  flex-direction: column; /* Force vertical list like 'Before' image */
  gap: 15px; /* TIGHTER GAP (User request) */
  margin-bottom: 30px;
  text-align: left;
}

/* THE ALIGNMENT FIX + 'BEFORE' LOOK COMBO */
.c-detail {
  display: grid;
  grid-template-columns: 45px 1fr; /* Fixed 45px width for icons -> Perfect alignment */
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05); /* Optional: subtle separator */
  padding-bottom: 8px;
}

.c-detail:last-child {
  border-bottom: none;
}

.c-detail i {
  font-size: 1.4rem;
  color: var(--accent); /* Yellow icon */
  display: flex;
  justify-content: flex-start; /* Align icon to left of its box */
}

/* This div wraps the Label (Intakes) and Value (Jan, Sept) */
.c-detail div {
  display: flex;
  flex-direction: column; /* STACKS text vertically */
  line-height: 1.2;
}

.c-detail small {
  display: block;
  font-size: 0.75rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
  font-weight: 500;
}

.c-detail span {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
}

/* The 'Before' style White Button */
.country-btn {
  background: white !important;
  color: var(--dark) !important;
  border: none !important;
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 700;
  width: 100%; /* Full width on mobile looks good, or remove for auto */
  max-width: 250px;
  display: inline-block;
}

.country-btn:hover {
  background: var(--accent) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}


/* Responsive Logic (Preserving your mobile fix) */
@media (max-width: 768px) {
  .dream-country-section {
    padding: 60px 0;
    min-height: auto;
  }
  
  .world-map-bg {
    background-size: cover; /* On mobile, cover looks better to fill space */
    opacity: 0.1; /* Slightly lower opacity on mobile to help text readability */
  }

  .flag-item.pos-2, .flag-item.pos-minus-2 {
    opacity: 0; 
    pointer-events: none;
  }
  
  /* Fix A: Arrows Overlap Logic */
  .flag-item.pos-1 { 
    left: 78%; 
    transform: translate(-50%, -30%) scale(0.7); 
  }
  .flag-item.pos-minus-1 { 
    left: 22%; 
    transform: translate(-50%, -30%) scale(0.7);
  }
  
  .nav-arrow {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
  }

  /* Fix B: Alignment Logic */
  /* Update inside @media (max-width: 768px) */

/* Fix B is now handled by the global .c-detail styles above */
/* We just need to adjust sizing/padding here */

.country-details-grid {
  gap: 12px; /* Even tighter on mobile */
  padding: 0;
}

.country-name {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.country-info-card {
  padding: 25px 20px;
  backdrop-filter: blur(20px); /* Stronger blur on mobile */
}

/* Ensure icons stay aligned on small screens */
.c-detail {
  grid-template-columns: 40px 1fr; 
}

/* ===== MOBILE MENU FIXES ===== */

/* Ensure nav links are visible on desktop */
.nav-links {
    display: flex !important;
    align-items: center;
    gap: 1.5rem;
}

/* Mobile menu button styling */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn .menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.mobile-menu-btn .menu-line {
    width: 100%;
    height: 2px;
    background-color: var(--dark);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--primary);
}

.mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--primary);
}

/* Ensure WhatsApp icon is visible */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-icon {
    color: var(--dark);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.nav-icon:hover {
    color: var(--primary);
}

/* Responsive styles - MUST COME AFTER ALL OTHER STYLES */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block !important;
    }
    
    .nav-links {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        width: 100% !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        padding: 2rem !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
        display: none !important;
        z-index: 1000 !important;
        gap: 1rem !important;
    }
    
    .nav-links.active {
        display: flex !important;
    }
    
    .nav-link {
        padding: 1rem 0 !important;
        width: 100% !important;
        text-align: center !important;
        border-bottom: 1px solid #eee !important;
        font-size: 1.1rem !important;
    }
    
    .nav-link:last-child {
        border-bottom: none !important;
    }
}

/* Fix for desktop view */
@media (min-width: 769px) {
    .nav-links {
        display: flex !important;
        position: static !important;
        background: transparent !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        width: auto !important;
    }
}

/* Logo link fix for subdirectories */
.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Remove conflicting mobile menu button styles from existing CSS */
.mobile-menu-btn i {
    display: none; /* Hide FontAwesome icon since we're using custom lines */
}
