/* ==================================================
   RESET & BASE
================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans Devanagari', system-ui, sans-serif;
    background: #f7f8fa;
    color: #1f2937;
    line-height: 1.7;
}

/* ==================================================
   LAYOUT
================================================== */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 16px;
}

.site-content {
    padding-top: 90px; /* header height compensation */
    min-height: 70vh;
}

/* ==================================================
   HEADER (FIXED)
================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo */
.logo {
    text-decoration: none;
    color: #111827;
}

.logo-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.logo-sub {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
}

/* Navigation */
.main-nav a {
    margin-left: 22px;
    text-decoration: none;
    font-size: 0.95rem;
    color: #374151;
    font-weight: 500;
}

.main-nav a:hover {
    color: #2563eb;
}

/* ==================================================
   FOOTER
================================================== */
.site-footer {
    background: #111827;
    color: #d1d5db;
    margin-top: 40px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 0.9rem;
}

.footer-left {
    max-width: 600px;
}

.footer-right {
    text-align: right;
}

/* ==================================================
   CONTENT (ARTICLES / QUESTIONS)
================================================== */
.article-box {
    background: #ffffff;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.article-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.article-body {
    font-size: 0.95rem;
    color: #374151;
    white-space: pre-wrap; /* IMPORTANT for Marathi text */
    word-break: break-word;
}

/* ==================================================
   RESPONSIVE
================================================== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }

    .main-nav {
        margin-top: 6px;
    }

    .main-nav a {
        margin: 0 10px;
    }

    .footer-inner {
        text-align: center;
    }

    .footer-right {
        margin-top: 10px;
        text-align: center;
    }
}



/* ==================================================
   2 COLUMN PAGE LAYOUT
================================================== */
.page-layout {
    display: grid;
    grid-template-columns: 3fr 1fr; /* 75% / 25% */
    gap: 24px;
    align-items: flex-start;
}

/* Main content */
.main-column {
    width: 100%;
}

/* Sidebar */
.sidebar {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    position: sticky;
    top: 90px; /* below fixed header */
}

/* Sidebar blocks */
.sidebar-box {
    margin-bottom: 20px;
}

.sidebar-box h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 6px;
}

/* User menu */
.user-menu a {
    display: block;
    padding: 6px 0;
    text-decoration: none;
    color: #374151;
    font-size: 0.9rem;
}

.user-menu a:hover {
    color: #2563eb;
}

/* Ad placeholder */
.ad-box {
    background: #f3f4f6;
    border: 1px dashed #cbd5e1;
    padding: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
}

/* ==================================================
   MOBILE
================================================== */
@media (max-width: 900px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}



/* ==================================================
   HEADER SEARCH
================================================== */
.header-search {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 16px;
}

.header-search input {
    width: 220px;
    padding: 6px 10px;
    font-size: 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
}

.header-search input:focus {
    outline: none;
    border-color: #2563eb;
}

.header-search button {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

.header-search button:hover {
    background: #1e40af;
}

/* ==================================================
   RESPONSIVE HEADER SEARCH
================================================== */
@media (max-width: 900px) {
    .header-search {
        width: 100%;
        margin: 6px 0;
    }

    .header-search input {
        width: 100%;
    }
}




/* ==================================================
   PAGINATION
================================================== */
.pagination-nav {
    margin: 30px 0;
    text-align: center;
}

.pagination-list {
    list-style: none;
    display: inline-flex;
    gap: 6px;
    padding: 0;
}

.pagination-list li a,
.pagination-list li span {
    display: block;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    background: #f3f4f6;
    color: #374151;
}

.pagination-list li a:hover {
    background: #2563eb;
    color: #ffffff;
}

.pagination-list li.active span {
    background: #111827;
    color: #ffffff;
    font-weight: 600;
}

.pagination-list li.dots {
    padding: 6px 8px;
    color: #9ca3af;
}




/* ==================================================
   SIDEBAR BUTTONS (LOGIN / REGISTER)
================================================== */
.sidebar-btn {
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.login-btn {
    background: #2563eb;
    color: #ffffff;
}

.login-btn:hover {
    background: #1e40af;
}

.register-btn {
    background: #16a34a;
    color: #ffffff;
}

.register-btn:hover {
    background: #15803d;
}



