/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Root variables */
:root {
    --primary-color: #ff6347;
    --accent-color: #98FF98;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
}

/* Body and typography */
body {
    font-family: 'Roboto', sans-serif !important;
    font-size: 18px !important;
    line-height: 1.8 !important;
    color: var(--text-dark) !important;
    background-color: var(--bg-light) !important;
}

/* Headers */
h1 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.2 !important;
}

h2 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    margin-top: 3rem !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.3 !important;
}

h3 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.4 !important;
}

/* Paragraphs */
p {
    font-size: 18px !important;
    margin-bottom: 1.25rem !important;
    color: var(--text-dark) !important;
}

/* Lists - Reset default styles and add custom markers */
ul, ol {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 1.5rem !important;
}

/* Content lists with custom markers */
.content-section ul li,
.content-section ol li {
    position: relative !important;
    padding-left: 2rem !important;
    margin-bottom: 0.75rem !important;
    font-size: 18px !important;
    line-height: 1.7 !important;
}

.content-section ul li::before {
    content: "—" !important;
    position: absolute !important;
    left: 0 !important;
    color: var(--accent-color) !important;
    font-weight: 700 !important;
}

.content-section ol li::before {
    counter-increment: list-counter !important;
    content: counter(list-counter) "." !important;
    position: absolute !important;
    left: 0 !important;
    color: var(--accent-color) !important;
    font-weight: 700 !important;
}

.content-section ol {
    counter-reset: list-counter !important;
}

/* Navigation and footer - NO markers */
nav ul,
nav ol,
footer ul,
footer ol,
.toc ul,
.toc ol {
    list-style: none !important;
}

nav ul li,
nav ol li,
footer ul li,
footer ol li,
.toc ul li,
.toc ol li {
    padding-left: 0 !important;
}

nav ul li::before,
nav ol li::before,
footer ul li::before,
footer ol li::before,
.toc ul li::before,
.toc ol li::before,
nav ul li::marker,
nav ol li::marker,
footer ul li::marker,
footer ol li::marker,
.toc ul li::marker,
.toc ol li::marker {
    display: none !important;
    content: none !important;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%) !important;
    padding: 4rem 0 !important;
    min-height: 500px !important;
}

.hero h1 {
    font-size: 3rem !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    margin-bottom: 1.5rem !important;
}

.hero p {
    font-size: 1.25rem !important;
    color: var(--text-light) !important;
    margin-bottom: 2rem !important;
}

.hero-image {
    border-radius: 1rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Navigation */
.navbar {
    background-color: var(--bg-white) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

.navbar a {
    color: var(--text-dark) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    transition: color 0.3s ease !important;
}

.navbar a:hover {
    color: var(--primary-color) !important;
}

.logo-container {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

footer p {
    color: var(--text-light) !important;
}

.logo-container svg {
    width: 40px !important;
    height: 40px !important;
}

.brand-name {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color) !important;
    color: white !important;
    padding: 0.875rem 2rem !important;
    border-radius: 0.5rem !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    border: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(255, 99, 71, 0.3) !important;
}

.btn-outline {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.btn-outline:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* Cards */
.card {
    background-color: var(--bg-white) !important;
    border-radius: 1rem !important;
    padding: 2rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 2rem !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Table styles */
.table-container {
    overflow-x: auto !important;
    margin: 2rem 0 !important;
    border-radius: 1rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

table {
    width: 100% !important;
    border-collapse: collapse !important;
    background-color: var(--bg-white) !important;
    font-size: 16px !important;
}

thead {
    background-color: var(--primary-color) !important;
}

thead th {
    color: white !important;
    font-weight: 600 !important;
    padding: 1rem !important;
    text-align: left !important;
    font-size: 18px !important;
}

tbody td {
    padding: 1rem !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-dark) !important;
    font-size: 16px !important;
}

tbody tr:hover {
    background-color: var(--bg-light) !important;
}

/* Images */
img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 1rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

picture {
    display: block !important;
    margin: 2rem 0 !important;
}

/* Icons */
.icon {
    color: var(--accent-color) !important;
    margin-right: 0.5rem !important;
}

/* Footer */
footer {
    background-color: var(--text-dark) !important;
    color: white !important;
    padding: 3rem 0 1.5rem !important;
    margin-top: 4rem !important;
}

footer a {
    color: white !important;
    text-decoration: none !important;
    font-size: 16px !important;
    transition: color 0.3s ease !important;
}

footer a:hover {
    color: var(--accent-color) !important;
}

footer h4 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    color: white !important;
}

.footer-copyright {
    text-align: center !important;
    padding-top: 2rem !important;
    margin-top: 2rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Table of Contents */
.toc {
    margin: 3rem 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    justify-content: center !important;
}

/* Mobile menu toggle */
.mobile-menu-btn {
    display: none !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0.5rem !important;
}

.mobile-menu-btn span {
    display: block !important;
    width: 25px !important;
    height: 3px !important;
    background-color: var(--text-dark) !important;
    margin: 5px 0 !important;
    transition: 0.3s !important;
}

/* Responsive design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    .hero h1 {
        font-size: 2rem !important;
    }

    .hero p {
        font-size: 1rem !important;
    }

    .hero {
        padding: 2rem 0 !important;
    }

    .mobile-menu-btn {
        display: block !important;
    }

    .nav-links {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background-color: var(--bg-white) !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
        flex-direction: column !important;
        padding: 1rem !important;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links a {
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid var(--border-color) !important;
    }

    .card {
        padding: 1.5rem !important;
    }

    .toc {
        justify-content: flex-start !important;
    }

    footer {
        text-align: center !important;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px !important;
    }

    p {
        font-size: 16px !important;
    }

    .content-section ul li,
    .content-section ol li {
        font-size: 16px !important;
    }

    .btn-primary,
    .btn-outline {
        font-size: 16px !important;
        padding: 0.75rem 1.5rem !important;
    }
}

/* Utility classes */
.section {
    padding: 3rem 0 !important;
}

.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
}

.text-center {
    text-align: center !important;
}

.mt-4 {
    margin-top: 2rem !important;
}

.mb-4 {
    margin-bottom: 2rem !important;
}
