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

:root {
    --primary-color: mediumpurple;
    --accent-color: skyblue;
    --text-color: #333;
    --bg-color: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 18px;
    overflow-x: hidden;
    padding-top: 76px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700 !important;
    margin-bottom: 1.2rem !important;
    margin-top: 2rem !important;
}

h1 {
    font-size: 2.8rem !important;
    line-height: 1.2 !important;
}

h2 {
    font-size: 2.2rem !important;
    line-height: 1.3 !important;
    color: var(--primary-color) !important;
}

h3 {
    font-size: 1.8rem !important;
    line-height: 1.4 !important;
    color: var(--text-color) !important;
}

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

/* Navigation */
.navbar {
    background-color: var(--primary-color) !important;
    padding: 1rem 0 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand:hover {
    color: var(--accent-color) !important;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500 !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

.navbar-toggler {
    border-color: #ffffff !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Remove markers from navbar */
.navbar-nav {
    list-style: none !important;
}

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

/* Hero Section */
.hero-section {
    position: relative !important;
    min-height: 500px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    padding: 100px 0 !important;
    margin-bottom: 3rem !important;
}

.hero-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(147, 112, 219, 0.75) !important;
}

.hero-content {
    position: relative !important;
    z-index: 2 !important;
    text-align: center !important;
    color: #ffffff !important;
    max-width: 900px !important;
    padding: 2rem !important;
}

.hero-content h1 {
    color: #ffffff !important;
    font-size: 3rem !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3) !important;
}

.hero-content p {
    color: #ffffff !important;
    font-size: 1.3rem !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
}

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

.table-of-contents ol {
    margin: 0;
    padding-left: 1.5rem;
    list-style: none;
    counter-reset: toc-counter;
}

.table-of-contents ol li {
    counter-increment: toc-counter;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 0;
}

.table-of-contents ol li::before {
    content: counter(toc-counter) ". ";
    color: var(--primary-color);
    font-weight: 700;
}

.table-of-contents a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: var(--primary-color);
}

/* Content Sections */
.content-section {
    padding: 3rem 0;
}

.section-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.12);
}

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

ul li, ol li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

ul li::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.6rem !important;
    width: 10px !important;
    height: 10px !important;
    background-color: var(--accent-color) !important;
    border-radius: 50% !important;
}

ol {
    counter-reset: item;
}

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

/* Reset markers */
ul, ol {
    list-style-type: none !important;
}

li::marker {
    display: none !important;
    content: none !important;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    min-width: 600px;
}

thead {
    background-color: var(--primary-color);
    color: #ffffff;
}

thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
}

tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

tbody tr:hover {
    background-color: #f8f9fa;
}

tbody td {
    padding: 1rem;
    font-size: 16px;
}

/* Images */
picture img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

/* Buttons */
.btn-conversion {
    display: inline-block !important;
    padding: 0.9rem 2.5rem !important;
    background-color: transparent !important;
    border: 2px solid var(--accent-color) !important;
    color: var(--accent-color) !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    text-decoration: none !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.btn-conversion:hover {
    background-color: var(--accent-color) !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(135, 206, 235, 0.4);
}

.btn-conversion-primary {
    border-color: #ffffff !important;
    color: #ffffff !important;
}

.btn-conversion-primary:hover {
    background-color: #ffffff !important;
    color: var(--primary-color) !important;
}

.btn-nav {
    display: inline-block !important;
    padding: 0.6rem 1.5rem !important;
    background-color: var(--accent-color) !important;
    border: 2px solid var(--accent-color) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}

.btn-nav:hover {
    background-color: transparent !important;
    color: var(--accent-color) !important;
}

/* Footer */
footer {
    background-color: #2c2c2c;
    color: #ffffff;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

footer h5 {
    color: var(--accent-color) !important;
    margin-bottom: 1.5rem !important;
    font-size: 1.3rem !important;
}

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

footer ul li {
    margin-bottom: 0.8rem;
    padding-left: 0 !important;
}

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

footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    color: #999;
    font-size: 16px;
}

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

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

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

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

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

    .section-card {
        padding: 1.5rem;
    }

    body {
        font-size: 17px;
    }

    p {
        font-size: 17px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem !important;
    }

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

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

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

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

    .navbar-brand {
        font-size: 1.2rem !important;
    }
}
