@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
*{
    margin: 0;
    padding: 0;
}

.main {
    /* बॅकग्राउंड इमेज आणि काळा ओव्हरले एकाच वेळी */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('/Logo/bgmart.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 50vh; /* उंची गरजेनुसार बदला */
    display: flex;
    flex-direction: column;
}

/* .box ची आता गरज नाही, तो HTML मधून काढून टाका किंवा display: none करा */
.main .box {
    display: none; 
}
nav {
    max-width: 80vw;
    justify-content: space-between;
    margin: auto;
    display: flex;
    align-items: center;
    height: 65px;
    background-color: black; /* बॅकग्राउंड काळा असल्याची खात्री करा */
}


.main-content {
    position: relative; /* हे महत्त्वाचे आहे */
    z-index: 10;
    color: white; /* बॅकग्राउंड काळा असल्यामुळे मजकूर पांढरा ठेवा */
    padding-top: 50px; 
    text-align: center;
}

/* मोबाईल आणि टॅब्लेटसाठी Media Queries (768px पेक्षा लहान स्क्रीन) */
@media (max-width: 768px) {

    .main {
        height: auto;          /* 🔥 fix */
        min-height: 80%;      /* optional */
        padding-bottom: 20px;  /* spacing */
    }

    .hero-section {
      height: auto;
    }

    .main .box {
        height: 100%; /* ओव्हरले पूर्ण कव्हर करेल */
    }

    nav {
        flex-direction: column; /* लोगो आणि इतर गोष्टी एकाखाली एक */
        height: auto;
        padding: 10px;
    }

    nav img {
        width: 120px; /* मोबाईलवर लोगो लहान दिसेल */
        top: 0; /* ओव्हरलॅप टाळण्यासाठी */
    }

    .main-content {
        margin-top: 20px;
        padding: 0 15px;
    }

    .main-content span{
        line-height: 1.5;
    }

    .btn-main {
        flex-direction: column; /* ड्रॉपडाउन एकाखाली एक येतील */
        align-items: center;
        width: 100%;
    }

    .btn {
        width: 90%; /* ड्रॉपडाउनची रुंदी वाढवली */
        margin: 5px 0;
    }

    /* कार्ड्सचा लेआउट (Part 2) */
    .container {
        flex-direction: column;
        align-items: center;
    }

    .card-plan {
        width: 100%; /* कार्ड मोबाईलच्या स्क्रीनवर फिट होईल */
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {

    .list-card {
      display: flex;
      align-items: center;
      justify-content: flex-start;
  
      gap: 6px; /* mobile ला थोडा कमी gap */
      
      font-size: 0.95rem; /* text थोडा small */
      line-height: 1.3rem;
  
      padding: 6px 8px;
      margin-bottom: 0.6rem;
  
      text-align: left; /* center काढ */
    }
  
    .list-card i {
      font-size: 0.9rem;
      min-width: 18px; /* icon fix width */
    }
  
  }

.social-card {
    display: flex;
    gap: 20px;
    background: #f4f4f4;
    padding: 10px;
    border-radius: 15px;
    justify-content: center;
    align-items: center;
}
  
  .icon {
    font-size: clamp(18px, 4vw, 30px);
    text-decoration: none;
    transition: transform 0.3s;
  }
  
  .icon:hover {
    transform: scale(1.2); /* Hover kelyavar icon motha hoil */
  }
  
  /* Icons che original colors */
  .youtube { color: #FF0000; }
  .telegram { color: #26A5E4; }
  .whatsapp { color: #25D366; }
  .instagram { color: #E4405F; }
  .ios{color: #222;}
  .web{color: #26A5E4;}
  
.main-content span{
    font-weight: 200;
    font-size: clamp(20px, 4vw + 1rem, 32px);  
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: #fff;
    position: relative;
    top:10px;
    line-height: 3;
}

/* मोबाईलसाठी विशेष बदल */
@media screen and (max-width: 600px) {
    .main-content span {
        font-size: 1.1rem; /* मोबाईलवर वाचायला सोपे जाईल */
        line-height: 1.4;
        width: 95%;
    }
}

.main-content :nth-child(1){
    font-size: clamp(32px, 5vw + 1rem, 52px);
}

.btn-main {
    display: flex;
    gap: 20px; 
    justify-content: center;
    align-items: center;
    

    margin: 5% auto; 
    width: 100%;
    max-width: 500px; 
    
    opacity: 0.8;
    
    /* जर तुम्हाला absolute हवेच असेल तरच हे वापरा, अन्यथा काढून टाका */
    /* position: relative; */ 
}
@media screen and (max-width: 600px) {
    .btn-main {
        flex-direction: column; /* बटन्स एका खाली एक येतील */
        gap: 15px;
        margin: 10% auto;
    }
}

.btn-main :nth-child(1){
    position: relative;
    font-size: 20px;
    border-radius: 10px;
}

.btn-main :nth-child(2){
        position: relative;
        font-size: 20px;
        border-radius: 10px;
    }  
.btn-main :nth-child(3){
            position: relative;
            display: flex;
            flex-direction: column;
        }    
select.btn{
        font-family: 'Noto Sans Devanagari', sans-serif;
        
        padding: 10px 15px; 
        
        line-height: 1.8;
        
        height: auto;
        font-size: 32px;
        border: 1px solid #ccc;
        border-radius: 4px;
        appearance: auto; /* ब्राउझरचा डीफॉल्ट बाण दिसण्यासाठी */
        background-color: #fff;

}
@media screen and (max-width: 600px) {
    select.btn {
        width: 100%; /* मोबाईलवर ड्रॉपडाऊन मोठे दिसेल */
        font-size: 15px;
        padding: 12px; /* थोडी जास्त जागा */
    }
}


.hidden {
    margin: 100px auto; 
    width: 90%;
    max-width: 400px;

    border-radius: 30px;
    position: relative;
    padding: 20px 50px;
    opacity: 0.5;
    font-size: 16px;
    cursor: pointer;
    display: none; 
    
    justify-content: center;
    align-items: center;
}

/* Mobile sathi vishesh badal */
@media (max-width: 600px) {
    .hidden {
        margin: 50px auto;
        padding: 15px 30px; /* Mobile var padding kami kara */
        font-size: 14px;    /* Font thoda lahan */
    }
}

.main-head{
    background-color: #fff;
    color: black;
}
h2 {
    display: block;
    margin: 20px auto;
    max-width: 90%;
    width: fit-content;
    font-size: 18px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    text-align: center;
    padding: 10px 20px;
    border: 1px solid #555;
}
@media screen and (max-width: 768px) {
    h2 {
        margin: 20px auto; 
        font-size: 16px; 
    }
}


#part2{
    display: none;
}
#part3{
    display: none;
}
#part4{
    display: none;
}
#part5{
    display: none;
}

.container {
    padding: 0.5vw 5vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(240, 240, 240);
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column; 
        padding: 20px 15px;    
    }
}

/* डेस्कटॉपसाठी (मोठी स्क्रीन) */
.card-plan {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding: 1rem 2.0rem;
    font-size: 32px;
}

/* मोबाईलसाठी (७६८px पेक्षा लहान स्क्रीन) */
@media screen and (max-width: 768px) {
    .card-plan {
        gap: 1rem;
        padding: 1rem;
        font-size: 18px; /* मजकूर लहान होईल */

        align-items: center;
    }
}




.card-plan > div {
    flex: 0 1 340px;     
    max-width: 110%;     
    box-sizing: border-box;
}



.classname{
    border: 2px solid;
    display: flex;
    flex-direction: column;
}
.class-img{
    width: 340px;
    height: 300px;
    margin-bottom: 0.5rem;
}
@media (max-width: 576px) {
    .class-img {
      width: 100%;      /* full card मध्ये बसतो */
      height: auto;     /* proportion maintain */
    }
  }
.span-center {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    padding: clamp(0.6rem, 2vw, 1rem);
    text-align: center;
    border-bottom: 2px solid;
}
@media (max-width: 576px) {
    .span-center {
      font-size: 14px;
      height: 45px;
    }
  }
.list-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    font-size: 1.1rem;
    line-height: 1.4rem;
    margin-bottom: 1rem;
    list-style: none;
}

.btn-book{
    padding: 0.5rem;
    background-color: #24A0ED;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}
.part2.part3.part4{
    display: flex;
    flex-direction: column;
    background-color: #4D3A32;
}

.pagination{
    padding: 1rem 1rem;
    font-size: 32px;
    display:flex;
    gap:2rem;
    list-style:none;
    justify-content: center;
    align-items: center;
    background-color: #F0F0F0;
  }
  .footer-main {
    background-color: #000000c1; /* ब्लॅक बॅकग्राउंड */
    color: #fefefe;
    padding: 40px 20px 20px;
    border-top: 1px solid #333;
    margin-top: 50px;
}

.pagination-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* मोबाईलवर शेजारी मावले नाही तर खाली येतील */
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    gap: 20px;
}

.pagination-footer .page-item {
    margin: 0;
}

.pagination-footer .page-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.pagination-footer .page-link:hover {
    color: #ffcc00; /* स्पर्धामार्टचा गोल्डन रंग */
}

.footer-main center {
    font-size: 12px;
    border-top: 1px solid #222;
    padding-top: 20px;
    margin-top: 20px;
    opacity: 0.7;
}

/* मोबाईलसाठी विशेष बदल */
@media (max-width: 600px) {
    .pagination-footer {
        flex-direction: column; /* मोबाईलवर लिंक्स एकाखाली एक दिसतील */
        align-items: center;
        gap: 10px;
    }
}


.page-link {
    color: black;

    transition: 0.3s;
  }
  
  .page-link.active {
    background: #0000ff;
    color: white;
    font-weight: bold;
    border-color: #007bff;
  }

  .active {
    background-color: blue;
    color: white;
    padding: 5px 5px;
    border-radius: 5px;
  }

/* =========================================
   CARD LOADING OVERLAY
========================================= */

.card-loading-overlay {

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(255, 255, 255, 0.94);

    backdrop-filter: blur(5px);

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 99999;

}

/* Loader Box */

.card-loader-box {

    width: min(380px, 88%);

    text-align: center;

    padding: 35px 25px;

    border-radius: 22px;

    background: #ffffff;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.15);

}


/* Circle */

.loader-circle {

    width: 58px;
    height: 58px;

    margin: 0 auto 20px;

    border-radius: 50%;

    border: 5px solid #e6e6e6;

    border-top-color: #e91e63;

    animation: loaderSpin 0.9s linear infinite;

}


@keyframes loaderSpin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* Main Text */

.loader-title {

    font-size: 21px;

    font-weight: 700;

    color: #222;

    margin-bottom: 8px;

}


/* Sub Text */

.loader-subtitle {

    font-size: 14px;

    color: #666;

    margin-bottom: 20px;

}


/* Progress Bar */

.loader-progress {

    width: 100%;

    height: 8px;

    background: #eeeeee;

    border-radius: 10px;

    overflow: hidden;

}


/* Progress */

#loaderProgressBar {

    width: 0%;

    height: 100%;

    background: linear-gradient(
        90deg,
        #e91e63,
        #9c27b0
    );

    border-radius: 10px;

    transition: width 0.1s linear;

}


/* Percentage */

#loaderPercent {

    margin-top: 10px;

    font-size: 13px;

    font-weight: 600;

    color: #777;

}


/* Mobile */

@media (max-width: 600px) {

    .card-loader-box {

        width: 82%;

        padding: 30px 20px;

    }

    .loader-title {

        font-size: 19px;

    }

    .loader-subtitle {

        font-size: 13px;

    }

}



/* =========================================
   REDMI NOTE 5 PRO / MOBILE CARD LAYOUT
   ========================================= */

   @media screen and (max-width: 600px) {

    /* -----------------------------------------
       MAIN CARD CONTAINER
       ----------------------------------------- */

    .container {
        display: flex;
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
        padding: 15px 5px;
        box-sizing: border-box;
    }


    /* -----------------------------------------
       CLASSES SECTION
       ----------------------------------------- */

    #part2 .card-plan {
        width: calc(50% - 5px);
        flex: 0 0 calc(50% - 5px);
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }

    #part2 .card-plan > div {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    #part2 .classname {
        width: 100%;
        box-sizing: border-box;
    }


    /* -----------------------------------------
       TEST SERIES
       ----------------------------------------- */

    #testContainer {
        display: flex;
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    #testContainer .card {
        width: calc(50% - 5px) !important;
        margin: 0;
        box-sizing: border-box;
    }


    /* -----------------------------------------
       BOOKS
       ----------------------------------------- */

    #bookContainer {
        display: flex;
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    #bookContainer .card {
        width: calc(50% - 5px) !important;
        margin: 0;
        box-sizing: border-box;
    }


    /* -----------------------------------------
       CLASS IMAGE
       ----------------------------------------- */

    #part2 .class-img {
        width: 100%;
        height: auto;
        display: block;
    }


    /* -----------------------------------------
       CLASS SLIDER
       ----------------------------------------- */

    #part2 .media-slider {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    #part2 .slide {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    #part2 .slide img,
    #part2 .slide video,
    #part2 .video-frame {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }


    /* -----------------------------------------
       CLASS TEXT
       ----------------------------------------- */

    #part2 .span-center {
        width: 100%;
        box-sizing: border-box;
        font-size: 14px;
    }

    #part2 .list-card {
        font-size: 12px;
        gap: 5px;
        margin-bottom: 8px;
    }


    /* -----------------------------------------
       SOCIAL ICONS
       ----------------------------------------- */

    #part2 .social-card {
        gap: 8px;
        padding: 8px 3px;
    }

    #part2 .icon {
        font-size: 18px;
    }


    /* -----------------------------------------
       APP BUTTON
       ----------------------------------------- */

    #part2 .btn-book {
        width: 100%;
        font-size: 13px;
        padding: 8px;
    }

}


