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

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

/* Font and Base Styles */
* {
    font-family: 'Lexend', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
}

/* Headers */
h1 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    color: #2c3e50 !important;
}

h2 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin-top: 3rem !important;
    margin-bottom: 1.5rem !important;
    color: #2c3e50 !important;
}

h3 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    color: #2c3e50 !important;
}

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

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

.navbar-brand img {
    width: 40px;
    height: 40px;
}

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

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

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

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

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

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

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

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #FFB07C 0%, #FFC799 100%) !important;
    padding: 5rem 0 !important;
    text-align: center !important;
    color: #2c3e50 !important;
}

.hero-section h1 {
    color: #2c3e50 !important;
    font-size: 3rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
}

.hero-section p {
    font-size: 1.2rem !important;
    color: #2c3e50 !important;
    margin-bottom: 2rem !important;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .btn-outline-primary {
    background-color: transparent !important;
    border: 2px solid #708090 !important;
    color: #708090 !important;
    padding: 0.75rem 2rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}

.hero-section .btn-outline-primary:hover {
    background-color: #708090 !important;
    color: #ffffff !important;
}

/* Table of Contents */
.table-of-contents {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.table-of-contents .btn-outline-secondary {
    margin: 0.5rem;
    border: 2px solid #708090;
    color: #708090;
    background-color: transparent;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.table-of-contents .btn-outline-secondary:hover {
    background-color: #708090;
    color: #ffffff;
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
    animation: fadeIn 0.8s ease-in;
}

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

.content-section img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

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

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

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

.card-header {
    background-color: #FFB07C;
    color: #2c3e50;
    font-weight: 600;
    border-radius: 12px 12px 0 0 !important;
}

.card-body {
    padding: 2rem;
}

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

ul li, ol li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    background-color: #708090;
    border-radius: 50%;
}

ol {
    counter-reset: item;
}

ol li::before {
    content: counter(item) ".";
    counter-increment: item;
    position: absolute;
    left: 0;
    font-weight: 600;
    color: #708090;
}

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

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

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

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

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

table thead {
    background-color: #FFB07C;
    color: #2c3e50;
}

table thead th {
    padding: 1rem;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid #708090;
}

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

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

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

/* Conversion Buttons */
.btn-conversion {
    background-color: transparent !important;
    border: 2px solid #FFB07C !important;
    color: #FFB07C !important;
    padding: 0.75rem 2rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    margin: 1rem 0.5rem;
}

.btn-conversion:hover {
    background-color: #FFB07C !important;
    color: #ffffff !important;
}

.navbar .btn-conversion {
    border: 2px solid #FFB07C !important;
    color: #FFB07C !important;
    padding: 0.5rem 1.5rem !important;
    font-size: 1rem !important;
    margin: 0 0.25rem;
}

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

footer h5 {
    color: #FFB07C !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

footer p {
    color: #ffffff !important;
    font-size: 1rem;
    line-height: 1.6;
}

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

footer li {
    list-style: none !important;
    margin-bottom: 0.5rem;
}

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

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

footer a:hover {
    color: #FFB07C !important;
}

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

footer .text-center p {
    color: #ffffff !important;
    font-size: 0.95rem;
}

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

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

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

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

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

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

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

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

    .btn-conversion,
    .navbar .btn-conversion {
        font-size: 0.95rem !important;
        padding: 0.6rem 1.25rem !important;
    }
}

/* Material Icons */
.material-icons {
    color: #708090;
    vertical-align: middle;
}

/* Text readability */
p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

strong {
    font-weight: 600;
    color: #2c3e50;
}
