:root {
    --primary-background: #f4f7f5;
    --primary-text: #1b2b22;
    --secondary-background: #ffffff;
    --secondary-text: #2d3f35;
    --accent-background: #10b981;
    --accent-text: #ffffff;
    --muted-text-light-bg: #5c6f64;
    --muted-text-dark-bg: #a3b899;
    --font-headings: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-background);
    color: var(--primary-text);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    transition: var(--transition-smooth);
}

button:focus,
a:focus-visible {
    outline: 2px solid var(--accent-background);
    outline-offset: 4px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

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

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

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

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

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    h4 {
        font-size: 1.2rem;
    }

    .text-break-mobile {
        word-break: break-all;
        font-size: 0.85rem;
    }
}

/* ===== header ===== */
.header-section {
    background-color: var(--secondary-background);
    border-bottom: 1px solid rgba(27, 43, 34, 0.1);
    position: relative;
    overflow-x: hidden;
}

.header-nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: hidden;
}

.header-logo {
    max-width: 45px;
    height: auto;
    object-fit: contain;
}

.logo-link {
    text-decoration: none;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo-text-mobile {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary-text);
    letter-spacing: -0.02em;
}

.nav-link-custom {
    color: var(--secondary-text);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.nav-btn-custom {
    background-color: var(--accent-background);
    color: var(--accent-text) !important;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.nav-btn-custom:hover {
    background-color: #0d9488;
    transform: translateY(-1px);
}

.hamburger-btn {
    background: none;
    border: none;
    color: var(--primary-text);
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--secondary-background);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu-overlay.open {
    transform: translateX(0);
}

.close-btn {
    background: none;
    border: none;
    color: var(--primary-text);
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-links {
    flex: 1;
}

.mobile-nav-link {
    color: var(--primary-text);
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

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

.mobile-nav-btn {
    background-color: var(--accent-background);
    color: var(--accent-text) !important;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

@media (max-width: 1023px) {
    .logo-text {
        font-size: 0.8rem;
    }
}

/* ===== hero ===== */
#hero {
    background-color: var(--primary-background);
    color: var(--primary-text);
    overflow-x: hidden;
    position: relative;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

#hero .hero-title {
    font-size: 2.75rem;
    line-height: 1.2;
    color: var(--primary-text);
    font-weight: 800;
    hyphens: auto;
}

#hero .hero-lead {
    font-size: 1.15rem;
    color: var(--muted-text-light-bg);
    line-height: 1.6;
}

#hero .tag-badge {
    background-color: var(--secondary-background);
    color: var(--secondary-text);
    border: 1px solid rgba(45, 63, 53, 0.15);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.2s ease-in-out;
}

#hero .tag-badge:hover {
    background-color: var(--accent-background);
    color: var(--accent-text);
    border-color: var(--accent-background);
}

#hero .cta-btn {
    background-color: var(--accent-background);
    color: var(--accent-text);
    font-weight: 600;
    padding: 0.85rem 1.85rem;
    border-radius: 8px;
    border: none;
    transition: opacity 0.2s ease-in-out;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

#hero .cta-btn:hover {
    opacity: 0.95;
    color: var(--accent-text);
}

#hero .hero-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(27, 43, 34, 0.08);
}

#hero .hero-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

@media (max-width: 767.98px) {
    #hero {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    #hero .hero-title {
        font-size: 1.125rem !important;
        line-height: 1.25 !important;
    }

    #hero .hero-lead {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    #hero .hero-image {
        height: 280px;
    }
}

/* ===== featured_article ===== */
.featured-article-section {
    background-color: var(--primary-background);
    color: var(--primary-text);
    overflow-x: hidden;
}

.article-card {
    background-color: var(--secondary-background);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(27, 43, 34, 0.04);
    padding: 3rem;
}

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

    .featured-article-section h1 {
        font-size: 1.125rem !important;
        line-height: 1.2;
        hyphens: auto;
    }

    .featured-article-section h2 {
        font-size: 1rem !important;
        line-height: 1.2;
        hyphens: auto;
    }
}

.article-meta {
    font-size: 0.875rem;
    color: var(--muted-text-light-bg);
}

.article-title {
    color: var(--primary-text);
    font-weight: 800;
    line-height: 1.25;
}

