:root {
  --carbon-blue: #353935;
  --turquoise: #191970;
  --orange: #f39c12;
  --gray: #6c757d;
  --bg-light: #f8f9fa;
  --text-dark: #333;
  --white: #fff;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}
/* Hero Banner Container */
.hero-banner {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 500px;
  overflow: hidden;
}

/* Background Image */
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Tagline Centered Over Image */

.hero-logo-content {
  position: absolute;
  bottom: 80px;              /* Distance from bottom */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  width: 100%;
}

.tagline {
  font-size: 2rem;
  font-weight: bold;
  color: #353935;
   padding: 10px 20px;
  border-radius: 10px;
  
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .tagline {
    font-size: 1.2rem;
    padding: 8px 16px;
  }
.hero-banner {
  position: relative;
  width: 100%;
  height: 50%;        /* <-- let the height adjust to image */
  max-height: none;
}

.hero-image {
  width: 100%;
  height: 50%;        /* <-- this ensures full image visibility */
  object-fit: contain;
  position: relative;  /* <-- no absolute positioning */
}
  
  .hero-logo-content {
    top: 70%;
  }
}



/* SECTION DEFAULT */
.section {
  padding: 60px 20px;
}

.section h2 {
  color: var(--carbon-blue);
  margin-bottom: 20px;
}

/* ABOUT US */
.about-container {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

/* Side-by-side layout for images */
.about-images.side-by-side {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* allow wrapping if screen is too small */
}

.about-images img {
  width: 48%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}


.about-img {
  width: 100%;
  max-width: 260px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

/* Animation setup */
.fade-img {
  animation-duration: 6s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  width: 100%;
  max-width: 260px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.fade-out-first {
  animation-name: fadeOutFirst;
}

.fade-in-second {
  animation-name: fadeInSecond;
}

/* First image starts visible */
@keyframes fadeOutFirst {
  0%, 10% {
    opacity: 1;
  }
  45%, 55% {
    opacity: 0;
  }
  90%, 100% {
    opacity: 1;
  }
}

/* Second image starts hidden */
@keyframes fadeInSecond {
  0%, 10% {
    opacity: 0;
  }
  45%, 55% {
    opacity: 1;
  }
  90%, 100% {
    opacity: 0;
  }
}
; }
  100% { opacity: 0; }
}

/* Keyframes for second image */
@keyframes fadeInSecond {
  0% { opacity: 0; }
  50% { opacity: 0; }
  70% { opacity: 1; }   /* visible starts */
  100% { opacity: 1; }  /* remains visible */
}

.about-text {
  flex: 1 1 50%;
}

.about-text h2 {
  color: var(--carbon-blue);
  font-size: 2rem;
  margin-bottom: 10px;
}

.about-text p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.about-features {
  display: flex;
  gap: 40px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.feature-box {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 700;
  color: var(--gray);
}

.feature-box .icon {
  width: 24px;
  height: 24px;
}

.about-highlight {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.highlight-number {
  font-size: 2.5rem;
  color: var(--carbonblue);
  font-weight: bold;
}



/* Responsive */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
  }
  .about-images.side-by-side {
    flex-direction: row;
    align-items: center;
  }

  .about-text {
    text-align: center;
  }
}

/* -----MISSION & VISION------ */

.mission-vision-section {
  background-color: #f7faff;;
  padding: 60px 20px;
}
.mission-vision-section .container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.mv-card {
  flex: 1 1 45%;
  background: white;
  color: var(--text-dark);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px #353935;
  border: 3px solid transparent;
  border-image: linear-gradient(to right, var(--carbon-blue), var(--turquoise)) 1;
  background-clip: padding-box;
  opacity: 0;
  transform: translateX(0);
  transition: all 1.5s ease-out; /* Slowed to 1.5s for smoother animation */
  display: flex;
  flex-direction: column;
  align-items: center; /* Center contents horizontally */
  text-align: center; /* Center text */
}

.mv-card.turquoise {
  /* No background change */
}

.mv-card i {
  font-size: 3rem; /* Larger icon for visibility */
  margin-bottom: 15px;
  color: var(--carbon-blue);
  border-radius: 50%; /* Rounded corners for icon */
  padding: 10px; /* Padding for rounded effect */
  background: rgba(255, 255, 255, 0.8); /* Slight background for contrast */
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center; /* Center icon within rounded container */
}

.mv-card.turquoise i {
  color: var(--turquoise);
}

.mv-card h3 {
  margin: 0 0 10px;
  color: var(--carbon-blue);
}

.mv-card p {
  margin: 0;
  font-size: 1rem;
}

.mission-vision-section.visible .mv-card.slide-in-left {
  animation: slideInLeft 1.5s ease-out forwards; /* Slowed to 1.5s */
}

.mission-vision-section.visible .mv-card.slide-in-right {
  animation: slideInRight 1.5s ease-out forwards; /* Slowed to 1.5s */
}

.mv-card:hover {
  transform: scale(1.03);
}

/* Slide In Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .mission-vision-section .container {
    flex-direction: column;
  }
  .mv-card {
    flex: 1 1 100%;
    margin-bottom: 20px;
  }
  .mission-vision-section.visible .mv-card {
    animation: none;
    opacity: 1;
    transform: translateX(0);
  }
}
/* TRAINING IMAGE */
.training-section {
  padding: 60px 20px;
  background-color: white;
  position: relative; /* Ensure positioning context for animations */
}

.training-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
}

.training-content {
  flex: 1 1 50%;
  animation: contentZoom 6s infinite ease-in-out; /* Continuous zoom effect */
}

.training-content h2 {
  font-size: 2rem;
  color: var(--carbon-blue);
  margin-bottom: 20px;
}

.training-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.training-image {
  flex: 1 1 40%;
  text-align: center;
}

.training-image img {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  animation: imageZoom 6s infinite ease-in-out; /* Continuous zoom effect */
}

/* Content Zoom Animation: Zooms in and out */
@keyframes contentZoom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); } /* Zooms in to 110% */
}