/* =========================================
   VERY SMALL MOBILE
   Redmi Note 5 Pro / 360px
   ========================================= */

@media screen and (max-width: 380px) {

    #part2 .card-plan {
        width: calc(50% - 4px);
        flex-basis: calc(50% - 4px);
    }

    #testContainer .card,
    #bookContainer .card {
        width: calc(50% - 4px) !important;
    }

    .container {
        gap: 8px;
        padding: 12px 4px;
    }

}
/* =========================================
   MOBILE CARD FIX
   Redmi Note 5 Pro
========================================= */

@media screen and (max-width: 600px) {

    .container {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        padding: 12px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .container > .card-plan {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    .container > .card-plan > .classname {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        overflow: hidden;
    }

}

/* =========================================
   REDMI / SMALL MOBILE CARD WIDTH FIX
========================================= */

@media screen and (max-width: 400px) {

    .part2,
    .page1,
    .container,
    .card-plan,
    .classname {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .card-plan {
        overflow: hidden;
    }

    .classname {
        overflow: hidden;
    }

    .info-inline-row {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;

        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 2px;
        padding: 8px 5px;

        flex-wrap: nowrap !important;
        overflow: hidden;
    }

    .info-item {
        font-size: 10px;
        font-weight: 600;

        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: clip;

        min-width: 0;
    }

    .info-divider {
        flex: 0 0 auto;
        font-size: 10px;
    }

    .rating-click,
    .coupon-code,
    .review-click {
        min-width: 0;
        white-space: nowrap !important;
    }
}

/* =====================================================
   CLASS CARDS - 4 CARDS IN ONE ROW
   ===================================================== */

   #classContainer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    margin: 0 auto;
    align-items: start;
}

#classContainer .card-plan {
    width: 100%;
    margin: 0;
}

/* =====================================================
   CLASS CARDS - MOBILE
   ===================================================== */

   @media screen and (max-width: 768px) {

    #classContainer {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #classContainer .card-plan {
        width: 100%;
    }
}

