    :root {
      --deep-blue: #052b59;
      --gold: #efc864;
      --light-gold: #fff6e3;
      --white: #ffffff;
      --light-gray: #f5f6f8;
      --dark-gray: #333333;
    }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

    body {
      font-family: 'Cairo', sans-serif;
    }

.reason-card, .service-card, .stat-card {
  transform: translateZ(0);
  will-change: transform;
}

/* Add loading states for images */
img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

img[data-src] {
  opacity: 0;
}

/* Fullscreen preloader */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--deep-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
}

/* Spinner */
.loader {
  width: 60px;
  height: 60px;
  border: 6px solid var(--light-gold);
  border-top: 6px solid var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Spin animation */
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hide when loaded */
body.loaded #preloader {
  opacity: 0;
  pointer-events: none;
}

/* HEADER */

.site-header {
  display: flex;
  position: absolute;
  z-index: 10;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px;
  background-color: transparent;
  color: var(--light-gold);
  width: 100%;
}

.header-left {
  display: flex;
  align-items: center;
}

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

.header-left .logo:first-child img {
  height: 80px; 
  width: auto;
  margin-top: 5px;
}

.header-left .logo:last-child img {
  height: 90px; 
  width: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 50px;
}

.btn-apply {
  background-color: var(--gold);
  color: var(--deep-blue);
  padding: 8px 24px;
  border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s;
}

.btn-apply:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 35px;
}

.main-nav ul li a {
  color: var(--light-gold);
  text-decoration: none;
  font-family: 'Cairo', sans-serif;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav ul li a:hover {
  color: var(--gold);
  transform: translateY(-2px);
  transition: 0.2s;
}


/* HERO SECTION */

.hero-section {
  width: 100%;
  height: 100vh;
  background: url('../assets/hero.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: white;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 43, 89, 0.6);
}

.hero-container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1300px;
  gap: 40px;
}

.hero-text {
  flex: 1;
  max-width: 600px;
  margin-top: 70px;
}

.hero-text h1 {
  font-family: 'Cairo', sans-serif;
  font-size: 68px;
  margin-bottom: 30px;
  line-height: 78px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  color: var(--gold);
}

.hero-text p {
  font-family: 'Cairo', sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 34px;
  margin-bottom: 25px;
  color: var(--light-gold);
}

.hero-features {
  list-style: none;
  margin-top: 30px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.hero-features li {
  display: flex;
  align-items: center;
  font-family: 'Cairo', sans-serif;
  font-size: 19px;
  color: white;
}

.hero-features li i {
  flex-shrink: 0;
  font-size: 22px;
  color: var(--gold);
  margin-right: 18px;       /* space between icon & text */
  display: flex;
  justify-content: center;  /* center horizontally */
  align-items: center;      /* center vertically */
  width: 40px;              /* fixed width */
  height: 40px;             /* fixed height */
}

/* Programme Search Card */
.hero-search-card {
  flex: 1;
  background-color: rgba(255, 251, 242, 0.95);
  color: var(--deep-blue);
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  margin-top: 80px;
  backdrop-filter: blur(8px);
  max-width: 550px;
}

.hero-search-card h2 {
  font-family: 'Cairo', sans-serif;
  margin-bottom: 25px;
  font-size: 2rem;
}

.hero-search-card form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.hero-search-card label {
  font-family: 'Cairo', sans-serif;
  font-weight: 500;
  margin-bottom: -10px;
}

.hero-search-card input,
.hero-search-card select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--deep-blue);
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
}

.hero-search-card button {
  background-color: var(--gold);
  color: var(--deep-blue);
  padding: 12px;
  margin-top: 20px;
  border-radius: 8px;
  border: none;
  font-family: 'Cairo' ;
  font-weight: 800;
  font-size: 19px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.hero-search-card button:hover {
  background-color: #ecb81e;
  transform: scale(1.03);
}

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  animation: fadeIn 2s ease-in-out;
}