/* Image Zoom Animation: Starts zoomed out, zooms in and out */
@keyframes imageZoom {
  0% { transform: scale(0.9); } /* Starts zoomed out to 90% */
  50% { transform: scale(1.1); } /* Zooms in to 110% */
  100% { transform: scale(0.9); } /* Zooms back out to 90% */
}

/* Responsive */
@media (max-width: 768px) {
  .training-container {
    flex-direction: column;
    text-align: center;
  }
  .training-content, .training-image {
    flex: 1 1 100%;
  }
  .training-image img {
    max-width: 100%;
  }
  .training-content {
    animation: none; /* Disable animation on mobile for simplicity */
  }
  .training-image img {
    animation: none; /* Disable animation on mobile for simplicity */
  }
}


.cae-section {
  padding: 60px 20px;
  background-color: #f7faff; /* Light subtle background */
}

.cae-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cae-logo-wrapper {
  flex: 1 1 30%;
  text-align: center;
}

.cae-logo {
  max-width: 100%;
  width: 300px;
  height: 200;
}

.cae-content {
  flex: 1 1 65%;
  color: var(--text-dark);
}

.cae-content h2 {
  color: var(--carbon-blue);
  margin-bottom: 20px;
  font-size: 2rem;
}

.cae-content p {
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Fade-in Animation */
.fade-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.5s ease, transform 1.5s ease;
}

.fade-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .cae-container {
    flex-direction: column;
    text-align: center;
  }

  .cae-logo-wrapper, .cae-content {
    flex: 1 1 100%;
  }

  .cae-logo {
    width: 180px;
  }
}

/* CAMBRIDGE LOGO */
.cambridge-centre-section {
  background-color: #FFFFFF;
  padding: 60px 20px;
}

/* Flex layout for 3-column alignment */
.cambridge-three-column {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Image wrappers on both left and right */
.cambridge-image-wrapper {
  flex: 1 1 30%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cambridge-img {
  max-width: 250px;
  height: auto;
  display: block;
  
}

.small-right-img {
  max-width: 400px; /* make the right image a little smaller */
}

/* Central content column */
.cambridge-content {
  flex: 1 1 30%;
  color: var(--text-dark);
  text-align: left;
}

.cambridge-content h2 {
  color: var(--carbon-blue);
  margin-bottom: 15px;
}

.cambridge-content p {
  margin-bottom: 12px;
  line-height: 1.6;
}

/* Fade in-out animation keyframes */
@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-on-scroll {
  opacity: 0;
  transform: translateY(30px);
}

.fade-on-scroll.visible {
  animation: fadeInOut 2s ease-in-out forwards;
}

/* Responsive layout for mobile */
@media (max-width: 768px) {
  .cambridge-three-column {
    flex-direction: row;
    text-align: center;
  }

  .cambridge-content,
  .cambridge-image-wrapper {
    flex: 1 1 100%;
    text-align: center;
    margin-right: 20px;
    margin-left: 20px;
  }

  .cambridge-img {
    width: 100%;
    max-width: 100%; /* Remove previous limitation */
    margin: auto;
  }

  /* ✅ Force larger image size specifically for the right image */
  .cambridge-img.small-right-img {
    width: 90vw;
    max-width: 90vw;
    height: auto;
     margin-right: 20px;
    margin-left: 20px;
  }
}


/* SECTION TITLE */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--carbon-blue);
  margin-bottom: 30px;
}

