:root {
    --bg-primary: #F0F7FC;
    --bg-secondary: #E1EFFA;
    --bg-surface: #FFFFFF;
    --text-primary: #0F2942;
    --text-secondary: #3B5875;
    --accent-primary: #0284C7;
    --accent-hover: #0369A1;
    --highlight-soft: #BAE6FD;
    --border-main: #C5DDF0;
    --dark-footer: #0B1F33;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Newsreader', serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    font-size: 17px;
    font-weight: 400;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.bi,
[class^="bi-"],
[class*=" bi-"] {
    font-family: 'bootstrap-icons' !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Newsreader', serif;
    font-weight: 700;
    line-height: 1.15;
    margin-top: 0;
    margin-bottom: 0.6rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

button {
    cursor: pointer;
    border: none;
    font-family: 'Newsreader', serif;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

input,
textarea,
select,
button {
    font-family: 'Newsreader', serif;
    border-radius: 0px !important;
}

.card,
.btn,
.nav-link,
.modal-content,
.form-control {
    border-radius: 0px !important;
    box-shadow: none !important;
}

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

.cookie-consent-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    border-top: 2px solid var(--accent-primary);
    border-bottom: 1px solid var(--border-main);
    padding: 18px 24px;
    z-index: 1060;
}

.cookie-consent-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-primary);
}

.cookie-consent-text a {
    color: var(--accent-primary);
    font-weight: 600;
    border-bottom: 1px solid var(--accent-primary);
}

.cookie-consent-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookie-consent-btn {
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 0px;
    text-align: center;
}

.cookie-consent-btn-accept {
    background-color: var(--accent-primary);
    color: #FFFFFF;
    border: 1px solid var(--accent-primary);
}

.cookie-consent-btn-accept:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.cookie-consent-btn-reject {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-main);
}

.cookie-consent-btn-reject:hover {
    background-color: var(--bg-secondary);
}

@media (min-width: 768px) {
    .cookie-consent-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cookie-consent-actions {
        flex-direction: row;
        flex-shrink: 0;
    }
}

@media (max-width: 767.98px) {
    h1 {
        font-size: 34px;
        line-height: 1.1;
    }

    h2 {
        font-size: 26px;
        line-height: 1.15;
    }

    h3 {
        font-size: 20px;
        line-height: 1.25;
    }

    h4 {
        font-size: 18px;
    }

    h5 {
        font-size: 16px;
    }

    .text-break-mobile {
        word-break: break-word;
        overflow-wrap: break-word;
        font-size: 14px;
    }
}

/* ===== header ===== */
#site-header .calidrio-brand-icon {
    max-width: 56px;
    height: auto;
}

#site-header .brand-title {
    font-size: 2.25rem;
    line-height: 1;
}

@media (max-width: 991.98px) {
    #site-header .brand-title {
        font-size: 1.5rem;
    }

    #site-header .calidrio-brand-icon {
        max-width: 42px;
    }
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: 1050;
    display: none !important;
    opacity: 1;
}

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

#site-header a.nav-link:hover {
    color: var(--accent-primary) !important;
}

#site-header .btn:hover {
    background-color: var(--accent-hover) !important;
}

/* ===== hero_editorial_slider ===== */
.hero-editorial-section {
    background-color: var(--dark-footer);
    color: var(--bg-surface);
    min-height: 580px;
    position: relative
}

.hero-section-tab {
    background-color: rgba(11, 31, 51, 0.92);
    border-bottom: 1px solid rgba(197, 221, 240, 0.2)
}

.editorial-line {
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary) 0%, rgba(186, 230, 253, 0.2) 100%)
}

.hero-slider-wrapper {
    overflow: hidden;
    width: 100%
}

.hero-track {
    transition: transform 600ms cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%
}

.hero-slide {
    min-height: 560px;
    height: 72vh;
    max-height: 820px
}

.hero-image-wrap {
    height: 100%
}

.hero-cinematic-overlay {
    background: rgba(11, 31, 51, 0.52)
}