.scroll-indicator i {
  display: block;
  margin-top: 5px;
  font-size: 20px;
  animation: bounce 2s infinite;
}

/* Smooth fade in */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Arrow bounce animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(6px);
  }
  60% {
    transform: translateY(3px);
  }
}


/* PARTNERS SECTION */
.partners {
  position: relative;
  overflow: hidden;
  padding: 40px 20px;
  background: #ffffff;
}

.partners-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  background: linear-gradient(135deg, #efc864, #e6b84c);
  animation: floatShapes 20s linear infinite;
}

.shape-1 { width: 60px; height: 60px; top: 10%; left: 15%; animation-duration: 25s; }
.shape-2 { width: 40px; height: 40px; top: 40%; left: 70%; animation-duration: 18s; }
.shape-3 { width: 50px; height: 50px; top: 75%; left: 30%; animation-duration: 22s; }
.shape-4 { width: 70px; height: 70px; top: 20%; left: 85%; animation-duration: 28s; }
.shape-5 { width: 35px; height: 35px; top: 60%; left: 50%; animation-duration: 20s; }

@keyframes floatShapes {
  0% { transform: translateY(0) translateX(0) rotate(0deg); }
  50% { transform: translateY(-30px) translateX(20px) rotate(45deg); }
  100% { transform: translateY(0) translateX(0) rotate(0deg); }
}

.partners-title {
  text-align: center;
  font-family: 'Cairo', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--deep-blue);
  position: relative;
  z-index: 2;
}

.partners-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  margin: 10px auto 0;
  background: #efc864;
  border-radius: 3px;
}

.partners-track {
  display: inline-flex;
  white-space: nowrap; /* ✅ Prevents wrapping on all browsers */
  width: max-content;  /* ✅ Makes width depend on content only */
  animation: scroll 35s linear infinite;
  position: relative;
  z-index: 2;
}

.partners-slide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-right: 50px;
}

.partners-slide img {
  height: 200px;
  width: auto;
  vertical-align: middle;
}

.partners-slide img {
  height: 200px;
  transition: all 0.4s ease;
  margin-top: -20px;
}

.partners-slide img:hover {
  opacity: 1;
  transform: scale(1.1);
  border-radius: 6px;
}

/* Slider Animation */
@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* ✅ only half since we duplicate */
}