/* EXAM GRID CARDS */
.exam-cards-section{
  background-color: #f7faff;
}
.exam-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.exam-card-container {
  perspective: 1000px;
  width: 200px;
  height: 120px;
  border-radius: 50px;
}

.exam-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s;
  border-radius: 50px;
}

.exam-card-container:hover .exam-card {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border: 1.5px solid var(--carbon-blue); /* Thin blue border */
  background-color: white;
  color: var(--text-dark);
  border-radius: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 0 2px 6px #353935;
  text-align: center;
}

.card-back {
  transform: rotateY(180deg);
}

/* Front Text */
.card-front h3 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 6px;
}

.card-front p {
  font-size: 0.75rem;
  margin: 0;
}

/* Know More Button */
.card-back .know-more-btn {
  padding: 6px 14px;
  background-color: var(--carbon-blue);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  transition: background 0.3s ease;
}

.card-back .know-more-btn:hover {
  background-color: var(--turquoise);
}

/* Responsive */
@media (max-width: 768px) {
  .exam-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .exam-card-container {
    width: 160px;
    height: 120px;
  }

  .card-front h3 {
    font-size: 0.9rem;
  }

  .card-front p {
    font-size: 0.7rem;
  }

  .card-back .know-more-btn {
    font-size: 0.75rem;
    padding: 5px 12px;
  }
}

/* Profile Section */
.typewriter-loop {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #007bff;
  font-weight: bold;
  font-size: 2rem;
  animation: typingLoop 4s steps(20, end) infinite, blink 0.75s step-end infinite;
}

@keyframes typingLoop {
  0% {
    width: 0;
  }
  40%, 60% {
    width: 230px; /* Adjust this based on name width */
  }
  100% {
    width: 0;
  }
}

@keyframes blink {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: #007bff;
  }
}
.profile-section {
  padding: 60px 20px;
  background-color: #E8F9FF;
}

.profile-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.profile-text {
  flex: 1 1 55%;
  color: #333;
}

.profile-text h2 {
  font-size: 2rem;
  color: #007bff;
  margin-bottom: 10px;
}

.profile-text p {
  font-size: 1rem;
  margin-bottom: 15px;
  line-height: 1.6;
}

.profile-text h4 {
  font-size: 1.2rem;
  color: #1abc9c;
  margin-top: 20px;
}

.profile-image {
  flex: 1 1 40%;
  text-align: center;
}

