:root{
    --brand:#0f6b52;
    --brand2:#0b3f32;
    --soft:#eef8f3;
    --line:#dce9e2;
    --text:#13251d;
    --muted:#66756d;
}

/* =========================
   RESET
========================= */

*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:system-ui,'Noto Sans Bengali',Arial,sans-serif;
    background:linear-gradient(180deg,#f3faf6,#fff);
    color:var(--text);
    line-height:1.65;
}

/* =========================
   CONTAINER
========================= */

.wrap{
    max-width:1160px;
    margin:auto;
    padding:18px;
}

/* =========================
   HEADER
========================= */

.site-header{
    background:#08382c;
    border-top:4px solid #d4a017;
    margin-bottom:20px;
}

.site-nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

/* =========================
   LOGO
========================= */

.logo{
    display:flex;
    align-items:center;
    gap:14px;
    text-decoration:none;
    color:#ffffff !important;
    font-weight:900;
    font-size:34px;
    line-height:1;
    white-space:nowrap;
}

.logo img{
    height:46px;
    width:46px;
    object-fit:contain;
    display:block;
    transform:scale(1.15);
    transform-origin:center;
}
/* =========================
   NAVIGATION
========================= */

.top-nav{
    display:flex;
    align-items:center;
    gap:2px;
    flex-wrap:wrap;
}

.top-nav a{
    background:#124438;
    color:#fff !important;
    text-decoration:none;
    padding:14px 16px;
    font-weight:700;
    transition:.2s;
}

.top-nav a:hover{
    background:#1f5a4b;
}

.top-nav form{
    margin:0;
}

.menu-btn,
.top-nav button{
    background:#d4a017;
    color:#fff !important;
    border:0;
    padding:14px 16px;
    font-weight:700;
    cursor:pointer;
    transition:.2s;
    border-radius:10px;
}

.menu-btn:hover,
.top-nav button:hover{
    background:#bb8e12;
}

/* =========================
   ADMIN MENU
========================= */

.admin-menu-wrap{
    margin-bottom:20px;
}

.admin-menu{
    background:#fff;
    border:1px solid var(--line);
    border-radius:16px;
    padding:18px;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

/* =========================
   GRID
========================= */

.grid{
    display:grid;
    grid-template-columns:270px 1fr;
    gap:22px;
}

/* =========================
   CARD
========================= */

.card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    padding:22px;
    margin-bottom:18px;
    box-shadow:0 12px 35px #0f6b5210;
}

.page{
    max-width:860px;
    margin-inline:auto;
}

/* =========================
   BUTTONS
========================= */

.btn,
button{
    background:var(--brand);
    color:white;
    border:0;
    border-radius:11px;
    padding:11px 18px;
    cursor:pointer;
    text-decoration:none;
    display:inline-block;
    font-weight:800;
    box-shadow:0 8px 18px #0f6b5220;
    transition:.2s;
}

.btn.light{
    background:#eaf7f1;
    color:var(--brand2);
    box-shadow:none;
}

.btn.google{
    width:100%;
    text-align:center;
    background:#fff;
    color:#1f2937;
    border:1px solid var(--line);
}

button:hover,
.btn:hover{
    transform:translateY(-1px);
}

.danger-btn{
    background:#b42318;
    padding:7px 10px;
    margin-top:5px;
}

/* =========================
   FORM
========================= */

input,
select,
textarea{
    width:100%;
    padding:12px 13px;
    border:1px solid #cddbd4;
    border-radius:11px;
    margin:6px 0 14px;
    background:#fff;
    font:inherit;
}

input:focus,
select:focus,
textarea:focus{
    outline:2px solid #bdebd6;
    border-color:var(--brand);
}

textarea{
    min-height:150px;
}

.inline{
    display:flex;
    gap:8px;
    align-items:center;
}

.inline input{
    width:auto;
    margin:0;
}

.form-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:10px;
}

.form-card{
    max-width:760px;
}

.auth-card{
    max-width:520px;
    margin:35px auto;
}

/* =========================
   TYPOGRAPHY
========================= */

h1{
    margin-top:0;
    font-size:52px;
    line-height:1.1;
}

h2{
    margin-top:0;
}

.qtitle{
    font-size:21px;
    margin:0 0 8px;
}

.muted{
    color:var(--muted);
    font-size:14px;
}

.divider{
    text-align:center;
    color:var(--muted);
    margin:18px 0;
    position:relative;
}

/* =========================
   ALERT
========================= */

.alert{
    background:#e6fff3;
    border:1px solid #9fe0bd;
    border-radius:12px;
    padding:12px;
    margin:15px 0;
}

.alert.danger{
    background:#fff0f0;
    border-color:#ffc9c9;
}

/* =========================
   WAITING BOX
========================= */

.waiting{
    display:none;
    margin-top:15px;
    padding:15px;
    background:#eef8f1;
    border:1px solid #b7e0c2;
    border-radius:12px;
    color:#146c2e;
    font-weight:700;
}

