:root {
    --primary-color: #1E3A8A;
    --secondary-color: #0EA5A4;
    --accent-color: #F97316;
    --bg-color: #F8FAFC;
    --text-main: #1F2937;
    --text-muted: #4B5563;
    --border-radius: 8px;
    --shadow-standard: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --font-family: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

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

h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2rem);
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
    transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

button:active {
    transform: scale(0.98);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

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

input,
textarea,
select {
    font-family: inherit;
    border-radius: var(--border-radius);
}

@media (max-width: 768px) {

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    body {
        font-size: 0.95rem;
    }
}

.focus-visible:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== header ===== */
.site-header {
    position: relative;
    z-index: 1000;
}

.nav-link-custom:hover {
    color: var(--secondary-color) !important;
}

.cta-btn:hover {
    opacity: 0.9;
}

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

.d-custom-nav {
    display: none;
}

.d-custom-burger {
    display: flex;
}

@media (min-width: 1024px) {
    .d-custom-nav {
        display: flex;
    }

    .d-custom-burger {
        display: none;
    }
}

/* ===== hero_section ===== */
.js-hero-btn:hover {
    background-color: var(--secondary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.2);
}

.collage-item {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.collage-item:hover {
    z-index: 10 !important;
    transform: scale(1.1) rotate(0deg) !important;
}

.collage-wrapper::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    filter: blur(100px);
    opacity: 0.1;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* ===== intro_mission ===== */
#intro {
    width: 100%;
    overflow: hidden;
}

#intro .js-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#intro .js-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

#intro .shadow-sm {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#intro .shadow-sm:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

#intro .btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* ===== content_body ===== */
#main-article {
    font-family: 'Inter', sans-serif;
}

#main-article .article-content {
    background: #ffffff;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

#main-article h1 {
    line-height: 1.2;
}

#main-article h2 {
    margin-top: 3rem;
}

#main-article p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

#main-article .js-share-btn {
    transition: opacity 0.3s ease;
}

#main-article .js-share-btn:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    #main-article .article-content {
        padding: 1.5rem;
    }

    #main-article h1 {
        font-size: 2rem;
    }
}

/* ===== trust_cards ===== */
.benefits-section {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.benefit-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid transparent !important;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1) !important;
    border-top-color: var(--primary-color) !important;
}

.icon-wrapper i {
    transition: transform 0.3s ease;
}

.benefit-card:hover .icon-wrapper i {
    transform: scale(1.1);
}

/* ===== category_nav ===== */
.category-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    width: 100%;
}

.category-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.category-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 24px -10px rgba(30, 58, 138, 0.15);
    transform: translateY(-5px);
}

.category-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    font-size: 28px;
}

.category-card h3 {
    transition: color 0.3s ease;
}

.category-card:hover h3 {
    color: var(--primary-color) !important;
}

/* ===== related_posts ===== */
.custom-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(31, 41, 55, 0.85);
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.custom-modal-content {
    background: var(--bg-color);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    padding: 40px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.modal-scroll-area {
    overflow-y: auto;
    padding-right: 10px;
}

.modal-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.modal-scroll-area::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.modal-scroll-area::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

.card {
    transition: transform 0.3s ease;
}

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

.card-img-top {
    height: 220px;
    object-fit: cover;
}

/* ===== quick_tips ===== */
#tips .js-tip-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#tips .js-tip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(30, 58, 138, 0.1) !important;
}

/* ===== cta_footer ===== */
#final-cta {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.js-cta-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.js-cta-btn:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

/* ===== feedback_form ===== */
#contacts {
    width: 100%;
    background-color: var(--bg-color)
}

#contacts .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 .25rem rgba(14, 165, 164, .1)
}

#contacts .transition-all {
    transition: all .3s ease
}

#contacts .btn:hover {
    background-color: var(--secondary-color) !important;
    transform: translateY(-2px)
}

#contacts .form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.6
}

#contacts a:hover {
    color: var(--accent-color) !important
}

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

#footer a {
    transition: all 0.3s ease-in-out;
    opacity: 0.8;
}

#footer a:hover {
    color: var(--accent-color) !important;
    opacity: 1;
}