* {
    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;
}

.menu-btn {
    display: none;
}

/* ==========================================
   SIDEBAR & MAIN NAVIGATION
   ========================================== */
.main-nav {
    min-height: 100vh;
    width: 250px;
    background: rgba(15, 23, 42, 0.96);
    color: white;
    position: fixed;
    z-index: 10;
    font-family: 'Poppins', sans-serif;
}

.nav-head {
    display: flex;
    font-size: 13pt;
    gap: 10px;
    margin-top: 25px;
    margin-left: 15px;
    font-family: 'Space Grotesk', sans-serif;
    align-items: center;
}

.nav-head h3 {
    margin: 0;
}

.nav-list {
    font-weight: 500;
    display: flex;
    flex-direction: column;
    padding: 20px 10px 0 10px;
}

.nav-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Base list styling for main buttons */
.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 VIEWPORT & HERO HERO AREA
   ========================================== */
.main-body {
    margin-left: 250px;
    width: calc(100% - 250px);
}

.hero-banner {
    position: relative;
    background: url('School pic.jpg') no-repeat center center/cover;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0.35) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.welcome-tag {
    background: rgba(59, 130, 246, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid blue;
    display: inline-block;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 15px 0;
    letter-spacing: 2px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 35px;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #0f172a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   OTHER SECTIONS (CHOICE, STATS, CONTACT, FOOTER)
   ========================================== */
.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;
}
.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: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.card h3 {
    font-size: 1.3rem;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #1e293b;
}

.card i {
    font-size: 2rem;
    color: #3b82f6;
}

.card p {
    font-size: 0.95rem;
    color: #64748b;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.school-stats {
    padding: 60px 40px;
    background: #f1f5f9;
    font-family: 'Poppins', sans-serif;
}

.stats-heading {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.stats-heading h2 {
    font-size: 2.5rem;
}
.stats-heading span{
    color: navy;
}

.stats-heading p {
    font-size: 1rem;
    color: #64748b;
    margin-top: 5px;
}

.stats-cont {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.7);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.stat-info h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -1px;
}

.stat-info p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 5px 0 0 0;
    font-weight: 500;
}

.blue-gradient .stat-icon { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.blue-gradient h2 { color: #1d4ed8; text-shadow: 0 2px 10px rgba(59, 130, 246, 0.2); }
.green-gradient .stat-icon { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.green-gradient h2 { color: #047857; text-shadow: 0 2px 10px rgba(16, 185, 129, 0.2); }
.orange-gradient .stat-icon { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.orange-gradient h2 { color: #b45309; text-shadow: 0 2px 10px rgba(245, 158, 11, 0.2); }

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(-5deg);
}

.card-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    top: -50px;
    right: -50px;
    transition: all 0.5s ease;
    border-radius: 50%;
}

.stat-card:hover .card-glow {
    transform: scale(2.5);
    opacity: 0.8;
}

.green-gradient .card-glow { background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(255, 255, 255, 0) 70%); }
.orange-gradient .card-glow { background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(255, 255, 255, 0) 70%); }

.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 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);
}

.contact-card i{
    color: slateblue;
}

.simple-footer {
    background: #0f172a;
    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;
}

/* ==========================================
   RESPONSIVE LAYOUT MEDIA QUERIES
   ========================================== */
@media (max-width: 1024px) {
    .main-nav { width: 220px; }
    .main-body { margin-left: 220px; width: calc(100% - 220px); }
    .hero-title { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .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; }
    .hero-banner { min-height: 70vh; }
    .hero-title { font-size: 1.8rem; line-height: 1.2; }
    .hero-subtitle { font-size: .95rem; }
    .hero-buttons { flex-direction: column; }
    .btn-secondary { width: 100%; }
    
    .card-container, .contact-container {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        scroll-snap-type: x mandatory;
        padding-bottom: 15px;
    }
    .card, .stat-card, .contact-card {
        min-width: 280px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
    .card-container::-webkit-scrollbar,
    .contact-container::-webkit-scrollbar { height: 6px; }
    .card-container::-webkit-scrollbar-thumb,
    .contact-container::-webkit-scrollbar-thumb {
        background: #2563eb;
        border-radius: 20px;
    }
    .simple-footer { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: .85rem; }
    .card, .stat-card, .contact-card { min-width: 240px; }
    .ch-heading h1, .stats-heading h2 { font-size: 1.7rem; }
}