/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #2c3e50;
}

/* Brand Colors */
:root {
    --primary-color: indigo;
    --accent-color: midnightblue;
    --text-color: #2c3e50;
    --bg-light: #f8f9fa;
}

/* Navigation Menu */
.navbar {
    background-color: var(--primary-color) !important;
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    color: white !important;
    font-size: 24px !important;
    font-weight: 700 !important;
}

.navbar-brand .logo-svg {
    width: 40px;
    height: 40px;
    margin-left: 10px;
}

.navbar-brand .logo-svg img {
    box-shadow: none !important;
}

.navbar-menu {
    background-color: var(--primary-color) !important;
}

.navbar-item {
    color: white !important;
    font-size: 16px;
    list-style: none !important;
}

.navbar-item::before,
.navbar-item::after {
    display: none !important;
    content: none !important;
}

.navbar-item:hover {
    background-color: var(--accent-color) !important;
    color: white !important;
}

.navbar-burger {
    color: white !important;
}

.navbar-start .navbar-item,
.navbar-end .navbar-item {
    list-style: none !important;
    list-style-type: none !important;
}

/* CTA Buttons in Navbar */
.navbar-cta {
    background-color: #ffd700 !important;
    color: var(--accent-color) !important;
    font-weight: 700 !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    margin-left: 10px !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.navbar-cta:hover {
    background-color: #ffed4e !important;
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color) !important;
    color: white !important;
    padding: 4rem 1.5rem !important;
    text-align: center !important;
}

.hero h1 {
    font-size: 42px !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.2 !important;
    color: white !important;
}

.hero p {
    font-size: 20px !important;
    margin-bottom: 1rem !important;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: white !important;
}

.hero .button {
    margin-top: 2rem !important;
    font-size: 18px !important;
    padding: 10px 20px  !important;
    background-color: #ffd700 !important;
    color: var(--accent-color) !important;
    font-weight: 700 !important;
    border: none !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.hero .button:hover {
    background-color: #ffed4e !important;
}

/* Table of Contents */
.toc-section {
    background-color: var(--bg-light);
    padding: 3rem 1.5rem;
}

.toc-section .box {
    max-width: 800px;
    margin: 0 auto;
}

.toc-section ul {
    list-style: none !important;
    padding-left: 0 !important;
}

.toc-section ul::before,
.toc-section ul::after {
    display: none !important;
    content: none !important;
}

.toc-section li {
    margin-bottom: 0.75rem;
    list-style: none !important;
    list-style-type: none !important;
}

.toc-section li::before,
.toc-section li::after,
.toc-section li::marker {
    display: none !important;
    content: none !important;
}

.toc-section a {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

.toc-section a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Sections */
section {
    padding: 3rem 1.5rem;
}

section:nth-child(even) {
    background-color: var(--bg-light);
}

section h2 {
    font-size: 36px !important;
    font-weight: 700 !important;
    margin-bottom: 2rem !important;
    color: var(--primary-color) !important;
    text-align: center;
}

section h3 {
    font-size: 26px !important;
    font-weight: 700 !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    color: var(--accent-color) !important;
}

section p {
    font-size: 18px;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

section img {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

/* Cards */
.card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    margin-top: 0 !important;
}

/* Lists */
ul, ol {
    margin-left: 0;
    padding-left: 0;
    list-style: none;
}

ul li, ol li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    font-size: 18px;
    line-height: 1.6;
    list-style: none !important;
    list-style-type: none !important;
}

ul li::marker,
ol li::marker {
    display: none !important;
    content: none !important;
}

ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 20px;
}

ol {
    counter-reset: item;
}

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

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 18px;
}

table thead {
    background-color: var(--primary-color);
    color: white;
}

table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 18px;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    font-size: 18px;
}

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

/* Conversion Buttons */
.conversion-button {
    display: inline-block;
    background-color: #ffd700 !important;
    color: var(--accent-color) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    padding: 1rem 2rem !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    border: none !important;
    white-space: nowrap !important;
    text-align: center !important;
    cursor: pointer;
}

.conversion-button:hover {
    background-color: #ffed4e !important;
    color: var(--accent-color) !important;
}

/* Footer */
.footer {
    background-color: var(--accent-color) !important;
    color: white !important;
    padding: 3rem 1.5rem 2rem !important;
}

.footer h4 {
    color: white !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
}

.footer ul {
    list-style: none !important;
    padding-left: 0 !important;
}

.footer ul::before,
.footer ul::after {
    display: none !important;
    content: none !important;
}

.footer li {
    margin-bottom: 0.5rem;
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
}

.footer li::before,
.footer li::after,
.footer li::marker {
    display: none !important;
    content: none !important;
}

.footer a {
    color: white !important;
    text-decoration: none;
    font-size: 16px;
}

.footer a:hover {
    color: #ffd700 !important;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 16px;
}

/* Material Icons */
.material-icons {
    color: var(--primary-color);
    font-size: 24px;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hero h1 {
        font-size: 32px !important;
    }

    .hero p {
        font-size: 18px !important;
    }

    section h2 {
        font-size: 28px !important;
    }

    section h3 {
        font-size: 22px !important;
    }

    body {
        font-size: 16px;
    }

    table {
        font-size: 16px;
    }

    table th,
    table td {
        font-size: 16px;
        padding: 0.75rem;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 26px !important;
    }

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

    section h2 {
        font-size: 24px !important;
    }

    section h3 {
        font-size: 20px !important;
    }
}

/* Ensure proper contrast */
.has-text-white {
    color: white !important;
}

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

.has-background-accent {
    background-color: var(--accent-color) !important;
}