.article-text {
    color: var(--secondary-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.accent-badge {
    background-color: var(--accent-background);
    color: var(--accent-text);
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-custom {
    background-color: var(--accent-background);
    color: var(--accent-text);
    border: none;
    padding: 0.9rem 2.5rem;
    font-weight: 700;
    border-radius: 8px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-custom:hover {
    background-color: #059669;
    color: var(--accent-text);
    transform: translateY(-2px);
}

.main-article-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 12px;
}

@media (max-width: 576px) {
    .main-article-img {
        height: 220px;
    }
}

.context-article-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
}

.bullet-list {
    padding-left: 1.25rem;
    margin-bottom: 2rem;
}

.bullet-list li {
    color: var(--secondary-text);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* ===== articles_grid ===== */
#articles-grid {
    overflow-x: hidden;
    background-color: var(--primary-background);
    color: var(--primary-text);
    font-family: inherit;
}

#articles-grid .section-title {
    color: var(--primary-text);
    font-weight: 700;
}

#articles-grid .large-card {
    background-color: var(--secondary-background);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#articles-grid .large-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

#articles-grid .large-card-img-wrapper {
    position: relative;
    height: 380px;
    overflow: hidden;
}

#articles-grid .large-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#articles-grid .large-card-content {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

#articles-grid .large-card-title {
    font-size: 1.6rem;
    color: var(--primary-text);
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

#articles-grid .large-card-content p {
    color: var(--secondary-text);
    line-height: 1.6;
    font-size: 0.95rem;
}

#articles-grid .small-card {
    background-color: var(--secondary-background);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: row;
    margin-bottom: 1.5rem;
    min-height: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#articles-grid .small-card:last-child {
    margin-bottom: 0;
}

#articles-grid .small-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

#articles-grid .small-card-img-wrapper {
    width: 200px;
    min-width: 200px;
    height: auto;
    position: relative;
}

#articles-grid .small-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#articles-grid .small-card-content {
    padding: 1.5rem;
    color: var(--secondary-text);
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

#articles-grid .small-card-title {
    font-size: 1.15rem;
    color: var(--primary-text);
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

#articles-grid .card-text-p {
    color: var(--secondary-text);
    font-size: 0.875rem;
    line-height: 1.5;
}

#articles-grid .small-card-meta,
#articles-grid .large-card-meta {
    font-size: 0.8rem;
    color: var(--muted-text-light-bg);
    font-weight: 500;
}

#articles-grid .meta-icon {
    width: 14px;
    height: 14px;
    stroke: var(--muted-text-light-bg);
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 991.98px) {
    #articles-grid .small-card {
        height: auto;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    #articles-grid h2.section-title {
        font-size: 1rem !important;
        line-height: 1.2 !important;
    }

    #articles-grid .large-card-title {
        font-size: 0.95rem !important;
        line-height: 1.25 !important;
    }

    #articles-grid .small-card-title {
        font-size: 0.875rem !important;
        line-height: 1.25 !important;
    }

    #articles-grid p,
    #articles-grid .large-card-content p,
    #articles-grid .card-text-p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }

    #articles-grid .small-card {
        flex-direction: column;
    }

    #articles-grid .small-card-img-wrapper {
        width: 100%;
        height: 160px;
    }

    #articles-grid .large-card-img-wrapper {
        height: 240px;
    }
}

/* ===== news_grid ===== */
#news-grid {
    overflow-x: hidden;
}

#news-grid .card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

#news-grid .card {
    border: 1px solid rgba(45, 63, 53, 0.1);
    background-color: var(--secondary-background);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#news-grid .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

#news-grid .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.5rem;
    background-color: var(--secondary-background);
}

#news-grid .news-tag {
    background-color: var(--accent-background);
    color: var(--accent-text);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1rem;
    align-self: flex-start;
}

#news-grid .news-date {
    color: var(--muted-text-light-bg);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#news-grid .card-title {
    color: var(--primary-text);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

#news-grid .card-text {
    color: var(--secondary-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    #news-grid h2 {
        font-size: 1.00rem !important;
        line-height: 1.2;
    }

    #news-grid h3.card-title {
        font-size: 0.875rem !important;
        line-height: 1.2;
    }

    #news-grid p {
        hyphens: auto;
    }
}

/* ===== tags_cloud ===== */
#tags-cloud {
    hyphens: auto;
}

#tags-cloud h2 {
    line-height: 1.2;
}

#tags-cloud h3 {
    line-height: 1.3;
}

.tag-badge {
    background-color: var(--primary-background);
    color: var(--secondary-text);
    border: 1px solid rgba(16, 185, 129, 0.15);
    transition: all 0.25s ease-in-out;
    font-size: 0.875rem;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-weight: 500;
}

.tag-badge:hover {
    background-color: var(--accent-background);
    color: var(--accent-text);
    border-color: var(--accent-background);
    transform: translateY(-1px);
}

.tag-badge.active {
    background-color: var(--accent-background);
    color: var(--accent-text);
    border-color: var(--accent-background);
}

@media (max-width: 767.98px) {
    #tags-cloud h2 {
        font-size: 1.25rem !important;
    }

    #tags-cloud h3 {
        font-size: 1rem !important;
    }

    .tag-badge {
        font-size: 0.8rem;
        padding: 0.35rem 0.85rem;
    }
}