.hero-magazine-title {
    font-size: clamp(1.75rem, 4vw, 3.5rem);
    letter-spacing: -0.03em;
    color: #ffffff;
    line-height: 1.1;
    text-transform: uppercase
}

.hero-category-label {
    background-color: var(--accent-primary);
    font-size: 0.75rem;
    letter-spacing: 0.08em
}

.hero-glass-card {
    background: rgba(15, 41, 66, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(186, 230, 253, 0.35);
    max-width: 680px;
    box-shadow: none;
    color: #ffffff
}

.hero-headline {
    font-size: clamp(1.1rem, 2.2vw, 1.85rem);
    line-height: 1.2;
    color: #ffffff;
    hyphens: auto
}

.hero-excerpt {
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    line-height: 1.4;
    color: #f0f7fc
}

.hero-navigation-controls {
    bottom: 2rem;
    right: 2rem;
    z-index: 10
}

.hero-nav-btn {
    width: 48px;
    height: 48px;
    background: rgba(11, 31, 51, 0.75);
    border: 1px solid rgba(186, 230, 253, 0.4);
    border-radius: 0;
    cursor: pointer;
    transition: background-color .2s ease
}

.hero-nav-btn:hover {
    background: var(--accent-primary)
}

.hero-modal-backdrop {
    background-color: rgba(11, 31, 51, 0.85);
    z-index: 9999
}

.hero-modal-window {
    width: 100%;
    max-width: 680px;
    border-radius: 0;
    box-shadow: none
}

.hero-modal-window h3 {
    color: var(--text-primary)
}

.hero-modal-window p {
    color: var(--text-secondary)
}

@media(max-width:767px) {
    .hero-slide {
        min-height: 500px;
        height: auto
    }

    .hero-headline {
        font-size: 1rem;
        line-height: 1.2
    }

    .hero-navigation-controls {
        bottom: 1rem;
        right: 1rem
    }
}

/* ===== hero_news_featured ===== */
#hero-news {
    overflow: hidden;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

#hero-news .hero-tab-title {
    background-color: var(--accent-primary);
    color: var(--bg-surface);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    border-radius: 0;
}

#hero-news .hero-tab-icon {
    color: var(--bg-surface);
    font-size: 1rem;
}

#hero-news .hero-header-rule {
    height: 1px;
    background-color: var(--text-primary);
}

#hero-news .hero-lead-card {
    position: relative;
    min-height: 430px;
    background-color: var(--dark-footer);
    color: var(--bg-surface);
    cursor: pointer;
    border-radius: 0;
    border: 1px solid var(--border-main);
    transition: border-color 0.2s ease;
}

#hero-news .hero-lead-card:hover,
#hero-news .hero-lead-card:focus-visible {
    border-color: var(--accent-primary);
    outline: 2px solid var(--accent-primary);
    outline-offset: -2px;
}

#hero-news .hero-lead-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}

#hero-news .hero-lead-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 31, 51, 0.15) 0%, rgba(11, 31, 51, 0.52) 48%, rgba(11, 31, 51, 0.94) 100%);
    z-index: 1;
}

#hero-news .hero-lead-content {
    position: relative;
    z-index: 2;
    color: var(--bg-surface);
}

#hero-news .hero-cat-lead {
    background-color: var(--accent-primary);
    color: var(--bg-surface);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    border-radius: 0;
}

#hero-news .hero-date-lead {
    color: var(--highlight-soft);
    font-size: 0.8rem;
}

#hero-news .hero-date-icon-light {
    color: var(--highlight-soft);
    font-size: 0.85rem;
}

#hero-news .hero-lead-title {
    color: var(--bg-surface);
    font-size: 1rem;
    line-height: 1.2;
    hyphens: auto;
}

#hero-news .hero-lead-teaser {
    color: var(--bg-primary);
    font-size: 0.92rem;
    line-height: 1.45;
}

#hero-news .hero-side-card {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-main);
    border-radius: 0;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

