/* SapNow - Custom Styles with Bulma */
/* Primary: Charcoal (#36454F) | Accent: Deep Blue (#1E3A5F) */

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

/* CSS Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', sans-serif !important;
    font-size: 18px !important;
    line-height: 1.7 !important;
    color: #36454F !important;
    background-color: #f8f9fa !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', sans-serif !important;
    font-weight: 700 !important;
    color: #36454F !important;
    margin-bottom: 1rem !important;
}

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

h2 {
    font-size: 2rem !important;
    line-height: 1.3 !important;
    padding-top: 1.5rem !important;
}

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

p {
    font-size: 18px !important;
    margin-bottom: 1.25rem !important;
}

/* Navbar Styles */
.navbar {
    background-color: #36454F !important;
    padding: 0.75rem 0 !important;
}

.navbar-item,
.navbar-link {
    color: #ffffff !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    transition: color 0.3s ease !important;
    list-style: none !important;
}

.navbar-item:hover,
.navbar-link:hover {
    color: #7eb8da !important;
    background-color: transparent !important;
}

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

.navbar-burger span {
    background-color: #ffffff !important;
}

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

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

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

.navbar-brand .navbar-item img {
    max-height: 40px !important;
    box-shadow: none !important;
}

.navbar-cta {
    background-color: #1E3A5F !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

.navbar-cta:hover {
    background-color: #2a4d75 !important;
    color: #ffffff !important;
}

/* Hero Section */
.hero {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative !important;
}

.hero::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(54, 69, 79, 0.92) 0%, rgba(30, 58, 95, 0.88) 100%) !important;
    z-index: 1 !important;
}

.hero-body {
    position: relative !important;
    z-index: 2 !important;
    padding: 4rem 1.5rem !important;
}

.hero .title {
    color: #ffffff !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.hero .subtitle {
    color: #e8e8e8 !important;
    font-size: 1.2rem !important;
    line-height: 1.8 !important;
    max-width: 800px !important;
    margin: 0 auto 2rem auto !important;
}

.hero-cta {
    background-color: #1E3A5F !important;
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
}

.hero-cta:hover {
    background-color: #2a4d75 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

/* Table of Contents */
.toc-section {
    background-color: #ffffff !important;
    padding: 2rem 0 !important;
}

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

.toc-buttons .button {
    background-color: transparent !important;
    border: 2px solid #1E3A5F !important;
    color: #1E3A5F !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
}

.toc-buttons .button:hover {
    background-color: #1E3A5F !important;
    color: #ffffff !important;
}

/* Sections */
.section {
    padding: 3rem 1.5rem !important;
}

.section:nth-child(odd) {
    background-color: #f8f9fa !important;
}

.section:nth-child(even) {
    background-color: #ffffff !important;
}

.section-title {
    color: #36454F !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 3px solid #1E3A5F !important;
}

/* Cards */
.card {
    background-color: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    margin-bottom: 1.5rem !important;
}

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

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

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

.table {
    width: 100% !important;
    background-color: #ffffff !important;
    border-collapse: collapse !important;
    font-size: 16px !important;
}

.table thead th {
    background-color: #36454F !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 1rem !important;
    text-align: left !important;
    white-space: nowrap !important;
}

.table tbody td {
    padding: 0.875rem 1rem !important;
    border-bottom: 1px solid #e8e8e8 !important;
    color: #36454F !important;
}

.table tbody tr:hover {
    background-color: #f0f4f8 !important;
}

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

.content ul li,
.content ol li,
article ul li,
article ol li {
    position: relative !important;
    padding-left: 1.75rem !important;
    margin-bottom: 0.75rem !important;
    font-size: 18px !important;
    line-height: 1.6 !important;
}

.content ul li::before,
article ul li::before {
    content: '—' !important;
    position: absolute !important;
    left: 0 !important;
    color: #1E3A5F !important;
    font-weight: 700 !important;
}

.content ol,
article ol {
    counter-reset: list-counter !important;
}

.content ol li::before,
article ol li::before {
    counter-increment: list-counter !important;
    content: counter(list-counter) '.' !important;
    position: absolute !important;
    left: 0 !important;
    color: #1E3A5F !important;
    font-weight: 700 !important;
}

/* Navbar and Footer list reset */
.navbar ul,
.navbar ol,
.footer ul,
.footer ol,
nav ul,
nav ol {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.navbar li,
.footer li,
nav li {
    list-style: none !important;
    padding-left: 0 !important;
}

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

/* Images */
.content-image {
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 1.5rem 0 !important;
}

.image-left {
    float: left !important;
    margin: 0 1.5rem 1rem 0 !important;
    max-width: 300px !important;
}

.image-full {
    width: 100% !important;
    margin: 1.5rem 0 !important;
}

article img {
    border-radius: 8px !important;
    max-width: 100% !important;
    height: auto !important;
}

article picture img {
    border-radius: 8px !important;
}

/* Conversion Buttons */
.conversion-btn {
    display: inline-block !important;
    background-color: #1E3A5F !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 0.875rem 2rem !important;
    border: none !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
}

.conversion-btn:hover {
    background-color: #2a4d75 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

/* Icons */
.icon {
    color: #1E3A5F !important;
}

.fa, .fas, .far, .fab {
    color: #1E3A5F !important;
}

/* Footer */
.footer {
    background-color: #36454F !important;
    padding: 3rem 1.5rem 2rem !important;
}

.footer-content {
    color: #e8e8e8 !important;
}

.footer .title {
    color: #ffffff !important;
    font-size: 1.25rem !important;
    margin-bottom: 1rem !important;
}

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

.footer a:hover {
    color: #ffffff !important;
}

.footer p {
    color: #b8c9d9 !important;
    font-size: 16px !important;
}

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

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

.footer li::before,
.footer li::after {
    display: none !important;
    content: none !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 {
    color: #8a9aa8 !important;
    font-size: 14px !important;
}

/* Animations */
@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.star {
    position: absolute !important;
    width: 3px !important;
    height: 3px !important;
    background-color: #ffffff !important;
    border-radius: 50% !important;
    animation: twinkle 2s ease-in-out infinite !important;
}

.star:nth-child(1) { top: 10%; left: 15%; animation-delay: 0s; }
.star:nth-child(2) { top: 25%; left: 85%; animation-delay: 0.3s; }
.star:nth-child(3) { top: 45%; left: 10%; animation-delay: 0.6s; }
.star:nth-child(4) { top: 60%; left: 90%; animation-delay: 0.9s; }
.star:nth-child(5) { top: 75%; left: 25%; animation-delay: 1.2s; }
.star:nth-child(6) { top: 15%; left: 70%; animation-delay: 1.5s; }

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    body {
        font-size: 16px !important;
    }

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

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

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

    .hero .title {
        font-size: 1.75rem !important;
    }

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

    .hero-body {
        padding: 3rem 1rem !important;
    }

    .section {
        padding: 2rem 1rem !important;
    }

    .toc-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .toc-buttons .button {
        width: 100% !important;
    }

    .image-left {
        float: none !important;
        max-width: 100% !important;
        margin: 1rem 0 !important;
    }

    .navbar-menu {
        background-color: #36454F !important;
    }

    .footer .columns {
        text-align: center !important;
    }
}

/* Tablet adjustments */
@media screen and (min-width: 769px) and (max-width: 1023px) {
    .hero .title {
        font-size: 2rem !important;
    }

    .image-left {
        max-width: 250px !important;
    }
}
