/* ---------------- RESET ---------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
    :root {
      --primary: #2563eb;
      --primary-dark: #1e40af;
      --secondary: #64748b;
      --accent: #f59e0b;
      --bg-light: #f8fafc;
      --text-dark: #1e293b;
      --white: #ffffff;
      --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }
body {
  background: #f7f9fc;
  color: #222;
  overflow-x: hidden;
}

/* ---------------- SPLASH SCREEN ---------------- */
#splash {
  position: fixed;
  inset: 0; /* Shortcut for top, bottom, left, right: 0 */
  width: 100%;
  height: 100vh;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.6s ease-out, visibility 0.6s;
}

/* The class JS will add */
#splash.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-content {
  text-align: center;
  transition: transform 0.6s ease-out;
}

/* Optional: Slight lift effect when disappearing */
#splash.hidden .splash-content {
  transform: translateY(-20px);
}

.splash-logo {
  width: 120px; /* Adjust size as needed */
  margin-bottom: 20px;
  /* Entrance animation */
  animation: fadeInScale 0.8s ease-out forwards;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* ---------------- NAVBAR ---------------- */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  padding: 14px 30px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

/* Remove default link styling */
.logo-link {
  text-decoration: none;
  display: inline-block;
}

/* Base Logo Style */
.logo {
  font-size: 26px;
  font-weight: 700;
  color: #007bff; /* Color for "Apex" */
  font-family: 'Poppins', sans-serif;
}

/* Highlighted Word */
.logo .highlight {
  color: #383838; /* Color for "Education" */
}

/* Subtle hover effect for the whole logo */
.logo-link:hover .logo {
  opacity: 0.8;
  transform: scale(1.02);
  transition: 0.3s ease;
}

.navbar nav a {
  margin-left: 22px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: 0.3s;
}

.navbar nav a:hover,
.navbar nav a.active {
  color: #1e88e5;
}

/* ---------------- MOBILE NAVBAR FIX ---------------- */
@media (max-width: 768px) {

  .navbar {
    top: 10px;               /* closer to top */
    width: 95%;
    padding: 10px 16px;      /* tighter padding */
    border-radius: 14px;
  }

  .logo {
    font-size: 20px;         /* smaller logo */
  }

  .navbar nav a {
    margin-left: 14px;
    font-size: 14px;
  }
}


/* ---------------- HERO SECTION ---------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 8% 80px;
  background: linear-gradient(135deg, #e3f2fd, #ffffff);
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: 3rem;
  color: #1e88e5;
}

.hero p {
  margin: 20px 0;
  font-size: 1.05rem;
}

/* ---------------- BUTTON ---------------- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: #1e88e5;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #1565c0;
}

/* ---------------- COMMON PAGE SECTION ---------------- */
.page {
  padding: 140px 8% 80px;
  min-height: 100vh;
}

.page h2 {
  font-size: 2.4rem;
  color: #1e88e5;
  text-align: center;
  margin-bottom: 30px;
}

.page p {
  max-width: 800px;
  margin: auto;
  text-align: center;
  line-height: 1.8;
}

/* ---------------- GRID & CARDS ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.07);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px);
}

/* ---------------- CONTACT FORM ---------------- */
.contact-form {
  max-width: 600px;
  margin: auto;
  display: grid;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.3rem;
  }

  .navbar {
    padding: 12px 18px;
  }
}
/* ---------------- FOOTER ---------------- */
.footer {
  background: linear-gradient(135deg, #e3f2fd, #ffffff);
  margin-top: 80px;
  padding: 60px 8% 20px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer-box h3 {
  font-size: 1.5rem;
  color: #1e88e5;
  margin-bottom: 15px;
}

.footer-box h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #222;
}

.footer-box p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
}

.footer-box ul {
  list-style: none;
}

.footer-box ul li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #444;
}

.footer-box ul li a {
  text-decoration: none;
  color: #444;
  transition: 0.3s;
}

.footer-box ul li a:hover {
  color: #1e88e5;
  padding-left: 5px;
}

/* Footer Bottom */
.footer-bottom {
  margin-top: 40px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: #555;
}

