/* 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: #1a202c;
    background-color: #f7fafc;
    font-size: 17px;
}

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

h2 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-top: 3rem !important;
    margin-bottom: 1.25rem !important;
    color: #2d3748 !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: #2d3748 !important;
}

p {
    margin-bottom: 1.25rem;
    font-size: 17px;
    line-height: 1.7;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, royalblue 0%, #5a67d8 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.navbar-logo {
    width: 40px;
    height: 40px;
}

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

.navbar-menu li {
    list-style: none !important;
    margin-bottom: 0 !important;
}

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

.navbar-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    font-size: 16px;
}

.navbar-menu a:hover {
    opacity: 0.8;
}

.cta-button {
    background-color: purple;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    white-space: nowrap;
    text-align: center;
    font-size: 16px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 0, 128, 0.3);
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, royalblue 100%);
    color: white !important;
    padding: 4rem 1.5rem !important;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    color: white !important;
    font-size: 2.75rem !important;
    margin-bottom: 1.5rem !important;
}

.hero-content p {
    font-size: 18px !important;
    margin-bottom: 1rem !important;
    color: white !important;
    line-height: 1.7 !important;
}

.hero-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero .cta-button {
    margin-top: 1.5rem !important;
    font-size: 18px !important;
    padding: 1rem 2rem !important;
}

/* Table of Contents */
.toc {
    max-width: 1280px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.toc-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.toc-button {
    background-color: white;
    border: 2px solid royalblue;
    color: royalblue;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 16px;
}

.toc-button:hover {
    background-color: royalblue;
    color: white;
}

/* Main Content */
.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.content-section {
    background: white;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Cards */
.card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    border-left: 4px solid royalblue;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

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

ul li, ol li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
    font-size: 17px;
}

ul li::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0.6rem;
    width: 0;
    height: 0;
    border-left: 6px solid purple;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

ol {
    counter-reset: item;
}

ol li::before {
    content: counter(item) ".";
    counter-increment: item;
    position: absolute;
    left: 0.5rem;
    color: purple;
    font-weight: 600;
}

/* Images */
picture, img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.content-section picture {
    display: block;
    margin: 2rem 0;
}

.content-section img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 600px;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 16px;
}

th {
    background-color: royalblue;
    color: white;
    font-weight: 600;
}

tr:hover {
    background-color: #f7fafc;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 4rem;
}

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

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

.footer-column h3 {
    color: white !important;
    font-size: 1.25rem !important;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
    padding-left: 0 !important;
}

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

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 16px;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 1.5rem;
    text-align: center;
    color: #cbd5e0;
    font-size: 16px;
}

/* Icons */
.material-icons {
    font-size: 24px;
    vertical-align: middle;
    color: royalblue;
}

.icon-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.icon-list li .material-icons {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

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

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

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

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: royalblue;
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

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

    .menu-toggle {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 3rem 1.5rem !important;
    }

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

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

    .content-section {
        padding: 1.5rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

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

    .toc-buttons {
        flex-direction: column;
    }

    .toc-button {
        width: 100%;
        text-align: center;
    }
}

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

    .navbar-brand {
        font-size: 1.25rem;
    }

    .navbar-logo {
        width: 32px;
        height: 32px;
    }

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

    .cta-button {
        padding: 0.625rem 1.25rem !important;
        font-size: 15px !important;
    }
}
