/* Self-Hosted Fonts */
@font-face {
  font-family: "Sansation";
  src: url("fonts/sansation-regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Accessibility: Improved contrast for gold color */
  --primary-gold: #e3c35a;
  --primary-gold-glow: #f0c040;
  --bg-dark: #1a120d;
  --bg-card: #1e1e1e;
  --text-white: #ffffff;
  /* Accessibility: Improved contrast for grey text (Ratio >= 4.5:1 against dark bg) */
  --text-gray: #bfbfbf;
  --bg-dark-brown: #2b1b10;
  --font-heading: "Sansation", sans-serif;
  --font-body: "Sansation", sans-serif;
}

/* Accessibility: Respect Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

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

/* =========================================
   1. GLOBAL STYLES
   ========================================= */
body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-body);
  overflow-x: hidden;
  overflow-x: hidden;
}

/* Accessibility: Focus Visibility */
:focus-visible {
  outline: 2px solid var(--primary-gold);
  outline-offset: 2px;
}

/* Performance: Reduce Animation Overhead on Mobile */
@media (max-width: 768px) {

  .coverflow,
  .pulse {
    animation: none !important;
  }
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 80px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 100;
}

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

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

.nav-links a {
  color: var(--text-white);
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary-gold);
}

.nav-links i {
  font-size: 0.7rem;
  color: var(--primary-gold);
}

.cta-button {
  background-color: var(--primary-gold);
  color: #1a1a1a;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  background-color: #e5c14d;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* =========================================
   3. FOOTER
   ========================================= */
.main-footer {
  background-color: var(--bg-dark-brown);
  padding: 80px 50px 20px 50px;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  margin-top: 50px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-column h4 {
  color: var(--text-white);
  font-size: 1.1rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.footer-column h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-gold);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  position: relative;
  padding-left: 15px;
  transition: color 0.3s;
}

.footer-column ul li a::before {
  content: "▲";
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 8px;
  color: var(--text-white);
}

.footer-column ul li a:hover {
  color: var(--primary-gold);
}

.contact-column ul li {
  color: #ccc;
  font-size: 0.9rem;
  align-items: flex-start;
}

.contact-column ul li i {
  color: #ccc;
  margin-top: 3px;
  min-width: 20px;
}

.social-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  width: 60px;
  margin-bottom: 20px;
}

.social-wrapper p {
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
}

.social-wrapper p span {
  font-weight: normal;
  font-size: 0.8rem;
  color: #ccc;
}

.social-icons {
  display: flex;
  gap: 15px;
}

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

.social-icons a:hover {
  background: var(--primary-gold);
  color: black;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.8rem;
  color: #888;
}

.footer-links a {
  color: #888;
  text-decoration: underline;
  margin-left: 20px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary-gold);
}

/* =========================================
   3. ANIMATIONS
   ========================================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blinkOnce {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }

  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  80% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(3);
    opacity: 0;
  }
}

@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-100%);
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes marqueeScrollReverse {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

/* =========================================
   4. SHARED COMPONENTS
   ========================================= */

/* Sticky Whatsapp */
.whatsapp-sticky {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 2px solid white;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.whatsapp-sticky:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

/* Hero Section (Generic) */
.hero-section {
  min-height: 100vh;
  /* Fallback */
  min-height: 100svh;
  /* Modern mobile fix */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding-top: 80px;
  overflow: hidden;
}

/* Background Image as an Element (Better LCP) */
.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: none;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 1s ease-out;
}