.profile-image img {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Initially hidden */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Image gradient reveal animation */
@keyframes gradientReveal {
  0% {
    mask-image: linear-gradient(to right, transparent 0%, black 0%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 0%);
  }
  100% {
    mask-image: linear-gradient(to right, transparent 0%, black 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 100%);
  }
}

.animate-image img {
  animation: gradientReveal 10s ease forwards;
  animation-delay: 5.0s;
  mask-image: linear-gradient(to right, transparent 0%, black 0%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 0%);
}

/* Text zoom animation */
@keyframes zoomText {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}

.animate-text {
  animation: zoomText 10s ease-in-out forwards;
}


/* Timeline Styles */
.expertise-timeline-section {
  padding: 40px 20px;
  background-color: #E8F9FF;
  overflow: hidden;
}

.expertise-timeline-section .section-title {
  text-align: center;
  margin-bottom: 20px;
  color: #007bff;
}

.timeline-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.timeline-track {
  display: flex;
  gap: 20px;
  animation: scrollTimeline 30s linear infinite;
}

.timeline-item {
  padding: 12px 24px;
  background: linear-gradient(135deg, #007bff, #1abc9c);
  color: white;
  font-weight: 600;
  border-radius: 30px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Auto Scroll Animation */
@keyframes scrollTimeline {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.timeline-item:hover {
  transform: scale(1.05);
}

@keyframes scrollTimeline {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Responsive */
@media (max-width: 768px) {
  .profile-container {
    flex-direction: column;
    text-align: center;
  }

  .profile-text, .profile-image {
    flex: 1 1 100%;
  }

  .profile-image img {
    max-width: 100%;
  }

  .timeline-track {
    animation-duration: 60s;
  }
}

.timeline-item {
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ANIMATIONS */
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease-in-out;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  transform: translateX(-40px);
}

.slide-in-right {
  transform: translateX(40px);
}

/* SLIDER SECTION */
.slider-section {
  padding: 40px 0;
  background: #E1EBEE;
  display: flex;
  justify-content: center;
}

.slider-wrapper {
  position: relative;
  width: 90%;
  max-width: 900px;
  overflow: hidden;
  border-radius: 12px;
}

.slider-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: max-content;
}

.slide-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 12px;
}

.slide-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  flex-shrink: 0;
}

.know-more-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #e0e0e0;
  color: #000;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
  font-size: 0.95rem;
}

.know-more-btn:hover {
  background-color: #ccc;
}

/* Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  z-index: 2;
  border-radius: 50%;
}

.slider-btn.prev {
  left: 15px;
}

.slider-btn.next {
  right: 15px;
}

/* Dots */
.slider-dots {
  text-align: center;
  margin-top: 15px;
}

.slider-dots .dot {
  display: inline-block;
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.slider-dots .dot.active {
  background-color: var(--carbon-blue);
}
@media (max-width: 768px) {
  .slider-section {
    padding: 20px 0;
  }

  .slider-wrapper {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }

  .slide-image {
    width: 100vw;
    height: auto;
    object-fit: cover;
    border-radius: 0;
  }

  .slide-container {
    width: 100vw;
    max-width: 100vw;
  }

  .slider-btn {
    font-size: 18px;
    padding: 8px;
  }

  .know-more-btn {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
}


/* LIBRARY */
.library-section {
  padding: 60px 20px;
  background-color: #f7faff;
}

.library-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

.library-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.library-features {
  flex: 1 1 45%;
}

.offer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 40px;
}

.offer-card {
  background: var(--white);
  color: var(--text-dark);
  width: 180px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  background-image: linear-gradient(var(--white), var(--white)), linear-gradient(135deg, var(--carbon-blue), var(--turquoise));
  background-origin: border-box;
  background-clip: content-box, border-box;
   box-shadow: 0 2px 6px #353935;

  animation: pulseZoom 4s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card:hover {
  /*box-shadow: 0 0 10px rgba(0, 123, 255, 0.5), 0 0 18px rgba(26, 188, 156, 0.4), 0 6px 16px rgba(0, 0, 0, 0.15);*/
}

@keyframes pulseZoom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/*LIBRARY TRAINING SECTION*/

.reading-support-section {
  margin-top: 60px;
  padding: 50px 20px;
  background-color: #ffffff;
  text-align: center;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 10px;
  justify-items: center;
}

.check-card {
  background: white;
  border-radius: 12px;
  padding: 1px; /* Thin border illusion */
  border: 1px solid transparent;
  background-image:
    linear-gradient(white, white),
    linear-gradient(135deg, var(--turquoise), var(--carbon-blue));
  background-origin: border-box;
  background-clip: content-box, border-box;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.08);
  max-width: 260px;
  text-align: center;
}

.check-card-content {
  background-color: white;
  padding: 20px 15px; /* Creates space between icon/text and border */
  border-radius: 10px;
}

.check-card i {
  font-size: 28px;
  color: var(--turquoise);
  margin-bottom: 10px;
  display: block;
}

.check-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-dark);
}



.check-card:hover {
  transform: scale(1.05);
}

@keyframes extremeZoomIn {
  0% {
    transform: scale(2); /* extreme zoom out */
    opacity: 0;
  }
  100% {
    transform: scale(1); /* original size */
    opacity: 1;
  }
}

.zoom-on-load {
  transform: scale(3); /* Start zoomed out */
  opacity: 0;
}

/* Trigger animation only when in view */
.zoom-on-load.triggered {
  animation: extremeZoomIn 3s ease-out forwards;
}


/* WHY SCHOOLS CHOOSE US */
.why-schools-section {
  padding: 60px 20px;
  background-color: #f7faff;
  text-align: center;
}

.why-card-row {
  display: flex;
  justify-content: center;   /* Center the cards */
  gap: 16px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 20px 0;
  scroll-behavior: smooth;
  margin: 0 auto;
  max-width: 100%;
}

