.course-hero{
  padding:70px 0;
  background-color: #fff;
}

.course-hero-wrap{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:40px;
}

.course-hero-left{
  width:55%;
}

.course-hero-left h1{
  font-size:40px;
  color:var(--black);
  margin:15px 0;
}

.sub-text{
  color:var(--text);
  margin-bottom:20px;
}

.course-features li{
  margin-bottom:10px;
  color:var(--black);
  list-style:none;
  position:relative;
  padding-left:20px;
}

.course-features li::before{
  content:"✔";
  position:absolute;
  left:0;
  color:var(--primary);
}

.course-buttons{
  margin-top:20px;
  display:flex;
  gap:10px;
}

.course-buttons{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

/* COMMON BUTTON FIX */
.btn-primary,
.btn-outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:44px;          /* FIXED HEIGHT */
  padding:0 18px;       /* remove vertical padding issue */
  border-radius:6px;
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  line-height:1;
  transition:0.3s ease;
}

/* PRIMARY */
.btn-primary{
  background:var(--primary);
  color:#fff;
  border:2px solid var(--primary);
}

/* OUTLINE */
.btn-outline{
  border:2px solid var(--primary);
  color:var(--primary);
  background:transparent;
}

/* HOVER */
.btn-primary:hover{
  opacity:0.9;
}

.btn-outline:hover{
  background:var(--primary);
  color:#fff;
}

.course-hero-right{
  width:40%;
  position:relative;
}

.image-box img{
  width:100%;
  border-radius:12px;
}

.rating-card{
  position:absolute;
  bottom:10px;
  background:#fff;
  padding:10px 15px;
  border-radius:10px;
  box-shadow:0 5px 15px rgba(0,0,0,0.1);
}


/* ================= COURSE OVERVIEW ================= */

.course-overview{
    padding: 70px 0;
    background: var(--bg-light);
    font-family: var(--font-main);
}

