/* 
   ==========================================================================
   RESET & BASE STYLES
   ========================================================================== 
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Georgia', serif;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
}

html {
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* 
   ==========================================================================
   NAVIGATION & HEADER
   ========================================================================== 
*/

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 98;
    display: none;
}

.overlay.active {
    display: block;      
}

/* Navigation Menu Styles */
.nav-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 99;
    padding-top: 20px;     
}

.nav-menu.active {
    left: 0;     
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 20px 20px;
}

.menu-logo {
    height: auto;
    width: 150px;
}

.menu-logo img {
    height: auto;
    width: 100%;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.nav-menu ul li {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.nav-menu ul li a {
    color: #1a2a3a;
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    font-family: 'Georgia', serif;
    transition: color 0.2s;
}

.nav-menu ul li a:hover {
    color: #4a5a6a;
}

.submenu {
    padding-left: 15px;
    display: none;
}

.submenu.active {
    display: block;
}

.menu-item-with-submenu {
    position: relative;
}

.menu-item-with-submenu::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 1.2rem;
}

.menu-item-with-submenu.active::after {
    content: "-";
}

/* Disabled submenu styling */
.disabled-submenu {
    opacity: 0.6;
    pointer-events: none;
}

.disabled-submenu::after {
    content: "+";
    color: #aaa;
}

.disabled-submenu > a {
    color: #aaa !important;
}

.disabled-submenu .submenu {
    pointer-events: none;
}

/* Hamburger Menu Icon */
.logo-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a2a3a;
    font-weight: bold;
}
   
.icon-menu {
    --gap: 5px;
    --height-bar: 2.5px;
    --pos-y-bar-one: 0;
    --pos-y-bar-three: 0;
    --scale-bar: 1;
    --rotate-bar-one: 0;
    --rotate-bar-three: 0;
    width: 25px;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    cursor: pointer;
    position: relative;
}

.bar {
    position: relative;
    height: var(--height-bar);
    width: 100%;
    border-radius: .5rem;
    background-color: #1a2a3a;
}

.bar--1 {
    top: var(--pos-y-bar-one);
    transform: rotate(var(--rotate-bar-one));
    transition: top 200ms 100ms, transform 100ms;
}

.bar--2 {
    transform: scaleX(var(--scale-bar));
    transition: transform 150ms 100ms;
}

.bar--3 {
    bottom: var(--pos-y-bar-three);
    transform: rotate(var(--rotate-bar-three));
    transition: bottom 200ms 100ms, transform 100ms;
}

.check-icon:checked + .icon-menu > .bar--1 {
    transition: top 200ms, transform 200ms 100ms;
}

.check-icon:checked + .icon-menu > .bar--3 {
    transition: bottom 200ms, transform 200ms 100ms;
}

.check-icon:checked + .icon-menu {
    --pos-y-bar-one: calc(var(--gap) + var(--height-bar));
    --pos-y-bar-three: calc(var(--gap) + var(--height-bar));
    --scale-bar: 0;
    --rotate-bar-one: 45deg;
    --rotate-bar-three: -45deg;
}

/* Top Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mobile-nav-left {
    display: flex;
    align-items: center;
}

.logo img {
  height: auto;
  width: 125px;
  margin-bottom: 4px;
  margin-right: 80px;
  color: #1a2a3a;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Search bar styling */
.search-bar {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 3px 8px;
    background-color: #f5f5f5;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.8rem;
    width: 85px;
    padding: 3px;
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #1a2a3a;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vertical-line {
    height: 20px;
    width: 1px;
    background-color: #e0e0e0;
}

/* Desktop/Tablet Navigation */
.desktop-nav-container {
    display: none; /* Hidden by default (mobile) */
    flex-direction: column;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
}

.desktop-nav {
    padding: 0 20px;
}

.main-menu {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

.main-menu li {
    padding: 15px 20px;
    position: relative;
}

.main-menu li a {
    color: #1a2a3a;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Georgia', serif;
}

.main-menu li:hover {
    background-color: #f5f5f5;
}

.more-menu {
    display: flex;
    align-items: center;
}

.dropdown-arrow {
    margin-left: 5px;
    transform: rotate(90deg);
    font-size: 1.2rem;
    font-weight: bold;
}

.secondary-nav {
    padding: 40px 0;
    margin-bottom: -25px;
    border-top: 1px solid #e0e0e0;
}

.secondary-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: -28px 0;
    padding: 0;
}

.secondary-nav ul li a {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
}

.secondary-nav ul li a:hover {
    text-decoration: underline;
}

/* Bottom header bar with date info */
.bottom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #1a2a3a;
    color: white;
}

.date-info {
    display: flex;
    flex-direction: column;
}

.day {
    font-size: 1.5rem;
    font-weight: bold;
}