.partners-cta {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-btn {
  display: inline-block;
  padding: 8px 36px;
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  background: linear-gradient(135deg, #efc864, #e6b84c);
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: linear-gradient(135deg, #e6b84c, #efc864);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}




/* SERVICES SECTION */

/* Section Layout */
.services-section {
  position: relative;
  overflow: hidden;
  background: #052b59;
  padding: 80px 20px;
  font-family: 'Cairo', sans-serif;
  color: #fff;
}

/* Gradient Wave Background */
.services-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 200%; height: 200%;
  background: linear-gradient(120deg, #052b59, #0a4a8f, #0a4a8f, #052b59);
  background-size: 400% 400%;
  z-index: 0;
  animation: gradientWave 20s ease infinite;
  opacity: 0.2;
}

@keyframes gradientWave {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Bubble Particles */
.particles {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.particles span {
  position: absolute;
  bottom: -100px;
  display: block;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  animation: bubbleFloat linear infinite;
}

/* Different sizes + speeds */
.particles span:nth-child(1) { left: 10%; width: 15px; height: 15px; animation-duration: 18s; }
.particles span:nth-child(2) { left: 25%; width: 25px; height: 25px; animation-duration: 25s; }
.particles span:nth-child(3) { left: 40%; width: 10px; height: 10px; animation-duration: 15s; }
.particles span:nth-child(4) { left: 55%; width: 18px; height: 18px; animation-duration: 22s; }
.particles span:nth-child(5) { left: 70%; width: 30px; height: 30px; animation-duration: 28s; }
.particles span:nth-child(6) { left: 85%; width: 12px; height: 12px; animation-duration: 17s; }
.particles span:nth-child(7) { left: 50%; width: 20px; height: 20px; animation-duration: 20s; }
.particles span:nth-child(8) { left: 90%; width: 14px; height: 14px; animation-duration: 19s; }

@keyframes bubbleFloat {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0.4; }
  50%  { opacity: 0.8; }
  100% { transform: translateY(-120vh) translateX(20px) scale(1.3); opacity: 0; }
}

/* Header */
.services-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  position: relative;
  z-index: 2;
}

.services-header h2 {
  font-size: 2.5rem;
  color: #efc864;
  margin-bottom: 12px;
}

.services-header p {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Services Grid */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Slide-Up Animation */
@keyframes slideUp {
  0%   { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

.service-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  color: #052b59;
  opacity: 0;
  animation: slideUp 0.8s ease forwards;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-radius 0.35s ease;
  cursor: pointer;
}

.service-card:nth-child(1) { animation-delay: 0.2s; }
.service-card:nth-child(2) { animation-delay: 0.4s; }
.service-card:nth-child(3) { animation-delay: 0.6s; }
.service-card:nth-child(4) { animation-delay: 0.8s; }

.service-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 16px 32px rgba(0,0,0,0.25);
  border-radius: 16px;
}

/* Card Image */
.card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

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

.service-card:hover .card-img img {
  transform: scale(1.1);
}

/* Card Content */
.card-content {
  padding: 20px;
  transition: color 0.3s ease;
}

.card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.service-card:hover .card-content h3 {
  color: #0a4a8f;
  transition: color 0.3s ease;
}

.card-content p {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

.service-card:hover .card-content p {
  color: #555;
  transition: color 0.3s ease;
}

/* CTA */
.services-cta {
  text-align: center;
  margin-top: 60px;
  position: relative;
  z-index: 2;
}

.cta-btn {
  display: inline-block;
  background: #efc864;
  color: #052b59;
  padding: 8px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
  width: 250px;
}

.cta-btn:hover {
  background: #d9b254;
  transform: translateY(-2px);
}






/* ============================= */
/* STUDY IN MALAYSIA SECTION     */
/* ============================= */
.study-malaysia {
  position: relative;
  overflow: hidden;
  background: #ffffff;          /* white background */
  padding: 60px 20px;
  font-family: 'Cairo', sans-serif;
  color: #222;
  z-index: 1;
}

/* Floating Shapes Background */
.study-malaysia .particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; 
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.study-malaysia .particles span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  background: linear-gradient(135deg, #efc864, #e6b84c); /* yellow gradient */
  animation: floatShapes 20s linear infinite;
}

.study-malaysia .particles span:nth-child(1) { width: 60px; height: 60px; top: 10%; left: 15%; animation-duration: 25s; }
.study-malaysia .particles span:nth-child(2) { width: 40px; height: 40px; top: 40%; left: 70%; animation-duration: 18s; }
.study-malaysia .particles span:nth-child(3) { width: 50px; height: 50px; top: 75%; left: 30%; animation-duration: 22s; }
.study-malaysia .particles span:nth-child(4) { width: 70px; height: 70px; top: 20%; left: 85%; animation-duration: 28s; }
.study-malaysia .particles span:nth-child(5) { width: 35px; height: 35px; top: 60%; left: 50%; animation-duration: 20s; }

@keyframes floatShapes {
  0% { transform: translateY(0) translateX(0) rotate(0deg); }
  50% { transform: translateY(-30px) translateX(20px) rotate(45deg); }
  100% { transform: translateY(0) translateX(0) rotate(0deg); }
}

/* Section Header */
.study-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 50px;
  position: relative;
  z-index: 2;
}

.study-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--deep-blue);        /* changed to deep blue */
  margin-bottom: 12px;
  position: relative;
}

.study-header h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  margin: 10px auto 0;
  background: var(--deep-blue);   /* underline also deep blue */
  border-radius: 3px;
}

.study-header p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.7;
}

/* Cards Grid */
.study-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Study Card */
.study-card {
  position: relative;
  background: rgba(5,43,89,0.08);   /* subtle blue tint */
  border-radius: 16px;
  padding: 30px 25px;
  text-align: center;
  border: 1px solid rgba(5,43,89,0.2); /* blue border */
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border 0.4s ease;
  cursor: pointer;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
}

.study-card:nth-child(1) { animation-delay: 0.2s; }
.study-card:nth-child(2) { animation-delay: 0.4s; }
.study-card:nth-child(3) { animation-delay: 0.6s; }
.study-card:nth-child(4) { animation-delay: 0.8s; }
.study-card:nth-child(5) { animation-delay: 1s; }
.study-card:nth-child(6) { animation-delay: 1.2s; }

.study-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
  border: 1px solid var(--deep-blue);
}

