/* Import Public Sans font */
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;400;600;700&display=swap');

/* Root variables */
:root {
    --primary-color: forestgreen;
    --accent-color: skyblue;
    --dark-green: #1a7a1a;
    --light-bg: #f8f9fa;
    --text-dark: #212529;
}

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

body {
    font-family: 'Public Sans', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: #ffffff;
}

/* Reset list styles */
ul, ol {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

/* Content lists styling with custom markers */
.content-section ul,
.content-section ol {
    padding-left: 2rem !important;
    margin: 1.5rem 0 !important;
}

.content-section ul li,
.content-section ol li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-section ul li:before {
    content: "—";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

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

.content-section ol li {
    counter-increment: custom-counter;
}

.content-section ol li:before {
    content: counter(custom-counter) ".";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

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

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

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

.logo-img {
    width: 45px;
    height: 45px;
}

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

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

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

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

.nav-link {
    color: #ffffff !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    padding: 0.5rem 1.2rem !important;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.15) !important;
    color: var(--accent-color) !important;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.5) !important;
    padding: 0.5rem 0.75rem !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;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    padding: 4rem 0 !important;
    margin-bottom: 0 !important;
}

.hero-section h1 {
    font-size: 2.8rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.3 !important;
    color: #ffffff !important;
}

.hero-section p {
    font-size: 1.2rem !important;
    line-height: 1.8 !important;
    margin-bottom: 2rem !important;
    color: #ffffff !important;
    opacity: 0.95;
}

.hero-section .btn {
    margin-top: 1rem !important;
}

/* Headings */
h1 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    color: var(--primary-color) !important;
    line-height: 1.3 !important;
}

h2 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin-top: 3rem !important;
    margin-bottom: 1.5rem !important;
    color: var(--primary-color) !important;
    line-height: 1.3 !important;
}

h3 {
    font-size: 1.6rem !important;
    font-weight: 600 !important;
    margin-top: 2rem !important;
    margin-bottom: 1.2rem !important;
    color: var(--dark-green) !important;
    line-height: 1.4 !important;
}

/* Paragraphs */
p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

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

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

/* Table styles */
.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-color: #ffffff;
    font-size: 1rem;
}

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

thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 1.05rem;
    white-space: nowrap;
}

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

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

tbody td {
    padding: 1rem;
    font-size: 1rem;
    white-space: nowrap;
}

tbody td strong {
    color: var(--primary-color);
    font-weight: 600;
}

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

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

.card-header {
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 1.2rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
    font-size: 1.05rem;
}

/* Conversion Buttons */
.btn-conversion {
    background-color: var(--accent-color) !important;
    color: var(--text-dark) !important;
    border: none !important;
    padding: 0.9rem 2.5rem !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.4);
}

.btn-conversion:hover {
    background-color: #87ceeb !important;
    color: #000000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(135, 206, 235, 0.5) !important;
}

/* Table of Contents */
.toc-section {
    margin: 2rem 0 3rem 0;
    padding: 0;
}

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

.btn-outline-primary {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    padding: 0.6rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
}

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

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

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

.navbar-brand img {
    box-shadow: none;
}
/* Footer */
.footer {
    background-color: var(--text-dark);
    color: #ffffff;
    padding: 3rem 0 1.5rem 0;
    margin-top: 3rem;
}

.footer p {
    color: #ffffff;
}

.footer h5 {
    color: var(--accent-color) !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    margin-bottom: 1.2rem !important;
}

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

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

.footer ul li {
    list-style: none !important;
    margin-bottom: 0.7rem;
}

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

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

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

/* Icon styles */
.bi {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.content-section .bi {
    color: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        font-size: 17px;
    }

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

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

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

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

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

    .logo-img {
        width: 38px;
        height: 38px;
    }

    .btn-conversion {
        padding: 0.8rem 2rem !important;
        font-size: 1.05rem !important;
    }

    .toc-buttons {
        justify-content: stretch;
    }

    .btn-outline-primary {
        flex: 1 1 auto;
        min-width: 140px;
    }
}

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

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

    thead th,
    tbody td {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
}
