/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: #ffffff;
}

/* SUPER IMPORTANT: Tailwind CSS Override for Navigation Menu */
.nav-menu li {
    margin-bottom: 0 !important;
    list-style: none !important;
}

.nav-menu li::before,
.nav-menu li::after {
    display: none !important;
    content: none !important;
}

/* Footer Menu Styles */
.footer-menu li {
    margin-bottom: 0 !important;
    list-style: none !important;
}

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

/* Header and Typography */
h1 {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
    color: #0f172a !important;
}

h2 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-top: 3rem !important;
    margin-bottom: 1.5rem !important;
    color: #1e293b !important;
}

h3 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    color: #334155 !important;
}

p {
    font-size: 1.125rem !important;
    margin-bottom: 1.25rem !important;
    color: #475569 !important;
}

strong {
    font-weight: 600 !important;
    color: #1e293b !important;
}

/* List Styles */
ul, ol {
    margin-left: 0 !important;
    padding-left: 2rem !important;
    margin-bottom: 1.5rem !important;
    list-style: none !important;
}

ul li, ol li {
    font-size: 1.125rem !important;
    margin-bottom: 0.75rem !important;
    padding-left: 0.5rem !important;
    position: relative;
    color: #475569 !important;
}

ul li::before {
    content: "★" !important;
    color: #FFFFF0 !important;
    position: absolute;
    left: -1.5rem;
    font-size: 1rem;
}

ol {
    counter-reset: item;
}

ol li::before {
    content: counter(item) ". " !important;
    counter-increment: item;
    color: #FFFFF0 !important;
    position: absolute;
    left: -1.5rem;
    font-weight: 600;
}

/* Logo Styles */
.logo-img {
    box-shadow: none !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0047AB 0%, #0066CC 100%) !important;
    padding: 4rem 1.5rem !important;
    border-radius: 0 !important;
}

.hero-section h1 {
    color: #FFFFF0 !important;
    font-size: 3rem !important;
}

.hero-section p {
    color: #FFFFF0 !important;
    font-size: 1.25rem !important;
}

/* Section Styles */
.content-section {
    padding: 3rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card Styles */
.card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: #0047AB !important;
}

/* Button Styles */
.btn-primary {
    display: inline-block !important;
    background-color: #FFFFF0 !important;
    color: #0047AB !important;
    padding: 1rem 2rem !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 0.5rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.btn-primary:hover {
    background-color: #FFFACD !important;
    transform: translateY(-2px) !important;
}

.btn-outline {
    display: inline-block !important;
    background-color: transparent !important;
    color: #0047AB !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border: 2px solid #0047AB !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    text-align: center !important;
    margin: 0.5rem !important;
}

.btn-outline:hover {
    background-color: #0047AB !important;
    color: #FFFFF0 !important;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

table th {
    background-color: #0047AB;
    color: #FFFFF0;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

table tr:hover {
    background-color: #f8fafc;
}

/* Image Styles */
img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.navbar {
    background-color: #0047AB;
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #FFFFF0;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none !important;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-menu a {
    color: #FFFFF0;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #FFFACD;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #FFFFF0;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Footer */
.footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 4rem;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #FFFFF0 !important;
    margin-top: 0 !important;
}

.footer-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-menu li {
    margin-bottom: 0.75rem !important;
}

.footer-menu a {
    color: #cbd5e1 !important;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #FFFFF0 !important;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: #94a3b8 !important;
    font-size: 0.875rem !important;
}

/* Table of Contents */
.toc {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 3rem 0;
    padding: 2rem;
    background-color: #f8fafc;
    border-radius: 0.75rem;
}

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

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

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

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

    .hero-section .container > div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #0047AB;
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 2rem 1rem !important;
    }

    .content-section {
        padding: 2rem 1rem;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        text-align: center !important;
    }

    img[style*="float"] {
        float: none !important;
        max-width: 100% !important;
        margin: 1rem auto !important;
        display: block !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section h1 {
        font-size: 2.5rem !important;
    }
}

/* Icon Styles */
.fa, .fas {
    color: #0047AB;
    margin-right: 0.5rem;
}

.hero-section .fa,
.hero-section .fas {
    color: #FFFFF0;
}