.subhead {
  color: var(--primary-gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 15px;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-section h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-section h1 .highlight {
  color: var(--primary-gold);
  display: block;
}

.description {
  font-size: 1rem;
  color: #ccc;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

/* Success Stories Slider */
.success-stories {
  padding: 80px 0;
  text-align: center;
}

.stories-slider {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 40px 50px;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}

.stories-slider::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

.story-card {
  min-width: 320px;
  height: 520px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  scroll-snap-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.story-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  pointer-events: none;
}

.story-card .play-button {
  position: absolute;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 2;
  transition: all 0.3s;
}

.story-card .play-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.story-info {
  position: absolute;
  bottom: 25px;
  left: 25px;
  text-align: left;
  z-index: 2;
}

.story-info .name {
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.story-info .uni {
  font-size: 0.8rem;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.slider-dots .dot {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s;
}

.slider-dots .dot.active {
  background: var(--primary-gold);
}

/* Service Stories Override */
.service-stories {
  padding-top: 100px;
}

.section-label-center {
  text-align: center;
  color: var(--primary-gold);
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: block;
}

.service-stories h2 {
  text-align: center;
  color: white;
  margin: 0 auto 50px auto;
  font-size: 2.2rem;
  max-width: 600px;
}

/* University Slider */
.universities-section {
  padding: 20px 0;
  background: var(--bg-dark);
  overflow: hidden;
}

.university-slider-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 15px;
  padding: 20px 50px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}

.university-slider-container::-webkit-scrollbar {
  display: none;
}

.university-card {
  flex: 0 0 auto;
  width: 250px;
  height: auto;
  /* Allow height to grow for text */
  text-align: center;
  transition: transform 0.3s;
  padding-bottom: 10px;
  /* Ensure space for text */
}

.university-card img {
  width: 100%;
  height: 180px;
  /* Fixed height for image */
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid #0056b3;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  display: block;
}

.university-card p {
  color: white;
  margin-top: 15px;
  /* Increased margin for better spacing */
  font-size: 0.85rem;
  /* Slightly larger text */
  text-transform: uppercase;
  display: block;
  line-height: 1.2;
}

/* Geolocation Map Section */
.map-section {
  position: relative;
  padding: 100px 50px;
  background: var(--bg-dark);
  text-align: center;
}

.map-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.map-bg {
  width: 100%;
  opacity: 0.8;
}

.map-pointer {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
  opacity: 0;
}

.map-pointer.active-blink {
  animation: blinkOnce 2s ease-in-out forwards;
}

.map-pointer.user-location {
  opacity: 1 !important;
  animation: none !important;
  z-index: 100;
}

.map-pointer .dot {
  width: 8px;
  height: 8px;
  background: #8a2be2;
  border-radius: 50%;
  box-shadow: 0 0 10px #8a2be2;
}

.map-pointer .pulse {
  position: absolute;
  top: -11px;
  left: -11px;
  width: 30px;
  height: 30px;
  background: rgba(138, 43, 226, 0.3);
  border: none;
  border-radius: 50%;
  animation: pulse 2s infinite ease-out;
}

.map-pointer .tooltip {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: black;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  text-align: center;
  white-space: nowrap;
  display: none;
  pointer-events: none;
  font-weight: bold;
}

/* =========================================
   5. HOME PAGE
   ========================================= */

/* Services Grid */
.services-section {
  width: 100%;
  box-sizing: border-box;
  padding: 60px 80px;
  text-align: left;
  background-color: #2b1b10;
  margin: 0;
  border-radius: 60px;
  position: relative;
  top: -40px;
  margin-bottom: -40px;
  z-index: 10;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.services-section .section-label {
  text-align: left;
  margin-bottom: 20px;
  font-size: 0.8rem;
  color: var(--primary-gold);
  letter-spacing: 1px;
  font-weight: 600;
}

.services-section h2 {
  text-align: left;
  max-width: 500px;
  margin-bottom: 50px;
  font-size: 2.5rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.services-grid {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.service-pill {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 8px 25px 8px 8px;
  color: var(--text-white);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
  background: transparent;
}

/* Auto-Scroll Classes */
.university-slider-container {
  overflow: hidden;
  /* Hide scrollbar for marquee */
  white-space: nowrap;
  position: relative;
  padding: 20px 0;
  /* Adjust padding */
}

.university-track {
  display: inline-flex;
  gap: 30px;
  /* Adjust gap as needed */
  animation: marqueeScroll 20s linear infinite;
  will-change: transform;
}

/* Ensure keyframes exist */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Student Marquee */
.stories-slider {
  display: flex;
  /* Remove grid/scroll-snap */
  overflow: hidden;
  padding: 20px 0;
  white-space: nowrap;
  position: relative;
  cursor: default;
  /* Remove grab cursor */
}

.student-track {
  display: inline-flex;
  gap: 30px;
  animation: marqueeScroll 25s linear infinite;
  /* Slightly slower for readability */
  will-change: transform;
}

/* Hide dots for marquee mode */
.slider-dots {
  display: none;
}



.service-pill i {
  background: #a67c00;
  color: black;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s;
}

.service-pill.active {
  background: white;
  color: #2b1b10;
  border-color: white;
  box-shadow:
    0 0 25px rgba(212, 175, 55, 0.8),
    0 0 50px rgba(212, 175, 55, 0.4);
  font-weight: bold;
}

.service-pill.active i {
  background: var(--primary-gold);
  color: #2b1b10;
}

.service-pill:hover {
  border-color: var(--primary-gold);
}

.service-pill:hover i {
  background: var(--primary-gold);
}

/* Why Choose Us */
.why-choose-us {
  padding: 100px 50px;
  background-color: var(--bg-dark);
}

.why-choose-us .text-content h2,
.why-choose-us .text-content .section-label {
  text-align: center;
  width: 100%;
  max-width: 100%;
}

.why-choose-us .section-label {
  display: block;
  text-align: center;
  color: var(--primary-gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.why-choose-us h2 {
  text-align: center;
  font-size: 2.5rem;
  max-width: 800px;
  margin: 0 auto 80px auto;
  color: white;
}

.content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.text-content {
  flex: 1;
  text-align: left;
}

.features-list {
  list-style: none;
  margin-top: 0;
}

.features-list li {
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  font-size: 1rem;
  color: #ccc;
  font-weight: 500;
}

.features-list i {
  color: black;
  background: #ffd700;
  padding: 2px;
  border-radius: 50%;
  min-width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-top: 4px;
  border: 2px solid #ffd700;
}

.stats-card {
  background: #0d0d0d;
  padding: 0;
  border-radius: 15px;
  width: 350px;
  border: 1px solid #1f1f1f;
  overflow: hidden;
  box-shadow: -30px 0 100px -30px rgba(212, 175, 55, 0.25);
}

.stat-item {
  padding: 30px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  margin-bottom: 0;
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-item h3 {
  font-size: 2.8rem;
  color: white;
  font-weight: 500;
  margin-bottom: 5px;
}

.stat-item p {
  color: #666;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Powered By / Specialists */
.powered-by {
  text-align: center;
  padding: 80px 0;
  background: var(--bg-dark);
}

.powered-by h3 {
  font-size: 1.8rem;
  margin-bottom: 50px;
  letter-spacing: 1px;
  color: white;
  text-transform: uppercase;
}

/* Skeleton Slider aka Powered By Effect */
.skeleton-row {
  display: flex;
  gap: 0;
  padding: 50px 50%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  perspective: 1000px;
  transform-style: preserve-3d;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}

.skeleton-row::-webkit-scrollbar {
  display: none;
}

.skeleton-card {
  flex: 0 0 auto;
  width: 350px;
  height: 570px;
  background: #2a1a20;
  border-radius: 12px;
  margin: 0 -80px;
  transition:
    scale 0.3s ease,
    transform 0.3s ease,
    z-index 0s,
    filter 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform-origin: center center;
  overflow: hidden;
}

.skeleton-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.specialists-section {
  padding: 50px;
  display: flex;
  gap: 50px;
}

.specialists-content {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-right: 50px;
}

.specialists-content .section-label {
  color: var(--primary-gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.specialists-content h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: white;
}

.specialists-content .desc {
  margin-bottom: 40px;
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 90%;
}

.specialists-content .cta-button {
  background: transparent;
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
  box-shadow: none;
}

.specialists-content .cta-button:hover {
  background: var(--primary-gold);
  color: black;
}

.specialists-grid {
  flex: 1;
  display: flex;
  gap: 20px;
  height: 500px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom,
      transparent,
      black 10%,
      black 90%,
      transparent);
  -webkit-mask-image: linear-gradient(to bottom,
      transparent,
      black 10%,
      black 90%,
      transparent);
}

.scroll-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.scroll-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.col-1 .scroll-group {
  animation: scrollUp 20s linear infinite;
}

.col-2 .scroll-group {
  animation: scrollUp 25s linear infinite;
}

.col-3 .scroll-group {
  animation: scrollUp 22s linear infinite;
}

.scroll-col img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  aspect-ratio: 3/4;
}

/* =========================================
   6. ABOUT PAGE
   ========================================= */

/* About Hero */
.about-hero {
  position: relative;
  padding: 120px 80px 80px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  min-height: 80vh;
  overflow: hidden;
}

.about-hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
}

.about-hero-content .section-label {
  color: var(--primary-gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 600;
}

.about-hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 30px;
  font-weight: 700;
  color: white;
}

.mission-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 25px;
  border-radius: 30px;
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.btn-outline:hover {
  border-color: var(--primary-gold);
  color: var(--primary-gold);
}

.hero-desc {
  color: #ccc;
  line-height: 1.6;
  font-size: 0.95rem;
  max-width: 500px;
}

.about-hero-image {
  flex: 1;
  position: relative;
  z-index: 1;
}

.about-hero-image img {
  width: 100%;
  border-radius: 20px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  box-shadow: 20px 20px 0 rgba(255, 255, 255, 0.05);
}

/* Video Section */
.video-section {
  padding: 80px 80px;
  display: flex;
  justify-content: center;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  border-radius: 20px;
  overflow: hidden;
}

.video-thumb {
  width: 100%;
  display: block;
  filter: brightness(0.8);
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.3s;
}

.play-overlay:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-caption {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 2;
}

.video-caption p {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Testimonials Row */
.testimonials-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 60px 80px;
  background: var(--bg-dark);
}

.testimonial-item {
  flex: 1;
  max-width: 350px;
  text-align: center;
}

.testimonial-item .quote {
  font-size: 0.9rem;
  color: #ccc;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.5;
}

.testimonial-item .author .name {
  font-weight: 700;
  color: white;
  font-size: 0.8rem;
  margin-bottom: 5px;
}

.testimonial-item .author .role {
  font-size: 0.7rem;
  color: #888;
}

/* FAQ Section */
.faq-section {
  padding: 100px 50px;
  background: var(--bg-dark);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.faq-section .section-label {
  color: var(--primary-gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 15px;
  font-weight: 600;
}

.faq-section h2 {
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: white;
}

.faq-container {
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: #ccc;
  transition: color 0.3s;
}

.faq-question h3:hover {
  color: var(--primary-gold);
}

.faq-question i {
  color: var(--text-gray);
  font-size: 1rem;
  transition: transform 0.3s;
}

.faq-answer {
  margin-top: 15px;
  display: none;
  color: #aaa;
  line-height: 1.6;
  font-size: 0.95rem;
}

.faq-answer.open {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

/* =========================================
   7. SERVICE PAGE
   ========================================= */

/* Service Hero */
.service-hero {
  padding-top: 150px;
  padding-bottom: 80px;
  background-color: var(--bg-dark);
  text-align: center;
}

.service-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.icon-circle-large {
  width: 80px;
  height: 80px;
  background-color: var(--primary-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.icon-circle-large img {
  width: 40px;
  height: 40px;
}

.service-hero h1 {
  font-size: 2.5rem;
  color: white;
  text-transform: uppercase;
  max-width: 800px;
  letter-spacing: 1px;
}

.project-stats-row {
  display: flex;
  gap: 100px;
  margin-top: 20px;
}

.p-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.p-stat .label {
  color: var(--primary-gold);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.p-stat .value {
  color: white;
  font-size: 2rem;
  font-family: "Playfair Display", serif;
  font-weight: 400;
}

.p-stat .value i {
  font-size: 1.2rem;
  color: var(--primary-gold);
  margin-left: 5px;
  vertical-align: middle;
}

/* Video Review Section */
/* Review Stack Section (Carousel) - Restored Style */
.review-stack-section {
  padding: 0 50px 100px 50px;
  background-color: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  content-visibility: auto;
  /* Optimization: Skips rendering when off-screen */
  contain-intrinsic-size: 500px;
  /* Estimation of height */
}

.review-stack-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
  touch-action: pan-y;
  /* Allow vertical scroll, capture horizontal swipe */
  user-select: none;
  /* Prevent text selection during drag */
}

.review-card {
  position: absolute;
  background-color: #2a1a20;
  border-radius: 40px;
  /* Restored rounded corners */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  /* Restored original transition */
  overflow: hidden;
}

.review-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Fill the card completely */
  background: #1a1a1a;
  /* fallback background */
}

.review-card.active-card {
  width: 800px;
  height: 450px;
  z-index: 10;
  opacity: 1;
  /* Removed translateX(0), relying on original flow/centering if applicable,
     but since it is absolute, explicit centering might be safer?
     Original code didn't have it, but had display:flex on container.
     I will try to trust the original, but force centering to be safe */
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  /* Restored original scale */
  cursor: pointer;
}

.review-card.active-card:hover {
  transform: translateX(-50%) scale(0.95);
  /* Gentle zoom on hover */
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.review-card.side-card {
  width: 400px;
  height: 500px;
  z-index: 5;
  opacity: 0.6;
}

.review-card.side-card.left {
  /* Restored original positioning logic */
  left: 50%;
  transform: translateX(-150%) scale(0.9);
  /* Moves to left side */
  top: -25px;
}

.review-card.side-card.right {
  left: 50%;
  transform: translateX(50%) scale(0.9);
  /* Moves to right side */
  top: -25px;
}

/* Hidden Cards (Behind) */
.review-card.hidden-card {
  width: 400px;
  height: 450px;
  z-index: 0;
  opacity: 0;
  left: 50%;
  transform: translateX(-50%) scale(0.5);
  /* Center but small/hidden */
  pointer-events: none;
}

.next-arrow-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  position: relative;
  z-index: 100;
  /* Ensure it is above other elements */
}

.nav-oval {
  width: 150px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.5);
}

.arrow-icon-separate {
  color: white;
  font-size: 24px;
  opacity: 0.8;
  transition: transform 0.3s;
}

.arrow-icon-separate:hover {
  transform: translateX(5px);
}

/* University Strip (Marquee) */
.university-strip-section {
  position: relative;
  padding: 80px 0;
  background-color: #0f0f0f;
  overflow: hidden;
}

.university-glow-bg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center bottom,
      rgba(212, 175, 55, 0.15) 0%,
      rgba(102, 80, 20, 0.05) 50%,
      transparent 80%);
  pointer-events: none;
  z-index: 1;
}

.logo-marquee-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.marquee-row {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 0;
  animation: marqueeScroll 40s linear infinite;
}

.marquee-track.running {
  animation-play-state: running;
}

.marquee-track.reverse-track {
  animation: marqueeScrollReverse 45s linear infinite;
}

.marquee-track img {
  height: 60px;
  width: auto;
  margin-right: 50px;
  opacity: 0.9;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes marqueeScrollReverse {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

/* =========================================
   8. RESOURCES PAGE
   ========================================= */
.resources-hero {
  padding: 150px 0 50px 0;
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.resources-container {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 0 20px;
}

.feature-box {
  width: 100%;
  /* Removed fixed height to allow Flipbook to dictate size */
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.feature-box.active {
  /* No special active state needed for container anymore */
  border: none;
}

.resource-controls {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.control-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s,
    background 0.3s;
}

/* Default State: Dull/Disabled */
.control-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  /* Will be not-allowed in JS if needed, or just visual */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-gray);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Active State: Yellow (Applied via JS when PDF is loaded) */
.control-btn.btn-active {
  background: var(--primary-gold);
  color: var(--bg-dark);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  border: none;
  cursor: pointer;
}

.control-btn:hover {
  transform: scale(1.05);
}

.control-btn.btn-active:hover {
  transform: scale(1.1);
  background: #e5c14d;
  color: black;
}

/* =========================================
   10. WORLD MAP (D3)
   ========================================= */
#worldMap {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.map-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 50px 0;
  background: var(--bg-dark);
}

/* =========================================
   11. RESPONSIVE MEDIA QUERIES
   ========================================= */

/* --- TABLET (Max Width: 1024px) --- */
@media (max-width: 1024px) {
  .main-header {
    padding: 20px 40px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .hero-section h1 {
    font-size: 3rem;
  }

  /* Scale down large headings */
  .services-section h2,
  .why-choose-us h2,
  .specialists-content h2,
  .powered-by h3 {
    font-size: 2rem;
  }

  /* Service Page specifics for Tablet */
  .service-hero h1 {
    font-size: 2rem;
  }

  .service-hero {
    contain: layout paint;
  }

  .project-stats-row {
    gap: 50px;
  }

  /* Adjust Video Stack Sizes */
  .review-card.active-card {
    width: 600px;
    height: 340px;
  }

  .review-card.side-card {
    width: 250px;
    height: 400px;
  }

  .review-stack-container {
    height: 400px;
  }

  .about-hero h1 {
    font-size: 2.5rem;
  }

  .about-hero {
    flex-direction: column;
    padding: 100px 20px 50px 20px;
    text-align: center;
  }

  .about-hero-content {
    margin-bottom: 40px;
  }

  .mission-buttons {
    justify-content: center;
  }

  .testimonials-row {
    flex-direction: column;
    align-items: center;
  }

  /* Resources Flipbook Tablet */
  .feature-box {
    min-height: 400px;
  }
}

/* --- MOBILE (Max Width: 768px) --- */
@media (max-width: 768px) {

  /* Global Container Adjustments: Add side padding */
  .services-section,
  .why-choose-us,
  .specialists-section,
  .about-hero,
  .video-section,
  .testimonials-row,
  .faq-section,
  .service-hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* FIX: Kill transforms/animations on mobile for LCP stability */
  .service-hero,
  .service-hero * {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }

  /* Prevent horizontal overflow globally */
  body,
  html {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Reset Fixed Widths and Ensure Max Width for media */
  img,
  video,
  iframe {
    max-width: 100%;
    height: auto;
  }

  /* Exclude Marquee Images from fluid resize so they can scroll */
  .marquee-track img {
    max-width: none !important;
    width: auto !important;
    height: 60px !important;
  }

  /* Safe resets for text and containers, avoid breaking complex cards */
  .hero-content,
  .services-section h2,
  .why-choose-us h2,
  .about-hero-content,
  .service-hero h1,
  .project-stats-row {
    max-width: 100% !important;
    width: auto !important;
  }

  /* Specific Fixes for Cards - Don't force width auto on things that need size */
  .stats-card,
  .video-card.active-card {
    width: 100% !important;
    max-width: 350px;
  }

  /* Header: Stack Logo and Nav */
  .main-header {
    flex-direction: column;
    padding: 15px 20px;
    gap: 15px;
    position: relative;
    /* Unstick on mobile if desired, or keep fixed but simpler */
    background: rgba(26, 18, 13, 0.95);
    /* More solid bg for readability */
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
  }

  .nav-links a {
    font-size: 0.7rem;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 0.8rem;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding-top: 180px;
    /* More space for stacked header */
    height: auto;
    min-height: 100vh;
    padding-bottom: 50px;
  }

  .hero-section h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    padding: 0 10px;
    /* Safe area */
  }

  .description {
    font-size: 0.9rem;
    padding: 0 10px;
  }

  /* Services Section Mobile */
  .services-section {
    top: 0;
    margin-bottom: 0;
    border-radius: 30px;
  }

  .services-section h2 {
    font-size: 1.8rem;
    max-width: 100%;
  }

  .services-grid {
    justify-content: center;
  }

  .service-pill {
    width: 100%;
    /* Full width pills on mobile for easier tapping */
    justify-content: center;
    box-sizing: border-box;
    /* Ensure padding doesnt break width */
  }

  /* Why Choose Us Mobile */
  .content-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .why-choose-us h2 {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }

  .stats-card {
    width: 100% !important;
    max-width: 350px !important;
    /* Keep reasonable max width */
    box-sizing: border-box;
  }

  /* Specialists Mobile */
  .specialists-section {
    flex-direction: column;
    padding: 40px 20px;
  }

  .specialists-content {
    text-align: center;
    align-items: center;
    flex: 0 0 auto;
    max-width: 100%;
  }

  .specialists-grid {
    height: 400px;
    /* reduce height */
    width: 100%;
  }

  /* About Page Mobile */
  .about-hero {
    flex-direction: column;
    padding-top: 200px;
    /* Header space */
    text-align: center;
  }

  .about-hero h1 {
    font-size: 2rem;
  }

  .mission-buttons {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .btn-outline {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }

  .testimonials-row {
    flex-direction: column;
  }

  .testimonial-item {
    max-width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
  }

  /* Service Page Mobile */
  .service-hero {
    padding-top: 220px;
  }

  .project-stats-row {
    flex-direction: column;
    gap: 30px;
  }

  .review-stack-container {
    height: 350px;
    /* Fixed height for stack */
    margin-bottom: 20px;
    width: 100%;
    overflow: visible;
    /* Allow peeking if needed */
  }

  /* Restore side cards w/ adjusted positioning */
  .review-card.side-card {
    display: block;
    /* Show them */
    width: 80%;
    height: 250px;
    top: 0;
    opacity: 0.6;
    /* Reset previous desktop specific transforms in favor of new logic */
  }

  /* Left card peeks from left */
  .review-card.side-card.left {
    transform: translateX(-110%) scale(0.9);
    z-index: 5;
  }

  /* Right card peeks from right */
  .review-card.side-card.right {
    transform: translateX(10%) scale(0.9);
    z-index: 5;
  }

  .review-card.active-card {
    position: absolute;
    /* Back to absolute for stacking */
    width: 85% !important;
    height: 280px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px;
    margin: 0;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .review-stack-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Footer Mobile */
  .footer-content {
    flex-direction: column;
    gap: 30px;
  }

  .footer-column {
    width: 100%;
    text-align: center;
    /* Center align for mobile */
  }

  .footer-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-column ul li {
    justify-content: center;
  }

  .footer-column ul li a::before {
    display: none;
    /* Remove bullet specific positioning for centered text */
  }

  .footer-column ul li a {
    padding-left: 0;
  }

  .contact-column ul li {
    justify-content: center;
  }

  .social-column {
    align-items: center;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-bottom {
    text-align: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
  }

  .footer-links a {
    margin: 0 10px;
  }

  /* Map Section Mobile */
  .map-section {
    padding: 50px 20px;
  }

  .map-pointer .pulse {
    width: 20px;
    height: 20px;
    top: -4px;
    left: -4px;
  }

  /* Success Stories Slider Mobile Fixes */
  .stories-slider {
    padding: 20px;
    /* Reduce padding to give more space to cards */
  }

  .story-card {
    min-width: 260px;
    /* Explicit width */
    width: 260px;
    /* Don't use 100% width on mobile slider, let them be cards */
    height: 400px;
    flex-shrink: 0;
    /* Important: Don't let them shrink */
    background: #2a1a20;
    /* Fallback bg */
  }

  /* Powered By Slider Mobile Fixes */
  .skeleton-row {
    padding: 20px 50%;
  }

  .skeleton-card {
    width: 260px;
    height: 400px;
    flex-shrink: 0;
    background: #2a1a20;
  }

  /* Resources Page Mobile */
  .feature-box {
    height: 300px;
    /* Smaller on mobile */
  }

  .resources-hero {
    padding-top: 200px;
    /* Header space */
  }

  .feature-box {
    /* Mobile Override */
    min-height: 300px;
    padding: 0;
  }

  /* --- MOBILE PERFORMANCE OPTIMIZATIONS --- */
  .main-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    background: rgba(15, 15, 15, 0.95);
    /* Solid-ish background instead of blur */
  }

  .story-card,
  .skeleton-card,
  .university-card,
  .feature-box {
    box-shadow: none !important;
    /* Remove expensive shadows */
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Lightweight fallback */
  }

  .feature-box {
    filter: none !important;
    backdrop-filter: none !important;
    background: #1a120d !important;
  }

  /* Hide heavy decorative elements */
  .decorative-glow {
    display: none !important;
  }
}

/* =========================================
   11. FLIPBOOK STYLES
   ========================================= */

/* The Flipbook Wrapper */
.st-bounding-box {
  /* PageFlip adds this class, ensure it fits */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.flip-book,
.flipbook-skeleton {
  width: 100%;
  height: 100%;
}

.flipbook-skeleton {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark-brown);
  color: var(--primary-gold);
  border-radius: 5px;
  gap: 15px;
}

.skeleton-img {
  display: none;
  /* Removed image support */
}

.skeleton-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-gold);
  margin: 0;
  opacity: 0.9;
}

.skeleton-text {
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: var(--text-gray);
}

.flip-book {
  /* Hidden initially until loaded (via inline style or JS) */
  display: none;
}

.flip-book.loaded {
  display: block;
}

.page {
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 5px;
  /* Rounded corners for realism */
}

.page-content {
  text-align: center;
  padding: 0;
  /* Remove padding */
  color: #333;
}

.page.cover {
  background-color: transparent;
  /* No specific cover bg */
  color: inherit;
  border: none;
  /* Remove yellow border */
}

.page canvas {
  width: 100%;
  height: 100%;
  object-fit: fill;
  /* Force fill to avoid gaps */
}

/* Ensure controls are visible */
.resource-controls {
  z-index: 100;
}