/* -------------------------------------------------- */
/* CORPORATE THEME - Light, Clean, Professional */
/* -------------------------------------------------- */

html {
    height: 100%;
    overflow: hidden;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    background: #ffffff;
    color: #374151;
    line-height: 1.6;
    height: 100%;
    overflow: hidden;
}

/* -------------------------------------------------- */
/* PREMIUM CORPORATE NAVIGATION BAR (LIGHT VERSION) */
/* -------------------------------------------------- */

header {
    background: #ffffff;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    border-bottom: 1px solid #e5e7eb;
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 10px 0;
    background: #f3f4f6;
}

nav a {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: 0.25s ease;
}

nav a:hover {
    background: #e0e7ff;
    transform: translateY(-2px);
}

nav .active {
    background: #c7d2fe;
    color: #1e3a8a;
}

/* -------------------------------------------------- */
/* HERO HEADER — BOOSTED PRESENCE */
/* -------------------------------------------------- */

.hero-header {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    padding: 40px 20px;
    border-bottom: 1px solid #e5e7eb;
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    z-index: 9;
    text-align: center;
}

.hero-content {
    max-width: 1100px;
    margin: auto;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #1e3a8a;
}

.hero-content p {
    font-size: 20px;
    font-weight: 400;
    color: #4b5563;
    margin: 0;
    opacity: 0.95;
}

/* -------------------------------------------------- */
/* MAIN LAYOUT — FIXED OVERLAP */
/* -------------------------------------------------- */

main {
    width: 100%;
    max-width: none;

    /* FIX: Increased to match new hero height */
    margin-top: 280px;
    height: calc(100vh - 280px);

    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: thin;
    scrollbar-color: #93c5fd #e5e7eb;
}

main::-webkit-scrollbar {
    width: 10px;
}

main::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 10px;
}

main::-webkit-scrollbar-thumb {
    background: #93c5fd;
    border-radius: 10px;
}

main::-webkit-scrollbar-thumb:hover {
    background: #60a5fa;
}

.main-inner {
    max-width: 1100px;
    margin: auto;
    padding: 32px;
}

/* -------------------------------------------------- */
/* HEADINGS */
/* -------------------------------------------------- */

h1, h2, h3 {
    color: #1e3a8a;
    font-weight: 600;
}

h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 15px;
}

h3 {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 10px;
}

/* -------------------------------------------------- */
/* CARDS */
/* -------------------------------------------------- */

.card {
    background: #ffffff;
    padding: 18px;
    border-radius: 10px;
    border-left: 3px solid #3b82f6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* -------------------------------------------------- */
/* ARTICLE GRID */
/* -------------------------------------------------- */

.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

/* -------------------------------------------------- */
/* ARTICLE */
/* -------------------------------------------------- */

.article {
    font-size: 18px;
    line-height: 1.75;
    color: #374151;
}

.article p {
    margin: 18px 0;
}

.article ul {
    margin: 20px 0;
    padding-left: 25px;
}

.article ul li {
    margin-bottom: 12px;
}

/* -------------------------------------------------- */
/* ARTICLE IMAGES */
/* -------------------------------------------------- */

.article figure {
    margin: 40px auto;
    text-align: center;
}

.article img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    margin: 20px auto;
}

/* -------------------------------------------------- */
/* CODE BLOCK */
/* -------------------------------------------------- */

pre {
    background: #f3f4f6;
    color: #1e3a8a;
    padding: 24px;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 24px;
    line-height: 1.8;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
}

/* -------------------------------------------------- */
/* STRONG */
/* -------------------------------------------------- */

strong {
    color: #2563eb;
    font-weight: 700;
}

/* -------------------------------------------------- */
/* TABLE OF CONTENTS */
/* -------------------------------------------------- */

.toc {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.toc h3 {
    margin-top: 0;
    color: #1e3a8a;
}

.toc ul {
    list-style: none;
    padding-left: 0;
}

.toc li {
    margin: 10px 0;
}

.toc a {
    color: #2563eb;
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

/* -------------------------------------------------- */
/* TABLES */
/* -------------------------------------------------- */

table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

td, th {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
}

/* -------------------------------------------------- */
/* TABLET */
/* -------------------------------------------------- */

@media (max-width: 768px) {

    main {
        margin-top: 280px;
        height: calc(100vh - 280px);
    }

    .main-inner {
        padding: 12px;
    }

    .hero-header {
        padding: 30px 16px;
        top: 48px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 8px;
    }

    nav a {
        text-align: center;
        font-size: 12px;
        padding: 6px;
    }
}