/* Card Icon */
.card-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5,43,89,0.12);   /* blue background */
  transition: background 0.3s ease, transform 0.3s ease;
}

.card-icon i {
  font-size: 2rem;
  color: var(--deep-blue);           /* icon blue */
  transition: transform 0.4s ease, color 0.4s ease;
}

.study-card:hover .card-icon {
  background: rgba(5,43,89,0.2);
  transform: scale(1.1);
}

.study-card:hover .card-icon i {
  transform: rotate(10deg) scale(1.15);
  color: #0a4a8f;
}

/* Card Title & Text */
.study-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--deep-blue);        /* changed to deep blue */
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.study-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  transition: color 0.3s ease;
}

.study-card:hover h3 {
  color: #0a4a8f;
}

.study-card:hover p {
  color: #222;
}

/* CTA */
.study-cta {
  text-align: center;
  margin-top: 50px;
  position: relative;
  z-index: 2;
}

.study-cta .cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--deep-blue), #0a4a8f);
  color: #fff;
  padding: 12px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 250px;
}

.study-cta .cta-btn:hover {
  background: linear-gradient(135deg, #0a4a8f, var(--deep-blue));
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* Fade-up Animation */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(40px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}









/* CHOOSE EXCEED SECTIONS */

/* Section Base */
/* ============================= */
/* CHOOSE EXCEED SECTION (FULL) */
/* ============================= */

.choose-exceed {
  position: relative;
  padding: 100px 20px;
  background: var(--deep-blue);
  color: var(--white);
  overflow: hidden;
  font-family: 'Cairo', sans-serif;
}

/* Gradient Wave Background */
.choose-exceed::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 200%; height: 200%;
  background: linear-gradient(120deg, var(--deep-blue), #0a4a8f, #0a4a8f, var(--deep-blue));
  background-size: 400% 400%;
  z-index: 0;
  animation: gradientWave 20s ease infinite;
  opacity: 0.2;
}

@keyframes gradientWave {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating Particles */
.particles {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.particles span {
  position: absolute;
  bottom: -100px;
  display: block;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  animation: bubbleFloat linear infinite;
}

.particles span:nth-child(1) { left: 10%; width: 15px; height: 15px; animation-duration: 18s; }
.particles span:nth-child(2) { left: 25%; width: 25px; height: 25px; animation-duration: 25s; }
.particles span:nth-child(3) { left: 40%; width: 10px; height: 10px; animation-duration: 15s; }
.particles span:nth-child(4) { left: 55%; width: 18px; height: 18px; animation-duration: 22s; }
.particles span:nth-child(5) { left: 70%; width: 30px; height: 30px; animation-duration: 28s; }
.particles span:nth-child(6) { left: 85%; width: 12px; height: 12px; animation-duration: 17s; }
.particles span:nth-child(7) { left: 50%; width: 20px; height: 20px; animation-duration: 20s; }
.particles span:nth-child(8) { left: 90%; width: 14px; height: 14px; animation-duration: 19s; }

@keyframes bubbleFloat {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0.4; }
  50%  { opacity: 0.8; }
  100% { transform: translateY(-120vh) translateX(20px) scale(1.3); opacity: 0; }
}

/* Section Header */
.choose-exceed .section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  position: relative;
  z-index: 2;
}

.choose-exceed .section-header h2 {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 15px;
}

.choose-exceed .section-header p {
  font-size: 1.1rem;
  color: #ddd;
  line-height: 1.6;
}

/* Stats Container */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Elegant Stat Card */
.stat-card {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 35px 25px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  transition: transform 0.45s ease, box-shadow 0.45s ease, border 0.45s ease;
  cursor: pointer;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
  overflow: hidden;
}

/* Staggered Entrance */
.stat-card:nth-child(1) { animation-delay: 0.2s; }
.stat-card:nth-child(2) { animation-delay: 0.4s; }
.stat-card:nth-child(3) { animation-delay: 0.6s; }
.stat-card:nth-child(4) { animation-delay: 0.8s; }
.stat-card:nth-child(5) { animation-delay: 1s; }
.stat-card:nth-child(6) { animation-delay: 1.2s; }

.stat-card:hover {
  transform: translateY(-12px) scale(1.04);
  box-shadow: 0 16px 32px rgba(0,0,0,0.35);
  border: 1px solid rgba(239,200,100,0.5);
}

/* Icon Style */
.stat-card i {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: var(--gold);
  transition: background 0.3s ease, transform 0.4s ease, color 0.4s ease;
}

.stat-card:hover i {
  background: rgba(239,200,100,0.18);
  transform: rotate(10deg) scale(1.15);
  color: var(--light-gold);
}

/* Title */
.stat-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--gold);
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.stat-card:hover h3 {
  color: var(--light-gold);
}

/* Paragraph */
.stat-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--light-gold);
  transition: color 0.3s ease;
}