/* ---------------- FOOTER RESPONSIVE ---------------- */
@media (max-width: 600px) {
  .footer {
    text-align: center;
  }

  .footer-box ul li a:hover {
    padding-left: 0;
  }
}


    /* ---------------- HAMBURGER MENU ---------------- */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #1e88e5;
  margin: 4px 0;
  border-radius: 5px;
  transition: 0.3s;
}

/* Mobile Navbar */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navbar nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 0 0 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .navbar nav a {
    margin: 15px 0;
    font-size: 1.05rem;
  }

  .navbar nav.active {
    max-height: 300px;
  }
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}


/* Page Header Section */
.page-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 80px 5%;
    text-align: center;
}

.header-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.header-content h1 span {
    color: #f1c40f; /* Gold accent for "Programs" */
}

/* Container & Titles */
.container {
    padding: 50px 8%;
}

.section-title {
    margin: 40px 0 20px;
    font-size: 22px;
    border-left: 5px solid #3498db;
    padding-left: 15px;
    color: #2c3e50;
}

.section-title span {
    font-weight: 400;
    color: #7f8c8d;
    font-size: 18px;
}

/* Course Grid & Cards */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.course-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #3498db;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Different Colors for Different Categories */
.course-card.highlight { border-top-color: #e67e22; } /* Orange */
.course-card.science { border-top-color: #2ecc71; }   /* Green */
.course-card.arts { border-top-color: #9b59b6; }      /* Purple */

.tag {
    font-size: 12px;
    background: #ebf5fb;
    color: #3498db;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
}

.course-info h3 {
    margin: 15px 0 10px;
    color: #2c3e50;
}

.course-info p {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 20px;
}

/* Enroll Button */
.enroll-btn {
    display: inline-block;
    text-decoration: none;
    color: #3498db;
    font-weight: 600;
    border: 2px solid #3498db;
    padding: 10px 20px;
    border-radius: 8px;
    transition: 0.3s;
}

.enroll-btn:hover {
    background: #3498db;
    color: #fff;
}


/* ================= HOME HERO ================= */
.home-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px 8% 60px;
  background: #f2f7fd;
  gap: 50px;
}

.hero-left {
  max-width: 550px;
}

.hero-badge {
  display: inline-block;
  background: #e3f2fd;
  color: #1e88e5;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 15px;
}

.hero-title span {
  color: #1e88e5;
  position: relative;
}

.hero-title span::after {
  content: "";
  width: 100%;
  height: 3px;
  background: #1e88e5;
  position: absolute;
  left: 0;
  bottom: -6px;
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

/* Right Image Animation */
.hero-right {
  position: relative;
}

.hero-img {
  width: 420px;
  animation: floatImg 4s ease-in-out infinite;
}

@keyframes floatImg {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

/* ================= EXPLORE COURSES ================= */
.explore-section {
  padding: 80px 8%;
  background: #fff;
}

.explore-section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #1e88e5;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.explore-card {
  background: #fff;
  padding: 30px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  transition: 0.35s;
}

.explore-card img {
  width: 55px;
  margin-bottom: 15px;
}

.explore-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.explore-card p {
  font-size: 0.9rem;
  color: #666;
}

.explore-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 45px rgba(0,0,0,0.12);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .home-hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-img {
    width: 320px;
  }
}
.explore-icon {
  font-size: 48px;
  color: #2563eb; /* professional blue */
  margin-bottom: 15px;
}


/* ================= PW HERO ================= */
.pw-hero {
  min-height: 100vh;
  padding: 120px 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #eef2ff, #f9fbff);
  position: relative;
  overflow: hidden;
}

/* LEFT */
.pw-left {
  max-width: 520px;
}

.pw-left h1 {
  font-size: 3rem;
  line-height: 1.25;
  margin-bottom: 20px;
}

.pw-left h1 span {
  color: #5b4bdb;
}

.pw-left p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 30px;
}

.pw-btn {
  background: #5b4bdb;
  color: #fff;
  padding: 14px 38px;
  border-radius: 10px;
  font-weight: 600;
  display: inline-block;
  transition: 0.3s;
}

.pw-btn:hover {
  background: #4738c6;
}

/* RIGHT */
.pw-right {
  position: relative;
  width: 520px;
  height: 420px;
}

/* Circle Common */
.pw-circle {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pw-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  z-index: 2;
}

/* Dotted Ring */
.pw-circle::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 2px dashed #cfd8ff;
  animation: rotateRing 14s linear infinite;
}

