: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 h1 {
    font-family: var(--header-font);
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
    }
    .logo h1 a {
    color: var(--text-color);
    }
    .logo h1 a:hover {
    color: var(--primary-color);
    }
    .tagline {
    font-size: 1rem;
    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-button {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.125rem;
    }
    .search-button:hover {
    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 30s linear infinite;
    padding-right: 50px;
    white-space: nowrap;
    transition: animation-play-state 0.2s ease;
    will-change: transform;
    }
    .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 img {
    width: 100%;
    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;
    }
    .news-card .article-image img {
    height: 100%;
    object-fit: cover;
    }
    .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;
    }
   
    .search-button {
    position: absolute;
    right: 10px;
    top: -45px;
    background-color: var(--primary-color);
    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;
    margin: 0;
    }
    .menu-toggle {
    position: absolute;
    left: 10px;
    top: -45px;
    background-color: var(--primary-color);
    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;
    }
    }
    @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 {
    background-color: transparent;
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    }
    .search-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--light-gray);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
    }
    .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: 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 {
    color: var(--primary-color);
    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-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 99;
    padding: 0;
    }
    .nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 100%;
    padding: 5px 0;
    margin: 0;
    }
    .nav-menu li {
    flex: 1;
    text-align: center;
    }
    .nav-menu li a {
    padding: 8px 5px;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    }
    .nav-menu li a i {
    font-size: 1.25rem;
    margin-bottom: 4px;
    display: block;
    width: 100%;
    text-align: center;
    }
    .nav-menu li a span {
    font-size: 0.7rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 80px;
    }
    .nav-menu li.active::after {
    display: none;
    }
    .nav-menu li.active a {
    color: var(--primary-color);
    }
    .nav-menu li.active i {
    color: var(--primary-color);
    }
    .site-footer {
    margin-bottom: 60px;
    }

    .site-footer {
    margin-bottom: 120px;
    padding-bottom: 20px;
    }
    .menu-toggle {
    position: absolute;
    left: 10px;
    top: -45px;
    background-color: var(--primary-color);
    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;
    }
    .site-footer {
    margin-bottom: 120px;
    padding-bottom: 20px;
    }
    .back-to-top {
    bottom: 70px;
    right: 10px;
    }
    .menu-toggle {
    position: absolute;
    left: 10px;
    top: -45px;
    background-color: var(--primary-color);
    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;
    }
    .menu-toggle i {
    font-size: 1.25rem;
    }
    .nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 100%;
    padding: 5px 0;
    margin: 0;
    }
    .nav-menu li:nth-child(-n+5) {
    display: block;
    }
    .nav-menu li.category-item:nth-child(n+6) {
    display: none;
    }
    .nav-menu.active li.category-item {
    display: block;
    }
    .nav-menu li {
    flex: 0 0 20%;
    text-align: center;
    padding: 5px;
    }
    .nav-menu li a {
    padding: 8px 5px;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    }
    .nav-menu li a i {
    font-size: 1.25rem;
    margin-bottom: 4px;
    display: block;
    width: 100%;
    text-align: center;
    }
    .nav-menu li a span {
    font-size: 0.7rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 80px;
    }
    .nav-menu li.active::after {
    display: none;
    }
    .nav-menu li.active a {
    color: var(--primary-color);
    }
    .nav-menu li.active i {
    color: var(--primary-color);
    }
    .site-footer {
    margin-bottom: 60px;
    }
    .logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0.15rem;
    }
    .tagline {
    font-size: 0.85rem;
    }
    .main-header {
    padding: 1rem 0;
    }
    .nav-menu {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
    padding: 4px 0;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    }
    .nav-menu::-webkit-scrollbar {
    display: none;
    }
    .nav-menu li {
    flex: 0 0 auto;
    text-align: center;
    margin: 0;
    }
    .nav-menu li a {
    font-size: 0.72rem;
    min-width: 46px;
    letter-spacing: -0.01em;
    font-weight: 600;
    }
    .nav-menu li a i {
    font-size: 1rem;
    margin-bottom: 3px;
    }
    .nav-menu li a span {
    font-size: 0.72rem;
    max-width: 100%;
    line-height: 1.1;
    }
    .nav-menu.active {
    flex-wrap: wrap;
    justify-content: flex-start;
    }
    .nav-menu.active li {
    flex: 0 0 20%;
    margin-bottom: 5px;
    }
    }
    @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;
    }
    }
    @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 {
    .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 (max-width: 768px) {
    .main-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 99;
    }
    .nav-menu {
    justify-content: space-around;
    padding: 0.5rem;
    }
    .nav-menu li a {
    padding: 0.5rem;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    }
    .nav-menu li a i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    }
    .back-to-top {
    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-button {
    background-color: transparent;
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    }
    .search-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--light-gray);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
    }
    .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;
    }
    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;
    }