:root {
    --primary-bg: #ffffff;
    --primary-text: #1a1a1a;
    --secondary-bg: #f3f4f6;
    --secondary-text: #4b5563;
    --accent-color: #2563eb;
    --accent-text: #ffffff;
    --footer-bg: #111827;
    --footer-text: #f9fafb;
    --border-color: #e5e7eb;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--primary-text);
    background-color: var(--primary-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

button {
    cursor: pointer;
    border: none;
    transition: all 0.3s ease-in-out;
}

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

ul,
ol {
    list-style: none;
}

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

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    h3 {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }

    p,
    a,
    span,
    li {
        font-size: 0.95rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

.transition-shadow {
    transition: shadow 0.3s ease-in-out;
}

.hover\:shadow-md:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.rounded-lg {
    border-radius: 0.5rem;
}

/* ===== header ===== */
#header {
    width: 100%;
}

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

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-color);
}

.js-mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-mobile-menu.is-open {
    max-height: 400px;
}

/* ===== hero_section ===== */
section#hero {
    background-image: radial-gradient(circle at center, transparent 0%, var(--primary-bg) 100%);
}

.js-hero-cta {
    font-family: sans-serif;
    letter-spacing: 0.05em;
}

/* ===== about_us ===== */
#about {
    width: 100%;
}

.js-about-section {
    transition: opacity 1s ease-out;
}

/* ===== featured_article ===== */
.prose h2 {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.js-progress-bar {
    transition: width 0.1s ease-out;
}

/* ===== editorial_team ===== */
.avatar img {
    object-fit: cover;
    width: 100%;
    height: 100%
}

/* ===== trust_section ===== */
#trust {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.js-trust-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ===== related_posts ===== */
#related_articles {
    width: 100%;
}

.modal-box {
    border-radius: 1rem;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    padding: 1rem;
    align-items: center;
    justify-content: center;
}

.modal-open {
    display: flex !important;
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
}

.modal-box {
    overflow-y: auto !important;
    max-height: 85vh !important;
    width: 100%;
    max-width: 56rem;
    margin: auto;
    flex-shrink: 0;
}

/* ===== faq_accordion ===== */
#faq {
    width: 100%
}

.collapse-title::after {
    color: var(--secondary-text) !important;
    top: 1.75rem !important
}

.collapse-title {
    transition: background-color 0.3s ease
}

.collapse-title:hover {
    background-color: rgba(37, 99, 235, 0.05)
}

/* ===== contact_section ===== */
#contacts {
    scroll-margin-top: 4rem;
}

.js-contact-form input:focus,
.js-contact-form textarea:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 1px;
}

/* ===== footer ===== */
#footer {
    width: 100%;
}

.js-footer-link {
    cursor: pointer;
}