*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body{
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

html{
    scroll-behavior: smooth;
}


.custom-head{
    display: none;
}

.mobile-header{
    display: none;
}

.nav-list ul li.dropdown-item,
.nav-list ul li:not(.dropdown-item) {
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-list ul li a {
    color: #cbd5e1;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    transition: all 0.3s ease;
}

/* Circular Icon default mode */
.nav-list ul li i:not(.arrow-icon) {
    border-radius: 50%;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

/* Hover keval non-active navigation bar par chalega */
.nav-list ul li:not(.active):hover {
    background: rgba(255, 255, 255, 0.08);
}

.nav-list ul li:not(.active):hover a,
.nav-list ul li:not(.active):hover span {
    color: #ffffff;
}

/* ==========================================
   DROPDOWN & SUBMENU STYLING
   ========================================== */
.dropdown-item {
    display: block !important; /* Stack vertically to alignment */
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.dropdown-header span {
    flex-grow: 1;
    color: #cbd5e1;
    transition: color 0.3s;
}

.arrow-icon {
    font-size: 0.85rem !important;
    border: none !important;
    background: transparent !important;
    color: #94a3b8 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    transition: transform 0.3s ease;
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), margin 0.3s ease;
    list-style: none;
    padding-left: 20px;
}

.submenu li {
    padding: 10px 12px !important;
    border-radius: 6px;
    margin-top: 4px;
    background: transparent !important; /* Fixed overlapping hover conflict */
    display: flex;
    align-items: center;
}

.submenu li a {
    font-size: 0.9rem;
    display: flex !important;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
}

.submenu li i {
    border: none !important;
    background: transparent !important;
    color: #94a3b8 !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
}

/* Nested transitions inside dropdown panels */
.submenu li:hover a {
    color: #3b82f6 !important;
}

/* ==========================================
   DYNAMIC ACTIVE STATE INDICATORS
   ========================================== */
.nav-list ul li.active {
    background-color: rgba(59, 130, 246, 0.15) !important;
    border-left: 4px solid #3b82f6;
    border-radius: 0 8px 8px 0; /* Left patch style configuration */
}

.nav-list ul li.active a,
.nav-list ul li.active .dropdown-header span {
    color: #3b82f6 !important;
    font-weight: 600;
}

.nav-list ul li.active i:not(.arrow-icon) {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
}

.main-nav{
    height: 100vh;
    width: 250px;
    background: rgba(15, 23, 42, 0.92);
    color: white;
    position: fixed;
    z-index: 10;
}

.nav-head{
    display: flex;
    font-size: 13pt;
    gap: 10px;
    margin-top: 25px;
    margin-left: 10px;
    font-family: 'Space Grotesk', sans-serif;
}

.nav-head h3{
    margin-top: -3px;
}

.nav-list{
    font-family: 'Poppins';
    font-weight:500;
    display: flex;
    flex-direction: column;
    padding-left: 5px;
    padding-top: 20px;
}
.nav-list li{
    padding: 15px;
    list-style: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.nav-list a{
    color: white;
    text-decoration: none;
    display: inline-block;
    transition:all 0.3s ease;
}
.nav-list i{
    border-radius: 50%;
    padding: 5px;
    border: 1px solid white;
    background-color: whitesmoke;
    color: #000000;
}
.nav-list a:hover{  
    transform: TranslateY(-5px);
}
.nav-list li:hover{
    background:  slateitem;
    background: slateblue;
}

.admission-page{
    width: calc(100% - 250px);
    margin-left: 250px;
    position:absolute;
}
.ad-head {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    margin-top: 20px;
    flex-direction: row;
}
.ad-head span{
    color: navy;
}
.ad-head i{
    font-size: 1.8rem;
    color: navy;
}
.head-par{
    text-align: center;
    font-weight: 600;
    margin-top: -10px;
    font-family: 'Space Grotesk', sans-serif;
}

.title{
    text-align: center;
    margin-top: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
}

.choice{
    padding-bottom: 40px;
    background: #f8fafc;
}

.ch-heading{
    padding: 60px 20px 30px 20px;
    background: #f8fafc;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.ch-heading h1{
    font-size: 2.5rem;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.ch-heading span{
    color: navy;
}

.card-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 0 auto;
    gap: 25px;
    max-width: 1100px;
    padding: 0 20px;
}

.card{
    padding: 30px 20px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #555555;
    transition: all 0.3s ease;
}
.card h3{
    font-size: 1.3rem;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #1e293b;
    font-family: 'Space Grotesk', sans-serif;
}
.card i{
    font-size: 2rem;
    color: #3b82f6;
}

.card:hover{
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.bottom-head h2{
    text-align: center;
    font-family: 'Poppins', Arial;
    font-size: 2.3rem;
}
.bottom-head span{
    color: navy;
}

.eligibility{
    padding: 60px 40px;
    background: #f8fafc;
    font-family: 'Poppins', sans-serif;
}

.section-heading{
    text-align: center;
    margin-bottom: 40px;
}

.section-heading h1{
    font-size: 2.3rem;
}

.section-heading span{
    color: navy;
}

.eligibility-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 25px;
}

.eligibility-card{
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 0 12px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.eligibility-card:hover{
    transform: translateY(-6px);
}

.eligibility-card i{
    font-size: 2rem;
    color: navy;
    margin-bottom: 15px;
}

.important-dates{
    padding: 60px 40px;
    background: white;
    font-family: 'Poppins', sans-serif;
}

.dates-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 25px;
}

.date-card{
    background: #f8fafc;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 0 12px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.date-card:hover{
    transform: translateY(-6px);
}

.date-card i{
    font-size: 2rem;
    color: navy;
    margin-bottom: 15px;
}

.contact-section{
    padding: 60px 40px;
    background: #f8fafc;
}

.contact-heading{
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
}
.contact-heading p{
    font-size: 1rem;
}
.contact-heading span{
    color: navy;
}

.contact-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.contact-card{
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.simple-footer {
    background: #0f172a; 
    margin-top: 100px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 40px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    font-size: 0.88rem;
    color: #94a3b8;
    font-family: 'Poppins', sans-serif;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3b82f6; 
}

/* =========================
   TABLET
========================= */
@media (max-width: 1024px){

    .main-nav{
        width: 220px;
    }

    .admission-page{
        width: calc(100% - 220px);
        margin-left: 220px;
    }

    .eligibility,
    .important-dates,
    .contact-section{
        padding: 50px 20px;
    }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px){

    /* Sidebar */

   .custom-head {
        display: block;
    }

    .mobile-header{
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 15px 20px;
        background: #0f172a;
        color: white;
        position: sticky;
        top: 0;
        z-index: 9999;
        font-family: 'Poppins', sans-serif;
    }

    .menu-btn{
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 22px;
        cursor: pointer;
    }

    .main-nav{
        position: fixed;
        top: 60px;
        left: -250px;
        width: 250px;
        height: calc(100vh - 60px);
        transition: .3s;
        overflow-y: auto;
        z-index: 999;
    }

    .main-nav.show{
        left: 0;
    }

    .main-body{
        width: 100%;
        margin-left: 0;
    }
    /* Main Content */

    .admission-page{
        position: relative;
        width: 100%;
        margin-left: 0;
    }

    /* Headings */

    .ad-head{
        flex-direction: column;
        gap: 10px;
        text-align: center;
        font-size: 1rem;
        padding: 0 15px;
    }

    .head-par{
        padding: 0 15px;
        margin-top: 10px;
    }

    .title{
        font-size: 1rem;
        padding: 0 15px;
    }

    .ch-heading h1,
    .section-heading h1,
    .bottom-head h2{
        font-size: 1.8rem;
    }

    /* Slider Cards */

    .eligibility-container,
    .contact-container{
        display: flex;
        overflow-x: auto;
        gap: 15px;
        scroll-snap-type: x mandatory;
        padding-bottom: 15px;
    }

    .card,
    .eligibility-card,
    .date-card,
    .contact-card{
        min-width: 270px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    /* Circular cards ko mobile me normal card banao */

    .card{
        border-radius: 20px;
    }

    /* Sections */

    .eligibility,
    .important-dates,
    .contact-section{
        padding: 40px 15px;
    }

    /* Footer */

    .simple-footer{
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 20px;
    }

    .footer-links{
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Scrollbar */

    .card-container::-webkit-scrollbar,
    .eligibility-container::-webkit-scrollbar,
    .dates-container::-webkit-scrollbar,
    .contact-container::-webkit-scrollbar{
        height: 6px;
    }

    .card-container::-webkit-scrollbar-thumb,
    .eligibility-container::-webkit-scrollbar-thumb,
    .dates-container::-webkit-scrollbar-thumb,
    .contact-container::-webkit-scrollbar-thumb{
        background: #2563eb;
        border-radius: 20px;
    }
}

/* =========================
   SMALL PHONES
========================= */
@media (max-width: 480px){

    .ad-head{
        font-size: .9rem;
    }

    .ad-head i{
        font-size: 1.4rem;
    }

    .ch-heading h1,
    .section-heading h1,
    .bottom-head h2{
        font-size: 1.5rem;
    }

    .card,
    .eligibility-card,
    .date-card,
    .contact-card{
        min-width: 230px;
    }
}