.datetime {
    font-family: "Trueno", sans-serif;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Weather Widget Styles */
.weather-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.weather-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.weather-text {
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 5px;
}

.icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon svg {
    width: 20px;
    height: 20px;
}

.temperature {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 2px 0;
    text-align: right;
}

.location {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 2px;
}

.location svg {
    width: 12px;
    height: 12px;
    margin-right: 4px;
}

.location span {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;     
}

/* Mobile-only elements */
.mobile-only {
    display: flex;
}

/* 
   ==========================================================================
   LOADER
   ========================================================================== 
*/
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-container {
    position: relative;
    display: flex;
    width: 256px;
    gap: 8px;
    padding: 16px;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.loader-flex {
    height: 48px; 
    width: 48px; 
    border-radius: 9999px; 
    background-color: #94a3b8;
}

.loader-d-flex {
    flex: 1;
}

.first-loader {
    margin-bottom: 4px; 
    height: 20px;
    width: 60%;
    border-radius: 8px;
    background-color: #94a3b8;
    font-size: 18px;
}

.second-loader {
    height: 20px;
    width: 90%; 
    border-radius: 8px; 
    background-color: #94a3b8; 
    font-size: 14px;
}

.d-loader {
    position: absolute;
    bottom: 20px; 
    right: 0; 
    height: 16px; 
    width: 16px; 
    border-radius: 9999px; 
    background-color: #94a3b8;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

/* 
   ==========================================================================
   LAYOUT & COMMON CONTAINERS
   ========================================================================== 
*/
.page-container, .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-section {
    padding: 20px 0 0 0;
}

.header-section h1 {
    font-size: 1.5rem;
    color: #1a2a3a;
    margin-bottom: 5px;
}

.section-header {
    margin: 20px 0 5px 0;
    font-weight: bold;
    color: #1a2a3a;
    font-size: 1.3rem;
}

.section-header h1 {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    margin: 0;
}

.divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 15px 0;
}

.main-content {
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}

/* 
   ==========================================================================
   HOMEPAGE COMPONENTS
   ========================================================================== 
*/

/* Top Story */
.top-story-article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 0;
    position: relative;
    margin-bottom: 20px;
}

.top-story-article {
    position: relative;
}

.top-story-article-title a {
    color: #fff;
    text-decoration: none;
}

.top-story-article-title a:hover {
    color: #ccc;
}

.top-story-article img {
    width: 100%;
    object-fit: cover;
    max-height: 300px;
}

.top-story-article-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8) 50%);
    color: white;
}

.top-story-article-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 5px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.top-story-meta .date {
    font-size: 0.8rem;
}

.top-story-excerpt {
    color: #f0f0f0;
    font-size: 0.85rem;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-story-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.top-story-meta .category {
    display: inline-block;
    border-radius: 15px;
    font-size: 0.75rem;
    background-color: rgba(245, 245, 245, 0.85);
    color: #333;
    padding: 4px 12px;
}

/* Mobile Latest News */
.mobile-latest-news-card {
    display: flex;
    align-items: flex-start;
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    font-family: Arial, sans-serif;
}

.mobile-latest-news-card img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 12px;
    flex-shrink: 0;
}

.mobile-latest-news-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    min-width: 0;
}

.mobile-latest-news-meta {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.mobile-latest-news-card-content-category {
    display: inline-block;
    border-radius: 15px;
    font-size: 0.75rem;
    margin-bottom: 4px;
    background-color: #f0f0f0;
    padding: 4px 10px;
    margin-right: 8px;
}

.mobile-latest-news-card-content-date {
    font-size: 0.75rem;
    color: #757575;
}

.mobile-latest-news-card-content .title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
    color: #1a2a3a;
}

.mobile-latest-news-card-content .title a {
    color: #1a2a3a;
    font-size: 1rem;
    text-decoration: none;
}

.mobile-latest-news-card-content .title a:hover {
    color: #1a73e8;
}

