/* ========================================
   BOOTSTRAP FRAMEWORK CUSTOM RULES (IMPORTANT!)
   ======================================== */
.navbar-nav {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    list-style: none !important;
}

.nav-item {
    margin-bottom: 0 !important;
    list-style: none !important;
}

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

/* ========================================
   FONTS
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Cabinet+Grotesk:wght@400;500;700;800;900&display=swap');

/* ========================================
   GLOBAL STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #1a1a1a;
    background-color: #ffffff;
}

/* ========================================
   COLORS
   ======================================== */
:root {
    --primary-amber: #FFC107;
    --accent-magenta: #FF00FF;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-section: #f8f9fa;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800 !important;
    margin-bottom: 1.5rem !important;
    margin-top: 2rem !important;
    line-height: 1.3 !important;
}

h1 {
    font-size: 3rem !important;
    color: var(--text-dark) !important;
}

h2 {
    font-size: 2.5rem !important;
    color: var(--text-dark) !important;
}

h3 {
    font-size: 2rem !important;
    color: var(--text-dark) !important;
}

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

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem !important;
    font-weight: 900 !important;
    color: var(--text-dark) !important;
    text-decoration: none;
}

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

.navbar-brand img {
    width: 40px;
    height: 40px;
    box-shadow: none !important;
}

.navbar-nav {
    align-items: center;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 600 !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--accent-magenta) !important;
}

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

.cta-button-nav {
    background-color: var(--accent-magenta) !important;
    color: var(--text-light) !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-block !important;
    white-space: nowrap !important;
    transition: all 0.3s ease;
}

.cta-button-nav:hover {
    background-color: #d400d4 !important;
    color: var(--text-light) !important;
    transform: translateY(-2px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, #FFC107 0%, #FFD54F 100%) !important;
    padding: 5rem 0 !important;
    margin-bottom: 3rem !important;
}

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

.hero-section p {
    font-size: 1.25rem !important;
    color: var(--text-dark) !important;
    margin-bottom: 2rem !important;
    line-height: 1.8 !important;
}

.hero-section .cta-button {
    background-color: var(--accent-magenta) !important;
    color: var(--text-light) !important;
    border: none !important;
    padding: 1rem 2.5rem !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-block !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
}

.hero-section .cta-button:hover {
    background-color: #d400d4 !important;
    transform: translateY(-2px) !important;
}

.hero-section img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    width: 100%;
    height: auto;
    animation: fadeInRight 0.8s ease;
}

/* ========================================
   TABLE OF CONTENTS
   ======================================== */
.toc-section {
    padding: 3rem 0;
    background-color: var(--bg-section);
}

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

.toc-button {
    background-color: transparent !important;
    color: var(--text-dark) !important;
    border: 2px solid var(--accent-magenta) !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-block !important;
    white-space: nowrap !important;
    transition: all 0.3s ease;
}

.toc-button:hover {
    background-color: var(--accent-magenta) !important;
    color: var(--text-light) !important;
    transform: translateY(-2px);
}

/* ========================================
   SECTIONS
   ======================================== */
.content-section {
    padding: 4rem 0;
}

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

.content-section h2 {
    text-align: center;
    margin-bottom: 3rem !important;
}

/* ========================================
   IMAGES
   ======================================== */
.content-section img {
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.content-section img:hover {
    transform: scale(1.02);
}

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

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

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

ol {
    counter-reset: custom-counter;
}

ol li {
    counter-increment: custom-counter;
}

ol li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--accent-magenta);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

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

/* ========================================
   TABLES
   ======================================== */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-light);
    min-width: 600px;
}

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

thead th {
    padding: 1.25rem;
    font-weight: 800;
    font-size: 1.125rem;
    text-align: left;
    color: var(--text-dark);
    border-bottom: 3px solid var(--accent-magenta);
}

tbody td {
    padding: 1.25rem;
    font-size: 1rem;
    color: var(--text-dark);
    border-bottom: 1px solid #e0e0e0;
}

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

/* ========================================
   CARDS
   ======================================== */
.card {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ========================================
   CONVERSION BUTTONS
   ======================================== */
.cta-button {
    background-color: var(--accent-magenta) !important;
    color: var(--text-light) !important;
    border: none !important;
    padding: 1rem 2.5rem !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-block !important;
    white-space: nowrap !important;
    transition: all 0.3s ease;
    text-align: center !important;
}

.cta-button:hover {
    background-color: #d400d4 !important;
    color: var(--text-light) !important;
    transform: translateY(-2px);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

footer h5 {
    color: var(--primary-amber) !important;
    font-size: 1.25rem !important;
    margin-bottom: 1.5rem !important;
    font-weight: 800 !important;
}

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

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

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

footer a {
    color: var(--text-light) !important;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

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

footer p {
    color: var(--text-light) !important;
    font-size: 0.9rem;
    margin-top: 2rem;
    text-align: center;
    opacity: 0.8;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.content-section {
    animation: fadeIn 0.6s ease;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--bg-light);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
    }

    .cta-button-nav {
        margin-top: 1rem !important;
        display: block !important;
        text-align: center !important;
    }
}

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

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

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

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

    .hero-section {
        padding: 3rem 0 !important;
    }

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

    .toc-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .toc-button {
        text-align: center;
    }

    .content-section {
        padding: 2.5rem 0;
    }
}

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

    h1 {
        font-size: 1.875rem !important;
    }

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

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

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

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

    .cta-button,
    .cta-button-nav {
        padding: 0.875rem 2rem !important;
        font-size: 1rem !important;
    }
}
