/* common css */
:root{
    --primary-color:#7b5fff ;
    --secondary-color:#ff7b00;
    --bg-light: #f8f8f8;
    --text-dark:#222 ;
    --text-light: #7c7878;
    --gradient:linear-gradient(349deg, #715cee ,#b1a5f8);
}
*{
    margin: 0;
    padding: O;
    box-sizing: border-box;
    font-family :'Poppins' ,sans-serif;
}
body{
    background: linear-gradient(180deg , #a196ef1f , #9e92f50f);
    color: #222;
    /* color: var(--primary-color); */
}
body ::-webkit-scrollbar{widows: 10px;}
body ::-webkit-scrollbar-thumb{
    background: var(--primary-color);
    border-radius: 10px;
}
.commonBtn{
    padding: 15px 30px;
    font-size: 16px;
    background: var(--gradient);
    border-radius:23px ;
    color: white;
    letter-spacing: 1px;
    font-weight: 600;
    filter: drop-shadow(2px 5px 8px #b1a5f8);
    border: none;
    transition: 0.4 ease-in-out;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
}

.commonBtn:hover{
    background: linear-gradient(349deg , #9383f5, #b1a5f8);
    color: white;
}
/* Header */
.container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin:auto ;
    padding: 8px 20px;
} 
.commonBtnLog{
    background: whitesmoke;
    border-radius: 20px;
    box-shadow:0 4px 8px  rgba(234, 223, 246, 0.936);
    padding: 15px 28px;
    font-size: 15px;
    filter: drop-shadow(2px 5px 6px #dad5f6);
    border-radius:23px ;
    color:var(--primary-color);
    letter-spacing: 1px;
    font-weight: 600;
    /* filter: drop-shadow(2px 5px 8px #b1a5f8); */
    border: none;
    transition: 0.4 ease-in-out;
    text-decoration: none;
    display: inline-block;
    transform : 0.3s ease-in-out ;
    box-shadow : 0.3s ease ;
    white-space: nowrap;

}
.commonBtnLog:hover{
    transform:scale(1.05) ;
    box-shadow: 0 6px 10px rgba(205, 167, 234, 0.815) ;
    background: linear-gradient(180deg , #a196ef1f , #9e92f50f);
    color: white;
} 

 #mainHeader.fixed{
    position: fixed;
    top:0;
    left: 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
    width: 100%;
    z-index: 9999;
    padding: 0px 100px;
    align-content: space-between;
}

#mainHeader{
    transition: all 0.3s ease;
   
     .logo {
    height: 60px;       /* adjust size here */
    width: auto;
    display: block;
  }
.logo-link {
    display: inline-block;
  }
    
} 

nav ul{
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
}
nav ul li a{
    text-decoration: none;
    color: var(--text-dark);
    padding :8px 12px;

}
nav li a:hover{
    color:var(--primary-color);
}
.menu-toggle{
    display: none;
    flex-direction:column ;
    cursor: pointer;
}
.menu-toggle span{
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 4px 0;
}


/* hero */

.headingHeroHeading{
    font: size 42px; 
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.hero{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 20px ;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
}
.hero-text p {
    max-width: 600px;
    font-family:"Poppins", sans-serif ;
}
.headingHeroHeading{
    font-size: 3.5rem;
    font-family :'Poppins' ,sans-serif;
    
}
.headingHeroHeading span{color: var(--secondary-color);
font-family:'Poppins' ,sans-serif; ;}
#courseCount,
#studentCount{
    font-size: 2rem;
    font-weight: bold;
}
#studentCount ,#courseCount{
    color: #222;
}
.counterText{
    font-size: 14px;
    color: var(--text-light);
}
.hero-text p{
    margin: 20px 0;
    color: var(--text-light);
}
.hero-image{
    max-width: 400px;
    position: relative;
    
}
.userImage{
    z-index: 99;
    position: relative;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    top: 5px;
    left: 5px;
    
    
}

/* Grade badges — small, professional chips showing DMN's actual grades,
   replacing the old low-res screenshot "heroIcon" images. */
.grade-badge{
    position: absolute;
    z-index: 99;
    background: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    box-shadow: 0 6px 16px rgba(60, 40, 130, 0.14), 0 0 6px rgba(123, 95, 255, 0.35);
    border: 1.5px solid var(--primary-color);
    overflow: hidden; /* keeps the shine sweep inside the card */
}
.grade-badge::before{
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.85), transparent);
    animation: badgeShine 3.5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes badgeShine{
    0%   { left: -150%; }
    45%  { left: 150%; }
    100% { left: 150%; }
}
.grade-badge-header{
    font-size: 9.5px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 5px;
    white-space: nowrap;
}
.grade-list{
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.grade-list li{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    padding-right: 8px;
    border-right: 1px solid #ece9f8;
    white-space: nowrap;
}
.grade-list li:last-child{
    padding-right: 0;
    border-right: none;
}
.grade-list li span{
    font-size: 8px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.grade-list li strong{
    color: var(--text-dark);
    font-weight: 700;
    font-size: 11px;
}
.grade-badge-algebre{
    left: 15px;
    bottom: 14px;
    animation: badgeDrift 4s ease-in-out infinite;
}
.grade-badge-analyse{
    right: 15px;
    top: 14px;
    animation: badgeDrift 4s ease-in-out infinite;
    animation-delay: 0.6s;
}
@keyframes badgeDrift{
    0%, 100% { transform: translateX(0); }
    60% { transform: translateX(-9px); }
}
.circle-container{
    position: absolute;
    top:150px ;
    left:20px ;
    width: 450px ;
    height: 450px;
    
}
.circle{
    position: absolute;
    top: 0;
    left: 0;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle ,#907fea 30% ,#b2a6f8 100%);
    opacity: 0.6;
    animation: breathe 3s ease-in-out infinite;
}
.circle:nth-child(2){
    width: 380px ; 
    height: 380px;
    top: -15px;
    left: -15px;
    background: radial-gradient(circle, #907fea 30% ,#b2a6f8 100%);
    animation-delay: 0.5s;
}
.circle:nth-child(3){
    width: 410px;
    height: 410px;
    top: -30px;
    left:-30px ;
    background: radial-gradient(circle, #907fea 30% , #b2a6f8 100%);
    animation-delay: 1s;
}
@keyframes breathe{
    0% ,100%{
        trasform:scale(1);
        opacity: 0.2;
    }
    50%{
        transform: scale(1.1);
        opacity: 0.7;
    }
}
.stats{display: flex; gap:40px; margin-top: 20px;}

/* Syllubs*/

.headingSyllabus{
    font: size 42px; 
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 20px;
    align-items: center;
    padding:  20px ;
}
.headingSyllabus span{color: var(--secondary-color);}

.courseSection{
    max-width: 1200px;
    margin: auto;
}
.courses{
    display: flex;
    justify-content: space-between;
    margin: 40px 0px;
    gap: 20px;
    flex-wrap: wrap;
}
.course{
    background: linear-gradient(45deg ,#ed88aa ,#e76e94);
    padding: 25px;
    border-radius: 16px;
    flex: 1 1 200px;
    text-align: left;
    color: white;
    filter: drop-shadow(5px 4px 10px #ed88aa);
    transition: 0.4s ease-in-out;
}
.course:hover{
    transform: scale(1.05);
}
.course i{
    font-size: 3.2rem;
    display: block;
    margin-bottom: 30px;
}
.course span{
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
}
.course hr{
    margin-top: 10px;
    border: none;
    height: 1px;
    background: #ffffff75;
}
.course:nth-child(2){
    background: linear-gradient(45deg ,#9d8ef7 , #9686f4);
    filter: drop-shadow(5px 4px 10px #9d8ef7);
}
.course:nth-child(3){
    background: linear-gradient(45deg , #94dcf5, #76caea);
    filter: drop-shadow(5px 4px 10px  #94dcf5 );
}
.course:nth-child(4){
    background: linear-gradient(45deg , #ffd200, #f7971e);
    filter: drop-shadow(5px 4px 10px  #ffd200);
}
.browseAll{
    margin-top: 10px;
}
.heading{
padding-left: 20px;
}

/* About DMN */
.aboutSection{
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 100px auto;
    margin-bottom: 15px;
    padding-bottom: 15px;
}
.image-box{
    flex: 1 1 500px;
    position: relative;

}
.image-box img{
    width: 100%;
    max-width: 400px;
    height: 270px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin-left: 50px;
}
.purple-corner{
    width:100px;
    height: 100px;
    background: var(--gradient);
    position: absolute;
    top: -20px ;
    right: -20px;
    z-index: -1;
    border-radius:7px ;
}
.text-box{
    flex: 1 1 550px;
    
}
small{
    color:var(--primary-color);
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 14px;
}
.headingDMN{
    font: size 42px; 
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 20px;
    align-items: center;
    
}
.headingDMN span{color: var(--secondary-color);}
.text-box p{
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-break: 1.6;
}
.dmn-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dmn-highlights li {
  position: relative;
  padding-left: 22px;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.5;
}

.dmn-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-color);
}
.aboutSection {
  display: flex;
  align-items: stretch;
  gap: 70px;
}

.image-box {
  flex: 0 0 260px;
  width: 260px;
}

.image-box img {
  width: 100%;
  /* height: 80%; */
  max-width: none;
  margin-left: 0;
  object-fit: cover;
  display: block;
}

.image-box{
    position: relative;
    border-radius: 7px;
    overflow: hidden;
    border: 1.5px solid var(--primary-color);
    box-shadow: 0 6px 16px rgba(60, 40, 130, 0.14), 0 0 6px rgba(123, 95, 255, 0.35);
}
.image-box::before{
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    /* height: 80%; */
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.85), transparent);
    animation: badgeShine 3.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

.text-box {
  flex: 1;
  min-width: 0;
}
@media (max-width: 768px) {
  .aboutSection {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 2rem 1.5rem;
  }

  .image-box {
    order: -1;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .image-box img {
    width: 100%;
    border-radius: 8px;
  }

  .text-box {
    width: 100%;
    flex: none;
  }

  .headingDMN {
    font-size: 22px;
  }

  .dmn-highlights li {
    font-size: 14px;
  }
}
/* certificates */

.marquee-wrapper {
width: 95%;
/* height: 120px; */
padding:  20px 0 40px;
background: linear-gradient(45deg ,#b2a6f8 ,#907fea);
filter: drop-shadow(5px 4px 10px  #b2a6f8);


    padding: 25px;
    border-radius: 20px;
    flex-wrap: wrap;
    
}
.divider {
    width: 0.5px;
    height: 80%    ;     /* adjust to be a bit shorter than your image height */
    background:var(--bg-light);
    flex-shrink: 0;
    align-self: center;
    box-shadow: #ffffff;
}

.cert-title {
margin-bottom: 5px;
font-size: 1.5rem;
}

.marquee-wrapper {
width: 95%;
overflow: hidden;
position: relative;
display: flex;
margin-left: auto;
margin-right: auto;
}
.marquee-wrapper img{
    background: var(--bg-light);
    box-shadow: #eceaf1;
}

.marquee-track {
display: flex;
width: max-content;
animation: scroll-left 15s linear infinite;
}

.marquee-track img {
  height: 110px;       /* adjust to your certificate image size */
    margin: 0 20px;
  display: flex;
  align-items: center;
    border-radius: 5px;
    flex-shrink: 0;
}



@keyframes scroll-left {
    0% {
    transform: translateX(0);
    }
    100% {
    transform: translateX(-50%);
    }
}

/* Pause on hover (optional, nice UX touch) */
.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

/* course card section */

.course-section{
    padding: 50px 20px;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}
.desc{
    font-size: 14px;
    color: #6b7280;
    margin: 10px 0 30px;
}
.courses{
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    
}
.course-card{
    background: white;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    width: 350px;
    padding: 15px ;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: 0.4s ease-in-out;
}
.course-card:hover{transform: scale(1.05);}
.course-card img{
    width: 100%; border: 10px; height: 200px;
}
.lesson{
    font-size: 12px;
    color: var(--secondary-color);
    margin: 10px 0 5px;
}

.course-card h3{
font-size: 16px;
margin: 5px 0 10px;
}
.price{ margin-top: 5px 0;}
.price .new{
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 15px;
}
.price .full{
    color: gray;
    font-size: medium;
}
.rating{
    font-size: 14px;
    color:#fbbf24;
    margin: 5px 0;
}
.bottom{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.students{
    color: var(--text-light);
    font-size: 0.7rem;
}

/* CTA section */
.cta-section{
background-color: var(--primary-color) ;
color: white;
border-radius: 15px;
padding: 40px 50px;
max-width: 1000px;
margin: auto;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 20px;
}
.cta-text{
    flex: 1 1 300px;
}
.cta-text h2{
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}
.cta-text p{
    font-size: 1rem;
    color: #e0e0e0;
    line-height: 1.6;
}

.cta-button{
    background: white;
    color: var(--primary-color);
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    /* transition: background 0.3s; */
}
.cta-button:hover{
    background: var(--secondary-color);
    color: white;
}

/* price Section  */
.priceSection{padding: 70px;
text-align: center;}
.priceSection.container{
    max-width: 1000px;
    margin: auto;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}
.pricing-card{
    background-color: white;
    border-radius: 20px;
    box-shadow:0 4px 20px  rgba(0, 0, 0, 0.08);
    padding: 30px 20px;
    width: 320px;
    transform : 0.3s ease-in-out ;
    box-shadow : 0.3s ease ;
    
}
  .pending-card .commonBtn {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: #fff;
  }
.pricing-card:hover{
    transform:scale(1.05) ;
    box-shadow: 0 8px 30px rgba(128, 0, 225, 0.3) ;
}
.pricing-card.featured{
color: white;
background: var(--gradient);
}
.pricing-card.featured .commonBtn{
    filter: drop-shadow(1px 3px 4px rgba(177, 165, 248, 0.3));
}
.plan-title{
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.plan-description{
    font-size: 0.9rem;
    width: 200px;
    color: var(--text-light);
    margin: 20px auto;
    border-bottom: 1px solid #b2b2b2a6;
    padding-bottom:20px ;
}
.pricing-card.pricing-card.featured .plan-description{color:#e0dfff ;}
 .plan-features{
    list-style: none;
    padding: 0;
    margin: 13px 20px; /* reduced side margin to give text more room */
}

.plan-features li{
    margin: 10px 0;
    display: flex;
    align-items: center;
    color: inherit;
    white-space: nowrap;      /* forces single line */
    overflow: hidden;
    text-overflow: ellipsis;  /* safety net if text is still too long */
    font-size: 15px;          /* slightly smaller so lines fit */
}

.plan-features li::before{
    content: "\2713";
    font-size: 20px;
    color: var(--primary-color);
    margin-right: 10px;
    flex-shrink: 0;           /* keeps checkmark from shrinking */
}
.pricing-card.pricing-card.featured .plan-features li::before{color: white;}
.price{font-size: 2rem; font-weight: bold; margin-bottom: 10px;}
.pricing-card.featured.commonBtn{
    background: white;
    color: #7a4aff;
    border: none;
}
/* testimenial */

/* Testimonial Section */
.testimonialSection{
    text-align: center;
    padding: 50px;
}
.testimonial-container{
    max-width: 1000px;
    margin: auto;
    position: relative;
    overflow: hidden;
}

.testimonial-wrapper{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.testimonial{
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    flex: 1 1 calc(50% - 20px);
    display: flex;
    justify-content: space-between;
}
.testimonials-row {
  overflow-x: auto;
  overscroll-behavior-x: contain; /* keeps horizontal scroll from leaking, but doesn't block vertical */
}
.top-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.image{flex-shrink: 0;}
.image img{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.info{
    margin-left: 15px;
    text-align: center;
    flex-grow: 1;
    position: relative;
}
.info h3{
    font-size: 16px;
    font-weight: 600;
}
.info .position{
    font-size: 14px;
    margin: 2px 0 8px;
}

.stars{
    color: var(--secondary-color);
    font-size: 16px;
}

.quote-icon{
    position: absolute;
    top: 0;
    right:0;
    font-size: 4rem;
    color: var(--secondary-color);
}

.bottom-text{
    font-size: 14px;
    line-break: 1.5;
    text-align:left;
    margin: 0;
}

@media (max-width:768px) {
    .testimonial{
        flex: 1 1 100%;
    }
}
/* footer */
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: 'Poppins', Arial, sans-serif;
    /* background: linear-gradient(180deg , #a196ef1f , #9e92f50f); */
 }

  .site-footer {
    /* background:linear-gradient(180deg , #a196ef1f , #9e92f50f); */
    padding: 0 64px;
    color: #2D2A5E;
  }

  .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 32px 0;
  }

  .footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .footer-brand img {
    height: 70px;
    filter: contrast(1.5) brightness(0.7);
  }

  .footer-brand span {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #2D2A5E;
  }

  .footer-socials {
    display: flex;
    gap: 12px;
  }

  .footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #F1EEFE;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6C5CE7;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .footer-socials a:hover {
    background: #FF8A00;
    color: #fff;
  }

  .footer-socials svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }

  .footer-divider {
    height: 1px;
    background: rgba(45, 42, 94, 0.1);
  }

  .footer-mid-wrap {
    /* background: linear-gradient(135deg, #8B7CF6 0%, #6C5CE7 100%); */
    margin: 0 -64px;
    padding: 0 64px;
    color: var(--primary-color);
    border-radius: 5px;
  }

  .footer-mid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 32px 0;
  }

  .footer-mid h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color:var(--secondary-color) ;
  }

  .footer-mid p {
    font-size: 14px;
    color: var(--primary-color)
  }

  .footer-signup {
    display: flex;
    gap: 10px;
  }

  .footer-signup input {
    width: 260px;
    padding: 12px 16px;
    border-radius: 24px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 14px;
    outline: none;
  }

  .footer-signup input::placeholder {
    color: rgba(255, 255, 255, 0.75);
  }

  .footer-signup button {
    padding: 12px 28px;
    border-radius: 24px;
    border: none;
    background: var(--gradient);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    filter: drop-shadow(2px 5px 8px #b1a5f8);
    white-space: nowrap;
    transition: background 0.2s ease;
  }

  .footer-signup button:hover {
    background: linear-gradient(349deg , #9383f5, #b1a5f8);
    color: white;
  }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 0;
    font-size: 13px;
    color: rgba(45, 42, 94, 0.6);
  }

  .footer-bottom a {
    color: rgba(45, 42, 94, 0.6);
    text-decoration: none;
    margin-left: 20px;
  }

  .footer-bottom a:hover {
    color: #6C5CE7;
  }

  @media (max-width: 640px) {
    .site-footer { padding: 40px 24px 0; }
    .footer-mid { flex-direction: column; align-items: flex-start; }
    .footer-signup { width: 100%; }
    .footer-signup input { flex: 1; width: auto; }
  }

/* responsive screen */
@media (max-width:768px) {
    #mainHeader.fixed{
        padding: 10px 22px;
    }
    nav ul{
        display: none;
        flex-direction: column;
        gap: 10px;
        background: white;
        position: absolute;
        top: 60px;
        right: 20px;
        padding: 10px;
        box-shadow: 0 4px 8px rgba(0 , 0 , 0 ,0.1);
        border-radius:8px ;
    }

nav ul li{padding: 10px;}
nav ul.active{display:flex; z-index: 9999;}
.menu-toggle{display: flex;}
.hero{flex-direction:column-reverse ; text-align: center;}
.headingHeroHeading{margin-top: 25px;}
.headingHeroHeading{font-size: 2rem;}

.course-section{padding: 20px;}
.stats{flex-direction: column;}
.circle-container{display: none;}
.courses{flex-direction: column; align-items: center; justify-content: center;}
.course{width: 90%; margin: 0 auto; flex: none;}
.hero-image{margin: 0 auto;}
.aboutSection{padding: 20px;}
.aboutSection img{margin-left: auto;margin-right: auto;}
.aboutSection{margin: 20px auto;gap: 30px;}
.purple-corner{display: none;}
.cta-section{flex-direction: column; align-items:flex-start ;}
.cta-text{flex: auto;}
.priceSection .container{flex-direction: column; gap: 20px;}
.priceSection{padding: 40px 16px;}
.pricing-card{width: 100%; max-width: 320px; margin: 0 auto;}
.course-card{width: 100%; max-width: 350px;}
.testimonialSection{padding: 20px;}
.testimonial{flex: 0 0 calc(100% - 20px);}
.grade-badge{ padding: 6px 8px; }
.grade-badge-header{ font-size: 8.5px; margin-bottom: 4px; }
.grade-list{ gap: 6px; }
.grade-list li{ padding-right: 6px; }
.grade-list li span{ font-size: 7px; }
.grade-list li strong{ font-size: 10px; }

}
@media (max-width: 1024px) {
    .purple-corner{
        display: none;
    }
    .aboutSection img{margin-left: auto;margin-right: auto;}
}
/* Fix: prevent horizontal scroll from full-width layout, without touching layout rules above */
/* Stop the desktop :hover pause from "sticking" on touch devices */
@media (hover: none), (pointer: coarse) {
    .marquee-wrapper:hover .marquee-track {
        animation-play-state: running;
    }
}
html {
    overflow-x: hidden;
    width: 100%;
}
body {
    overflow-x: hidden;
    max-width: 100%;
}
/* Touch support: pause marquee while finger is on it, resume on release */
.marquee-wrapper.touch-pause .marquee-track {
    animation-play-state: paused;
}

.course-img {
    width: 100%;
    height: 200px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 15px;
}
.course-img-title {
    position: relative;
    z-index: 2;
    color: #fff;
    font-weight: 600;
    font-size: 20px;
}
.course-img-wrap {
    position: relative;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
}
.course-img-wrap img {
    width: 100%;
    height: 200px;
    display: block;
    object-fit: cover;
}
.course-img-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
}
.course-img-title {
    position: absolute;
    left: 15px;
    bottom: 12px;
    z-index: 2;
    color: #fff;
    font-weight: 600;
    font-size: 20px;
}

.courseDesc {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.5;
    margin-top: 4px;
}

.lesson {
    font-size: 12px;
    color: var(--secondary-color);
    margin: 10px 0 5px;
    font-weight: 500;
}
.cta-section {
    position: relative;
    overflow: hidden;
}
.cta-text,
.cta-button {
    position: relative;
    z-index: 2;
}
.cta-section::before,
.cta-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    z-index: 1;
}
.cta-section::before {
    width: 220px;
    height: 220px;
    top: -90px;
    right: -60px;
    animation: ctaFloat1 6s ease-in-out infinite;
}
.cta-section::after {
    width: 150px;
    height: 150px;
    bottom: -70px;
    left: -40px;
    animation: ctaFloat2 7s ease-in-out infinite;
}
@keyframes ctaFloat1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(25px); }
}
@keyframes ctaFloat2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

@media (max-width: 768px) {
    .cta-section {
        padding: 30px 25px;
        border-radius: 12px;
    }
    .cta-text h2 {
        font-size: 1.5rem;
    }
    .cta-text p {
        font-size: 0.9rem;
    }
    .cta-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

.testimonial-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding-bottom: 16px;
    justify-content: flex-start;
}
.testimonial-wrapper::-webkit-scrollbar {
    height: 6px;
}
.testimonial-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.testimonial {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 12px;
    border: 0.5px solid #eee;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    padding: 24px;
    position: relative;
    display: block;
}
.quote-icon {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 22px;
    color: #e9e5fd;
}
.header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
}
.testimonial-info .position {
    font-size: 12px;
    color: var(--text-light);
    margin: 2px 0 4px;
}
.stars {
    color: #fbbf24;
    font-size: 12px;
}
.testimonial-text {
    font-size: 13.5px;
    color: #555;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.testimonial-text.expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}
.read-more-btn {
    margin-top: 10px;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

@media (max-width: 768px) {
    .testimonial {
        flex: 0 0 85%;
    }
}

/* ===================================================================
   Free chapter trial card — added on top of the existing course-card
   styling. Scoped so it never touches the syllabus section's .courses.
=================================================================== */

.course-card-free{
    position: relative;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(255,123,0,0.08), 0 0 10px rgba(0,0,0,0.05);
}
.free-badge{
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--secondary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(255,123,0,0.35);
}
.commonBtn-free{
    background: linear-gradient(349deg, #ff9d3d, var(--secondary-color));
    filter: drop-shadow(2px 5px 8px rgba(255,157,61,0.5));
}

/* Free card has no student counter, so its bottom row only holds the
   arrow button — push it to the right where the counter used to be. */
.course-card-free .bottom{
    justify-content: flex-end;
}
.commonBtn-free:hover{
    background: linear-gradient(349deg, #ffb066, #ff7b00);
    color: #fff;
}
/* Course section layout: all 4 cards (free trial + Lessons + TD series +
   Midterms & finals) fit on a single row. */

.course-section .courses{
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 18px;
}

.course-section .course-card{
    width: 260px;
    padding: 16px;
}

.course-section .course-img-wrap img{
    height: 145px;
}

.course-section .course-img-title{
    font-size: 15px;
    left: 12px;
    bottom: 10px;
}

.course-section .lesson{
    font-size: 11px;
    margin: 10px 0 4px;
}

.course-section .courseDesc{
    font-size: 12px;
    line-height: 1.45;
}

/* Smaller circular arrow buttons for every card in this section,
   including the free card's. */
.course-section .bottom .commonBtn{
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    font-size: 12px;
}

@media (max-width: 992px){
    .course-section .courses{
        flex-wrap: wrap;
    }
    .course-section .course-card{
        width: 280px;
    }
    .course-section .course-img-wrap img{
        height: 160px;
    }
    .course-section .course-img-title{
        font-size: 16px;
    }
    .course-section .lesson{
        font-size: 12px;
    }
    .course-section .courseDesc{
        font-size: 14px;
        line-height: 1.5;
    }
}
