:root {
    --primary-bg: #F5F5F5;
    --dark-bg: #1F1F1F;
    --text-main: #1F1F1F;
    --text-secondary: #3A3A3A;
    --text-light: #FFFFFF;
    --accent-orange: #F57C00;
    --accent-green: #4CAF50;
    --font-family: 'Montserrat', sans-serif;
    --h1-size: 3rem;
    --h2-size: 2.25rem;
    --base-size: 16px;
    --button-radius: 4px;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--base-size);
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--primary-bg);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: inherit;
}

h1 {
    font-size: var(--h1-size);
}

h2 {
    font-size: var(--h2-size);
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
    color: inherit;
}

button,
.btn {
    cursor: pointer;
    border: none;
    border-radius: var(--button-radius);
    transition: all 0.3s ease;
    font-weight: 600;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container-fluid,
.container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (max-width: 768px) {
    :root {
        --h1-size: 2.25rem;
        --h2-size: 1.75rem;
    }

    body {
        font-size: 15px;
    }

    h1,
    h2,
    h3,
    .long-word {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

@media (max-width: 640px) {
    :root {
        --h1-size: 1.85rem;
        --h2-size: 1.5rem;
    }
}

/* ===== header_nav ===== */
.header-nav-block {
    background-color: var(--primary-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-link-item {
    transition: color 0.3s ease;
}

.nav-link-item:hover {
    color: var(--accent-orange) !important;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--dark-bg);
    z-index: 10000;
    display: none;
}

.mobile-menu-overlay.active {
    display: flex !important;
}

.btn-cta {
    transition: transform 0.2s ease, opacity 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: var(--text-light) !important;
}

/* ===== hero_section ===== */
.hero-section {
    background-image: url("media/graphics/While-Inspecting-Young-Adult-Engine-On-Car-Caucasian-Writing-Man-Clipboard.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.js-hero-btn:hover {
    background-color: #e67300 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
    }

    .display-3 {
        font-size: 2.5rem;
    }
}

/* ===== trust_info ===== */
#trust {
    background-color: var(--primary-bg);
    padding: 80px 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

#trust.visible {
    opacity: 1;
}

.trust-header-title {
    color: var(--text-main);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.trust-header-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.trust-card {
    background-color: var(--text-light);
    padding: 2rem;
    border-radius: 10px;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.trust-card:hover {
    transform: translateY(-5px);
}

.trust-icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-orange);
    font-size: 1.5rem;
}

.trust-card-title {
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 1rem;
}

.trust-card-text {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ===== main_article_content ===== */
.article-content h3 {
    color: var(--accent-orange);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    border-left: 5px solid var(--accent-orange);
    padding-left: 15px;
}

.article-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-content img {
    transition: transform 0.3s ease;
}

.article-content img:hover {
    transform: scale(1.01);
}

@media (max-width: 768px) {
    .article-body {
        font-size: 1rem;
    }

    .display-4 {
        font-size: 2.2rem;
    }
}

/* ===== savings_benefits ===== */
.js-benefit-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.js-benefit-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.js-benefit-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* ===== practical_tips_grid ===== */
.js-tip-card {
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
}

.js-tip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

#practical-tips h2 {
    letter-spacing: -0.5px;
}

#practical-tips .card-body p {
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== blog_preview ===== */
.blog-card {
    transition: transform .3s ease-in-out, box-shadow .3s ease-in-out
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important
}

.blog-img-wrapper img {
    transition: transform .5s ease
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.05)
}

/* ===== faq_accordion ===== */
#faq {
    background-color: var(--primary-bg);
}

.js-faq-item {
    background-color: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.js-faq-toggle:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.js-faq-icon {
    color: var(--accent-orange);
    transition: transform 0.3s ease;
}

.js-faq-answer {
    color: var(--text-secondary);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    line-height: 1.6;
}

/* ===== final_cta_block ===== */
#final-cta {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#final-cta h2 {
    letter-spacing: -0.02em;
    line-height: 1.2;
}

#final-cta p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.js-cta-btn:hover {
    background-color: var(--accent-orange) !important;
    filter: brightness(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ===== footer_content ===== */
.footer-section a:hover {
    color: var(--accent-orange) !important;
    opacity: 1
}

.footer-section .form-control:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--accent-orange) !important;
    color: white !important;
    box-shadow: none
}

.footer-section .btn-outline-light:hover {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--text-light) !important
}

.footer-section .form-check-input:checked {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange)
}