/* WRAPPER */
.course-wrapper{
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* LEFT */
.course-left{
    flex: 1;
    min-width: 320px;
}

/* TAG */
.tag{
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* HEADING */
.course-left h2{
    font-size: 32px;
    color: var(--black);
    margin-bottom: 10px;
}

/* DESCRIPTION */
.desc{
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 25px;
}

/* SUB HEADINGS */
.course-left h3{
    font-size: 18px;
    margin: 20px 0 15px;
    color: var(--black);
}

/* FEATURE GRID */
.feature-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

/* FEATURE BOX */
.feature-box{
    background: #fff;
    padding: 12px 14px;
    border-radius: 10px;
    border-left: 3px solid var(--primary);
    font-size: 13px;
    color: var(--text);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.feature-box:hover{
    transform: translateY(-3px);
    border-color: var(--primary-dark);
}

/* SKILLS LIST */
.skills{
    list-style: none;
    padding: 0;
}

.skills li{
    font-size: 14px;
    color: var(--text);
    padding-left: 22px;
    margin-bottom: 10px;
    position: relative;
}

.skills li::before{
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* ================= RIGHT FORM ================= */

.course-right{
    width: 360px;
    flex-shrink: 0;
}

/* FORM CARD */
.form-card{
    background: #fff;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* TITLE */
.form-card h3{
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--black);
    text-align: center;
}

/* COUNTDOWN */
.countdown{
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.countdown div{
    flex: 1;
    background: var(--bg-light);
    padding: 10px 5px;
    border-radius: 8px;
    text-align: center;
}

.countdown span{
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
    display: block;
}

.countdown small{
    font-size: 11px;
    color: var(--text);
}

/* INPUTS */
input, select{
    width: 100%;
    padding: 11px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

input:focus, select:focus{
    border-color: var(--primary);
}

/* PHONE ROW */
.row{
    display: flex;
    gap: 10px;
}

.row select{
    width: 35%;
}

.row input{
    width: 65%;
}

/* BUTTONS */
.btn-primary{
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 11px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary:hover{
    background: var(--primary-dark);
}

.btn-outline{
    width: 36%;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    padding: 11px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-top: -7px;
}

.btn-outline:hover{
    background: var(--primary);
    color: #fff;
}

/* ================= RESPONSIVE ================= */

@media(max-width: 991px){

    .course-wrapper{
        flex-direction: column;
    }

    .course-right{
        width: 100%;
    }

    .feature-grid{
        grid-template-columns: 1fr;
    }
}


/* ================= CURRICULUM SECTION ================= */

.curriculum-section{
    padding: 70px 0;
    background: #f6f7fb;
}

/* WRAPPER (IMPORTANT FIX) */
.curriculum-wrap{
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;

    position: relative; /* 🔥 REQUIRED for sticky boundary */
}

/* LEFT SIDE */
.curriculum-left{
    flex: 1;
    min-width: 0;
}

/* HEADING */
.curriculum-left h2{
    font-size: 30px;
    margin-bottom: 20px;
    color: var(--black);
}

/* CONTENT BLOCKS */
.block{
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.block h3{
    margin-bottom: 10px;
    color: var(--primary);
}

.block p,
.block li{
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

.block ul{
    padding-left: 18px;
}

/* MODULE LIST */
.modules p{
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
}

/* RIGHT SIDE */
.curriculum-right{
    width: 340px;
    flex-shrink: 0;
}

/* ================= STICKY FORM FIX (FINAL) ================= */

.curriculum-right{
    width: 340px;
    flex-shrink: 0;
    position: relative;
}

/* FIXED FORM */
.sticky-form{
    position: fixed;
    top: 100px;   /* navbar ke hisaab se */
    width: 340px;
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    z-index: 999;
}

/* TITLE */
.sticky-form h3{
    margin-bottom: 15px;
    text-align: center;
    color: var(--black);
}

/* INPUTS */
.sticky-form input,
.sticky-form select,
.sticky-form textarea{
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

/* FOCUS */
.sticky-form input:focus,
.sticky-form select:focus,
.sticky-form textarea:focus{
    border-color: var(--primary);
}

/* TEXTAREA */
.sticky-form textarea{
    height: 80px;
    resize: none;
}


@media (max-width: 991px){

    .curriculum-wrap{
        flex-direction: column;
    }

    .curriculum-right{
        width: 100%;
    }

    .sticky-form{
        position: relative !important;  /* 🔥 important override */
        top: auto;
        width: 100%;
        margin-top: 20px;
        box-shadow: none; /* optional clean look */
    }
}

@media (max-width: 991px){

    .sticky-form{
        position: static !important;   /* 🔥 best for mobile */
        top: auto !important;
        width: 100% !important;
        margin-top: 20px;
        box-shadow: none;
    }
}

/* ROW */
.row{
    display: flex;
    gap: 10px;
}

.row select{
    width: 35%;
}

.row input{
    width: 65%;
}

/* RADIO */
.radio{
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 10px;
}

/* BUTTON */
.btn-primary{
    width: 34%;
    background: var(--primary);
    color: #fff;
    padding: 11px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary:hover{
    background: var(--primary-dark);
}
/* ================= RESPONSIVE ================= */

@media(max-width: 991px){

    .curriculum-wrap{
        flex-direction: column;
    }

    .curriculum-right{
        width: 100%;
    }

    .sticky-form{
        position: relative;
        top: auto;
        margin-top: 20px;
    }
}


.tools-section{
    padding: 80px 0;
    background: #f6f7fb;
}

.section-head{
    text-align: center;
    margin-bottom: 40px;
}

.section-head h2{
    font-size: 34px;
    color: var(--black);
    margin-bottom: 10px;
}

.section-head p{
    color: var(--text);
    font-size: 15px;
}

/* GRID */
.tools-grid{
    width: 90%;
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* BOX */
.tool-box{
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    height: 100px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

/* IMAGE */
.tool-box img{
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: 0.3s;
}

/* HOVER */
.tool-box:hover{
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.tool-box:hover img{
    filter: grayscale(0%);
}

/* RESPONSIVE */
@media(max-width: 991px){
    .tools-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 576px){
    .tools-grid{
        grid-template-columns: 1fr;
    }
}


.cert-section{
    padding: 80px 0;
    background: #f6f7fb;
}

.cert-wrap{
    width: 90%;
    max-width: 1200px;
    margin: auto;

    display: flex;
    align-items: center;
    gap: 50px;
}

/* LEFT IMAGE */
.cert-image{
    flex: 1;
    display: flex;
    justify-content: center;
}

.cert-image img{
    width: 100%;
    max-width: 420px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* RIGHT CONTENT */
.cert-content{
    flex: 1.2;
}

.cert-tag{
    font-size: 13px;
    color: var(--primary);
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 10px;
}

.cert-content h2{
    font-size: 34px;
    color: var(--black);
    margin-bottom: 15px;
}

.cert-content h2 span{
    color: var(--primary);
}

.cert-desc{
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 25px;
}

/* FAQ STYLE */
.cert-faq{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item{
    background: #fff;
    padding: 15px 18px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.faq-item h4{
    font-size: 15px;
    color: var(--black);
    margin-bottom: 6px;
}

.faq-item p{
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}

/* RESPONSIVE */
@media(max-width: 991px){
    .cert-wrap{
        flex-direction: column;
        text-align: center;
    }

    .cert-content h2{
        font-size: 28px;
    }
}


.ceh-section{
    padding: 80px 0;
    background: #f6f7fb;
}

.ceh-wrap{
    width: 90%;
    max-width: 1200px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

/* LEFT */
.ceh-content{
    flex: 1.2;
}

.ceh-tag{
    font-size: 13px;
    color: var(--primary);
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 10px;
}

.ceh-content h2{
    font-size: 34px;
    color: var(--black);
    margin-bottom: 20px;
    line-height: 1.3;
}

.ceh-content h2 span{
    color: var(--primary);
}

.ceh-content p{
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 15px;
}

/* BUTTON */
.ceh-btn{
    display: inline-block;
    margin-top: 10px;
    padding: 12px 22px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
}

.ceh-btn:hover{
    background: var(--primary-dark);
}

/* RIGHT IMAGE */
.ceh-image{
    flex: 1;
    display: flex;
    justify-content: center;
}

.ceh-image img{
    width: 100%;
    max-width: 420px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* RESPONSIVE */
@media(max-width: 991px){
    .ceh-wrap{
        flex-direction: column;
        text-align: center;
    }

    .ceh-content h2{
        font-size: 28px;
    }
}


.review-section{
    padding: 90px 0;
    background: #f6f7fb;
}

/* HEADER */
.review-head{
    text-align: center;
    margin-bottom: 50px;
}

.review-head .tag{
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 13px;
    margin-bottom: 8px;
}

.review-head h2{
    font-size: 36px;
    color: var(--black);
    margin-bottom: 10px;
}

.review-head p{
    color: var(--text);
    font-size: 15px;
}

/* SLIDER WRAP */
.review-slider{
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

/* TRACK */
.review-track{
    display: flex;
    gap: 25px;
    transition: transform 0.5s ease;
}

/* CARD */
.review-card{
    min-width: 350px;
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    position: relative;
    transition: 0.3s;
}

.review-card:hover{
    transform: translateY(-5px);
}

/* QUOTE */
.quote{
    font-size: 40px;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    right: 20px;
}

/* TEXT */
.review-card p{
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* USER */
.user{
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar{
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user h4{
    margin: 0;
    font-size: 14px;
    color: var(--black);
}

.user span{
    font-size: 12px;
    color: var(--primary);
}

/* NAV BUTTONS */
.nav{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.nav.left{ left: -15px; }
.nav.right{ right: -15px; }

/* RESPONSIVE */
@media(max-width: 768px){
    .review-card{
        min-width: 280px;
    }

    .review-head h2{
        font-size: 28px;
    }
}


.faq-section{
    padding: 80px 0;
    background: #f6f7fb;
}

.faq-head{
    text-align: center;
    margin-bottom: 40px;
}

.faq-head h2{
    font-size: 34px;
    color: var(--black);
    margin-bottom: 10px;
}

.faq-head p{
    color: var(--text);
}

/* WRAP */
.faq-wrap{
    width: 90%;
    max-width: 900px;
    margin: auto;
}

/* ITEM */
.faq-item{
    background: #fff;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* QUESTION */
.faq-question{
    padding: 16px 18px;
    font-weight: 600;
    color: var(--black);
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

/* ANSWER */
.faq-answer{
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: 0.4s ease;
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

/* ACTIVE */
.faq-item.active .faq-answer{
    max-height: 200px;
    padding: 0 18px 16px;
}

.faq-item.active .faq-question span{
    transform: rotate(45deg);
    transition: 0.3s;
}


.phone-row{
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

/* COUNTRY BOX */
.country-box{
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
    width: 40%;
}

.country-box img{
    width: 22px;
    height: 16px;
    border-radius: 2px;
}

/* SELECT CLEAN */
.country-box select{
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    width: 100%;
}

/* PHONE INPUT */
.phone-row input{
    width: 60%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

.iti{
    width: 100%;
    margin-top: 10px;
}

/* ================= DESKTOP ================= */
.image-box img {
    width: 166%;
    height: 165%;
    margin-top: -88px;
    border-radius: 12px;
    object-fit: cover;
}

/* ================= MOBILE / TABLET ================= */
@media (max-width: 768px) {
    .image-box img {
        width: 100%;
        height: auto;
        margin-top: 0;
        border-radius: 12px;
    }
}

@media (max-width: 991px){

    .course-hero{
        padding: 50px 0;
    }

    .course-hero-wrap{
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }

    .course-hero-left,
    .course-hero-right{
        width: 100%;
    }

    .course-hero-left h1{
        font-size: 30px;
        line-height: 1.3;
    }

    .sub-text{
        font-size: 14px;
    }

    .course-buttons{
        justify-content: center;
        flex-wrap: wrap;
    }

    .image-box img{
        width: 100%;
        max-width: 380px;
        margin-top: 0;
    }

}

/* ================= SMALL MOBILE ================= */

@media (max-width: 576px){

    .course-hero-left h1{
        font-size: 26px;
    }

    .course-buttons{
        flex-direction: column;
    }

    .btn-primary,
    .btn-outline{
        width: 100%;
    }

}