.stat-card:hover p {
  color: var(--white);
}

/* Fade Up Animation */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(40px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* CTA Button */
.choose-exceed .services-cta {
  text-align: center;
  margin-top: 70px;
  position: relative;
  z-index: 2;
}

.choose-exceed .cta-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--deep-blue);
  padding: 12px 36px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
  width: 250px;
}

.choose-exceed .cta-btn:hover {
  background: #d9b254;
  transform: translateY(-3px);
}




/* TESTIMONIALS */

.testimonials-section {
  position: relative;
  overflow: hidden;
  padding: 2rem 1rem;
  text-align: center;
  margin: 0 auto;
  background: #ffffff; /* match partners background */
}

/* Background Shapes */
.testimonials-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  background: linear-gradient(135deg, #efc864, #e6b84c);
  animation: floatShapes 20s linear infinite;
}

.shape-1 { width: 60px; height: 60px; top: 12%; left: 18%; animation-duration: 25s; }
.shape-2 { width: 40px; height: 40px; top: 45%; left: 72%; animation-duration: 18s; }
.shape-3 { width: 50px; height: 50px; top: 78%; left: 28%; animation-duration: 22s; }
.shape-4 { width: 70px; height: 70px; top: 22%; left: 82%; animation-duration: 28s; }
.shape-5 { width: 35px; height: 35px; top: 63%; left: 52%; animation-duration: 20s; }

@keyframes floatShapes {
  0% { transform: translateY(0) translateX(0) rotate(0deg); }
  50% { transform: translateY(-30px) translateX(20px) rotate(45deg); }
  100% { transform: translateY(0) translateX(0) rotate(0deg); }
}