.mobile-latest-news-card-content .excerpt {
    color: #333;
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* Ad Unit (Common) */
.ad-unit {
    background-color: #f5f5f5;
    padding: 15px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.ad-tag, .ad-label {
    color: #888;
    font-size: 0.7rem;
    margin-bottom: 5px;
}

.ad-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.ad-text {
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.ad-button {
    background-color: #1a2a3a;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.85rem;
    transition: background-color 0.2s ease;
}

.ad-button:hover {
    background-color: #283c52;
}

/* Adsterra Native Sidebar Ad */
.adsterra-native-sidebar-ad {
    display: none;
    margin-top: 5px;
    background-color: #f9f9f9;
    border: 1px dashed #ddd; 
    min-height: 955px; 
    padding: 10px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    box-sizing: border-box;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 25px 0;
}

.pagination-button {
    color: #1a2a3a;
    background-color: white;
    border: 1px solid #1a2a3a;
    padding: 8px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 0.9rem;
}

.pagination-button:hover {
    background-color: #f0f0f0;
}

/* Newsletter */
.newsletter-card {
    width: 100%;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.newsletter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.newsletter-header svg {
    color: #1a2a3a;
}

.newsletter-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter-heading {
    color: #1a2a3a;
    font-weight: 700;
    font-size: 0.85rem;
    margin: 0;
    text-transform: uppercase;
}

.newsletter-type {
    color: #555;
    font-weight: 600;
    font-size: 0.8rem;
    margin: 0;
}

.newsletter-para {
    font-size: 0.85rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.5;
}

.newsletter-input_container {
    margin-bottom: 10px;
}

.newsletter-input_field {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    font-size: 0.9rem;
}

.newsletter-input_field:focus {
    outline: none;
    border-color: #1a2a3a;
    box-shadow: 0 0 0 2px rgba(26, 42, 58, 0.2);
}

.newsletter-input_field.error {
    border-color: #D32F2F;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
}

.newsletter-error-message {
    color: #D32F2F;
    font-size: 0.75rem;
    margin-top: 5px;
    display: none;
}

.newsletter-button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
}

.subscribe {
    background-color: #1a2a3a;
    color: white;
    transition: background-color 0.2s ease;
}

.subscribe:hover {
    background-color: #283c52;
}

.newsletter-success-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #1a2a3a;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1001;
    transform: translateX(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, visibility 0s 0.5s;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}

.newsletter-success-notification.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, visibility 0s 0s;
}

/* Carousel */
.carousel-container {
    max-width: 1200px;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.carousel {
    display: flex;
    transition: all 0.3s ease;
}

.carousel-item {
    min-width: 100%;
    position: relative;
}

.carousel-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #f8f9fa;
}

.carousel-category {
    display: inline-block;
    background-color: lightgrey;
    color: #333;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.adsterra-carousel-slot {
    width: 100%;
    height: 500px; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f0f0f0;
    box-sizing: border-box;
}

.adsterra-carousel-slot > div {
    width: 100%;
    height: 100%;
}

.carousel-date {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.carousel-headline {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.carousel-controls {
    position: absolute;
    bottom: 50%;
    transform: translateY(50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.carousel-button {
    background-color: #1a2a3a;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.carousel-button:hover {
    opacity: 1;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: white;
    transform: scale(1.2);
}

/* Pills / Tags */
.pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.pill {
    background-color: #f2f2f2;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 500;
    color: #000;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.pill.active {
    background-color: #1a2a3a;
    color: white;
}

.pill:hover:not(.active) {
    background-color: #e6e6e6;
}

/* Featured Content */
.featured-content-section {
    display: none;
}

.featured-content-section.active {
    display: grid;
}

.featured-article {
    margin-bottom: 10px;
}

.featured-article img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.featured-article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    border: 1px #e0e0e0;
}

.featured-article-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    color: #1a2a3a;
}

.featured-article-title a {
    color: #1a2a3a;
    text-decoration: none;
}

.featured-article-title a:hover {
    color: #1a73e8;
}

.featured-article-meta {
    display: flex;
    align-items: center;
    padding: 15px 0;
}

.featured-article-excerpt {
    color: #1a2a3a;
    margin-bottom: -30px;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.featured-article-meta .category {
    display: inline-block;
    background-color: #f5f5f5;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    margin-right: 10px;
}

.featured-article-meta .date {
    color: #757575;
    font-size: 0.9rem;
}

/* Opinion/Analysis Cards */
.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-meta {
    display: flex;
    align-items: center;            
    padding: 10px;
    margin-top: 6px;
}

.article-meta .category {
    display: inline-block;
    background-color: #f5f5f5;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    margin-right: 10px;
}

.article-meta .date {
    color: #757575;
    font-size: 0.9rem;
}

.article-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: -15px;
    margin-bottom: 5px;
    padding: 15px;
    line-height: 1.3;
    color: #1a2a3a;
}

.article-title a {
    color: #1a2a3a;
    text-decoration: none;
}

.article-title a:hover {
    color: #1a73e8;
}

.article-excerpt {
    color: #555;
    padding: 15px;
    margin-top: -10px;
    margin-bottom: -1px;
    font-size: 0.9rem;
}

/* 
   ==========================================================================
   ARTICLE PAGE COMPONENTS
   ========================================================================== 
*/
.category-bar {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    margin-bottom: 20px;
}

.category-bar b {
    color: #1a2a3a;
    font-weight: bold;
    text-decoration: none;
    margin-right: 15px;
}

.news-category {
    color: #1a2a3a;
    font-weight: bold;
    text-decoration: none;
    margin-right: 15px;
}

.article-header {
    margin-bottom: 30px;
}

.article-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.subheading {
    font-size: 22px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.4;
}

.metadata {
    display: flex;
    justify-content: space-between;
    color: #777;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.share-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-icons {
    display: flex;
    align-items: center;
    gap: 7px;
}

.share-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.share-icons svg {
    width: 18px;
    height: 18px;
}

.share-icons a:hover svg {
    fill: #1a2a3a;
}

.main-image {
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.image-caption {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
}

.author {
    font-weight: bold;
    margin-bottom: 5px;
}

.timestamp {
    color: #333;
    font-weight: bold;
    margin-bottom: 30px;
}

.article-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.news-main-content {
    font-size: 18px;
}

.news-main-content p {
    margin-bottom: 20px;
}

.alt-sidebar {
    padding-left: 20px;
    border-left: 1px solid #eee;
}

.news-ad-unit {
    background-color: #f5f5f5;
    padding: 15px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid #ddd;
    min-height: 172px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
}

.related-stories {
    margin-bottom: 30px;
}

.related-story {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.related-story h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.section-heading {
    font-size: 22px;
    border-bottom: 2px solid #1a2a3a;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* 
   ==========================================================================
   COOKIE POPUP
   ========================================================================== 
*/
@keyframes slideIn {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes slideOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(100%); opacity: 0; }
}

.cookie-card {
    max-width: 320px;
    padding: 1rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 20px 20px 30px rgba(0, 0, 0, .05);
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: none;
    transition: max-width 0.3s ease, width 0.3s ease;
}

.cookie-card.show {
    display: block;
    animation: slideIn 0.5s forwards;
}

.cookie-card.show.hide {
    animation: slideOut 0.5s forwards;
}

.cookie-card.expanded {
    max-width: 400px;
    width: 90%;
}

.cookie-card .title {
    font-weight: 600;
    color: rgb(31 41 55);
}

.cookie-card .description {
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(75 85 99);
}

.cookie-card .description a {
    color: rgb(59 130 246);
}

.cookie-card .description a:hover {
    text-decoration: underline;
}

.cookie-card .actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    column-gap: 1rem;
    flex-shrink: 0;
}

.cookie-card .pref {
    font-size: 0.75rem;
    color: rgb(31 41 55);
    text-decoration: underline;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all .3s;
}

.cookie-card .pref:hover {
    color: rgb(156 163 175);
}

.cookie-card .accept {
    font-size: 0.75rem;
    background-color: rgb(17 24 39);
    font-weight: 500;
    border-radius: 0.5rem;
    color: #fff;
    padding: 0.625rem 1rem;
    border: none;
    cursor: pointer;
    transition: all .15s;
}

.cookie-card .accept:hover {
    background-color: rgb(55 65 81);
}

/* Toggle Switch */
.checkbox { display: none; }
.slider {
    width: 60px;
    height: 30px;
    background-color: lightgray;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    border: 4px solid transparent;
    transition: .3s;
    box-shadow: 0 0 10px 0 rgb(0, 0, 0, 0.25) inset;
    cursor: pointer;
}
.slider::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: #fff;
    transform: translateX(-30px);
    border-radius: 20px;
    transition: .3s;
    box-shadow: 0 0 10px 3px rgb(0, 0, 0, 0.25);
}
.checkbox:checked ~ .slider::before {
    transform: translateX(30px);
    box-shadow: 0 0 10px 3px rgb(0, 0, 0, 0.25);
}
.checkbox:checked ~ .slider {
    background-color: #1a2a3a;
}
.checkbox:active ~ .slider::before {
    transform: translate(0);
}

.cookie-preferences {
    display: none;
    margin-top: 1rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}
.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}
.preference-text h4 { margin: 0; font-size: 0.9rem; color: rgb(31 41 55); }
.preference-text p { margin: 0.3rem 0 0; font-size: 0.75rem; color: rgb(107 114 128); }
.save-preferences {
    width: 100%;
    background-color: #1a2a3a;
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.save-preferences:hover { background-color: #1a2a3a; }


/* 
   ==========================================================================
   FOOTER
   ========================================================================== 
*/
footer {
    background-color: #121a2b;
    color: white;
    padding: 30px 10%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    padding-bottom: 30px;
}

.footer-brand {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 25px;
}

.footer-section h3 {
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #8a8f99;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    color: #8a8f99;
    font-size: 12px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #343a40;
}

/* 
   ==========================================================================
   NEWS LISTING PAGE SPECIFIC STYLES
   ========================================================================== 
*/

/* Mobile Ad Injection Styling */
.alt-ad-unit.injected-mobile-ad {
    max-width: 600px;
    margin: 0 auto 0 auto;
    display: block !important;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    min-height: 80px;
}

.injected-mobile-ad-wrapper .divider.news-item-divider {
    margin: 15px 0;
}

/* Native Ad Row (Desktop) */
.native-ad-row {
    grid-column: 1 / -1;
    padding: 25px 0;
    margin: 15px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    background-color: #fdfdfd;
    text-align: left;
    display: none;
    min-height: 100px;
}

@media (min-width: 768px) {
    .native-ad-row.visible-desktop {
        display: block;
    }
    
    /* Grid Layout for News Listing */
    .news-article-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
        flex: 3;
    }

    /* Reset card styles specifically inside the grid to look like text links */
    .news-article-list .alt-news-card {
        background: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }

    .news-article-list .alt-news-card img {
        display: none !important;
    }

    .news-article-list .alt-news-card .alt-news-card-content {
        padding: 0 !important;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .news-article-list .alt-news-card .alt-news-meta {
        margin-bottom: 8px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .news-article-list .alt-news-card .alt-news-meta .category {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 0.75rem;
        font-weight: bold;
        color: #555;
        text-transform: uppercase;
        background-color: transparent !important;
        padding: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 3px;
        line-height: 1.2;
    }

    .news-article-list .alt-news-card .alt-news-meta .date {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 0.7rem;
        color: #757575;
        line-height: 1.2;
    }

    .news-article-list .alt-news-card-content .title {
        font-family: 'Georgia', serif;
        font-size: 1.15rem;
        font-weight: bold;
        color: #1a2a3a !important;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    
    .news-article-list .alt-news-card-content .title a {
        color: #1a2a3a !important;
    }
    
    .news-article-list .alt-news-card-content .title a:hover {
        color: #0056b3 !important;
    }

    .news-article-list .alt-news-card-content .excerpt {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 0.85rem;
        color: #505050 !important;
        line-height: 1.4;
        -webkit-line-clamp: 4;
        margin-top: auto;
    }

    .news-article-list > .divider.news-item-divider {
        display: none !important;
    }

    /* Sidebar Ad Logic overrides for Desktop */
    .alt-sidebar-ads-list {
        flex: 1;
        display: none !important; /* Controlled via JS, hidden by default until logic runs */
        flex-direction: column;
        gap: 25px;
    }
}

@media (min-width: 1024px) {
    .alt-sidebar-ads-list {
        flex: 1;
    }
}

/* =========================================
   NATIVE AD INTEGRATION STYLES
   ========================================= */

/* 1. Modify the card specifically for ads */
.mobile-latest-news-card.promoted-native-ad {
    position: relative; /* Allows absolute positioning of the Sponsored tag */
    padding: 12px;      /* Matches your existing card padding */
    display: block;     /* Overrides flex to allow the ad script to fill space */
    min-height: 100px;  /* Prevents layout shift while ad loads */
}

/* 2. Position the 'Sponsored' tag exactly where 'Politics/Economy' usually sits */
.sponsored-label {
    position: absolute;
    top: 12px;          /* Aligns with top padding */
    left: 124px;        /* 100px (Image width) + 12px (margin) + 12px (padding) */
    z-index: 10;        /* Ensures it sits on top of the ad script */
    pointer-events: none; /* Allows clicks to pass through to the ad link */
    background-color: #e0e0e0; /* Slightly different shade to denote ad */
    color: #555;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(255,255,255,0.8); /* Optional: distinct pop */
}

/* 3. Style the Adsterra wrapper to behave well */
.adsterra-native-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 4. Mobile Responsiveness adjustments */
@media (max-width: 374px) {
    /* Adjust position for very small screens based on your existing media queries */
    .sponsored-label {
        left: 100px; /* 80px img + 10px margin + 10px padding */
        top: 10px;
    }
}

/* =========================================
   CAROUSEL NATIVE AD OVERRIDES
   ========================================= */

/* 1. Reset the wrapper to fill the carousel slide */
.carousel-item.adsterra-carousel-item {
    height: 500px; /* Matches your existing .carousel-image height */
    overflow: hidden;
    position: relative;
    background-color: #000; /* Fallback color */
}

.adsterra-carousel-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; /* Sits below the 'Sponsored' tag overlay */
}

/* 2. FORCE the Adsterra Link to fill the whole slide */
/* Note: We use generic selectors because Adsterra IDs change */
.adsterra-carousel-wrapper a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
    position: relative;
}

/* 3. FORCE the Adsterra Image to act as the Background Image */
.adsterra-carousel-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* This ensures the image covers the slide like your news */
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    opacity: 0.8; /* Slight dim to make text pop, optional */
}

/* 4. FORCE the Adsterra Title to look like your Headlines */
/* Adsterra usually outputs the title in a span, div, or h3 inside the link */
.adsterra-carousel-wrapper a > span, 
.adsterra-carousel-wrapper a > div:not([id]), /* Targets text container usually */
.adsterra-carousel-wrapper .ad-title {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 2rem !important;
    padding-bottom: 3.5rem !important; /* Extra padding to clear the gradient */
    
    /* Font Styling to match .carousel-headline */
    font-family: 'Georgia', serif !important;
    font-size: 2rem !important;
    line-height: 1.2 !important;
    color: #f8f9fa !important;
    text-align: left !important;
    z-index: 10 !important;
    background: transparent !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* 5. The Overlay Layer (Gradient + Category) */
.ad-overlay-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* CRITICAL: Allows clicks to pass through to the ad */
    z-index: 20;
    /* Recreate the gradient from your original .carousel-content */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0,0,0,0) 60%) !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Pushes content to bottom */
    padding: 2rem;
}

/* 6. Mobile Adjustments for the Ad */
@media (max-width: 767px) {
    .carousel-item.adsterra-carousel-item {
        height: 350px; /* Matches mobile height */
    }
    .adsterra-carousel-wrapper a > span, 
    .adsterra-carousel-wrapper a > div:not([id]) {
        font-size: 1.2rem !important; /* Smaller font on mobile */
        padding: 1rem !important;
        padding-bottom: 3rem !important;
    }
    .ad-overlay-layer {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .carousel-item.adsterra-carousel-item {
        height: 250px; /* Matches smallest mobile height */
    }
}

/* =========================================
   TRENDING TAGS AD STYLING
   ========================================= */

/* 1. Container Setup */
.promoted-featured-ad {
    position: relative;
    padding: 20px; /* Matches .featured-article-card padding */
    display: flex;
    flex-direction: column;
}

/* 2. Force Adsterra Image to look like Featured Images */
.adsterra-native-featured-wrapper img {
    width: 100% !important;
    height: auto !important;
    max-height: 240px !important; /* Prevents huge vertical images */
    object-fit: cover !important;
    border-radius: 8px !important;
    margin-bottom: 50px !important; /* CRITICAL: Creates gap for the Sponsored pill */
    display: block !important;
}

/* 3. Position the Sponsored Pill in the gap we created */
.static-sponsored-meta {
    position: absolute;
    /* Adjust this 'top' value if the image height is fixed, 
       otherwise bottom-positioning relative to title is safer */
    top: auto; 
    bottom: auto;
    margin-top: -45px; /* Pulls it up into the gap created by margin-bottom above */
    padding: 0 !important;
    z-index: 5;
    pointer-events: none;
}

/* 4. Force Adsterra Title to look like Featured Titles */
.adsterra-native-featured-wrapper a,
.adsterra-native-featured-wrapper .ad-title {
    font-family: 'Georgia', serif !important;
    font-size: 1.5rem !important; /* Matches .featured-article-title */
    font-weight: 700 !important;
    color: #1a2a3a !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
    display: block !important;
    margin-bottom: 10px !important;
}

/* 5. Force Adsterra Description to look like Excerpts */
.adsterra-native-featured-wrapper .ad-description,
.adsterra-native-featured-wrapper div:not([class]) {
    font-family: 'Georgia', serif !important;
    font-size: 1rem !important; /* Matches .featured-article-excerpt */
    color: #1a2a3a !important;
    line-height: 1.6 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Mobile adjustments for Trending Ad */
@media (max-width: 767px) {
    .promoted-featured-ad { padding: 18px; }
    .adsterra-native-featured-wrapper .ad-title { font-size: 1.3rem !important; }
    .adsterra-native-featured-wrapper .ad-description { font-size: 0.85rem !important; }
}


/* =========================================
   OPINION SECTION AD STYLING
   ========================================= */

/* 1. Container Setup */
.promoted-opinion-ad {
    display: flex;
    flex-direction: column;
    padding: 0 !important; /* Let children handle padding to match article-card */
}

/* 2. Hide the Adsterra Image (Opinion is text only) */
.adsterra-opinion-wrapper img {
    display: none !important;
}

/* 3. Style the Title Wrapper */
.adsterra-opinion-wrapper {
    margin-top: -15px !important; /* Pulls title up closer to meta like real cards */
    margin-bottom: 5px !important;
    padding: 15px !important; /* Matches .article-title padding */
}

/* 4. Force Adsterra Title to look like Opinion Titles */
.adsterra-opinion-wrapper a,
.adsterra-opinion-wrapper .ad-title {
    font-family: 'Georgia', serif !important;
    font-size: 1.2rem !important; /* Matches .article-title */
    font-weight: 700 !important;
    color: #1a2a3a !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
}

/* 5. Hide Description if Adsterra sends one (Opinion cards usually just have titles) */
/* If you WANT the description, remove this block */
.adsterra-opinion-wrapper .ad-description {
    display: none !important; 
}

/* 
   ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== 
*/

/* Extra Small mobile (320px - 374px) */
@media (max-width: 374px) {
    .top-nav { padding: 10px 10px; }
    .logo img { width: 90px; margin-left: -5px; }
    .search-input { width: 40px; font-size: 0.7rem; }
    .search-bar { padding: 2px 4px; }
    .search-button svg { width: 14px; height: 14px; }
    .nav-right { gap: 5px; }
    .vertical-line { height: 16px; }

    .bottom-header {
        padding: 10px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .weather-container { align-items: flex-start; width: 100%; }
    .weather-info, .location { justify-content: flex-start; }
    .temperature { text-align: left; }
    .day { font-size: 1.2rem; }
    .datetime { font-size: 0.7rem; line-height: 1.3; }
    .temperature { font-size: 1.2rem; }
    .weather-text { font-size: 0.75rem; }
    .location span { font-size: 0.7rem; }
    .icon svg { width: 18px; height: 18px; }
    .location svg { width: 10px; height: 10px; }

    .nav-menu { width: 240px; left: -240px; }
    .menu-logo { width: 120px; }
    .nav-menu ul li a { font-size: 1rem; }

    .header-section h1 { font-size: 1.3rem; }
    .section-header { font-size: 0.85rem; }
    
    .top-story-article img { max-height: 220px; }
    .top-story-article-title { font-size: 1.25rem; }
    .top-story-excerpt { font-size: 0.8rem; -webkit-line-clamp: 2; }
    .top-story-meta .category { font-size: 0.7rem; padding: 3px 8px; }
    .top-story-meta .date { font-size: 0.75rem; }

    .mobile-latest-news-card { padding: 10px; }
    .mobile-latest-news-card img { width: 80px; height: 60px; margin-right: 10px; }
    .mobile-latest-news-card-content .title { font-size: 0.85rem; }
    .mobile-latest-news-card-content .excerpt { font-size: 0.75rem; }
    .mobile-latest-news-card-content-category { font-size: 0.7rem; padding: 3px 8px; }
    .mobile-latest-news-card-content-date { font-size: 0.7rem; }

    .ad-unit { min-height: 103px; }
    .ad-title { font-size: 1rem; }
    .ad-text { font-size: 0.8rem; }
    .ad-button { padding: 7px 14px; font-size: 0.8rem; }
    .pagination-button { padding: 7px 15px; font-size: 0.85rem; }

    .newsletter-card { padding: 12px; }
    .newsletter-heading { font-size: 0.8rem; }
    .newsletter-type { font-size: 0.75rem; }
    .newsletter-para { font-size: 0.8rem; }
    .newsletter-input_field { height: 36px; font-size: 0.85rem; }
    .newsletter-button { padding: 9px; font-size: 0.85rem; }
    .newsletter-success-notification { padding: 10px 15px; font-size: 0.8rem; }
    .newsletter-error-message { font-size: 0.7rem; }

    .carousel-container { margin: 1rem auto; border-radius: 6px; }
    .carousel-image { height: 200px; }
    .carousel-content { padding: 0.75rem; }
    .carousel-category, .carousel-item .ad-label { font-size: 0.65rem; padding: 0.2rem 0.5rem; margin-bottom: 0.3rem; }
    .carousel-date { font-size: 0.75rem; }
    .carousel-headline { font-size: 1rem; margin-bottom: 0.5rem; }
    .carousel-button { width: 28px; height: 28px; }
    .carousel-indicators { bottom: 8px; }
    .indicator { width: 7px; height: 7px; }
    .adsterra-carousel-slot { height: 200px; }

    .pill-container { gap: 8px; margin-bottom: 20px; }
    .pill { padding: 8px 15px; font-size: 13px; }

    .featured-article { margin-bottom: 25px; }
    .featured-article-card { padding: 15px; }
    .featured-article-title { font-size: 1.1rem; margin-bottom: 8px; }
    .featured-article-meta { padding: 10px 0; }
    .featured-article-excerpt { font-size: 0.8rem; margin-bottom: 20px; }
    .featured-article-meta .category { font-size: 0.75rem; padding: 4px 10px; }
    .featured-article-meta .date { font-size: 0.75rem; }

    .article-card { margin-bottom: 20px; }
    .article-meta { padding: 8px; margin-top: 4px; }
    .article-meta .category { font-size: 0.75rem; padding: 4px 10px; }
    .article-meta .date { font-size: 0.75rem; }
    .article-title { font-size: 1rem; padding: 10px; margin-top: -10px; }
    .article-excerpt { font-size: 0.8rem; padding: 10px; margin-top: -8px; }

    .container { padding: 0 10px; }
    .article-header h1 { font-size: 28px; }
    .subheading { font-size: 18px; }
    .news-main-content p, .news-main-content { font-size: 15px; }

    .cookie-card { max-width: 95%; width: 95%; padding: 0.75rem; bottom: 10px; right: 10px; left: 10px; }
    .cookie-card.expanded { max-width: 95%; }
    .cookie-card .title { font-size: 0.9rem; }
    .cookie-card .description { font-size: 0.75rem; line-height: 1.1rem; }
    .cookie-card .actions { flex-direction: column; align-items: stretch; gap: 0.5rem; }
    .cookie-card .pref { text-align: center; font-size: 0.7rem; }
    .cookie-card .accept { font-size: 0.7rem; padding: 0.5rem 0.8rem; }
    .cookie-preferences { padding-top: 0.75rem; }
    .preference-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding-bottom: 0.75rem; margin-bottom: 0.75rem; }
    .preference-text h4 { font-size: 0.85rem; }
    .preference-text p { font-size: 0.7rem; }
    .slider { width: 50px; height: 25px; }
    .slider::before { transform: translateX(-25px); }
    .checkbox:checked ~ .slider::before { transform: translateX(25px); }
    .save-preferences { font-size: 0.8rem; padding: 0.5rem; }

    footer { padding: 20px 5%; }
    .footer-content { flex-direction: column; align-items: flex-start; gap: 20px; }
    .footer-section { width: 100%; }
    .footer-brand { font-size: 18px; margin-bottom: 15px; }
    .footer-section h3 { font-size: 13px; margin-bottom: 10px; }
    .footer-section ul li a { font-size: 13px; }
    .footer-bottom { font-size: 11px; padding-top: 10px; }
}

/* Mobile (375px - 767px) */
@media (min-width: 375px) and (max-width: 767px) {
    .mobile-nav-left { flex-grow: 1; }
    .logo { margin-left: auto; margin-right: auto; }
    .logo img { width: 115px; margin-left: -25px; }
    .search-input { width: 69px; font-size: 0.8rem; }
    .search-bar { padding: 3px 8px; }
    .search-button svg { width: 16px; height: 16px; }
    .nav-right { gap: 10px; }

    .bottom-header { padding: 15px 20px; flex-direction: row; align-items: center; justify-content: space-between; }
    .weather-container { align-items: flex-end; width: auto; }
    .weather-info, .location { justify-content: flex-end; }
    .temperature { text-align: right; }
    .day { font-size: 1.5rem; }
    .datetime { font-size: 0.8rem; }
    .temperature { font-size: 1.5rem; }
    .weather-text { font-size: 0.9rem; }
    .location span { font-size: 0.8rem; }
    .icon svg { width: 20px; height: 20px; }
    .location svg { width: 12px; height: 12px; }

    .nav-menu { width: 280px; left: -280px; }
    .menu-logo { width: 150px; }
    .nav-menu ul li a { font-size: 1.1rem; }

    .newsletter-card { margin-top: 15px; }
    .newsletter-success-notification { left: 10px; right: 10px; bottom: 10px; width: auto; transform: translateX(-110%); text-align: center; }
    .newsletter-success-notification.active { transform: translateY(0); }

    .adsterra-carousel-slot { height: 350px; }
    .carousel-image { height: 250px; }
    .carousel-headline { font-size: 1.2rem; }
    .carousel-content { padding: 1rem; }
    .carousel-button { width: 30px; height: 30px; }
    .carousel-category, .carousel-item .ad-label { font-size: 0.7rem; }
    .carousel-date { font-size: 0.8rem; }
    .indicator { width: 8px; height: 8px; }

    .pill-container { gap: 10px; margin-bottom: 25px; }
    .pill { padding: 10px 20px; font-size: 14px; }

    .featured-article { margin-bottom: 30px; }
    .featured-article-card { padding: 18px; }
    .featured-article-title { font-size: 1.3rem; }
    .featured-article-excerpt { font-size: 0.85rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-bottom: -20px; }
    .featured-article-meta .category { font-size: 0.8rem; }
    .featured-article-meta .date { font-size: 0.8rem; }

    .article-card { margin-bottom: 25px; }
    .article-meta { padding: 10px; }
    .article-meta .category { font-size: 0.8rem; }
    .article-meta .date { font-size: 0.8rem; }
    .article-title { font-size: 1.1rem; padding: 12px; }
    .article-excerpt { font-size: 0.85rem; padding: 12px; }

    .cookie-card { max-width: 340px; right: 15px; bottom: 15px; }
    .cookie-card.expanded { max-width: 400px; width: 90%; }
    .cookie-card .title { font-size: 0.95rem; }
    .cookie-card .description { font-size: 0.8rem; }
    .cookie-card .accept { font-size: 0.75rem; }
    .cookie-card .pref { font-size: 0.75rem; }

    footer { padding: 25px 7%; }
    .footer-content { flex-direction: column; align-items: flex-start; gap: 25px; }
    .footer-brand { font-size: 19px; }

    .container { padding: 0 15px; }
    .article-header h1 { font-size: 32px; }
    .subheading { font-size: 20px; }
    .news-main-content p, .news-main-content { font-size: 16px; }
    
    .article-content { grid-template-columns: 1fr; }
    .alt-sidebar { border-left: none; padding-left: 0; border-top: 1px solid #eee; padding-top: 20px; margin-top: 20px; }
}

@media (min-width: 376px) and (max-width: 480px) {
    .header-section h1 { font-size: 1.4rem; }
    .top-story-article img { max-height: 250px; }
    .top-story-article-title { font-size: 1.3rem; }
    .top-story-excerpt { font-size: 0.82rem; }
    .mobile-latest-news-card img { width: 90px; height: 68px; }
    .mobile-latest-news-card-content .title { font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .carousel-image { height: 250px; }
    .carousel-headline { font-size: 1.2rem; }
    .carousel-content { padding: 1rem; }
    .carousel-button { width: 30px; height: 30px; }
    .adsterra-carousel-slot { height: 250px; }
    
    .container { padding: 0 25px; }
    .article-header h1 { font-size: 36px; }
    .subheading { font-size: 22px; }
    .news-main-content p, .news-main-content { font-size: 17px; }
}

/* Tablet & Desktop (768px+) */
@media (min-width: 768px) {
    .mobile-only { display: none; }
    .mobile-nav-left { flex-grow: 0; }
    .top-nav { padding: 15px 40px; }
    .logo { margin-left: 0; margin-right: 0; }
    .logo img { width: 200px; margin-right: 0; margin-left: 0; margin-bottom: -1px; }
    .search-input { width: 140px; }
    .desktop-nav-container { display: flex; }

    .main-content { flex-direction: row; gap: 20px; }
    .article-container { flex: 2; }
    .sidebar { flex: 1; display: flex; flex-direction: column; gap: 20px; }
    .sidebar .ad-unit { padding: 20px; min-height: 130px; }
    .sidebar .ad-unit .adsterra-native-sidebar-ad { margin-bottom: 0; }
    .adsterra-native-sidebar-ad { display: block; }
    .header-section h1 { font-size: 1.8rem; }
    .section-header { font-size: 1.3rem; }

    .top-story-article img { max-height: 400px; }
    .top-story-article-content { padding: 20px; }
    .top-story-article-title { font-size: 1.8rem; margin-bottom: 8px; }
    .top-story-excerpt { font-size: 0.95rem; margin-bottom: 12px; -webkit-line-clamp: 3; }
    .top-story-meta .category { font-size: 0.8rem; padding: 5px 12px; }
    .top-story-meta .date { font-size: 0.85rem; }

    .mobile-latest-news .ad-unit { display: none; }
    .mobile-latest-news-card { padding: 15px; }
    .mobile-latest-news-card img { width: 140px; height: 105px; margin-right: 18px; border-radius: 6px; }
    .mobile-latest-news-meta { margin-bottom: 8px; }
    .mobile-latest-news-card-content-category { font-size: 0.8rem; padding: 5px 12px; }
    .mobile-latest-news-card-content-date { font-size: 0.8rem; }
    .mobile-latest-news-card-content .title { font-size: 1.1rem; line-height: 1.35; margin-bottom: 6px; }
    .mobile-latest-news-card-content .excerpt { font-size: 0.9rem; -webkit-line-clamp: 3; line-height: 1.5; }
    .mobile-latest-news .pagination-container { margin-top: 20px; margin-bottom: 40px; }
    .mobile-latest-news .pagination-button { padding: 10px 25px; font-size: 1rem; }

    .newsletter-card { padding: 20px; }

    .carousel-image { height: 350px; }
    .carousel-headline { font-size: 1.5rem; }
    .carousel-content { padding: 1.5rem; }
    .carousel-category, .carousel-item .ad-label { font-size: 0.75rem; }
    .carousel-date { font-size: 0.85rem; }
    .carousel-button { width: 35px; height: 35px; }
    .indicator { width: 9px; height: 9px; }
    .carousel-indicators { bottom: 12px; }

    .pill-container { gap: 15px; margin-bottom: 30px; }
    .featured-content-section.active { display: grid; grid-template-columns: 1fr; gap: 30px; }
    .featured-article-card { margin-bottom: 0; transition: transform 0.3s ease, box-shadow 0.3s ease; }
    .featured-article-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.12); }
    .featured-article-meta { padding: 15px 0; }
    .featured-article-title { font-size: 1.5rem; }
    .featured-article-excerpt { font-size: 1.2rem; line-height: 1.6; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-bottom: -20px; }
    .article-card { margin-bottom: 13px; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; padding: 15px; }
    .article-card:hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(0,0,0,0.12); }
    .article-meta { padding: 0; margin: 0 0 10px 0; }
    .article-title { font-size: 1.5rem; margin: 0; padding: 0; }

    .cookie-card { max-width: 360px; right: 20px; bottom: 20px; }
    .cookie-card.expanded { max-width: 420px; width: auto; }
    .cookie-card .title { font-size: 1rem; }
    .cookie-card .description { font-size: 0.875rem; }
    .cookie-card .actions { flex-direction: row; }
    .cookie-card .accept { font-size: 0.8rem; padding: 0.625rem 1rem; }
    .cookie-card .pref { font-size: 0.8rem; }
    .cookie-preferences { padding-top: 1rem; }
    .preference-item { flex-direction: row; align-items: center; padding-bottom: 1rem; margin-bottom: 1rem; }
    .preference-text h4 { font-size: 0.9rem; }
    .preference-text p { font-size: 0.75rem; }
    .slider { width: 60px; height: 30px; }
    .slider::before { transform: translateX(-30px); }
    .checkbox:checked ~ .slider::before { transform: translateX(30px); }
    .save-preferences { font-size: 0.875rem; padding: 0.625rem; }

    footer { padding: 30px 10%; }
    .footer-content { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 30px; }
    .footer-section { width: auto; }
    .footer-brand { font-size: 20px; margin-bottom: 25px; }
    .footer-section h3 { font-size: 14px; margin-bottom: 15px; }
    .footer-section ul li a { font-size: 14px; }
    .footer-bottom { font-size: 12px; padding-top: 15px; }

    .news-ad-unit { display: none !important; }

    .container { padding: 0 30px; }
    .article-header h1 { font-size: 40px; }
    .subheading { font-size: 24px; }
    .share-section { display: flex; align-items: center; gap: 10px; }
    .share-icons { display: flex; align-items: center; gap: 9px; }
    .share-icons svg { width: 24px; height: 24px; }
    .news-main-content p, .news-main-content { font-size: 18px; }
    .main-menu li a { font-size: 1rem; }
    .main-menu li { padding: 15px 15px; }
    .secondary-nav ul { gap: 15px; }
    .secondary-nav ul li a { font-size: 0.85rem; }
}

@media (min-width: 992px) {
    .featured-article-title { font-size: 1.4rem; }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .top-nav { padding: 15px 60px; }
    .logo img { width: 250px; margin-left: 0; margin-right: 0; margin-bottom: -1px; }
    .search-input { width: 180px; }
    .main-menu li { padding: 15px 25px; }
    .secondary-nav ul { gap: 30px; }
    
    .header-section h1 { font-size: 2rem; }
    .section-header h1 { font-size: 2rem; }
    .top-story-article img { max-height: 450px; }
    .top-story-article-title { font-size: 2rem; }
    .top-story-excerpt { font-size: 1rem; }

    .mobile-latest-news-card { padding: 20px; }
    .mobile-latest-news-card img { width: 180px; height: 120px; margin-right: 20px; }
    .mobile-latest-news-card-content-category { font-size: 0.85rem; padding: 6px 14px; }
    .mobile-latest-news-card-content-date { font-size: 0.85rem; }
    .mobile-latest-news-card-content .title { font-size: 1.25rem; line-height: 1.4; margin-bottom: 8px; }
    .mobile-latest-news-card-content .excerpt { font-size: 0.95rem; -webkit-line-clamp: 3; }

    .carousel-image { height: 500px; }
    .carousel-headline { font-size: 2rem; }
    .carousel-content { padding: 2rem; }
    .carousel-category, .carousel-item .ad-label { font-size: 0.8rem; }
    .carousel-date { font-size: 0.9rem; }
    .carousel-button { width: 40px; height: 40px; }
    .carousel-indicators { bottom: 15px; }
    .indicator { width: 10px; height: 10px; }
    .adsterra-carousel-slot { height: 500px; }

    .featured-article-title { font-size: 1.8rem; }
    .featured-article-excerpt { font-size: 1.5rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-bottom: -20px; }
    .featured-article-meta .category { font-size: 1.5rem; }
    .featured-article-meta .date { font-size: 1.5rem; }
    .article-title { font-size: 1.9rem; }
    .article-excerpt { font-size: 1.5rem; }

    .cookie-card { max-width: 380px; }
    .cookie-card.expanded { max-width: 450px; }

    footer { padding: 40px 10%; }
    .footer-content { gap: 40px; }

    .container { padding: 0 40px; }
    .article-header h1 { font-size: 44px; }
    .subheading { font-size: 25px; }
    .news-main-content p, .news-main-content { font-size: 18px; }
}

@media (min-width: 1200px) {
    .header-section h1 { font-size: 2.2rem; }
    .top-story-article img { max-height: 500px; }
    .top-story-article-title { font-size: 2.2rem; }
}
