/* Bootstrap Framework Custom Rules */
.navbar-nav {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

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

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

body {
    font-family: 'Urbanist', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #2c3e50;
}

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

.navbar-brand {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand:hover {
    color: #98ff98 !important;
}

.logo-img {
    box-shadow: none !important;
    border: none !important;
}

.navbar-nav .nav-link {
    color: white !important;
    font-size: 18px !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #98ff98 !important;
}

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

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

.navbar-toggler {
    border-color: #98ff98 !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='%2398ff98' 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, #708090 0%, #556b7a 100%) !important;
    color: white !important;
    padding: 80px 0 !important;
    margin-bottom: 0 !important;
}

.hero-section h1 {
    font-size: 48px !important;
    font-weight: 800 !important;
    margin-bottom: 24px !important;
    line-height: 1.2 !important;
    color: white !important;
}

.hero-section p {
    font-size: 20px !important;
    margin-bottom: 16px !important;
    line-height: 1.7 !important;
    color: white !important;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

/* Conversion Buttons */
.btn-conversion {
    background-color: #98ff98 !important;
    color: #2c3e50 !important;
    border: none !important;
    padding: 14px 32px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.btn-conversion:hover {
    background-color: #7ae67a !important;
    color: #1a252f !important;
    transform: translateY(-2px);
}

/* Table of Contents */
.toc {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 4px solid #98ff98;
}

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

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

.toc li {
    margin-bottom: 12px !important;
    padding-left: 0 !important;
}

.toc li::before,
.toc li::marker {
    display: none !important;
    content: none !important;
}

.toc a {
    color: slategray;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.toc a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* Section Styles */
section {
    padding: 60px 0;
}

section:nth-child(even) {
    background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700 !important;
    margin-bottom: 24px !important;
    line-height: 1.3 !important;
}

h1 {
    font-size: 48px !important;
}

h2 {
    font-size: 38px !important;
    margin-top: 48px !important;
    color: slategray !important;
}

h3 {
    font-size: 28px !important;
    margin-top: 32px !important;
    color: slategray !important;
}

h4 {
    font-size: 24px !important;
}

p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Lists with Custom Markers */
section ul,
section ol {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 24px !important;
}

section ul li,
section ol li {
    position: relative;
    padding-left: 35px !important;
    margin-bottom: 16px !important;
    font-size: 18px;
    line-height: 1.7;
}

section ul li::before {
    content: "+" !important;
    position: absolute;
    left: 0;
    top: 0;
    color: #98ff98;
    font-weight: 700;
    font-size: 24px;
}

section ul li::marker {
    display: none !important;
}

section ol {
    counter-reset: custom-counter;
}

section ol li::before {
    counter-increment: custom-counter;
    content: counter(custom-counter) "." !important;
    position: absolute;
    left: 0;
    top: 0;
    color: #98ff98;
    font-weight: 700;
    font-size: 18px;
}

section ol li::marker {
    display: none !important;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 32px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

thead {
    background-color: slategray;
    color: white;
}

th {
    padding: 16px;
    text-align: left;
    font-weight: 700 !important;
    font-size: 18px !important;
}

td {
    padding: 16px;
    border-bottom: 1px solid #dee2e6;
    font-size: 18px;
}

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

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

picture img {
    display: block;
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card-body {
    padding: 24px;
}

.card-title {
    color: slategray;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
}

/* Footer */
footer {
    background-color: slategray;
    color: white;
    padding: 48px 0 24px;
    margin-top: 60px;
}

footer h5 {
    color: #98ff98 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
}

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

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

footer ul li {
    margin-bottom: 12px !important;
    padding-left: 0 !important;
}

footer a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #98ff98;
}

footer p {
    color: white !important;
    font-size: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 36px !important;
    }

    .hero-section p {
        font-size: 18px !important;
    }

    h2 {
        font-size: 32px !important;
    }

    h3 {
        font-size: 24px !important;
    }

    .navbar-brand {
        font-size: 20px !important;
    }

    section {
        padding: 40px 0;
    }
}

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

    .hero-section {
        padding: 60px 0 !important;
    }

    .hero-section h1 {
        font-size: 28px !important;
    }

    .hero-section p {
        font-size: 16px !important;
    }

    h2 {
        font-size: 26px !important;
    }

    h3 {
        font-size: 22px !important;
    }

    .btn-conversion {
        padding: 12px 24px !important;
        font-size: 16px !important;
    }

    th, td {
        padding: 12px;
        font-size: 16px;
    }
}