@media screen and (min-width: 769px) and (max-width: 1100px) {

    #classContainer {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   REVIEW POPUP
========================================= */

.review-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.75);
}

.review-modal-content {
    background: #fff;
    color: #000;
    width: 90%;
    max-width: 550px;
    margin: 8% auto;
    padding: 25px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Review popup मधील सर्व text black */
.review-modal-content h2,
.review-modal-content p,
.review-modal-content span,
.review-modal-content strong,
.review-modal-content div {
    color: #000;
}
.review-close {
    color: #000;
}

.review-close {
    position: absolute;
    right: 18px;
    top: 10px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
}

.review-modal-content h2 {
    text-align: center;
    margin-bottom: 20px;
}

.review-summary {
    text-align: center;
    margin-bottom: 20px;
}

.review-rating {
    font-size: 28px;
    font-weight: bold;
}

.review-text {
    color: #333;
    margin-top: 5px;
    font-size: 16px;
}

.review-item {
    background: #f5f5f5;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 10px;
}

.review-item p {
    margin-top: 5px;
}

/* Mobile */
@media screen and (max-width: 768px) {

    .review-modal-content {
        width: 88%;
        margin: 20% auto;
        padding: 20px;
    }

}

/* =========================================================
   TEST SERIES CARD GRID - MOBILE FIX
   Redmi Note 5 Pro / Android
   ========================================================= */

   #testContainer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    margin: 0 auto;
    align-items: start;
}

#testContainer .card-plan {
    width: 100%;
    margin: 0;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media screen and (max-width: 768px) {

    #testContainer {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #testContainer .card-plan {
        width: 100%;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media screen and (min-width: 769px) and (max-width: 1100px) {

    #testContainer {
        grid-template-columns: repeat(2, 1fr);
    }
}
   
    /* =====================================================
    CARD NAME ONLY - AUTO FIT
    ===================================================== */

    .card-plan .span-center:first-of-type {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;
    }
   
   /* Mobile */
   @media screen and (max-width: 600px) {
   
       #result,
       #result2,
       #result3 {
           width: 92%;
           max-width: none;
   
           margin: 15px auto;
           padding: 7px 10px;
   
           font-size: 20px;
       }
   }
   
   
   /* Small mobile */
   @media screen and (max-width: 380px) {
   
       #result,
       #result2,
       #result3 {
           width: 94%;
   
           margin: 12px auto;
           padding: 6px 8px;
   
           font-size: 18px;
       }
   }