@charset "UTF-8";

/* ============================================================
   1. Import Fonts
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&family=Nunito:wght@400;600;700&display=swap');

/* ============================================================
   2. CSS Reset
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

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

ol, ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* ============================================================
   3. CSS Variables
   ============================================================ */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #2563eb;
    --accent-color: #f59e0b;
    --text-color: #2c3e50;
    --text-light: #6b7280;
    --background-color: #fafafa;
    --header-height: 100px;
    --font-primary: 'Rubik', sans-serif;
    --font-secondary: 'Nunito', sans-serif;
}

/* ============================================================
   4. Base Styles
   ============================================================ */
body, html {
    height: 100%;
    font-family: var(--font-secondary);
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 17px;
    line-height: 1.7;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container, .content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================================
   5. Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    margin: 2rem 0 1rem;
    line-height: 1.3;
    color: var(--text-color);
}

h1 {
    font-size: 2.25rem;
    font-weight: 700;
}

h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 3rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

strong, b {
    font-weight: 700;
    color: #1f2937;
}

em {
    font-style: italic;
    color: var(--text-light);
}

/* ============================================================
   6. Header
   ============================================================ */
.header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header .logo img {
    width: auto;
    height: 60px;
}

.header h1 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
    font-weight: 600;
}

/* ============================================================
   7. Main Content
   ============================================================ */
.main {
    flex: 1 0 auto;
    padding: 2rem 0;
}


.updated-info {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ============================================================
   8. Content Sections
   ============================================================ */
section {
    margin-bottom: 3rem;
}

section img {
    margin: 2rem auto;
    max-width: 75%;
}

/* Table of Contents */
#table-of-contents {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

#table-of-contents h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

#table-of-contents ul {
    list-style: none;
    padding-left: 0;
}

#table-of-contents li {
    margin-bottom: 0.75rem;
}

#table-of-contents a {
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.2s ease;
    text-decoration: underline;
}

#table-of-contents a:hover {
    color: var(--secondary-color);
}

/* Lists */
ul, ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

ul {
    list-style: none;
}

ul li {
    position: relative;
    margin-bottom: 0.875rem;
    padding-left: 1.25rem;
}

ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25em;
}

ol {
    list-style: decimal;
    list-style-position: outside;
}

ol li {
    margin-bottom: 0.875rem;
    padding-left: 0.5rem;
}

/* Links */
a {
    color: #dc2626;
    font-weight: 600;
    transition: color 0.2s ease;
}

a:hover {
    color: #b91c1c;
    text-decoration: underline;
}

/* Horizontal Rules */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e5e7eb 20%, #e5e7eb 80%, transparent);
    margin: 3rem 0;
}

/* ============================================================
   9. Author Box
   ============================================================ */
.author-box {
    background: #f9fafb;
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.author-box .author-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.author-box .author-avatar {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.author-box .author-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.author-box .author-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.author-box .author-bio {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   10. Footer
   ============================================================ */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ============================================================
   11. Mobile Responsive
   ============================================================ */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.125rem;
    }

    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    p {
        font-size: 1rem;
    }

    section img {
        max-width: 90%;
    }

    .hero {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .header .logo img {
        height: 40px;
    }

    .header h1 {
        font-size: 1rem;
    }

    h1 {
        font-size: 1.625rem;
    }

    h2 {
        font-size: 1.375rem;
    }

    .container, .content-container {
        padding: 0 1rem;
    }

    section img {
        max-width: 100%;
    }
}