.section-title {
  font-size: 2.5rem;
  font-family: 'Cairo';
  font-weight: 700;
  color: #052b59;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2; /* stay above background */
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  max-width: 800px;
  margin: auto;
  z-index: 2; /* keep above shapes */
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.testimonial-card {
  flex: 0 0 100%;
  background: rgba(255, 255, 255, 0.85); /* semi-transparent */
  backdrop-filter: blur(10px); /* soft blur of background shapes */
  border-radius: 15px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 220px;
  justify-content: center;
  border: 1px solid rgba(5, 6, 82, 0.25); /* subtle bright border */
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05); /* inner shadow for depth */
  transition: transform 0.3s ease, background 0.3s ease, border 0.3s ease;
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 1); /* slightly brighter on hover */
  border: 1px solid rgba(5, 6, 82, 0.75); /* highlight border on hover */
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 2px solid #efc864;
}

.testimonial-text {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.5;
  font-style: italic;
}

.student-name {
  font-weight: 700;
  font-family: 'Cairo';
  color: #052b59;
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.student-info {
  font-size: 0.85rem;
  color: #666;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  gap: 1rem;
}

.carousel-btn {
  background: #052b59;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background: #efc864;
  transform: scale(1.1);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: #efc864;
}



/* FAQ SECTION */
.faq-section {
  position: relative;
  overflow: hidden;
  padding: 80px 20px;
  background: #ffffff; /* Same as testimonials background */
}

/* Background Shapes - Same as testimonials */
.faq-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.faq-background .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  background: linear-gradient(135deg, #efc864, #e6b84c);
  animation: floatShapes 20s linear infinite;
}

.faq-background .shape-1 { width: 60px; height: 60px; top: 12%; left: 18%; animation-duration: 25s; }
.faq-background .shape-2 { width: 40px; height: 40px; top: 45%; left: 72%; animation-duration: 18s; }
.faq-background .shape-3 { width: 50px; height: 50px; top: 78%; left: 28%; animation-duration: 22s; }
.faq-background .shape-4 { width: 70px; height: 70px; top: 22%; left: 82%; animation-duration: 28s; }
.faq-background .shape-5 { width: 35px; height: 35px; top: 63%; left: 52%; animation-duration: 20s; }

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2; /* Keep content above background shapes */
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--deep-blue);
  font-family: 'Cairo';
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gold);
}

.section-header p {
  font-size: 1.1rem;
  font-family: 'Cairo';
  color: #666;
  max-width: 600px;
  margin: 20px auto 0;
}