.why-card {
  background: white;
  min-width: 160px;
  max-width: 180px;
  flex: 0 0 auto;
  padding: 16px 12px;
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box, border-box;
  background-origin: border-box;
  background-image:
    linear-gradient(white, white),
    linear-gradient(to right, #353935, #191970);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.why-card i {
  font-size: 1.5rem;
  color: #191970;
  margin-bottom: 8px;
}

.why-card h3 {
  font-size: 0.95rem;
  color: #353935;
  margin-bottom: 5px;
}

.why-card p {
  font-size: 0.75rem;
  color: #444;
  line-height: 1.2;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

/* Optional: Hide scrollbar on WebKit browsers */
.why-card-row::-webkit-scrollbar {
  display: none;
}


/* Zoom In-Out Animation */
@keyframes zoomInOut {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

/* Zoom Out-In Animation */
@keyframes zoomOutIn {
  0%, 100% {
    transform: scale(1.08);
  }
  50% {
    transform: scale(1);
  }
}

/* Apply Animations to Cards */
.zoom-in-out {
  animation: zoomInOut 4s ease-in-out infinite;
}

.zoom-out-in {
  animation: zoomOutIn 4s ease-in-out infinite;
}



/* Optional: Hide scrollbar for cleaner look */
.why-card-row::-webkit-scrollbar {
  display: none;
}
/* Responsive */
@media (max-width: 768px) {
  .why-card-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 5px 10px;
}

.why-card {
  flex: 1 1 220px;
  max-width: 250px;
  min-width: 150px;
}
}
/* Footer style */
.footer-section {
  background: #e5e4e2;
  color: var(--carbon-blue);
  width: 100%;
  padding: 40px 20px;
}

.footer-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-logo img {
  width: 150px;
  height: auto;
}


.footer-info {
  flex: 1 1 40%;
}

.footer-info h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.footer-info p {
  margin: 10px 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.footer-info i {
  margin-right: 10px;
  color: var(--carbon-blue); /* or --turquoise, or #004aad */

}

.footer-map {
  flex: 1 1 30%;
  min-width: 250px;
}

.footer-map iframe {
  width: 100%;
  height: 200px;
  border: none;
  border-radius: 8px;
}

.footer-copy {
  margin-top: 30px;
  text-align: center;
  font-size: 1rem;
  color: var(--turquoise);
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-info {
    flex: 1 1 100%;
  }

  .footer-info h3 {
    font-size: 1.5rem;
  }

  .footer-info p {
    font-size: 1rem;
    justify-content: center;
  }

  .footer-map {
    flex: 1 1 100%;
    margin-top: 20px;
  }

  .footer-map iframe {
    height: 250px;
  }
}

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
}


/* ========================================= */
/*  Extra Mobile Styles (For ≤ 480px screens) */
/* ========================================= */
@media (max-width: 480px) {
  .hero-banner {
    max-height: 350px;
  }

  .tagline {
    font-size: 1rem;
  }

  .logo {
    width: 100px;
  }

  .cambridge-logo {
    width: 120px;
  }

  .about-img {
    max-width: 90%;
  }

  .about-features {
    flex-direction: column;
    gap: 20px;
  }

  .about-highlight {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .mv-card {
    padding: 16px;
    font-size: 0.95rem;
  }

  .training-content h2,
  .training-content p {
    text-align: center;
  }

  .cae-logo {
    width: 150px;
  }

  .cambridge-img {
    max-width: 180px;
  }

  .exam-card-container {
    height: 180px;
  }

  .profile-text h2 {
    font-size: 1.5rem;
  }

  .timeline-item {
    font-size: 0.85rem;
    padding: 10px 16px;
  }

  .slide-image {
    max-width: 100%;
  }

  .library-intro {
    font-size: 0.95rem;
  }

  .offer-card {
    width: 140px;
    height: 110px;
    font-size: 0.9rem;
  }

  .check-card {
    max-width: 90%;
  }

  .why-card {
    min-width: 140px;
    max-width: 160px;
  }

  .footer-logo img {
    width: 120px;
  }

  .footer-info h3 {
    font-size: 1.3rem;
  }

  .footer-info p {
    font-size: 0.95rem;
  }

  .footer-map iframe {
    height: 180px;
  }
}
/* Reveal button styling */
.reveal-btn {
  background: linear-gradient(to right, var(--turquoise), var(--carbon-blue));
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.reveal-btn:hover {
  opacity: 0.9;
}