/* =========================
   TABLE
========================= */

.admin-table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    background:#fff;
    border:1px solid var(--line);
    border-radius:14px;
    overflow:hidden;
}

.admin-table th,
.admin-table td{
    border-bottom:1px solid #e8f0eb;
    padding:10px;
    text-align:left;
    vertical-align:top;
}

.admin-table th{
    background:#f4fbf7;
    color:var(--brand2);
}

/* =========================
   STATS
========================= */

.stats{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
    gap:14px;
}

/* =========================
   FOOTER
========================= */

footer{
    border-top:1px solid var(--line);
    margin-top:40px;
    color:var(--muted);
    background:#fff;
}

/* =========================
   HOME
========================= */

.hero-card{
    padding:28px 32px;
}

.hero-card h1{
    margin-bottom:22px;
}

.hero-search{
    position:relative;
    display:flex;
    align-items:center;
    gap:0;
}

.hero-search input{
    margin:0;
    padding-right:105px;
}

.hero-search button{
    position:absolute;
    right:7px;
    top:50%;
    transform:translateY(-50%);
    padding:8px 18px;
    border-radius:9px;
    box-shadow:none;
}

.hero-search button:hover{
    transform:translateY(-50%);
}

.sidebar-widget h3{
    margin-top:0;
    margin-bottom:14px;
}

.stat-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0;
    overflow:hidden;
    border-radius:14px;
}

.stat-box{
    min-height:86px;
    padding:14px 10px;
    color:#fff;
    text-align:center;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.stat-box strong{
    font-size:30px;
    line-height:1;
    letter-spacing:1px;
}

.stat-box span{
    margin-top:8px;
    text-transform:uppercase;
    font-weight:800;
    font-size:13px;
}

.stat-green{background:#18b985;}
.stat-teal{background:#18c6a5;}
.stat-yellow{background:#f6c916;color:#fff;}
.stat-orange{background:#e97d1c;}

.visit-box{
    background:#fff8b8;
    margin-top:16px;
    padding:14px;
    border-radius:12px;
    text-align:center;
}

.visit-box p{
    margin:4px 0;
}

.visit-box b{
    color:#e00000;
}

.category-link{
    display:flex;
    justify-content:space-between;
    gap:10px;
    padding:9px 0;
    color:var(--brand2);
    text-decoration:none;
    border-bottom:1px solid #edf3ef;
}

.category-link:hover{
    color:var(--brand);
}

.question-row{
    padding:8px 0;
    border-bottom:1px solid #edf3ef;
}

.question-row:last-child{
    border-bottom:0;
}

.question-row .qtitle{
    margin-bottom:1px;
}

/* =========================
   MARKDOWN
========================= */

.markdown-body{
    font-size:16px;
    line-height:1.9;
    color:#111827;
}

.markdown-body p{
    margin:0 0 14px;
}

.markdown-body strong{
    font-weight:700;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4{
    margin:22px 0 10px;
    line-height:1.35;
    font-weight:700;
    color:#0f172a;
}

.markdown-body h1{font-size:24px;}
.markdown-body h2{font-size:21px;}
.markdown-body h3{font-size:18px;}
.markdown-body h4{font-size:17px;}

.markdown-body ul,
.markdown-body ol{
    margin:0 0 16px 24px;
    padding:0;
}

.markdown-body li{
    margin-bottom:8px;
}

.markdown-body blockquote{
    margin:16px 0;
    padding:12px 16px;
    border-left:4px solid #0d6efd;
    background:#f8fafc;
}

.markdown-body a{
    color:#0d6efd;
    text-decoration:underline;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:900px){

    .site-nav{
        flex-direction:column;
        align-items:flex-start;
    }

    .top-nav{
        width:100%;
    }

    .top-nav a,
    .menu-btn,
    .top-nav button{
        flex:1 1 auto;
        text-align:center;
    }

}

@media(max-width:800px){

    .grid{
        grid-template-columns:1fr;
    }

    .wrap{
        padding:14px;
    }

    .card{
        padding:16px;
    }

    .admin-table{
        display:block;
        overflow-x:auto;
    }

    h1{
        font-size:38px;
    }

    .hero-card{
        padding:20px;
    }

    .hero-search input{
        padding-right:92px;
    }

    .hero-search button{
        padding:8px 13px;
    }

}

@media(max-width:600px){

    .site-nav{
        gap:14px;
    }

    .logo{
        font-size:24px;
    }

    .logo img{
        height:52px;
        width:52px;
        transform:scale(1.35);
    }

    .top-nav{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:6px;
        width:100%;
    }

    .top-nav a,
    .top-nav button{
        width:100%;
        padding:12px 10px;
        font-size:14px;
        text-align:center;
    }

}

@media(max-width:420px){

    .logo{
        font-size:20px;
    }

    .logo img{
        height:46px;
        width:46px;
    }

    h1{
        font-size:30px;
    }

    .top-nav{
        grid-template-columns:1fr;
    }

}