/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Import Clash Display font */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&display=swap');

/* Root variables */
:root {
    --primary-color: crimson;
    --accent-color: crimson;
    --dark-crimson: #8b0000;
    --light-bg: #ffffff;
    --text-dark: #212529;
    --text-light: #6c757d;
    --border-color: #dee2e6;
}
.navbar-nav, .nav-item {
	margin-bottom: 0 !important;
}
/* Base styles */
body {
    font-family: 'Clash Display', sans-serif !important;
    font-size: 18px !important;
    line-height: 1.7 !important;
    color: var(--text-dark) !important;
    background-color: #f8f9fa !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Clash Display', sans-serif !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    color: var(--text-dark) !important;
}

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

h2 {
    font-size: 2.5rem !important;
    line-height: 1.3 !important;
    margin-top: 3rem !important;
}

h3 {
    font-size: 2rem !important;
    line-height: 1.4 !important;
    margin-top: 2rem !important;
}

p {
    margin-bottom: 1.5rem !important;
    font-size: 18px !important;
    line-height: 1.8 !important;
}

/* Strong text */
strong {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

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

.navbar-brand {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

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

.navbar-brand img {
    width: 45px !important;
    height: 45px !important;
}

.navbar-nav {
    list-style: none !important;
}

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

.nav-link {
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease !important;
    list-style: none !important;
}

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

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

.navbar-toggler {
    border: 2px solid var(--primary-color) !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='crimson' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%) !important;
    padding: 4rem 0 !important;
    margin-bottom: 3rem !important;
}

.hero-section h1 {
    font-size: 3.5rem !important;
    font-weight: 700 !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 img {
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.2) !important;
}

/* Conversion Buttons */
.btn-conversion {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    padding: 0.875rem 2.5rem !important;
    border: none !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3) !important;
}

.btn-conversion:hover {
    background-color: var(--dark-crimson) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4) !important;
}

/* Table of Contents */
.toc-section {
    background-color: var(--light-bg) !important;
    border-radius: 15px !important;
    padding: 2rem !important;
    margin-bottom: 3rem !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08) !important;
}

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

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

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

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

.toc-section a {
    color: var(--text-dark) !important;
    text-decoration: none !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
    display: block !important;
    padding: 0.5rem 0 !important;
}

.toc-section a:hover {
    color: var(--primary-color) !important;
}

/* Content Sections */
.content-section {
    background-color: var(--light-bg) !important;
    padding: 3rem 0 !important;
}

.section-card {
    background-color: var(--light-bg) !important;
    border-radius: 15px !important;
    padding: 2.5rem !important;
    margin-bottom: 3rem !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08) !important;
}

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

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

ul li::before {
    content: "+" !important;
    position: absolute !important;
    left: 0 !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    line-height: 1.8 !important;
}

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

ol li::before {
    content: "+" !important;
    position: absolute !important;
    left: 0 !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    line-height: 1.8 !important;
}

/* Remove markers from navigation and footer */
.navbar ul,
.navbar ol,
.navbar li,
footer ul,
footer ol,
footer li {
    list-style: none !important;
}

.navbar ul::before,
.navbar ol::before,
.navbar li::before,
footer ul::before,
footer ol::before,
footer li::before,
.navbar ul::after,
.navbar ol::after,
.navbar li::after,
footer ul::after,
footer ol::after,
footer li::after {
    display: none !important;
    content: "" !important;
}

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

table {
    width: 100% !important;
    border-collapse: collapse !important;
    background-color: var(--light-bg) !important;
    font-size: 18px !important;
}

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

thead th {
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 1.25rem !important;
    text-align: left !important;
    font-size: 1.1rem !important;
}

tbody tr {
    border-bottom: 1px solid var(--border-color) !important;
    transition: background-color 0.3s ease !important;
}

tbody tr:hover {
    background-color: #fff5f5 !important;
}

tbody td {
    padding: 1.25rem !important;
    font-size: 18px !important;
}

/* Images */
img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 15px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

picture {
    display: block !important;
    margin: 2rem 0 !important;
}

/* Cards */
.card {
    border: none !important;
    border-radius: 15px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08) !important;
    margin-bottom: 2rem !important;
    overflow: hidden !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

.card-body {
    padding: 2rem !important;
}

.card-title {
    color: var(--primary-color) !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

/* Icons */
.material-icons {
    color: var(--primary-color) !important;
    font-size: 2rem !important;
    vertical-align: middle !important;
}

/* Footer */
footer {
    background-color: var(--text-dark) !important;
    color: #ffffff !important;
    padding: 3rem 0 1.5rem !important;
    margin-top: 4rem !important;
}

footer h5 {
    color: #ffffff !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-bottom: 1.5rem !important;
}

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

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

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

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

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-top: 2rem !important;
    padding-top: 1.5rem !important;
    text-align: center !important;
}

.footer-bottom p {
    margin: 0 !important;
    font-size: 0.95rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

    .section-card {
        padding: 1.5rem !important;
    }

    p, ul li, ol li, tbody td {
        font-size: 16px !important;
    }

    .btn-conversion {
        font-size: 1rem !important;
        padding: 0.75rem 2rem !important;
    }

    table {
        font-size: 14px !important;
    }

    thead th, tbody td {
        padding: 0.75rem !important;
        font-size: 14px !important;
    }
}

@media (max-width: 575px) {
    .hero-section h1 {
        font-size: 1.75rem !important;
    }

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

    .navbar-brand img {
        width: 35px !important;
        height: 35px !important;
    }

    thead th, tbody td {
        padding: 0.5rem !important;
        font-size: 13px !important;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth !important;
}

/* Container spacing */
.container {
    padding: 0 15px !important;
}

/* Utility classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-light-crimson {
    background-color: #fff5f5 !important;
}