.faq-item {
  background: var(--light-gray);
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.faq-question {
  padding: 20px 25px;
  background: var(--deep-blue);
  color: var(--white);
  font-family: 'Cairo';
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.faq-question i {
  transition: transform 0.3s;
}

.faq-answer {
  padding: 0 25px;
  font-family: 'Cairo';
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 25px;
  max-height: 500px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}


/* CTA SECTION */
.cta-section {
  background: linear-gradient(135deg, var(--deep-blue) 0%, #0a4a8f 100%);
  padding: 80px 20px;
  text-align: center;
  color: var(--white);
  margin-top: 60px;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--gold);
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

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

/* Button styles used in CTA */
.btn-primary {
  background: var(--deep-blue);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, transform 0.3s;
  font-size: 0.95rem;
  flex: 1;
  text-align: center;
}

.btn-primary:hover {
  background: #07306b;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--deep-blue);
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--deep-blue);
  transition: all 0.3s ease;
  font-size: 0.95rem;
  flex: 1;
  text-align: center;
}

.btn-secondary:hover {
  background: var(--deep-blue);
  color: var(--white);
  transform: translateY(-2px);
}



/* FOOTER */

.site-footer {
  background: #052b59; /* deep blue for professionalism */
  color: #fff6e3; /* soft contrast */
  padding: 4rem 2rem 2rem;
  font-family: 'Cairo', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: space-between;
}

.footer-about {
  flex: 1 1 300px;
}

.footer-about .footer-logo img {
  height: 320px;
  margin-top: -60px;
  margin-bottom: -60px;
  margin-left: -40px;
}

.footer-about p {
  font-size: 13px;
  line-height: 1.6;
  max-width: 400px;
  text-align: center;
  margin-left: -85px;
  margin-top: -15px;
}

.footer-links, .footer-contact {
  flex: 1 1 200px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links ul li a:hover {
  color: #efc864; /* gold accent */
}

.footer-contact p {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: white;
}

.footer-contact i {
  margin-right: 8px;
  color: #efc864;
}

.footer-social {
  margin-top: 1rem;
}

.footer-social a {
  display: inline-block;
  margin-right: 0.8rem;
  color: white;
  font-size: 1rem;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: #efc864;
}

.footer-bottom {
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
  padding: 15px 10px;
}

.footer-bottom a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #fff;
}

/* Section Dividers */
.section-divider.line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 40px 0;
}

@media (max-width: 768px) {
  /* Fix white gap at top */
  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  /* Header Mobile - Fixed with background */
  .site-header {
    height: 70px;
    padding: 10px 15px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--deep-blue) !important; /* Solid background */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .header-left {
    margin-top: 5px;
    gap: 8px;
  }

  .header-left .logo:first-child img {
    height: 40px;
  }

  .header-left .logo:last-child img {
    height: 45px;
  }

  .header-right {
    gap: 15px;
  }

  .btn-apply {
    display: none;
  }

  /* Compact Mobile Navigation */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--deep-blue);
    padding: 70px 20px 20px;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 12px;
  }

  .main-nav ul li a {
    font-size: 1rem;
    padding: 8px 0;
  }

  .mobile-apply-btn {
    display: block !important;
    background: var(--gold);
    color: var(--deep-blue);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    margin-top: 15px;
    font-size: 0.9rem;
  }

  /* Compact Menu Toggle */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
  }

  .mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--light-gold);
    transition: 0.3s;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

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

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Hero Section - Compact */
.hero-section {
  height: 85vh;
  padding: 10px 15px 5px; /* Reduced top/bottom padding */
  margin-top: 70px;
  display: flex;
  align-items: flex-start; /* Align content to top */
  justify-content: center;
}

  .hero-container {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 10px 0;
    margin-top: 75px;
  }

  .hero-text {
    max-width: 100%;
    text-align: center;
    margin-top: 10px;
  }

  .hero-text h1 {
    font-size: 1.8rem !important;
    line-height: 1.2;
    margin-bottom: 15px;
  }

  .hero-text p {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 35px;
  }

  /* Remove features list on mobile */
  .hero-features {
    display: none;
  }

  /* Ultra Compact Programme Card */
  .hero-search-card {
    margin-top: 10px;
    width: 100%;
    max-width: 100%;
    padding: 15px;
  }

  .hero-search-card h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .hero-search-card form {
    gap: 8px;
  }

  .hero-search-card label {
    font-size: 0.9rem;
    margin-bottom: -8px;
  }

  .hero-search-card input,
  .hero-search-card select {
    padding: 8px;
    font-size: 0.9rem;
    border-radius: 4px;
  }

  .hero-search-card button {
    margin-top: 12px;
    padding: 8px;
    font-size: 0.9rem;
    border-radius: 6px;
  }

  /* Compact Partners Section */
  .partners {
    padding: 30px 10px;
  }

  .partners-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  .partners-slide {
    gap: 20px; /* tighter for mobile */
    margin-right: 20px;
  }

  .partners-slide img {
    height: 130px !important;
  }

  /* Smaller View Institutions button */
  .partners-cta .cta-btn {
    padding: 6px 24px;
    font-size: 0.9rem;
    border-radius: 8px;
    margin-top: 20px;
  }

  /* Compact Services */
  .services-section {
    padding: 40px 10px;
  }

  .services-header {
    margin-bottom: 30px;
  }

  .services-header h2 {
    font-size: 1.6rem;
  }

  .services-header p {
    font-size: 0.9rem;
  }

  .services-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .service-card {
    padding: 0;
  }

  .card-content {
    padding: 15px;
  }

  .card-content h3 {
    font-size: 1.1rem;
  }

  .card-content p {
    font-size: 0.85rem;
  }

  /* Section Padding */
  .study-malaysia {
    padding: 40px 10px;
  }

  /* Section Header */
  .study-header h2 {
    font-size: 1.7rem;
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .study-header p {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  /* Cards Grid */
  .study-container {
    gap: 18px;
    grid-template-columns: 1fr; /* Single column on mobile */
    margin: 0 auto;
  }

  /* Individual Cards */
  .study-card {
    padding: 20px 15px;
    border-radius: 12px;
  }

  /* Card Icon */
  .card-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 15px;
  }

  .card-icon i {
    font-size: 1.5rem;
  }

  /* Card Title & Text */
  .study-card h3 {
    font-size: 1.1rem;
  }

  .study-card p {
    font-size: 0.9rem;
  }

  /* CTA Button */
  .study-cta .cta-btn {
    width: 100%;
    max-width: 200px;
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  /* Reduce floating bubble size */
  .particles span {
    transform: scale(0.7);
  }

  /* Compact Choose Exceed */
  .choose-exceed {
    padding: 40px 10px;
  }

  .choose-exceed .section-header h2 {
    font-size: 1.6rem;
  }

  .choose-exceed .section-header p {
    font-size: 0.9rem;
  }

  .stats-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .stat-card {
    padding: 20px 15px;
  }

  .stat-card i {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .stat-card h3 {
    font-size: 1.1rem;
  }

  .stat-card p {
    font-size: 0.85rem;
  }

  /* Compact Testimonials */
  .testimonials-section {
    padding: 30px 10px;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .testimonial-card {
    padding: 1.2rem;
    min-height: auto;
  }

  .avatar {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
  }

  .testimonial-text {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }

  .student-name {
    font-size: 0.9rem;
  }

  .student-info {
    font-size: 0.8rem;
  }

  /* Compact FAQ */
  .faq-section {
    padding: 40px 10px;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .section-header p {
    font-size: 0.9rem;
  }

  .faq-question {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .faq-item.active .faq-answer {
    padding: 15px;
  }

  .faq-answer p {
    font-size: 0.85rem;
  }

  /* Compact CTA */
  .cta-section {
    padding: 40px 15px;
    margin-top: 40px;
  }

  .cta-content h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }

  .cta-content p {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

.cta-buttons {
  flex-direction: column;
  gap: 10px;
  align-items: center; /* Center the buttons */
  justify-content: center;
  width: 100%;
}

  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 250px;
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  /* Compact Footer */
  .site-footer {
    padding: 2rem 1rem 1rem;
  }

  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

.footer-about .footer-logo img {
  height: 300px; /* Increased from 200px */
  margin: -40px auto -30px; /* Adjust margins to accommodate larger logo */
}

  .footer-about p {
    margin: 0 auto;
    margin-top: -35px;
    font-size: 0.8rem;
  }

  .footer-links {
    font-size: 1rem;
    margin-top: -2rem;
    margin-bottom: 1.5rem;
  }

  .footer-links h4,
  .footer-contact h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  .footer-links ul li {
    margin-bottom: 0.3rem;
  }

  .footer-links ul li a {
    font-size: 0.85rem;
  }

  .footer-contact p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .footer-social {
    margin-top: 3rem;
  }

  .footer-social a {
    margin: 0 6px;
    font-size: 1rem;
  }

  .footer-bottom {
    margin-top: 1.5rem;
    padding: 10px;
    font-size: 0.8rem;
  }

  /* Compact Scroll Indicator */
  .scroll-indicator {
    bottom: 15px;
    font-size: 11px;
  }

  .scroll-indicator i {
    font-size: 14px;
  }

  /* Reduce animation sizes for mobile */
  .shape-1, .shape-2, .shape-3, .shape-4, .shape-5 {
    transform: scale(0.7);
  }

  .particles span {
    transform: scale(0.8);
  }
}