:root {
    --primary-color: #e63946;
    --secondary-color: #457b9d;
    --background-color: #f8f9fa;
    --text-color: #333;
    --light-gray: #e9ecef;
    --medium-gray: #dee2e6;
    --dark-gray: #6c757d;
    --header-font: 'Playfair Display', serif;
    --body-font: 'Source Sans Pro', sans-serif;
    --container-width: 1200px;
    --spacing-unit: 1rem;
}

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

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #c52d39;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.skip-to-content {
    position: absolute;
    left: -999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-to-content:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
    width: auto;
    height: auto;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    z-index: 1000;
    text-align: center;
    border-radius: 4px;
    outline: 2px solid white;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar {
    background-color: #333;
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-weather {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 0.875rem;
}

.social-links a:hover {
    color: var(--primary-color);
}

.main-header {
    padding: 1.5rem 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-align: center;
    flex: 1;
}

.logo h1 {
    font-family: var(--header-font);
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
}

.logo a {
    color: var(--text-color);
}

.logo h1 a:hover {
    color: var(--primary-color);
}

.tagline {
    color: var(--dark-gray);
}

.ad-space {
    width: 300px;
    height: 90px;
}

.ad-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--light-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

.main-nav {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 1rem;
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-menu li.active a,
.nav-menu li a:hover {
    color: var(--primary-color);
}

.nav-menu li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}


.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-form {
    width: 80%;
    max-width: 800px;
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 1.25rem 60px 1.25rem 20px;
    font-size: 1.25rem;
    background-color: white;
    border: none;
    border-radius: 4px;
}

.search-form button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 60px;
    border: none;
    background-color: var(--primary-color);
    color: white;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: var(--secondary-color);
}

.close-search {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.breaking-news {
    margin: 1rem 0;
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-color);
}