#hero-news .hero-side-card:hover,
#hero-news .hero-side-card:focus-visible {
    border-color: var(--accent-primary);
    background-color: var(--bg-secondary);
    outline: 2px solid var(--accent-primary);
    outline-offset: -2px;
}

#hero-news .hero-side-thumb-wrap {
    flex-shrink: 0;
    width: 100%;
}

#hero-news .hero-side-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

#hero-news .hero-cat-side {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    border-left: 3px solid var(--accent-primary);
    border-radius: 0;
}

#hero-news .hero-date-side {
    color: var(--text-secondary);
    font-size: 0.76rem;
}

#hero-news .hero-date-icon-dark {
    color: var(--accent-hover);
    font-size: 0.8rem;
}

#hero-news .hero-side-title {
    color: var(--text-primary);
    font-size: 0.875rem;
    line-height: 1.25;
    hyphens: auto;
}

#hero-news .hero-side-teaser {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.38;
}

#hero-news .hero-modal-content {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-main);
    box-shadow: none;
}

#hero-news .hero-modal-header,
#hero-news .hero-modal-footer {
    background-color: var(--bg-primary);
    border-color: var(--border-main);
}

#hero-news .hero-modal-close-icon {
    color: var(--text-primary);
    background-color: transparent;
    border: 1px solid var(--border-main);
}

#hero-news .hero-modal-close-icon:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-hover);
}

#hero-news .hero-modal-title {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.22;
    hyphens: auto;
}

#hero-news .hero-modal-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

#hero-news .hero-modal-article-text p {
    color: var(--text-primary);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

#hero-news .hero-modal-article-text h3 {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25;
    hyphens: auto;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--accent-primary);
}

#hero-news .hero-modal-close-btn {
    background-color: var(--accent-primary);
    color: var(--bg-surface);
    border: none;
    transition: background-color 0.2s ease;
}

#hero-news .hero-modal-close-btn:hover {
    background-color: var(--accent-hover);
    color: var(--bg-surface);
}

@media (min-width: 576px) {
    #hero-news .hero-side-thumb-wrap {
        width: 126px;
    }

    #hero-news .hero-side-img {
        width: 126px;
        height: 126px;
    }
}

@media (min-width: 768px) {
    #hero-news .hero-lead-title {
        font-size: 1.85rem;
        line-height: 1.15;
    }

    #hero-news .hero-side-title {
        font-size: 0.96rem;
        line-height: 1.28;
    }

    #hero-news .hero-modal-title {
        font-size: 1.65rem;
        line-height: 1.2;
    }

    #hero-news .hero-modal-article-text h3 {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    #hero-news .hero-modal-img {
        height: 360px;
    }
}

@media (min-width: 992px) {
    #hero-news .hero-lead-card {
        min-height: 580px;
    }

    #hero-news .hero-lead-title {
        font-size: 2.2rem;
        line-height: 1.12;
    }

    #hero-news .hero-side-thumb-wrap {
        width: 122px;
    }

    #hero-news .hero-side-img {
        width: 122px;
        height: 100%;
        min-height: 132px;
    }
}

/* ===== latest_publications_grid ===== */
#latest-news .card {
    transition: border-color 0.2s ease, transform 0.2s ease;
    hyphens: auto;
}

#latest-news .card:hover {
    border-color: var(--accent-primary) !important;
    transform: translateY(-2px);
}

#latest-news .btn:hover {
    background-color: var(--accent-hover) !important;
}

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

    #latest-news h3 {
        font-size: 0.875rem !important;
        line-height: 1.2;
    }
}

/* ===== technology_articles ===== */
.tech-editorial-section {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
}

.tech-section-tab {
    background-color: var(--accent-primary);
    color: var(--bg-surface);
    font-size: 1.125rem;
    letter-spacing: 0.04em;
    line-height: 1.25;
    border-radius: 0;
}

.tech-section-rule {
    height: 2px;
    background-color: var(--accent-primary);
}