/* ===== team_blog ===== */
#team {
    background-color: var(--primary-background);
    color: var(--primary-text);
    padding: 80px 0;
    overflow-x: hidden;
}

#team h2 {
    font-size: 2.25rem;
    color: var(--primary-text);
    line-height: 1.2;
    margin-bottom: 1rem;
}

#team .section-subtitle {
    color: var(--muted-text-light-bg);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

#team .filter-btn {
    background-color: var(--secondary-background);
    color: var(--secondary-text);
    border: 1px solid rgba(27, 43, 34, 0.15);
    padding: 10px 24px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

#team .filter-btn:hover,
#team .filter-btn.active {
    background-color: var(--accent-background);
    color: var(--accent-text);
    border-color: var(--accent-background);
}

#team .author-card {
    background-color: var(--secondary-background);
    border: 1px solid rgba(27, 43, 34, 0.08);
    border-radius: 16px;
    padding: 40px 30px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#team .author-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(27, 43, 34, 0.08);
}

#team .avatar-container {
    width: 110px;
    height: 110px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-background);
}

#team .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#team .custom-badge {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent-background);
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

#team .author-name {
    font-size: 1.35rem;
    color: var(--primary-text);
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 4px;
}

#team .author-role {
    font-size: 0.9rem;
    color: var(--muted-text-light-bg);
    font-weight: 500;
    margin-bottom: 20px;
}

#team .author-bio {
    color: var(--secondary-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    #team {
        padding: 50px 0;
    }

    #team h2 {
        font-size: 1rem !important;
        line-height: 1.2;
        hyphens: auto;
    }

    #team h3,
    #team .author-name {
        font-size: 0.875rem !important;
        line-height: 1.2;
        hyphens: auto;
    }

    #team .section-subtitle,
    #team .author-bio,
    #team .filter-btn {
        font-size: 0.875rem;
    }
}

/* ===== feedback_form ===== */
.nexvaro-feedback-section {
    overflow-x: hidden;
}

.nexvaro-feedback-section input:focus,
.nexvaro-feedback-section textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
    border-color: var(--accent-background) !important;
}

.nexvaro-feedback-section input::placeholder,
.nexvaro-feedback-section textarea::placeholder {
    color: var(--muted-text-light-bg);
    opacity: 0.7;
}

.nexvaro-feedback-section .btn:hover {
    opacity: 0.95;
}

.nexvaro-feedback-section a:hover {
    opacity: 0.85;
}

@media (max-width: 767.98px) {
    .nexvaro-feedback-section h2.nexvaro-title {
        font-size: 1rem !important;
        line-height: 1.2 !important;
        hyphens: auto;
    }

    .nexvaro-feedback-section h3.nexvaro-subtitle,
    .nexvaro-feedback-section h3.nexvaro-form-title {
        font-size: 0.875rem !important;
        line-height: 1.2 !important;
        hyphens: auto;
    }

    .nexvaro-feedback-section .nexvaro-text {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }

    .nexvaro-feedback-section .nexvaro-text-sm {
        font-size: 0.8rem !important;
    }
}

/* ===== footer ===== */
.footer-section {
    background-color: var(--primary-text);
    color: var(--primary-background);
    overflow-x: hidden;
    font-family: inherit;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-background);
    letter-spacing: -0.02em;
    display: inline-block;
}

.footer-heading {
    color: var(--primary-background);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.footer-text-muted {
    color: var(--muted-text-dark-bg);
    font-size: 0.875rem;
    line-height: 1.5;
}

.footer-link {
    color: var(--muted-text-dark-bg);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease-in-out;
}

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

.footer-comment-text {
    color: var(--primary-background);
    font-size: 0.8125rem;
    font-style: italic;
    line-height: 1.4;
}

.footer-comment-meta {
    color: var(--muted-text-dark-bg);
    font-size: 0.75rem;
    display: block;
}

.footer-tag {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--primary-background);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.footer-tag:hover {
    background-color: var(--accent-background);
    color: var(--accent-text);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-gdpr-text {
    color: var(--muted-text-dark-bg);
    font-size: 0.75rem;
    line-height: 1.5;
}

.footer-gdpr-text a {
    color: var(--accent-background);
    text-decoration: none;
    transition: text-decoration 0.2s ease-in-out;
}

.footer-gdpr-text a:hover {
    text-decoration: underline;
}

.footer-copyright-text {
    color: var(--muted-text-dark-bg);
    font-size: 0.75rem;
}

@media (max-width: 767.98px) {
    .footer-logo-text {
        font-size: 1.25rem;
    }

    .footer-heading {
        font-size: 0.8125rem;
        margin-top: 1rem;
    }

    .footer-gdpr-text,
    .footer-copyright-text {
        font-size: 0.7rem;
        line-height: 1.3;
    }
}