/* =========================
   FORCE HEADER (NO TRANSPARENCY)
========================= */

.main-header {
    background: var(--accent-color) !important;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.main-header.scrolled {
    background: var(--accent-color) !important;
    box-shadow: none !important;
}


/* =========================
   PAGE BASE
========================= */

body {
    background-color: #ffffff !important;
}


/* =========================
   MAIN LAYOUT (WIKIPEDIA PC STYLE) 🖥️
========================= */

.wiki-container {
    display: grid;
    /* Content on left (takes most space), Infobox on right (300px) */
    grid-template-columns: 1fr 300px; 
    grid-template-areas: "content infobox";
    gap: 40px;
    max-width: 1200px;
    margin: 140px auto 80px; /* Container centre mein, par content left aligned */
    padding: 0 30px;
    align-items: start;
}


/* =========================
   RIGHT INFOBOX (WIKI STANDARD) 📋
========================= */

.wiki-infobox {
    grid-area: infobox;
    background: #f8f9fa; /* Wiki infobox background */
    border: 1px solid #a2a9b1; /* Wiki border color */
    padding: 15px;
    height: fit-content;
    font-size: 14px;
}

.wiki-infobox h3 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 12px;
    background: #eaecf0; /* Wiki heading style */
    padding: 8px 0;
    border-top: 1px solid #a2a9b1;
    border-bottom: 1px solid #a2a9b1;
}

.wiki-infobox img {
    width: 100%;
    margin-bottom: 10px;
    border: 1px solid #c8ccd1;
}

.wiki-infobox table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.wiki-infobox th {
    text-align: left;
    padding: 8px 6px;
    color: #202122;
    font-weight: bold;
    width: 40%;
    vertical-align: top;
}

.wiki-infobox td {
    padding: 8px 6px;
    color: #202122;
    vertical-align: top;
}


/* =========================
   LEFT CONTENT (WIKI TEXT) 📝
========================= */

.wiki-content {
    grid-area: content;
    text-align: left; /* Ensuring text stays Wiki style */
}

.wiki-content h1 {
    font-family: 'Georgia', serif; /* Wiki uses serif for H1 */
    font-size: 36px;
    margin-bottom: 15px !important;
    padding-bottom: 8px;
    border-bottom: 1px solid #a2a9b1; /* Wiki bottom line for title */
    color: #000000;
}

.intro {
    font-size: 15.5px;
    line-height: 1.6;
    margin-bottom: 25px !important;
    color: #202122; /* Wiki dark grey text */
}

.wiki-content h2 {
    font-family: 'Arial', sans-serif;
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #a2a9b1; /* Wiki subheading line */
    color: #000000;
}

.wiki-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #202122;
    margin-bottom: 15px;
}

.wiki-content ul {
    padding-left: 25px;
    margin-bottom: 15px;
}

.wiki-content li {
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.6;
    color: #202122;
}


/* =========================
   FOOTER (CLEAN & COMPACT)
========================= */

.main-footer {
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 30px 20px;
    text-align: center;
    border-top: 2px solid var(--main-color);
}

.footer-bottom {
    border: none !important;
    padding-top: 10px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--bg-color);
    letter-spacing: 0.5px;
}


/* =========================
   MOBILE OPTIMIZATION 📱
========================= */

@media (max-width: 768px) {
    .wiki-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "infobox"  /* Mobile par wiki infobox upar hota hai ya neeche? Yaha upar set kiya hai */
            "content";
        gap: 30px;
        margin: 110px auto 60px; 
        padding: 0 15px;
    }

    .wiki-content h1 {
        font-size: 28px;
    }

    .wiki-content h2 {
        font-size: 20px;
    }
}