.tech-card {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-main);
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.tech-card:hover,
.tech-card:focus-visible {
    border-color: var(--accent-primary);
    outline: 2px solid var(--accent-primary);
    outline-offset: -2px;
}

.tech-card-media {
    height: 210px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-main);
}

.tech-card-img {
    height: 210px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.tech-card-body {
    background-color: var(--bg-surface);
    color: var(--text-primary);
}

.tech-card-tag {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.75rem;
    border: 1px solid var(--border-main);
    border-radius: 0;
}

.tech-icon-accent {
    color: var(--accent-primary);
    font-size: 0.875rem;
}

.tech-icon-secondary {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.tech-card-date {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.tech-card-title {
    color: var(--text-primary);
    font-size: 1.125rem;
    line-height: 1.3;
}

.tech-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.tech-modal-content {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
    border-radius: 0;
    box-shadow: none;
}

.tech-modal-header {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-main);
    border-radius: 0;
}

.tech-modal-category {
    color: var(--accent-primary);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.tech-modal-title {
    color: var(--text-primary);
    font-size: 1.375rem;
    line-height: 1.25;
}

.tech-modal-close-icon {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-main);
    border-radius: 0;
    padding: 0.4rem 0.65rem;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tech-modal-close-icon:hover,
.tech-modal-close-icon:focus-visible {
    background-color: var(--accent-primary);
    color: var(--bg-surface);
    border-color: var(--accent-primary);
}

.tech-modal-body {
    background-color: var(--bg-surface);
    color: var(--text-primary);
}

.tech-modal-meta {
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-main);
}

.tech-modal-figure {
    border: 1px solid var(--border-main);
    background-color: var(--bg-primary);
}

.tech-modal-img {
    max-height: 360px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.tech-modal-caption {
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-main);
}

.tech-article-prose p {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.tech-article-prose h4 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--accent-primary);
}

.tech-modal-footer {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-top: 1px solid var(--border-main);
    border-radius: 0;
}

.tech-modal-source {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.tech-modal-close-btn {
    background-color: var(--accent-primary);
    color: var(--bg-surface);
    border: 1px solid var(--accent-primary);
    border-radius: 0;
    transition: background-color 0.2s ease;
}

.tech-modal-close-btn:hover,
.tech-modal-close-btn:focus-visible {
    background-color: var(--accent-hover);
    color: var(--bg-surface);
    border-color: var(--accent-hover);
}

@media (max-width:767.98px) {
    #technology h2 {
        font-size: 1rem;
        line-height: 1.25;
        hyphens: auto;
    }

    #technology h3 {
        font-size: 0.875rem;
        line-height: 1.25;
        hyphens: auto;
    }

    #technology .tech-article-prose h4 {
        font-size: 0.875rem;
        line-height: 1.25;
        hyphens: auto;
    }
}

/* ===== science_articles ===== */
#science {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-main);
    border-bottom: 1px solid var(--border-main);
    overflow: hidden;
}

#science .section-tab {
    background-color: var(--accent-primary);
    border-radius: 0;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

#science .section-rule {
    height: 2px;
    background-color: var(--accent-primary);
}

#science .science-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-main);
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
    outline: none;
}

#science .science-card:hover,
#science .science-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
}

#science .card-media-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

#science .card-portrait-img {
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

#science .badge-topic {
    background-color: var(--accent-primary);
    border-radius: 0;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

#science .card-headline {
    font-size: 1.05rem;
    line-height: 1.3;
    color: var(--text-primary);
    hyphens: auto;
}

#science .card-summary {
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

#science .card-meta {
    font-size: 0.78rem;
}

#science .sharp-modal {
    border-radius: 0;
    border: 1px solid var(--border-main);
}

#science .modal-article-img {
    height: 320px;
    object-fit: cover;
    border-radius: 0;
}

#science .sharp-btn {
    border-radius: 0;
    background-color: var(--text-secondary);
    border-color: var(--text-secondary);
}

#science .sharp-btn:hover {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
}

