
/*==========================
FAQ Section
==========================*/

.faq-section{
    padding:80px 20px;
    background:#f8fafc;
}

.section-title{
    text-align:center;
    margin-bottom:45px;
}

.section-title span{
    color:#2563eb;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:2px;
    font-size:13px;
}

.section-title h2{
    font-size:42px;
    margin:10px 0;
    color:#111827;
}

.section-title p{
    color:#6b7280;
    max-width:650px;
    margin:auto;
    line-height:1.8;
}

.faq-item{
    background:#fff;
    margin-bottom:18px;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.06);
    transition:.3s;
}

.faq-item:hover{
    transform:translateY(-2px);
}

.faq-question{
    width:100%;
    padding:22px 25px;
    border:none;
    background:#fff;
    cursor:pointer;
    font-size:18px;
    font-weight:600;
    text-align:left;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.faq-question span{
    font-size:28px;
    color:#2563eb;
    transition:.3s;
}

.faq-answer{
    max-height:0;
    overflow:hidden;
    transition:max-height .4s ease;
}

.faq-answer p{
    padding:0 25px 25px;
    color:#6b7280;
    line-height:1.8;
}

.faq-item.active .faq-answer{
    max-height:300px;
}

.faq-item.active .faq-question span{
    transform:rotate(45deg);
}

@media(max-width:768px){

.section-title h2{
    font-size:32px;
}

.faq-question{
    font-size:16px;
    padding:18px;
}

}





/*=========================
 WHY CHOOSE SECTION
=========================*/

.why-choose{
    padding:80px 20px;
    background:#f8fafc;
}

.section-title{
    text-align:center;
    margin-bottom:50px;
}

.section-title h2{
    font-size:42px;
    font-weight:700;
    color:#111827;
    margin-bottom:15px;
}

.section-title h2 span{
    color:#4f46e5;
}

.section-title p{
    max-width:700px;
    margin:auto;
    color:#6b7280;
    font-size:17px;
    line-height:1.7;
}

.feature-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.feature-card{
    background:#fff;
    border-radius:18px;
    padding:35px 25px;
    text-align:center;
    transition:.35s;
    box-shadow:0 12px 30px rgba(0,0,0,.08);
}

.feature-card:hover{
    transform:translateY(-8px);
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.feature-icon{
    width:75px;
    height:75px;
    margin:0 auto 25px;
    background:linear-gradient(135deg,#4f46e5,#7c3aed);
    color:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:34px;
    box-shadow:0 10px 25px rgba(79,70,229,.35);
}

.feature-card h3{
    font-size:24px;
    margin-bottom:15px;
    color:#111827;
}

.feature-card p{
    color:#6b7280;
    line-height:1.8;
    font-size:16px;
}

@media(max-width:768px){

.section-title h2{
    font-size:32px;
}

.feature-card{
    padding:30px 20px;
}

}






/*==========================
Testimonials
===========================*/

.testimonials{
    padding:80px 20px;
    background:#f8fbff;
    overflow:hidden;
}

.container{
    max-width:1250px;
    margin:auto;
}

.section-heading{
    text-align:center;
    margin-bottom:50px;
}

.section-heading span{
    color:#2563eb;
    font-size:13px;
    font-weight:700;
    letter-spacing:2px;
}

.section-heading h2{
    font-size:46px;
    margin:10px 0;
    color:#111827;
}

.section-heading p{
    max-width:650px;
    margin:auto;
    color:#6b7280;
    font-size:17px;
    line-height:1.7;
}

.testimonial-slider{
    display:flex;
    gap:25px;
    overflow-x:auto;
    scroll-behavior:smooth;
    padding-bottom:15px;
}

.testimonial-slider::-webkit-scrollbar{
    height:7px;
}

.testimonial-slider::-webkit-scrollbar-thumb{
    background:#2563eb;
    border-radius:20px;
}

.testimonial-card{
    min-width:340px;
    background:#fff;
    border-radius:18px;
    padding:30px;
    box-shadow:0 12px 35px rgba(0,0,0,.08);
    transition:.3s;
}

.testimonial-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 40px rgba(37,99,235,.18);
}

.stars{
    color:#ffb400;
    font-size:18px;
    margin-bottom:18px;
}

.review{
    color:#4b5563;
    font-size:16px;
    line-height:1.8;
    min-height:130px;
    font-style:italic;
}

.student{
    display:flex;
    align-items:center;
    margin-top:25px;
}

.avatar{
    width:52px;
    height:52px;
    border-radius:50%;
    background:#ef4444;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    margin-right:15px;
}

.avatar.blue{
    background:#2563eb;
}

.avatar.green{
    background:#16a34a;
}

.avatar.purple{
    background:#7c3aed;
}

.student h4{
    margin:0;
    font-size:18px;
    color:#111827;
}

.student span{
    color:#6b7280;
    font-size:14px;
}

@media(max-width:768px){

.section-heading h2{
    font-size:34px;
}

.testimonial-card{
    min-width:290px;
}

.review{
    min-height:auto;
}

}







/* ============================================================
   EXAMVIBE - Final Optimized Homepage CSS (No Design Change)
   ============================================================ */


.social-float{position:fixed;left:0;top:30%;z-index:9999}
.social-float a,.total-share{width:48px;height:48px;color:#fff;
display:flex;align-items:center;justify-content:center;position:relative}
.social-float span{position:absolute;top:2px;right:2px;background:#000;
font-size:11px;padding:2px 4px}
.total-share{background:#000;flex-direction:column;font-size:12px}
.fb{background:#3b5998}.tw{background:#000}.ln{background:#0077b5}
.wa{background:#25d366}.tg{background:#0088cc}
.pt{background:#bd081c}.cp{background:#555}.more{background:#111}
#moreBox{display:none;position:fixed;left:50px;top:35%;
background:#fff;border:1px solid #ccc;padding:10px}


.quiz-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* CARD DESIGN */
.quiz-card{
    background: #F5FFED;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quiz-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}

.quiz-card h3{
    font-size: 18px;
    margin-bottom: 10px;
    color: #111;
}

.quiz-card p{
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

/* BUTTON */
.quiz-btn{
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    background: #4f46e5;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}

.quiz-btn:hover{
    background: #3730a3;
}


@media (max-width: 1024px){
    .quiz-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px){
    .quiz-grid{
        grid-template-columns: 1fr;
    }
}

/* Skip link (unchanged but slightly smoother mobile behavior) */
.skip-link {
  position: absolute;
  top: -50px;
  left: 12px;
  background: #0b3d91;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  z-index: 99999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* Touch-friendly elements */
.small-box,
.btn-cta,
.read-more-btn,
.mini-blog-card,
.nav-link,
.dropdown-item,
.search-box button {
  min-height: 44px;
  min-width: 44px;
  padding: 10px 14px; /* better spacing for mobile */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

/* Base typography */
body {
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

/* ✅ MOBILE RESPONSIVE STYLES */
@media (max-width: 768px) {
  body {
    font-size: 15px;
    line-height: 1.5;
  }

  .btn-cta,
  .read-more-btn {
    width: 100%;   /* full width buttons on mobile */
  }

  .mini-blog-card {
    padding: 12px;
    border-radius: 10px;
  }

  .nav-link,
  .dropdown-item {
    padding: 12px 16px;
    font-size: 15px;
  }

  .search-box button {
    padding: 10px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .skip-link {
    display: inline-flex;
    left: 8px;
  }
}















/* ---------- Global ---------- */
:root {
  --primary:#084298;
  --secondary:#00bcd4;
  --dark:#0f172a;
  --light-bg:#f8f9fa;
  --gradient:linear-gradient(135deg,#084298,#0056b3);
  --radius:12px;
  --shadow-sm:0 3px 10px rgba(0,0,0,.08);
  --shadow:0 6px 20px rgba(0,0,0,.10);
}

body{
  font-family:'Poppins',Arial,sans-serif;
  margin:0;padding:0;
  background:var(--light-bg);
  color:#222;
  scroll-behavior:smooth;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

.page-container{
  padding:20px;
  max-width:1200px;
  margin:auto;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section-dark{
  background:linear-gradient(120deg,#0f172a,#1e293b);
  padding:80px 20px;
  color:#f1f5f9;
  position:relative;
  text-align:left;
  overflow:hidden;
}

/* Background blobs: optimized for GPU */
.hero-section-dark::before,
.hero-section-dark::after{
  content:"";
  position:absolute;
  border-radius:50%;
  background:rgba(255,255,255,.06);
  animation:floatLight 10s ease-in-out infinite alternate;
  will-change:transform;
}
.hero-section-dark::before{width:150px;height:150px;top:8%;left:10%;}
.hero-section-dark::after{width:220px;height:220px;bottom:8%;right:10%;}

@keyframes floatLight{
  0%{transform:translate3d(0,0,0);}
  100%{transform:translate3d(0,-18px,0);}
}

.hero-content{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
  flex-wrap:wrap;
}


.hero-text h1{
  font-size:2.8rem;
  font-weight:700;
  margin-bottom:20px;
  color:#fff;
}
.hero-text p{
  font-size:1.1rem;
  line-height:1.6;
  color:#cbd5e1;
  margin-bottom:25px;
}

/* CTA – optimized hover without layout shift */
.btn-cta{
  display:inline-block;
  padding:14px 32px;
  background:var(--gradient);
  color:#fff;
  border-radius:10px;
  font-size:1rem;
  font-weight:600;
  text-decoration:none;
  position:relative;
  transition:transform .25s ease, box-shadow .25s ease;
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}
.btn-cta::after{
  content:"";
  position:absolute;
  top:0;left:-100%;
  width:100%;height:100%;
  background:rgba(255,255,255,.18);
  transition:transform .45s ease;
}
.btn-cta:hover::after{transform:translateX(100%);}
.btn-cta:hover{
  transform:translateY(-4px);
  box-shadow:0 0 20px rgba(13,110,253,.6);
}



@keyframes floatHero{
  0%,100%{transform:translate3d(0,0,0);}
  50%{transform:translate3d(0,-10px,0);}
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
/* ================= ABOUT SECTION (MODERN UI) ================= */
.about-us-section{
  background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
  padding: 90px 20px;
  text-align: center;
  position: relative;
}

/* soft background glow */
.about-us-section::before{
  content:"";
  position:absolute;
  top:-80px;
  left:50%;
  transform:translateX(-50%);
  width:300px;
  height:300px;
  background: radial-gradient(circle, rgba(79,70,229,0.15), transparent 70%);
  z-index:0;
}

.about-us-section h2{
  max-width: 1100px;
  margin: 0 auto 45px;
  font-size: 2.6rem;
  margin-bottom: 20px;
  font-weight: 800;
  color: var(--primary);
  position: relative;
  z-index: 1;
  letter-spacing: -0.5px;
  text-align: left;
}

.about-us-section p{
  max-width: 1100px;
  margin: 0 auto 45px;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #4a4a4a;
  position: relative;
  z-index: 1;
  text-align: left;
}

/* ================= GRID ================= */
.about-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: auto;
  position: relative;
  z-index: 1;
}

/* ================= CARD ================= */
.about-box{
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 16px;
  padding: 30px 25px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  text-align: center;
  min-height: 200px;
}

.about-box:hover{
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(79,70,229,0.18);
  border-color: rgba(79,70,229,0.2);
}

/* icon */
.about-box i{
  font-size: 42px;
  color: var(--primary);
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.about-box:hover i{
  transform: scale(1.15) rotate(5deg);
}

/* title */
.about-box h3{
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: #1f2937;
}

/* text */
.about-box p{
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ================= READ MORE BUTTON ================= */
/* ================= READ MORE BUTTON ================= */
.read-more-wrap {
  text-align: center;
  margin-top: 25px;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;
  min-width: 44px;

  background: linear-gradient(135deg, #312e81, #4338ca);
  color: #ffffff;

  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;

  border-radius: 10px;
  text-decoration: none;

  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(49, 46, 129, 0.25);
}

.read-more-btn:hover {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  color: #ffffff;

  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(49, 46, 129, 0.35);
}

.read-more-btn:active {
  transform: translateY(0);
  box-shadow: 0 5px 10px rgba(49, 46, 129, 0.2);
}

/* ============================================================
   CATEGORY SECTION
   ============================================================ */
.section{
  margin:70px auto;
  max-width:1200px;
  text-align:center;
}

.section h2{
  font-size:2rem;
  font-weight:700;
  margin-bottom:15px;
  color:var(--primary);
  display:inline-block;
  position:relative;
}

.section h2::after{
  content:"";
  height:3px;
  width:50%;
  background:var(--gradient);
  display:block;
  margin:8px auto 0;
  border-radius:2px;
}

.box-container{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  justify-content:center;
}

/* CLS-SAFE small boxes */
.small-box{
  flex:1 1 240px;
  padding:28px 20px;
  background:#f5f5f5;
  border-radius:var(--radius);
  text-decoration:none;
  color:#333;
  transition:transform .25s ease, background .25s ease, color .25s ease;
  box-shadow:var(--shadow-sm);
}
.small-box:hover{
  transform:translateY(-5px);
  background:var(--primary);
  color:#fff;
}

/* ============================================================
   REVIEWS SECTION — optimized animations
   ============================================================ */
.reviews-slider{
  background:#f1f6ff;
  padding:80px 20px;
  text-align:center;
  overflow:hidden;
}

.review-track{
  display:flex;
  gap:25px;
  animation:scrollReviews 18s linear infinite;
  will-change:transform;
}

@keyframes scrollReviews{
  0%{transform:translate3d(0,0,0);}
  100%{transform:translate3d(-50%,0,0);}
}

.reviews .review-box{
  background:#fff;
  padding:22px 18px;
  border-radius:var(--radius);
  min-width:280px;
  max-width:340px;
  box-shadow:var(--shadow-sm);
  transition:transform .25s ease;
  font-style:italic;
}
.reviews .review-box:hover{
  transform:translateY(-5px);
}

/* ============================================================
   ANIMATIONS (GPU-optimized)
   ============================================================ */
@keyframes fadeInLeft{
  0%{opacity:0;transform:translate3d(-25px,0,0);}
  100%{opacity:1;transform:translate3d(0,0,0);}
}
@keyframes fadeInRight{
  0%{opacity:0;transform:translate3d(25px,0,0);}
  100%{opacity:1;transform:translate3d(0,0,0);}
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:992px){
  .hero-content{flex-direction:column;text-align:center;gap:20px;}
  .hero-text h1{font-size:2.2rem;}
  .about-box{width:45%;}
  .small-box{flex:1 1 45%;}
}

@media (max-width:600px){
  .hero-section-dark{padding:55px 15px;text-align:center;}
  .hero-text h1{font-size:1.8rem;line-height:1.4;}
  .btn-cta{padding:12px 22px;font-size:.9rem;}
  .about-box{width:100%;padding:20px;}
  .section h2{font-size:1.6rem;}
  .small-box{flex:1 1 100%;}
  .reviews .review-box{min-width:90%;}
}