.section-title {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    font-family: var(--header-font);
    font-size: 1.5rem;
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.section-title h2 a {
    color: var(--text-color);
}

.section-title h2 a:hover {
    color: var(--primary-color);
}

.breaking-news-ticker {
    background-color: white;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.breaking-news-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 50px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
}

.ticker-label {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    margin-right: 1rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ticker-content {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.ticker-scroll {
    display: inline-block;
    animation: ticker 150s linear infinite;
    padding-right: 50px;
    white-space: nowrap;
    transition: animation-play-state 0.2s ease;
    will-change: transform;
}

.ticker-scroll:hover {
    animation-play-state: paused;
}

.ticker-item {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    margin-right: 40px;
    display: inline-block;
}

.ticker-item:last-child {
    margin-right: 40px;
}

.ticker-item:hover {
    color: var(--primary-color);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.featured-news {
    margin-bottom: 2rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.main-story {
    overflow: hidden;
}

.featured-article {
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.article-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.article-image a {
    display: contents;
}

.article-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.article-image:hover img {
    transform: scale(1.03);
}

.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.category-tag a {
    color: white;
    text-decoration: none;
}

.article-content {
    padding: 1.5rem;
}

.article-title {
    font-family: var(--header-font);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.article-title a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    align-items: center;
    color: #555;
    font-size: 0.875rem;
    gap: 1rem;
}

.article-meta time {
    color: var(--dark-gray);
    position: relative;
}

.article-meta time.recent {
    color: var(--primary-color);
    font-weight: 500;
}

.article-meta time:hover:after {
    content: attr(title);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-gray);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
}

.secondary-stories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.secondary-article {
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: calc(50% - 0.75rem);
}

.secondary-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.secondary-article .article-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    padding: 1rem 1rem 0;
}

.secondary-article .article-meta {
    padding: 0 1rem 1rem;
    margin-top: auto;
}

.content-sidebar-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
    margin: 2rem auto;
    max-width: var(--container-width);
    padding: 0 15px;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-section {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.news-card .article-image {
    height: 200px;
    flex-shrink: 0;
}

.news-card .article-image a {
    display: contents;
}

.news-card .article-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

.news-card .article-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card .article-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.news-card .article-excerpt {
    font-size: 0.95rem;
    flex-grow: 1;
}

.news-card .article-meta {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

.section-footer {
    margin-top: 1.5rem;
    text-align: right;
}

.view-all-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--light-gray);
    color: var(--text-color);
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.view-all-link::after {
    content: ' →';
}

.sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.sidebar-widget {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.widget-title {
    margin-bottom: 1.25rem;
}

.widget-title h3 {
    font-family: var(--header-font);
    font-size: 1.25rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.widget-title h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.popular-posts-list {
    list-style: none;
}

.popular-posts-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.popular-posts-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--light-gray);
    color: var(--text-color);
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.post-details h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.post-details .category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--secondary-color);
}

.newsletter-form p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.newsletter-form button {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--secondary-color);
}

.category-list {
    list-style: none;
}

.category-list li {
    border-bottom: 1px solid var(--light-gray);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.category-list a span {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    border-radius: 3px;
    padding: 0.1rem 0.5rem;
    font-size: 0.75rem;
}

.category-list a:hover {
    color: var(--primary-color);
}

.sidebar .ad-widget {
    padding: 0;
    overflow: hidden;
    text-align: center;
}

.sidebar .ad-placeholder {
    padding: 2rem;
    height: 250px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud a {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    border-radius: 30px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.tag-cloud a:hover {
    background-color: var(--primary-color);
    color: white;
}

.newsletter-banner {
    background-color: var(--secondary-color);
    color: #333;
    padding: 2rem 0;
    margin: 3rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-family: var(--header-font);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.newsletter-content p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.newsletter-form-horizontal {
    display: flex;
    gap: 0.75rem;
}

.newsletter-form-horizontal input {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    color: var(--text-color);
}

.newsletter-form-horizontal button {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form-horizontal button:hover {
    background-color: #c52d39;
}

@media (max-width: 480px) {
    .main-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .ad-space {
        width: 100%;
    }

    .top-bar .container {
        padding: 0.5rem 15px;
        justify-content: space-between;
    }

    .date-weather {
        flex-direction: row;
        font-size: 0.75rem;
        gap: 0.25rem;
    }

    .current-date {
        max-width: 110px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .weather-widget {
        max-width: 110px;
    }

    .social-links {
        margin-top: 0;
    }

    .social-links a {
        padding: 5px;
    }

    .breaking-news-ticker {
        flex-direction: column;
        align-items: flex-start;
    }

    .ticker-label {
        margin-bottom: 0.5rem;
    }

    .newsletter-form-horizontal {
        flex-direction: column;
        gap: 0.5rem;
    }

    .newsletter-form-horizontal input,
    .newsletter-form-horizontal button {
        width: 100%;
    }

    .weather-widget {
        max-width: 100%;
        margin: 0 auto;
    }
}

.article-title,
.section-title h2,
.widget-title h3 {
    font-family: var(--header-font);
    font-weight: 600;
}

.alert {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.alert h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.alert ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.alert li {
    margin-bottom: 0.5rem;
}

.db-status {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 1.5rem;
}

.db-status h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.success {
    color: #198754;
}

.error {
    color: #dc3545;
}

/* Main Header Elements - Corrected Alignment */
.main-header .container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

.menu-toggle,
.search-button,
.close-menu {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.close-menu {
    display: none;
}

.menu-toggle {
    left: 15px;
}

.search-button {
    right: 15px;
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1a1a;
        --text-color: #e1e1e1;
        --light-gray: #2c2c2c;
        --medium-gray: #404040;
        --dark-gray: #888;
    }

    body {
        background-color: var(--background-color);
        color: var(--text-color);
    }

    .site-header,
    .main-nav,
    .sidebar-widget,
    .article-card,
    .news-card {
        background-color: #242424;
    }

    .article-card,
    .news-card,
    .sidebar-widget {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    input,
    textarea {
        background-color: #333;
        border-color: #404040;
        color: var(--text-color);
    }

    input:focus,
    textarea:focus {
        background-color: #383838;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.lazy-load {
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.lazy-load.loaded {
    opacity: 1;
}

@media print {

    .site-header,
    .site-footer,
    .sidebar,
    .share-buttons,
    .newsletter-banner {
        display: none !important;
    }

    .content-sidebar-wrapper {
        display: block;
    }

    .article-content {
        font-size: 12pt;
        line-height: 1.5;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 90%;
    }
}


.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-form {
    width: 80%;
    max-width: 800px;
    position: relative;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: white;
    display: flex;
}

.search-form input {
    flex-grow: 1;
    padding: 1rem 60px 1rem 2rem;
    font-size: 1.25rem;
    background-color: white;
    border: none;
    border-radius: 50px 0 0 50px;
    outline: none;
}

.search-form button {
    width: 60px;
    border: none;
    background: linear-gradient(45deg, var(--primary-color), #ff6b6b);
    color: white;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-form button i {
    font-size: 1.4rem;
}

.search-form button:hover {
    background: linear-gradient(45deg, #c52d39, #e63946);
    transform: scale(1.05);
}

.close-search {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-search:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.weather-display {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.weather-display i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

@keyframes weather-pulse {
    0% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }

    100% {
        opacity: 0.8;
    }
}

.weather-display i.fa-sun {
    color: #ffc107;
    animation: weather-pulse 3s infinite;
}

.weather-display i.fa-cloud,
.weather-display i.fa-cloud-sun,
.weather-display i.fa-cloud-moon {
    color: #6c757d;
}

.weather-display i.fa-cloud-rain,
.weather-display i.fa-cloud-sun-rain,
.weather-display i.fa-cloud-moon-rain {
    color: #0dcaf0;
}

.weather-display i.fa-snowflake {
    color: #a8d5ff;
    animation: weather-pulse 3s infinite;
}

.weather-display i.fa-bolt {
    color: #ffc107;
    animation: weather-pulse 1s infinite;
}

.weather-display i.fa-smog {
    color: #adb5bd;
}

@media (max-width: 768px) {
    .weather-display {
        margin-top: 0.5rem;
    }
}

.weather-widget {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 5px;
    margin-left: 6px;
    max-width: 400px;
    position: relative;
}

.weather-cities-carousel {
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    margin: 0 5px;
}

.weather-cities-carousel .weather-city-item {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    width: 100%;
    transition: transform 0.3s ease;
}

.weather-city-item .city-name {
    font-weight: 600;
    margin-right: 10px;
    white-space: nowrap;
}

.weather-city-item .city-temp {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.weather-city-item .city-temp i {
    font-size: 1.1rem;
}

.weather-prev,
.weather-next {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.weather-prev:hover,
.weather-next:hover {
    color: rgba(255, 255, 255, 1);
}

@media (max-width: 768px) {
    .weather-widget {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .weather-city-item .city-name {
        font-size: 0.75rem;
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .weather-city-item .city-temp {
        font-size: 0.75rem;
    }

    .weather-prev,
    .weather-next {
        font-size: 0.75rem;
        width: 16px;
        height: 16px;
    }
}

.sidebar-weather {
    padding: 5px;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.current-weather {
    text-align: center;
    padding: 10px;
}

.weather-city-select {
    margin-bottom: 10px;
}

.weather-city-dropdown {
    padding: 5px 10px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    width: 100%;
    background-color: white;
    font-size: 14px;
}

.weather-display-large {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.weather-icon-large {
    font-size: 3rem;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-icon-large i.fa-sun {
    color: #ffc107;
    animation: weather-pulse 3s infinite;
}

.weather-icon-large i.fa-cloud,
.weather-icon-large i.fa-cloud-sun,
.weather-icon-large i.fa-cloud-moon {
    color: #6c757d;
}

.weather-icon-large i.fa-cloud-rain,
.weather-icon-large i.fa-cloud-sun-rain,
.weather-icon-large i.fa-cloud-moon-rain {
    color: #0dcaf0;
}

.weather-icon-large i.fa-snowflake {
    color: #a8d5ff;
    animation: weather-pulse 3s infinite;
}

.weather-icon-large i.fa-bolt {
    color: #ffc107;
    animation: weather-pulse 1s infinite;
}

.weather-icon-large i.fa-smog {
    color: #adb5bd;
}

.weather-info {
    text-align: left;
}

.weather-temp {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
}

.weather-desc {
    display: block;
    color: var(--dark-gray);
    font-size: 0.9rem;
    text-transform: capitalize;
}

.weather-details {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    border-top: 1px solid var(--light-gray);
    padding-top: 10px;
}

.weather-detail {
    flex: 1;
    text-align: center;
}

.detail-label {
    display: block;
    font-size: 0.8rem;
    color: var(--dark-gray);
}

.detail-value {
    font-weight: bold;
}

.weather-updated {
    font-size: 0.8rem;
    color: var(--dark-gray);
    text-align: right;
    margin-top: 5px;
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

.weather-carousel {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.weather-carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    transition: transform 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
}

.weather-carousel-item.active {
    transform: translateX(0);
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.weather-carousel-item.prev {
    transform: translateX(-100%);
    opacity: 0;
    z-index: 1;
}

.weather-carousel-item.next {
    transform: translateX(100%);
    opacity: 0;
    z-index: 1;
}

.weather-city-header {
    text-align: center;
    margin-bottom: 10px;
}

.weather-city-header h4 {
    margin: 0;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.prev-city,
.next-city {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.prev-city:hover,
.next-city:hover {
    background-color: var(--light-gray);
}

.carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--medium-gray);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

.weather-updated {
    font-size: 0.8rem;
    color: var(--dark-gray);
    text-align: center;
    margin-top: 10px;
}

@keyframes weather-pulse {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }

    100% {
        opacity: 0.8;
        transform: scale(1);
    }
}

.site-footer {
    background-color: #2b2b2b;
    color: #adb5bd;
    padding: 3rem 0 0;
    margin-top: 3rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget-area {
    display: flex;
    flex-direction: column;
}

.footer-widget h3 {
    color: white;
    font-family: var(--header-font);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-widget p {
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 0.75rem;
}

.footer-widget ul li a {
    color: #adb5bd;
    transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
    color: white;
}

.footer-widget .social-links {
    margin-top: 1rem;
}

.footer-widget .social-links a {
    color: #adb5bd;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.footer-widget .social-links a:hover {
    color: white;
}

.contact-info ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-info ul li i {
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.footer-bottom {
    background-color: #222;
    color: #6c757d;
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: #adb5bd;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
}

.breadcrumbs {
    padding: 1rem 0;
    background-color: white;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 1.5rem;
}

.breadcrumbs ol {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumbs li {
    font-size: 0.875rem;
    color: var(--dark-gray);
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: var(--medium-gray);
}

.breadcrumbs a {
    color: var(--text-color);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs li:last-child {
    color: var(--primary-color);
}

.pagination {
    margin: 2.5rem 0;
}

.pagination ul {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 0.25rem;
}

.pagination li a {
    display: block;
    padding: 0.5rem 0.75rem;
    background-color: white;
    color: var (--text-color);
    border-radius: 4px;
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
}

.pagination li.active a {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination li a:hover {
    background-color: var(--light-gray);
}

.pagination li:first-child a,
.pagination li:last-child a {
    padding: 0.5rem 1rem;
}

.article-page {
    margin-top: 2rem;
}

.single-article .article-header {
    margin-bottom: 1.5rem;
}

.single-article .article-meta {
    margin-bottom: 0.75rem;
}

.single-article .article-meta .category {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.875rem;
}

.single-article .article-title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.single-article .article-featured-image {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.single-article .article-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

.single-article .article-content p {
    margin-bottom: 1.25rem;
}

.single-article .article-content h2 {
    font-size: 1.75rem;
    margin: 2rem 0 1rem;
}

.single-article .article-content h3 {
    font-size: 1.5rem;
    margin: 1.75rem 0 1rem;
}

.single-article .article-content ul,
.single-article .article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.single-article .article-content li {
    margin-bottom: 0.5rem;
}

.single-article .article-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.article-share {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.article-share h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--dark-gray);
    transition: all 0.3s ease;
}

.share-buttons a:hover {
    transform: translateY(-3px);
}

.share-buttons a.facebook:hover {
    background-color: #3b5998;
    color: white;
}

.share-buttons a.twitter:hover {
    background-color: #1da1f2;
    color: white;
}

.share-buttons a.linkedin:hover {
    background-color: #0077b5;
    color: white;
}

.share-buttons a.email:hover {
    background-color: #ea4335;
    color: white;
}

.article-navigation {
    margin: 2rem 0;
}

.prev-next-links {
    display: flex;
    justify-content: space-between;
}

.prev-article,
.next-article {
    width: 48%;
    padding: 1.25rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.prev-article:hover,
.next-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.prev-article {
    text-align: left;
}

.next-article {
    text-align: right;
}

.prev-article span,
.next-article span {
    display: block;
    color: var(--dark-gray);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.prev-article strong,
.next-article strong {
    font-size: 1.1rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.prev-article:hover strong,
.next-article:hover strong {
    color: var(--primary-color);
}

.related-articles {
    margin: 3rem 0;
}

.related-articles h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.related-articles h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.search-results-page .search-header {
    margin-bottom: 2rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-results-page .search-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-family: var(--header-font);
}

.search-results-page .results-count {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.inline-search {
    display: flex;
    margin: 1.5rem 0;
}

.inline-search input {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--medium-gray);
    border-right: none;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.inline-search button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 1rem;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.inline-search button:hover {
    background-color: #c52d39;
}

.search-results .news-card {
    margin-bottom: 1.5rem;
}

mark {
    background-color: rgba(230, 57, 70, 0.2);
    padding: 0.1rem 0;
}

.search-instructions {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-instructions h2 {
    margin-bottom: 1rem;
    font-family: var(--header-font);
}

.search-instructions h3 {
    margin: 1.5rem 0 0.75rem;
    font-family: var(--header-font);
}

.no-results {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.no-results h2 {
    margin-bottom: 1rem;
    font-family: var(--header-font);
    color: var(--primary-color);
}

.no-results ul {
    list-style-type: disc;
    text-align: left;
    max-width: 500px;
    margin: 1rem auto;
}

.no-results .btn-primary {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.no-results .btn-primary:hover {
    background-color: #c52d39;
}

.search-results-page .search-header {
    margin-bottom: 2rem;
}

.search-results-page .search-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.search-results .news-card {
    margin-bottom: 1.5rem;
}

.no-results {
    text-align: center;
    padding: 3rem 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.no-results p {
    margin-bottom: 1.5rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.category-monde {
    background-color: #457b9d;
}

.category-politique {
    background-color: #e63946;
}

.category-economie {
    background-color: #2a9d8f;
}

.category-technologie {
    background-color: #6b705c;
}

.category-science {
    background-color: #3a86ff;
}

.category-sante {
    background-color: #06d6a0;
}

.category-sport {
    background-color: #ffb703;
}

.category-culture {
    background-color: #9c6644;
}

@media (max-width: 1200px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .secondary-stories {
        flex-direction: row;
    }

    .secondary-article {
        height: auto;
        width: calc(50% - 0.75rem);
    }

    .content-sidebar-wrapper {
        grid-template-columns: 2fr 1fr;
    }
}

@media (max-width: 768px) {
    .content-sidebar-wrapper {
        grid-template-columns: 1fr;
    }

    .secondary-stories {
        flex-direction: column;
    }

    .secondary-article {
        width: 100%;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .single-article .article-title {
        font-size: 1.75rem;
    }

    .prev-next-links {
        flex-direction: column;
        gap: 1rem;
    }

    .prev-article,
    .next-article {
        width: 100%;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-links a {
        margin-left: 0;
    }

    .top-bar .container {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .date-weather,
    .social-links {
        width: auto;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .date-weather {
        gap: 0.5rem;
    }

    .main-header {
        padding: 1rem 0;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logo {
        width: 100%;
        text-align: center;
    }

    /* Side Drawer Menu */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        padding: 20px 0;
        overflow-y: auto;
    }

    .close-menu {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1002;
        background: var(--light-gray);
        color: var(--text-color);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    body.menu-open .site-header {
        z-index: 1001;
    }

    body.menu-open .main-nav {
        transform: translateX(0);
    }

    /* Hide header buttons when menu is open to avoid overlapping */
    body.menu-open .menu-toggle,
    body.menu-open .search-button {
        opacity: 0;
        visibility: hidden;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
        width: 100%;
    }

    .nav-menu li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 10px 0;
    }

    .nav-menu li a {
        font-size: 1.1rem;
        padding: 12px 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 20px;
        color: var(--text-color);
        width: 100%;
    }

    .nav-menu li a i {
        font-size: 1.25rem;
        width: 25px;
        margin-bottom: 0;
    }

    .nav-menu li a span {
        font-size: 1rem;
        max-width: none;
    }

    .menu-toggle,
    .search-button {
        display: flex;
        position: absolute;
        top: 35%;
        transform: translateY(-50%);
        z-index: 1001;
        width: 42px;
        height: 42px;
        border-radius: 50%;
    }

    .menu-toggle {
        left: 15px;
        background: var(--primary-color);
        color: white;
        box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
    }

    .search-button {
        right: 15px;
        background: white;
        color: var(--primary-color);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .weather-widget {
        max-width: calc(100% - 30px);
        margin: 10px 15px;
        background: rgba(0, 0, 0, 0.05);
        color: var(--text-color);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .weather-prev,
    .weather-next {
        color: var(--text-color);
    }

    /* Footer Fix for drawer */
    .site-footer {
        margin-bottom: 0;
        padding-bottom: 2rem;
    }
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.menu-open .menu-overlay {
    display: block;
    opacity: 1;
}

@media (max-width: 480px) {
    .main-header .container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .weather-widget {
        max-width: 100%;
        margin: 5px 10px;
    }

    .weather-city-item .city-name {
        font-size: 0.75rem;
        max-width: 80px;
    }
}

.social-links {
    margin-top: 0;
}

.social-links a {
    padding: 5px;
}

.breaking-news-ticker {
    flex-direction: column;
    align-items: flex-start;
}

.ticker-label {
    margin-bottom: 0.5rem;
}

.newsletter-form-horizontal {
    flex-direction: column;
    gap: 0.5rem;
}

.newsletter-form-horizontal input,
.newsletter-form-horizontal button {
    width: 100%;
}

.weather-widget {
    max-width: 100%;
    margin: 0 auto;
}

@media (max-width: 380px) {
    .nav-menu li a {
        min-width: 38px;
        letter-spacing: -0.03em;
    }

    .nav-menu li a span {
        margin-top: 5px;
        font-size: 0.60rem;
        max-width: 50px;
    }

    .nav-menu li a i {
        font-size: 0.85rem;
    }
}

.article-title,
.section-title h2,
.widget-title h3 {
    font-family: var(--header-font);
    font-weight: 600;
}

.alert {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.alert h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.alert ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.alert li {
    margin-bottom: 0.5rem;
}

.db-status {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 1.5rem;
}

.db-status h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.success {
    color: #198754;
}

.error {
    color: #dc3545;
}

:root {
    --primary-color: #e63946;
    --secondary-color: #f1faee;
    --background-color: #f8f9fa;
    --text-color: #333;
    --light-gray: #d3d3d3;
    --medium-gray: #a9a9a9;
    --dark-gray: #555;
    --transition-speed: 0.3s;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --hover-transform: translateY(-3px);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loader.active {
    display: flex;
}

.loader::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 3px solid var(--light-gray);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.article-card {
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.article-card:hover {
    transform: var(--hover-transform);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 0.75rem;
    color: var(--dark-gray);
    transition: all var(--transition-speed);
    pointer-events: none;
    font-size: 1rem;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.75rem;
    background: white;
    padding: 0 0.5rem;
    color: var (--primary-color);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.1);
    outline: none;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    box-shadow: var(--box-shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(100%);
    opacity: 0;
    transition: all var(--transition-speed);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid #198754;
}

.toast.error {
    border-left: 4px solid #dc3545;
}

.toast.info {
    border-left: 4px solid #0dcaf0;
}

.page-transition {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1a1a;
        --text-color: #e1e1e1;
        --light-gray: #2c2c2c;
        --medium-gray: #404040;
        --dark-gray: #888;
    }

    body {
        background-color: var(--background-color);
        color: var(--text-color);
    }

    .site-header,
    .main-nav,
    .sidebar-widget,
    .article-card,
    .news-card {
        background-color: #242424;
    }

    .article-card,
    .news-card,
    .sidebar-widget {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    input,
    textarea {
        background-color: #333;
        border-color: #404040;
        color: var(--text-color);
    }

    input:focus,
    textarea:focus {
        background-color: #383838;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.lazy-load {
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.lazy-load.loaded {
    opacity: 1;
}

@media print {

    .site-header,
    .site-footer,
    .sidebar,
    .share-buttons,
    .newsletter-banner {
        display: none !important;
    }

    .content-sidebar-wrapper {
        display: block;
    }

    .article-content {
        font-size: 12pt;
        line-height: 1.5;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 90%;
    }
}



.search-button:hover::before {
    transform: scale(1);
}

.search-button i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.search-button:hover i {
    color: var(--primary-color);
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-form {
    width: 80%;
    max-width: 800px;
    position: relative;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: white;
    display: flex;
}

.search-form input {
    flex-grow: 1;
    padding: 1rem 60px 1rem 2rem;
    font-size: 1.25rem;
    background-color: white;
    border: none;
    border-radius: 50px 0 0 50px;
    outline: none;
}

.search-form button {
    width: 60px;
    border: none;
    background: linear-gradient(45deg, var(--primary-color), #ff6b6b);
    color: white;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-form button i {
    font-size: 1.4rem;
}

.search-form button:hover {
    background: linear-gradient(45deg, #c52d39, #e63946);
    transform: scale(1.05);
}

.close-search {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-search:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.weather-display {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.weather-display i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

@keyframes weather-pulse {
    0% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }

    100% {
        opacity: 0.8;
    }
}

.weather-display i.fa-sun {
    color: #ffc107;
    animation: weather-pulse 3s infinite;
}

.weather-display i.fa-cloud,
.weather-display i.fa-cloud-sun,
.weather-display i.fa-cloud-moon {
    color: #6c757d;
}

.weather-display i.fa-cloud-rain,
.weather-display i.fa-cloud-sun-rain,
.weather-display i.fa-cloud-moon-rain {
    color: #0dcaf0;
}

.weather-display i.fa-snowflake {
    color: #a8d5ff;
    animation: weather-pulse 3s infinite;
}

.weather-display i.fa-bolt {
    color: #ffc107;
    animation: weather-pulse 1s infinite;
}

.weather-display i.fa-smog {
    color: #adb5bd;
}

@media (max-width: 768px) {
    .weather-display {
        margin-top: 0.5rem;
    }
}

.weather-widget {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 5px;
    margin-left: 6px;
    max-width: 400px;
    position: relative;
}

.weather-cities-carousel {
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    margin: 0 5px;
}

.weather-cities-carousel .weather-city-item {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    width: 100%;
    transition: transform 0.3s ease;
}

.weather-city-item .city-name {
    font-weight: 600;
    margin-right: 10px;
    white-space: nowrap;
}

.weather-city-item .city-temp {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.weather-city-item .city-temp i {
    font-size: 1.1rem;
}

.weather-prev,
.weather-next {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.weather-prev:hover,
.weather-next:hover {
    color: rgba(255, 255, 255, 1);
}

@media (max-width: 768px) {
    .weather-widget {
        max-width: 18%;
        color: white;
    }
}

@media (max-width: 480px) {
    .weather-city-item .city-name {
        font-size: 0.75rem;
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .weather-city-item .city-temp {
        font-size: 0.75rem;
    }

    .weather-prev,
    .weather-next {
        font-size: 0.75rem;
        width: 16px;
        height: 16px;
    }
}

.sidebar-weather {
    padding: 5px;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.current-weather {
    text-align: center;
    padding: 10px;
}

.weather-city-select {
    margin-bottom: 10px;
}

.weather-city-dropdown {
    padding: 5px 10px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    width: 100%;
    background-color: white;
    font-size: 14px;
}

.weather-display-large {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.weather-icon-large {
    font-size: 3rem;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-icon-large i.fa-sun {
    color: #ffc107;
    animation: weather-pulse 3s infinite;
}

.weather-icon-large i.fa-cloud,
.weather-icon-large i.fa-cloud-sun,
.weather-icon-large i.fa-cloud-moon {
    color: #6c757d;
}

.weather-icon-large i.fa-cloud-rain,
.weather-icon-large i.fa-cloud-sun-rain,
.weather-icon-large i.fa-cloud-moon-rain {
    color: #0dcaf0;
}

.weather-icon-large i.fa-snowflake {
    color: #a8d5ff;
    animation: weather-pulse 3s infinite;
}

.weather-icon-large i.fa-bolt {
    color: #ffc107;
    animation: weather-pulse 1s infinite;
}

.weather-icon-large i.fa-smog {
    color: #adb5bd;
}

.weather-info {
    text-align: left;
}

.weather-temp {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
}

.weather-desc {
    display: block;
    color: var(--dark-gray);
    font-size: 0.9rem;
    text-transform: capitalize;
}

.weather-details {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    border-top: 1px solid var(--light-gray);
    padding-top: 10px;
}

.weather-detail {
    flex: 1;
    text-align: center;
}

.detail-label {
    display: block;
    font-size: 0.8rem;
    color: var(--dark-gray);
}

.detail-value {
    font-weight: bold;
}

.weather-updated {
    font-size: 0.8rem;
    color: var (--dark-gray);
    text-align: right;
    margin-top: 5px;
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

.weather-carousel {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.weather-carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    transition: transform 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
}

.weather-carousel-item.active {
    transform: translateX(0);
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.weather-carousel-item.prev {
    transform: translateX(-100%);
    opacity: 0;
    z-index: 1;
}

.weather-carousel-item.next {
    transform: translateX(100%);
    opacity: 0;
    z-index: 1;
}

.weather-city-header {
    text-align: center;
    margin-bottom: 10px;
}

.weather-city-header h4 {
    margin: 0;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.prev-city,
.next-city {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.prev-city:hover,
.next-city:hover {
    background-color: var(--light-gray);
}

.carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--medium-gray);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

.weather-updated {
    font-size: 0.8rem;
    color: var(--dark-gray);
    text-align: center;
    margin-top: 10px;
}

/* Enhanced About & Contact Pages Styles */
.editorial-coverage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.coverage-item {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.coverage-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.coverage-item h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.coverage-item h3 i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.coverage-item p {
    color: var(--dark-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.contact-info-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-info-blocks.secondary {
    margin-top: 1rem;
}

.contact-block {
    background-color: white;
    padding: 1.5rem;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-block:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-block i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.contact-block h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-family: var(--header-font);
}

.contact-block p {
    margin: 0.5rem 0;
    color: var(--text-color);
}

.contact-block a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-block small {
    display: block;
    color: var(--dark-gray);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.social-connect-blocks {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.social-connect-item {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-connect-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    color: white;
}

.social-connect-item i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.social-connect-item span {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.social-connect-item small {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .editorial-coverage {
        grid-template-columns: 1fr;
    }

    .contact-info-blocks {
        grid-template-columns: 1fr;
    }

    .social-connect-blocks {
        flex-direction: column;
    }

    .social-connect-item {
        min-width: 100%;
    }
}

/* FAQ Page Styles */
.faq-section {
    max-width: 900px;
    margin: 0 auto;
}

.faq-intro {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category h2 {
    color: var(--text-color);
    font-family: var(--header-font);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-category h2 i {
    color: var(--primary-color);
}

.faq-item {
    background-color: white;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-question {
    color: var(--text-color);
    font-family: var(--header-font);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    cursor: pointer;
    position: relative;
    padding-right: 2rem;
}

.faq-question::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 0;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    color: var(--text-color);
    line-height: 1.8;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer ul {
    margin: 1rem 0 1rem 2rem;
    list-style: disc;
}

.faq-answer ul li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

.faq-answer strong {
    color: var(--text-color);
    font-weight: 600;
}

.faq-contact-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
}

.faq-contact-cta h2 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.faq-contact-cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.btn-primary {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .faq-category h2 {
        font-size: 1.5rem;
    }

    .faq-question {
        font-size: 1.1rem;
    }

    .faq-contact-cta {
        padding: 2rem 1.5rem;
    }
}

/* Charter Page Styles */
.charter-section {
    max-width: 900px;
    margin: 0 auto;
}

.charter-intro {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.charter-content h2 {
    color: var(--text-color);
    font-family: var(--header-font);
    font-size: 1.9rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.charter-content h2:first-of-type {
    margin-top: 0;
}

.charter-content h2 i {
    color: var(--primary-color);
}

.principle-item,
.methodology-section,
.ethics-section,
.commitment-item,
.disinfo-section,
.training-section {
    background-color: white;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.principle-item h3,
.methodology-section h3,
.ethics-section h3,
.commitment-item h3 {
    color: var(--text-color);
    font-family: var(--header-font);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.charter-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.charter-content ul,
.charter-content ol {
    margin: 1rem 0 1rem 2rem;
    line-height: 1.7;
}

.charter-content ul li,
.charter-content ol li {
    margin-bottom: 0.75rem;
}

.charter-content ol {
    list-style: decimal;
}

.charter-content ul {
    list-style: disc;
}

.charter-content strong {
    color: var(--text-color);
    font-weight: 600;
}

.charter-content a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

.charter-footer {
    background-color: #f8f9fa;
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 3rem;
    text-align: center;
    border: 2px solid var(--light-gray);
}

.charter-footer h2 {
    color: var(--text-color);
    font-family: var(--header-font);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    border: none;
    padding: 0;
}

.charter-date {
    margin-top: 2rem;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .charter-content h2 {
        font-size: 1.5rem;
    }

    .principle-item h3,
    .methodology-section h3,
    .ethics-section h3,
    .commitment-item h3 {
        font-size: 1.2rem;
    }

    .charter-intro {
        padding: 1.5rem;
        font-size: 1rem;
    }
}

/* Enhanced Article Page Styles for Better Readability */
.article-full {
    background-color: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.article-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 2rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-meta .category {
    background-color: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.article-meta .category:hover {
    background-color: var(--secondary-color);
    color: white;
}

.article-meta .date {
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.article-title {
    font-family: var(--header-font);
    font-size: 2.5rem;
    line-height: 1.3;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.article-author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--background-color);
    border-radius: 6px;
    margin-top: 1.5rem;
}

.author-avatar {
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.author-avatar-large {
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.article-author-name {
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.article-author-role {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.article-featured-image {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-color);
    margin: 2rem 0;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-family: var(--header-font);
    font-size: 1.9rem;
    color: var(--text-color);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.article-content h3 {
    font-family: var(--header-font);
    font-size: 1.5rem;
    color: var(--text-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0 1.5rem 2.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--dark-gray);
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-tags {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--background-color);
    border-radius: 8px;
}

.article-tags h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag-item {
    background-color: white;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--medium-gray);
    transition: all 0.3s ease;
}

.tag-item:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.article-author-bio {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--background-color);
    border-radius: 8px;
    margin: 3rem 0;
    border-left: 4px solid var(--primary-color);
}

.author-bio-content h4 {
    color: var(--text-color);
    font-family: var(--header-font);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.author-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.author-description {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.author-twitter {
    color: var(--secondary-color);
    font-weight: 600;
}

.article-share {
    margin: 2.5rem 0;
    padding: 1.5rem;
    background-color: var(--background-color);
    border-radius: 8px;
    text-align: center;
}

.article-share h4 {
    color: var(--text-color);
    font-family: var(--header-font);
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-buttons a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.share-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.share-buttons .facebook {
    background-color: #1877f2;
}

.share-buttons .twitter {
    background-color: #1da1f2;
}

.share-buttons .linkedin {
    background-color: #0077b5;
}

.share-buttons .whatsapp {
    background-color: #25d366;
}

.share-buttons .email {
    background-color: #666;
}

.related-articles {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-gray);
}

.related-articles h3 {
    font-family: var(--header-font);
    font-size: 1.75rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

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

    .article-title {
        font-size: 1.75rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-author-bio {
        flex-direction: column;
        text-align: center;
    }

    .share-buttons a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Team Page Styles */
.team-section {
    max-width: 1100px;
    margin: 0 auto;
}

.team-intro {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

.team-category {
    margin-bottom: 4rem;
}

.team-category h2 {
    color: var(--text-color);
    font-family: var(--header-font);
    font-size: 1.9rem;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.team-category h2 i {
    color: var(--primary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.team-member {
    background-color: white;
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-member:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.member-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2.5rem;
}

.member-info h3 {
    color: var(--text-color);
    font-family: var(--header-font);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.member-bio {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 0.95rem;
}

.team-content {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.team-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.team-join {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
    border: 2px solid var(--light-gray);
}

.team-join h2 {
    color: var(--text-color);
    font-family: var(--header-font);
    font-size: 1.9rem;
    margin-bottom: 1.5rem;
}

.team-join p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.team-join a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-category h2 {
        font-size: 1.5rem;
    }

    .team-intro {
        padding: 1.5rem;
        font-size: 1rem;
    }
}

/* ============================================
   AMÉLIORATIONS CSS FINALES - UX & DESIGN
   ============================================ */

/* Sticky Header Enhancements */
.site-header {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Back to Top Button Enhancement */
.back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Article Cards Animation - Désactivé car le JS n'est plus présent */
/*
.news-card.animate-ready,
.featured-article.animate-ready,
.secondary-article.animate-ready {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.news-card.animate-in,
.featured-article.animate-in,
.secondary-article.animate-in {
    opacity: 1;
    transform: translateY(0);
}
*/

/* Enhanced Image Hover Effects */
.news-card .article-image img,
.featured-article .article-image img,
.secondary-article .article-image img {
    transition: transform 0.4s ease;
}

.news-card:hover .article-image img,
.featured-article:hover .article-image img,
.secondary-article:hover .article-image img {
    transform: scale(1.05);
}

.article-image {
    overflow: hidden;
    position: relative;
}

.article-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.news-card:hover .article-image::after,
.featured-article:hover .article-image::after {
    opacity: 1;
}

/* Newsletter Form Enhancement */
.newsletter-form-horizontal input[type="email"] {
    transition: all 0.3s ease;
}

.newsletter-form-horizontal input[type="email"]:focus {
    outline: none;
    border: 2px solid var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.2);
}

.newsletter-form-horizontal input[type="email"].error {
    border: 2px solid #dc3545;
    animation: shake 0.5s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.newsletter-form-horizontal button {
    transition: all 0.3s ease;
}

.newsletter-form-horizontal button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
}

.newsletter-form-horizontal button:active {
    transform: translateY(0);
}

/* Improved Link Transitions */
a {
    position: relative;
}

.article-title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.article-title a:hover::after {
    width: 100%;
}

/* Enhanced Category Tags */
.category-tag {
    transition: all 0.3s ease;
}

.category-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Footer Links Hover */
.footer-widget ul li a {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease, color 0.3s ease;
}

.footer-widget ul li a:hover {
    padding-left: 8px;
}

.footer-widget ul li a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-widget ul li a:hover::before {
    opacity: 1;
}

/* Social Links Enhancement */
.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    color: var(--primary-color);
}

/* Breadcrumbs Enhancement */
.breadcrumbs {
    padding: 0.75rem 0;
    background-color: var(--background-color);
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.9rem;
}

.breadcrumbs ol li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--dark-gray);
}

.breadcrumbs a {
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

/* Reading Progress Bar Enhancement */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--light-gray);
    z-index: 101;
}

.reading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.5);
}

/* Card Shadow Enhancement */
.news-card,
.featured-article,
.secondary-article {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.news-card:hover,
.featured-article:hover,
.secondary-article:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* Search Enhancement */
.search-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
}

/* Mobile Menu Overlay */
body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {

    .site-header,
    .site-footer,
    .sidebar,
    .newsletter-banner,
    .share-buttons,
    .back-to-top,
    .reading-progress-container {
        display: none !important;
    }

    .article-full {
        box-shadow: none;
        padding: 0;
    }

    a[href]::after {
        content: ' (' attr(href) ')';
        font-size: 0.8em;
        color: var(--dark-gray);
    }

    .article-content {
        font-size: 12pt;
        line-height: 1.6;
    }
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Selection Highlight */
::selection {
    background-color: var(--primary-color);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: white;
}

/* Scrollbar Styling (Webkit) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Performance Optimization */
.news-card,
.featured-article,
.article-image img {
    will-change: transform;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   NEWSLETTER MESSAGES STYLES
   ============================================ */

.newsletter-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    font-weight: 500;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.newsletter-message i {
    margin-right: 12px;
    font-size: 1.3em;
}

.newsletter-message.success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 2px solid rgba(40, 167, 69, 0.5);
    color: #155724;
}

.newsletter-message.error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 2px solid rgba(220, 53, 69, 0.5);
    color: #721c24;
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Reduce paint on hover for better performance */
.news-card,
.featured-article,
.secondary-article {
    contain: layout style paint;
}

/* Optimize font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* GPU acceleration for animations */
.news-card:hover,
.featured-article:hover,
.back-to-top,
.article-image img {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Better focus indicators */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {

    .news-card,
    .featured-article {
        border: 2px solid var(--text-color);
    }

    .category-tag {
        border: 2px solid currentColor;
    }
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   DARK MODE SUPPORT (Future-ready)
   ============================================ */

@media (prefers-color-scheme: dark) {
    /* Keep light theme for now, but structure is ready */
}

/* ============================================
   FINAL OPTIMIZATIONS
   ============================================ */

/* Prevent layout shift */
img {
    height: auto;
    /* aspect-ratio: attr(width) / attr(height); */
}

/* Optimize repaint for sticky elements */
.site-header {
    contain: layout style;
}

/* Reduce JavaScript layout thrashing */
.reading-progress-container,
.back-to-top {
    contain: layout size;
}

/* Better handling of text overflow */
.article-title,
.article-excerpt {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Optimize for mobile touchscreen */
@media (hover: none) and (pointer: coarse) {

    /* Larger touch targets */
    .share-buttons a,
    .back-to-top {
        min-width: 48px;
        min-height: 48px;
    }

    /* Remove hover effects on touch devices */
    .news-card:hover,
    .featured-article:hover {
        transform: none;
    }
}