@media (max-width: 767px) {
    #science .card-headline {
        font-size: 1rem;
        line-height: 1.25;
    }

    #science .card-media-wrapper {
        height: 230px;
    }

    #science .modal-article-img {
        height: 200px;
    }
}

/* ===== culture_articles ===== */
#culture {
    overflow: hidden;
}

.culture-card {
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
    hyphens: auto;
}

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

.culture-card:hover .culture-card-title {
    color: var(--accent-primary) !important;
}

.culture-card-img-wrap {
    width: 100%;
    height: 210px;
    overflow: hidden;
}

.culture-card-img {
    height: 210px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.culture-card:hover .culture-card-img {
    transform: scale(1.03);
}

.culture-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fs-7 {
    font-size: 0.75rem;
}

@media (max-width: 767.98px) {
    .culture-card-title {
        font-size: 1rem !important;
        line-height: 1.2 !important;
    }

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

    .modal-article-text h3 {
        font-size: 0.875rem !important;
    }

    .culture-card-img-wrap,
    .culture-card-img {
        height: 180px;
    }
}

/* ===== trending_stories_list ===== */
#trending-stories .trending-row-item {
    transition: background-color 0.2s ease, transform 0.15s ease;
    cursor: pointer;
}

#trending-stories .trending-row-item:hover {
    background-color: var(--bg-primary);
    transform: translateX(4px);
}

#trending-stories .modal-content,
#trending-stories .badge,
#trending-stories .editorial-tab,
#trending-stories .btn,
#trending-stories img {
    border-radius: 0 !important;
}

#trending-stories .story-title {
    hyphens: auto;
    line-height: 1.3;
}

@media (max-width: 767.98px) {
    #trending-stories h2 {
        font-size: 1rem !important;
    }

    #trending-stories h3 {
        font-size: 0.875rem !important;
    }

    #trending-stories .index-number {
        font-size: 1.5rem !important;
        min-width: 35px !important;
    }
}

/* ===== travel_photo_essays ===== */
#travel {
    overflow: hidden;
}

#travel .travel-card {
    transition: transform 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

#travel .travel-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary) !important;
}

#travel .travel-card:focus-visible {
    outline: 2px solid var(--accent-primary);
}

#travel .modal-content {
    box-shadow: none;
    border-radius: 0;
}

#travel .btn-close:focus {
    box-shadow: none;
    outline: none;
}

@media (max-width: 767.98px) {
    #travel h2 {
        font-size: 1rem !important;
        line-height: 1.2 !important;
        hyphens: auto;
    }

    #travel h3 {
        font-size: 0.875rem !important;
        line-height: 1.2 !important;
        hyphens: auto;
    }

    #travel .editorial-tab {
        font-size: 0.75rem !important;
    }
}

/* ===== lifestyle_articles ===== */
#lifestyle {
    overflow: hidden;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-main);
    border-bottom: 1px solid var(--border-main);
    padding: 3.5rem 0;
}

#lifestyle .cal-lifestyle-tab {
    background-color: var(--accent-primary);
    font-size: 0.9rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

#lifestyle .cal-lifestyle-rule {
    height: 2px;
    background-color: var(--accent-primary);
}

#lifestyle .cal-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-main);
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#lifestyle .cal-card:hover {
    background-color: var(--bg-secondary);
    transform: translateY(-3px);
}

#lifestyle .cal-card:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

#lifestyle .cal-card-img-wrapper {
    height: 220px;
    width: 100%;
    overflow: hidden;
}

#lifestyle .cal-card-tag {
    color: var(--accent-primary);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

#lifestyle .cal-card-title {
    color: var(--text-primary);
    font-size: 1.15rem;
    line-height: 1.3;
}

#lifestyle .cal-card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

#lifestyle .modal-content {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: 0;
}

#lifestyle .modal-title {
    color: var(--text-primary);
}

#lifestyle .cal-modal-img {
    max-height: 360px;
    width: 100%;
}

#lifestyle .cal-article-subtitle {
    color: var(--text-primary);
    font-size: 1.05rem;
}

