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

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

body {
    font-family: 'Prompt', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    background-color: #f8f9fa;
}

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

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

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

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

/* Navigation Styles */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: royalblue !important;
}

/* Hero Section - All styles with !important */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    padding: 80px 0 !important;
    margin-bottom: 60px !important;
}

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

.hero-section p {
    font-size: 20px !important;
    color: #555 !important;
    margin-bottom: 20px !important;
}

.hero-section img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.btn-conversion:hover {
    background-color: #3a5fcd !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.4);
}

/* Headers with !important */
h1 {
    font-size: 48px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 24px !important;
    margin-top: 40px !important;
}

h2 {
    font-size: 32px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-top: 48px !important;
    margin-bottom: 20px !important;
}

h3 {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-top: 32px !important;
    margin-bottom: 16px !important;
}

/* Table of Contents */
.table-of-contents {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0;
}

.table-of-contents li {
    margin-bottom: 12px;
}

.table-of-contents li:before {
    display: none !important;
}

.table-of-contents a {
    color: royalblue;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: #3a5fcd;
    text-decoration: underline;
}

/* Content Sections */
section {
    background-color: #fff;
    padding: 50px 0;
    margin-bottom: 30px;
}

.content-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Lists Styling with royalblue markers */
.content-card ul,
.content-card ol,
section ul,
section ol {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 20px 0;
}

.content-card ul li,
section ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 18px;
}

.content-card ul li:before,
section ul li:before {
    content: "—" !important;
    position: absolute;
    left: 0;
    color: royalblue;
    font-weight: 700;
}

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

.content-card ol li,
section ol li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 18px;
    counter-increment: custom-counter;
}

.content-card ol li:before,
section ol li:before {
    content: counter(custom-counter) "." !important;
    position: absolute;
    left: 0;
    color: royalblue;
    font-weight: 700;
}

/* Paragraphs */
p {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 20px;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

picture img {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    font-size: 18px;
}

thead {
    background-color: royalblue;
    color: #fff;
}

thead th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 18px;
}

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

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

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 30px;
    margin-top: 60px;
}

footer h3 {
    color: #fff !important;
    font-size: 20px !important;
    margin-bottom: 20px !important;
}

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

footer ul li {
    margin-bottom: 10px;
}

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

footer a {
    color: lightgray !important;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: royalblue !important;
}

footer p {
    color: lightgray !important;
    font-size: 16px !important;
    margin-top: 30px;
    text-align: center;
}

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

.content-card {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Material Icons */
.material-icons {
    color: royalblue;
    font-size: 24px;
    vertical-align: middle;
}

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

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

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

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

    body {
        font-size: 16px;
    }

    p, table, tbody td, thead th {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 40px 0 !important;
    }

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

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

/* Strong tags */
strong {
    font-weight: 600;
    color: #222;
}

/* Ensure readability - minimum contrast ratio */
a {
    color: royalblue;
}

a:hover {
    color: #3a5fcd;
}
