/* =========================
   General Reset
========================= */
* {margin:0;padding:0;box-sizing:border-box;}
body {
  font-family: Arial, sans-serif;
  background: #0a0f1c;
  color: #fff;
  line-height: 1.6;
}
.container {width:90%;max-width:1200px;margin:auto;}
html, body {height: 100%;}

/* =========================
   Mobile Navbar
========================= */
.nav-toggle {
  display: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 70px;
    right: 0;
    background: rgba(0,0,0,0.9);
    flex-direction: column;
    width: 220px;
    padding: 15px;
    display: none; /* hidden by default */
  }
  .main-nav.show {
    display: flex;
  }
  .main-nav a {
    margin: 10px 0;
    color: #fff;
  }
  .nav-toggle {
    display: block;
  }
}

/* =========================
   Swiper Full Height
========================= */
.swiper, .swiper-wrapper {height: 100%;}

.kc-hero, .hero-slide {
  height: 100vh;
  width: 100%;
}
.hero-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* =========================
   Preloader
========================= */
/* =========================
   Preloader (inline rotating selector)
   ========================= */
.preloader {
  position: fixed;
  inset: 0;
  background: #090e1c;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  pointer-events: auto;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* content inline: school name + { rotator } */
.preloader-content {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  white-space: nowrap;
}

/* fixed school name */
.school-name {
  color: #fff;
  margin-right: 6px;
  flex: 0 0 auto;
}

/* gold curly brackets */
.brackets {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  padding: 6px 10px;
  border-radius: 6px;
}
.bracket {
  color: gold;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

/* rotating area mask */
.rotating-text {
  display: inline-block;
  overflow: hidden;
  width: 320px;               /* visible mask width — tweak for your layout */
  vertical-align: middle;
}

/* inner rotator row */
.rotator {
  display: flex;
  gap: 28px;
  align-items: center;
  transform: translateX(0);
  transition: transform 0.6s cubic-bezier(.2,.9,.2,1);
  will-change: transform;
}

/* each phrase */
.rotator-item {
  flex: 0 0 auto;
  color: #f44336;            /* red phrases */
  font-weight: 800;
  font-size: 1.15rem;
  white-space: nowrap;
  opacity: 0.95;
  transition: transform .28s ease, opacity .28s ease;
}

/* active phrase gets a small lift for "ladder" feel */
.rotator-item.active {
  transform: translateY(-8px);
  opacity: 1;
  text-decoration: none;
}

/* responsive: reduce mask width on small screens */
@media (max-width: 600px) {
  .preloader-content { font-size: 1rem; gap: 10px; }
  .rotating-text { width: 200px; }
  .rotator { gap: 18px; }
  .rotator-item { font-size: 1rem; }
  .bracket { font-size: 1.2rem; }
}


/* =========================
   Header
========================= */
.site-header {
  position:fixed;top:0;width:100%;z-index:1000;
  background:rgba(255,255,255,0.08);backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,0.2);
}
.header-inner {display:flex;justify-content:space-between;align-items:center;height:70px;}
.logo {font-size:1.5rem;font-weight:bold;color:#fff;}
.logo span {color:#f44336;}
.main-nav a {
  color:#fff;text-decoration:none;margin:0 10px;font-weight:500;position:relative;
}
.main-nav a.active,.main-nav a:hover {color:#f44336;}
.btn.nav-cta {background:#f44336;color:#fff;padding:8px 16px;border-radius:20px;}


/* Brand container */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Logo (red circle with "K") */
.brand .logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #8b1f1f; /* maroon red */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.6rem;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand .logo:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

/* Name text */
.brand .name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.brand:hover .name {
  color: #f44336; /* highlight red on hover */
}

.brand .name em {
  font-style: normal;
}


/* =========================
   Hero Content Split Layout
========================= */
.hero-overlay {
  position:absolute;inset:0;background:rgba(0,0,0,0.45);z-index:1;
}

.hero-content.split {
  position: absolute;
  bottom: 60px;          /* keep it down near footer */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;

  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 40px;

  width: 80%;
  max-width: 1000px;
  text-align: left;
}

.hero-left h2 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-divider {
  width: 3px;
  background: #f44336;
  height: 300px;
}

.hero-right p {
  font-size: 1.4rem;
  line-height: 1.6;
  color: #f5f5f5;
  max-width: 750px;
}

/* =========================
   Hero Buttons (if used)
========================= */
.btn {
  display:inline-block;
  margin-top:10px;
  padding:10px 20px;
  border-radius:30px;
  text-decoration:none;
  font-weight:bold;
}
.btn-primary {background:#f44336;color:#fff;}
.btn-outline {border:2px solid #fff;color:#fff;}
.swiper-pagination-bullet {background:#fff;}
.swiper-button-prev,.swiper-button-next {color:#fff;}




/* Footer Base */
.site-footer {
  background: #0a0f1c;
  color: #ddd;
  font-size: 0.95rem;
  margin-top: 60px;
  border-top: 2px solid rgba(244, 67, 54, 0.3);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  padding: 50px 20px;
}

/* Logo & Tagline */
.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}
.footer-logo span {
  color: #f44336;
}
.tagline {
  font-size: 0.95rem;
  margin-top: 8px;
  color: #aaa;
}

/* Links */
.footer-links h4,
.footer-contact h4 {
  color: #f44336;
  margin-bottom: 15px;
}
.footer-links ul {
  list-style: none;
  padding: 0;
}
.footer-links ul li {
  margin: 6px 0;
}
.footer-links ul li a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links ul li a:hover {
  color: #f44336;
}

/* Contact */
.footer-contact p {
  margin: 5px 0;
}

/* Socials */
.footer-socials {
  margin-top: 15px;
  display: flex;
  gap: 12px;
}
.footer-socials a img {
  width: 22px;
  height: 22px;
  filter: invert(1);
  transition: transform 0.3s, filter 0.3s;
}
.footer-socials a:hover img {
  filter: invert(33%) sepia(90%) saturate(500%) hue-rotate(-5deg);
  transform: scale(1.2);
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 15px;
  text-align: center;
  font-size: 0.85rem;
  color: #aaa;
}


/* =========================
   Responsive Split Layout
========================= */
@media (max-width: 768px) {
  .hero-content.split {
    flex-direction: column;
    align-items: center;
    bottom: 40px;
    text-align: center;
    gap: 15px;
  }

  .hero-left h2 {
    font-size: 2rem;
  }

  .hero-divider {
    display: none; /* hide line on mobile */
  }

  .hero-right p {
    font-size: 1rem;
    max-width: 90%;
    text-align: center;
  }
}
/* Zoom effect on background */
.hero-slide {
  background-size: 110%;
  transition: background-size 6s ease;
}
.swiper-slide-active.hero-slide {
  background-size: 100%; /* cinematic zoom */
}
/* Fade-to-black overlay between slides */
.transition-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 999; /* above everything but below preloader */
}



/* =========================
   Core Values (Premium)
========================= */
.core-values {
  padding: 120px 20px;
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
  color: #111;
  text-align: center;
  position: relative;
}

.core-values::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/pattern.svg') repeat;
  opacity: 0.05;
  z-index: 0;
}

.core-values h2 {
  font-size: 2.6rem;
  margin-bottom: 50px;
  color: #f44336;
  font-weight: 800;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 35px;
  position: relative;
  z-index: 1;
}

.value-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  text-align: left;
  transition: all 0.4s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border: 1px solid rgba(244,67,54,0.1);
  position: relative;
  overflow: hidden;
}

.value-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(244,67,54,0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.value-card h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: #f44336;
  font-weight: 700;
}

.value-card p {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
}

.value-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 18px 40px rgba(244,67,54,0.25);
}
.value-card:hover::after {
  opacity: 1;
}
/* =========================
   Video Section
========================= */
.about-video {
  padding: 100px 20px;
  background: #111;
  color: #fff;
  text-align: center;
}

.about-video h2 {
  font-size: 2.3rem;
  margin-bottom: 20px;
  color: #f44336;
}

/* Wrapper */
.video-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

/* Video itself */
.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 16px;
}

/* Controls */
.video-controls {
  position: absolute;
  bottom: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

/* Control Buttons */
.video-btn {
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.video-btn:hover {
  background: #f8f6f6;
}

/* SVG icons inside buttons */
.video-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  pointer-events: none; /* ensure clicks register on button, not image */
}

/* MENU container */
.menu-container {
  position: relative;
}

/* Hidden by default */
.menu-options {
  display: none;
  position: absolute;
  bottom: 50px;
  right: 0;
  background: rgba(0,0,0,0.9);
  border-radius: 8px;
  flex-direction: column;
  min-width: 180px;
  overflow: hidden;
  z-index: 5;
}

/* When menu is open */
.menu-container.show .menu-options {
  display: flex;
}

/* Menu buttons */
.menu-options button {
  background: none;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.3s;
  width: 100%;
  text-align: left;
}
.menu-options button:hover {
  background: #3f3f3f;
}

/* Menu icons */
.menu-options img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 9999;
  background: #25d366;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
  display: block;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}
@media (max-width: 480px) {
  /* Core Values spacing */
  .core-values {
    padding: 60px 10px;
  }
  .value-card {
    padding: 20px;
    font-size: 0.9rem;
  }

  /* Hero section text smaller */
  .hero-left h2 {
    font-size: 1.5rem;
  }
  .hero-right p {
    font-size: 0.9rem;
  }

  /* Video controls adjust */
  .video-controls {
    bottom: 10px;
    right: 10px;
    gap: 6px;
  }
  .video-btn img {
    width: 18px;
    height: 18px;
  }

  /* Footer tweaks */
  .footer-container {
    gap: 20px;
    text-align: center;
  }
  .footer-socials {
    justify-content: center;
    flex-wrap: wrap;
  }
/* Preloader Responsive */
@media (max-width: 600px) {
  .loader {
    width: 60px;
    height: 60px;
    border-width: 4px;
  }

  .loader-text {
    font-size: clamp(0.8rem, 3vw, 1rem);
    text-align: center;
    padding: 0 0.5rem;
  }

  .rotating-text {
    font-size: clamp(0.75rem, 2.5vw, 0.9rem);
    line-height: 1.2;
    height: auto; /* ✅ allow flexible height */
    display: block;
    text-align: center;
    word-wrap: break-word;
    margin-top: 0.4rem;
  }

  .rotating-text span {
    display: inline-block;
    white-space: nowrap;
  }
}
@media (max-width: 768px) {
  .hero-slide {
    background-size: cover !important;
    background-position: center center;
    min-height: 100vh; /* force full height */
  }
}
/* Mobile fix: scale preloader to fit small screens */
@media (max-width: 600px) {
  .preloader-content {
    flex-direction: column;      /* stack text + rotator */
    gap: 8px;                    /* tighter spacing */
    font-size: 0.9rem;            /* shrink font */
    text-align: center;
    max-width: 90vw;             /* prevent overflow */
    white-space: normal;         /* allow wrapping if needed */
  }

  .rotating-text {
    width: 60vw;                 /* shrink rotating mask */
  }

  .rotator-item {
    font-size: 0.9rem;
  }

  .bracket {
    font-size: 1rem;
  }
}
@media (max-width: 600px) {
  .rotating-text {
    width: auto;            /* let it size naturally */
    max-width: 90vw;        /* but don’t go outside screen */
    text-align: center;
  }

  .rotator {
    gap: 14px;              /* tighter spacing */
  }

  .rotator-item {
    font-size: 0.9rem;      /* smaller font for fit */
    white-space: nowrap;    /* keep each word intact */
  }
}

  /* WhatsApp button closer in */
  .whatsapp-float {
    bottom: 70px;
    right: 15px;
    padding: 10px;
  }
  .whatsapp-float img {
    width: 28px;
    height: 28px;
  }
}