#lifestyle .cal-article-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

#lifestyle .cal-btn-modal-close {
    background-color: var(--accent-primary);
    color: #FFFFFF;
    border-radius: 0;
    border: none;
}

#lifestyle .cal-btn-modal-close:hover {
    background-color: var(--accent-hover);
    color: #FFFFFF;
}

@media(max-width:767.98px) {
    #lifestyle {
        padding: 2rem 0;
    }

    #lifestyle h2,
    #lifestyle .modal-title {
        font-size: 1rem;
        line-height: 1.2;
        hyphens: auto;
    }

    #lifestyle h3 {
        font-size: 0.875rem;
        line-height: 1.2;
        hyphens: auto;
    }

    #lifestyle .cal-card-img-wrapper {
        height: 180px;
    }
}

/* ===== editors_picks_curation ===== */
#editors-picks .js-modal-card {
    transition: transform 0.2s ease, border-left-color 0.2s ease;
    hyphens: auto;
}

#editors-picks .js-modal-card:hover {
    transform: translateY(-3px);
    border-left-color: var(--accent-hover) !important;
}

#editors-picks h2,
#editors-picks h3 {
    hyphens: auto;
}

@media (max-width: 767.98px) {
    #editors-picks h2 {
        font-size: 1rem !important;
        line-height: 1.2 !important;
    }

    #editors-picks h3 {
        font-size: 0.875rem !important;
        line-height: 1.2 !important;
    }
}

/* ===== category_tabs_explorer ===== */
.category-explorer-section {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    hyphens: auto;
}

.category-badge-title {
    background-color: var(--accent-primary);
    color: #FFFFFF;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

.category-extending-rule {
    height: 3px;
    background-color: var(--accent-primary);
}

.category-nav-tabs .nav-link {
    background-color: #FFFFFF;
    color: var(--text-primary);
    border: 1px solid #A8CBE8 !important;
    border-radius: 0 !important;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.category-nav-tabs .nav-link:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.category-nav-tabs .nav-link.active {
    background-color: var(--accent-primary) !important;
    color: #FFFFFF !important;
    border-color: var(--accent-primary) !important;
}

.category-nav-tabs .nav-link.active i {
    color: #FFFFFF !important;
}

.category-nav-tabs .nav-link i {
    color: var(--accent-primary);
}

.news-magazine-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-main);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
    outline: none;
}

