*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{
    --site-header-h:86px;
}

html{
    scroll-behavior:smooth;
    scroll-padding-top:calc(var(--site-header-h) + 14px);
}

body{
    font-family:Arial, sans-serif;
    background:#f8fafc;
    color:#0f172a;
    line-height:1.6;
    overflow-x:hidden;
    overflow-y:auto;
    padding-top:var(--site-header-h) !important;
}

a{
    text-decoration:none;
    color:inherit;
}

img{
    max-width:100%;
    display:block;
}

.container{
    width:92%;
    max-width:1200px;
    margin:auto;
    overflow:visible !important;
    height:auto !important;
}

/* =============================
   MAIN SITE HEADER - FIXED FINAL
============================= */
.site-header{
    background:#0f172a !important;
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    z-index:999999 !important;
    box-shadow:0 4px 16px rgba(0,0,0,0.18);
}

.nav-wrap{
    min-height:86px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.logo{
    color:#fff;
    font-size:22px;
    font-weight:800;
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    white-space:nowrap;
}

.logo span{
    color:#38bdf8;
}

.site-logo-img{
    width:76px;
    height:76px;
    object-fit:contain;
    border-radius:50%;
    flex:0 0 76px;
}

.nav-menu{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
    align-items:center;
    justify-content:center;
}

.nav-menu a{
    color:#e2e8f0;
    font-weight:600;
    transition:.2s ease;
}

.nav-menu a.active,
.nav-menu a:hover{
    color:#38bdf8;
}

.nav-btn{
    background:#38bdf8;
    color:#0f172a;
    padding:10px 16px;
    border-radius:8px;
    font-weight:700;
    white-space:nowrap;
}

/* =============================
   COMMON SECTIONS
============================= */
.hero{
    background:linear-gradient(135deg,#0f172a,#1d4ed8);
    color:#fff;
    padding:70px 0;
}

.hero-grid{
    display:grid;
    grid-template-columns:1.2fr .8fr;
    gap:30px;
    align-items:center;
}

.hero h1{
    font-size:44px;
    line-height:1.2;
    margin-bottom:16px;
}

.hero p{
    color:#dbeafe;
    margin-bottom:22px;
    max-width:650px;
}

.hero-btns{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
}

.btn{
    display:inline-block;
    padding:12px 20px;
    border-radius:10px;
    font-weight:700;
}

.btn-primary{
    background:#38bdf8;
    color:#0f172a;
}

.btn-light{
    background:#fff;
    color:#0f172a;
}

.search-box{
    background:#fff;
    padding:22px;
    border-radius:18px;
    box-shadow:0 15px 40px rgba(0,0,0,0.18);
}

.search-box h3{
    margin-bottom:12px;
}

.form-group{
    margin-bottom:14px;
}

.form-control{
    width:100%;
    padding:12px 14px;
    border:1px solid #cbd5e1;
    border-radius:10px;
    outline:none;
}

.section{
    padding:65px 0;
}

.section-title{
    text-align:center;
    font-size:34px;
    margin-bottom:10px;
}

.section-subtitle{
    text-align:center;
    color:#475569;
    max-width:760px;
    margin:0 auto 34px;
}

.grid-3{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}

.card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 10px 28px rgba(2,6,23,0.08);
}

.card-body{
    padding:18px;
}

.card h3{
    margin-bottom:8px;
    font-size:22px;
}

.badge{
    display:inline-block;
    background:#e0f2fe;
    color:#0369a1;
    padding:6px 10px;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
    margin-bottom:10px;
}

.meta{
    color:#475569;
    font-size:15px;
    margin-bottom:6px;
}

.card-actions{
    margin-top:14px;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.small-btn{
    display:inline-block;
    background:#0f172a;
    color:#fff;
    padding:10px 14px;
    border-radius:8px;
    font-size:14px;
}

.small-btn.outline{
    background:#e2e8f0;
    color:#0f172a;
}

.info-strip{
    background:#e0f2fe;
    padding:18px;
    border-left:5px solid #0284c7;
    border-radius:10px;
    margin-bottom:20px;
}

.page-banner{
    background:#e2e8f0;
    padding:40px 0;
}

.page-banner h1{
    font-size:36px;
}

.form-card{
    background:#fff;
    padding:26px;
    border-radius:18px;
    box-shadow:0 10px 28px rgba(2,6,23,0.08);
}

textarea.form-control{
    min-height:130px;
    resize:vertical;
}

/* =============================
   PPT/PDF PAGE FINAL STICKY
============================= */
.flex-row{
    display:flex;
    align-items:flex-start !important;
    gap:18px;
    overflow:visible !important;
    height:auto !important;
}

.left-filter{
    position:sticky !important;
    top:calc(var(--site-header-h) + 12px) !important;
    align-self:flex-start !important;
    height:auto !important;
    max-height:calc(100vh - var(--site-header-h) - 24px) !important;
    overflow-y:auto !important;
    z-index:9999 !important;
}

.right-content{
    overflow:visible !important;
    height:auto !important;
    min-height:0 !important;
}

/* PPT page ke internal top header ko normal rakha gaya hai, taaki double sticky conflict na ho */
.top-header{
    position:relative !important;
    top:auto !important;
    z-index:auto !important;
}

/* Pink/extra scrollbar hide */
.slider-track,
.yr-content,
.section-list,
.list-holder{
    scrollbar-width:none !important;
    -ms-overflow-style:none !important;
}

.slider-track::-webkit-scrollbar,
.yr-content::-webkit-scrollbar,
.section-list::-webkit-scrollbar,
.list-holder::-webkit-scrollbar{
    display:none !important;
    width:0 !important;
    height:0 !important;
}

/* =============================
   FOOTER
============================= */
.site-footer{
    background:#0f172a;
    color:#cbd5e1;
    margin-top:50px;
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:24px;
    padding:40px 0;
}

.footer-grid h3,
.footer-grid h4{
    color:#fff;
    margin-bottom:10px;
}

.footer-bottom{
    text-align:center;
    border-top:1px solid rgba(255,255,255,0.08);
    padding:14px;
}

/* =============================
   ADMIN
============================= */
.admin-wrap{
    display:grid;
    grid-template-columns:250px 1fr;
    min-height:100vh;
}

.admin-sidebar{
    background:#0f172a;
    color:#fff;
    padding:22px;
}

.admin-sidebar a{
    display:block;
    padding:12px 14px;
    background:rgba(255,255,255,0.06);
    margin-bottom:10px;
    border-radius:8px;
}

.admin-main{
    background:#f8fafc;
    padding:26px;
}

.admin-card{
    background:#fff;
    padding:20px;
    border-radius:14px;
    box-shadow:0 10px 28px rgba(2,6,23,0.06);
    margin-bottom:20px;
}

.table-wrap{
    overflow:auto;
}

table{
    width:100%;
    border-collapse:collapse;
}

table th,
table td{
    border:1px solid #e2e8f0;
    padding:12px;
    text-align:left;
}

.success{
    background:#dcfce7;
    color:#166534;
    padding:12px 14px;
    border-radius:10px;
    margin-bottom:16px;
}

.error{
    background:#fee2e2;
    color:#991b1b;
    padding:12px 14px;
    border-radius:10px;
    margin-bottom:16px;
}

/* =============================
   RESPONSIVE
============================= */
@media(max-width:900px){
    .hero-grid,
    .grid-3,
    .footer-grid,
    .admin-wrap{
        grid-template-columns:1fr;
    }

    .nav-wrap{
        flex-direction:column;
        padding:12px 0;
        gap:12px;
        min-height:auto;
    }

    .nav-menu{
        gap:14px;
        font-size:14px;
    }

    .hero h1{
        font-size:32px;
    }

    .site-logo-img{
        width:64px;
        height:64px;
        flex-basis:64px;
    }

    .logo{
        font-size:20px;
    }

    .flex-row{
        flex-direction:column;
    }

    .left-filter{
        position:relative !important;
        top:auto !important;
        max-height:none !important;
        overflow:visible !important;
        width:100% !important;
        z-index:auto !important;
    }

    .top-header{
        position:relative !important;
        top:auto !important;
    }
}