/* Teacher */
.teacher {
  left: 0;
  bottom: 40px;
  animation: float 4s ease-in-out infinite;
}

/* Student */
.student {
  right: 0;
  top: 0;
  animation: float 4s ease-in-out infinite reverse;
}

/* Dot */
.dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #5b4bdb;
  border-radius: 50%;
  top: -6px;
  right: 40px;
}

/* Chat Bubble */
.chat {
  position: absolute;
  max-width: 260px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  animation: fadeUp 1.2s ease both;
}

.chat-right {
  right: 200px;
  top: 80px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.chat-left {
  left: 180px;
  bottom: 120px;
  background: #1c1b4b;
  color: #fff;
}

/* Animations */
@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .pw-hero {
    flex-direction: column;
    text-align: center;
  }

  .pw-right {
    margin-top: 50px;
    transform: scale(0.85);
  }
}


/* ================= MULTI ROW MARQUEE ================= */
.multi-marquee {
  padding: 70px 0;
  background: #f3f6ff;
}

/* Row container */
.marquee-row {
  width: 95%;
  margin: 18px auto;
  overflow: hidden;
  background: #ffffff;
  border-radius: 25px;
  padding: 14px 0;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

/* Track */
.marquee-track {
  display: flex;
  width: max-content;
  gap: 20px;
}

/* Items */
.marquee-track span {
  background: #eef2ff;
  color: #5b4bdb;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: 0.3s;
}

.marquee-track span:hover {
  background: #5b4bdb;
  color: #fff;
}

/* LEFT → RIGHT */
.marquee-row.left .marquee-track {
  animation: marqueeLeft 25s linear infinite;
}

/* RIGHT → LEFT */
.marquee-row.right .marquee-track {
  animation: marqueeRight 25s linear infinite;
}

/* Pause on hover */
.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}

/* Animations */
@keyframes marqueeLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* Responsive */
@media (max-width: 600px) {
  .marquee-track span {
    font-size: 0.85rem;
    padding: 10px 20px;
  }
}


.exam-section {
  padding: 80px 0;
  background: #fff;
}

.container {
  width: 90%;
  margin: auto;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  margin: 12px 0 50px;
  color: #555;
}

/* GRID */
.exam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* CARD */
.exam-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  min-height: 220px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.exam-card:hover {
  transform: translateY(-6px);
}

.exam-card h3 {
  font-size: 1.4rem;
  margin-bottom: 18px;
}

/* TAGS */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.tags span {
  border: 1px solid #dcdcdc;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  background: #fff;
}

/* EXPLORE */
.explore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: #111;
  text-decoration: none;
}

.explore span {
  background: #f0f0f0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ICON */
.icon {
  position: absolute;
  right: 24px;
  bottom: 24px;
  font-size: 2.4rem;
  z-index: 2;
}

/* RIGHT CURVE BACKGROUND */
.exam-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  opacity: 0.25;
}

/* COLOR VARIANTS */
.pink::after { background: #ffd6dc; }
.yellow::after { background: #ffe4b5; }
.green::after { background: #d8f3dc; }
.purple::after { background: #e9e4ff; }
.blue::after { background: #dbeafe; }
.gray::after { background: #ececec; }

/* MOBILE */
@media (max-width: 600px) {
  .section-title {
    font-size: 2rem;
  }
}


/* ================= APP JOIN SECTION ================= */



/* Common styles for floating buttons */
.floating-btn {
  position: fixed;
  bottom: 30px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 999;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

/* Left Bottom: WhatsApp */
.whatsapp-btn {
  left: 30px;
  background-color: #25d366;
}

.whatsapp-btn:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}

/* Right Bottom: Scroll Top */
.top-btn {
  right: 30px;
  background-color: #007bff;
  opacity: 0; /* Hidden by default */
  visibility: hidden;
}

.top-btn.show {
  opacity: 1;
  visibility: visible;
}

.top-btn:hover {
  background-color: #0056b3;
  transform: translateY(-5px);
}


.footer-logo {
  max-width: 160px;
  height: auto;
  margin-bottom: 12px;
}

.logo-link {
  display: inline-block;
}