.news-magazine-card:hover,
.news-magazine-card:focus {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.card-img-standard {
    height: 190px;
    object-fit: cover;
}

.news-title-sm {
    font-size: 1.05rem;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.news-teaser-text {
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.modal-content {
    background-color: var(--bg-surface);
    border-radius: 0 !important;
}

.article-body-text {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.7;
}

.article-body-text h3 {
    color: var(--text-primary);
}

@media (max-width: 767.98px) {
    h1 {
        font-size: 1.125rem !important;
        line-height: 1.2 !important;
    }

    h2,
    .display-6 {
        font-size: 1rem !important;
        line-height: 1.25 !important;
    }

    h3 {
        font-size: 0.875rem !important;
        line-height: 1.3 !important;
    }

    .category-badge-title {
        font-size: 0.85rem;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .category-nav-tabs .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem !important;
    }

    .card-img-standard {
        height: 160px;
    }

    .modal-feature-media img {
        height: 210px !important;
    }
}

/* ===== contact_feedback_form ===== */
.calidrio-contact-section {
    background-color: #E1EFFA;
    width: 100%;
}

.editorial-tab-badge {
    background-color: #0284C7;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    border-radius: 0;
}

.editorial-tab-rule {
    height: 2px;
    background-color: #0284C7;
}

.text-primary-custom {
    color: #0F2942 !important;
}

.text-secondary-custom {
    color: #3B5875 !important;
}

.text-accent-custom {
    color: #0284C7 !important;
}

.border-bottom-editorial {
    border-bottom: 2px solid #C5DDF0;
}

.editorial-meta-box {
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid #C5DDF0;
    border-radius: 0;
}

.editorial-notice-box {
    background-color: #F0F7FC;
    border-left: 3px solid #0284C7;
    border-radius: 0;
}

.hover-link:hover {
    color: #0284C7 !important;
    text-decoration: underline !important;
}

.feedback-form-wrapper {
    background-color: #FFFFFF;
    border: 1px solid #A8CBE8;
    border-radius: 0;
    box-shadow: none;
}

.form-control-editorial {
    border-radius: 0;
    border: 1px solid #C5DDF0;
    background-color: #F0F7FC;
    padding: 0.7rem 0.9rem;
}

.form-control-editorial:focus {
    background-color: #FFFFFF;
    border-color: #0284C7;
    box-shadow: none;
    color: #0F2942;
}

.form-control-editorial::placeholder {
    color: #3B5875;
    opacity: 0.75;
}

.form-check-editorial {
    border-radius: 0;
    border-color: #C5DDF0;
}

.form-check-editorial:checked {
    background-color: #0284C7;
    border-color: #0284C7;
}

.btn-editorial-submit {
    background-color: #0284C7;
    border: 1px solid #0284C7;
    border-radius: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    letter-spacing: 0.04em;
}

.btn-editorial-submit:hover {
    background-color: #0369A1;
    border-color: #0369A1;
    color: #FFFFFF;
}

@media(max-width:767.98px) {
    .editorial-headline {
        font-size: 1rem;
        line-height: 1.2;
        hyphens: auto;
    }

    .editorial-meta-box h3,
    .feedback-form-wrapper h3 {
        font-size: 0.875rem;
        line-height: 1.2;
        hyphens: auto;
    }

    .feedback-form-wrapper {
        padding: 1.25rem !important;
    }
}

/* ===== footer ===== */
#site-footer {
    overflow: hidden;
    background-color: #0B1F33;
    color: #F0F7FC;
    border-top: 3px solid #0284C7;
}

#site-footer .editorial-category-badge {
    background-color: #0284C7;
    color: #FFFFFF;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

#site-footer .editorial-tab-line {
    height: 2px;
    background-color: #0284C7;
}

#site-footer .editorial-credits-panel,
#site-footer .section-index-panel {
    border: 1px solid #1A3654;
    background-color: #0e263d;
}

#site-footer .editorial-heading {
    color: #F0F7FC;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    hyphens: auto;
    line-height: 1.2;
}

#site-footer .editorial-text-secondary {
    color: #93C5FD;
}

#site-footer .editorial-text-secondary strong {
    color: #F0F7FC;
}

#site-footer .editorial-index-link {
    color: #93C5FD;
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-block;
    transition: color 0.2s ease;
}

#site-footer .editorial-index-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

#site-footer .editorial-legal-divider {
    height: 1px;
    background-color: #1A3654;
}

#site-footer .editorial-legal-link {
    color: #93C5FD;
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.2s ease;
}

#site-footer .editorial-legal-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

#site-footer .editorial-copyright-text {
    color: #93C5FD;
    font-size: 0.8125rem;
}

#site-footer .btn-outline-info {
    color: #93C5FD;
    border-color: #0284C7;
}

#site-footer .btn-outline-info:hover {
    background-color: #0284C7;
    color: #FFFFFF;
    border-color: #0284C7;
}

#site-footer .editorial-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

#site-footer .editorial-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 31, 51, 0.85);
    z-index: 1051;
}

#site-footer .editorial-modal-dialog {
    position: relative;
    z-index: 1052;
    width: 90%;
    max-width: 480px;
    background-color: #0e263d;
    border: 2px solid #0284C7;
    padding: 1.5rem;
    box-shadow: none;
}

@media(max-width:767px) {
    #site-footer .editorial-heading {
        font-size: 0.95rem;
    }

    #site-footer .editorial-copyright-text,
    #site-footer .editorial-legal-link {
        font-size: 0.75rem;
    }
}