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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

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

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

ul {
    list-style: none;
}

/* Header Styles */
header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-main {
    background-color: #fff;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #e63946;
    letter-spacing: -1px;
}

.logo a {
    color: inherit;
}

.logo a:hover h1 {
    opacity: 0.85;
}

.search-bar {
    display: flex;
    margin: 0 20px;
    flex-grow: 1;
    max-width: 400px;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-bar button {
    background-color: #e63946;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

nav ul {
    display: flex;
    gap: 20px;
}

.main-nav ul {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

nav ul > li > a,
.main-nav ul > li > a {
    font-weight: 500;
    color: #333;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

nav ul > li > a:hover, nav ul > li > a.active,
.main-nav ul > li > a:hover, .main-nav ul > li > a.active,
.main-nav .nav-dropdown-trigger:hover,
.main-nav .nav-dropdown-trigger.active,
.main-nav .nav-dropdown.is-open .nav-dropdown-trigger,
.main-nav .nav-ad-space:hover,
.main-nav .nav-ad-space.active {
    color: #e63946;
    border-bottom: 2px solid #e63946;
}

.main-nav .nav-ad-space {
    color: #1d3557;
    font-weight: 600;
}

/* Header World mega menu */
.main-nav .nav-dropdown {
    position: relative;
    z-index: 3;
}

.main-nav .nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    color: #333;
    padding: 5px 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, padding 0.2s ease, border-color 0.2s ease;
}

.main-nav .nav-dropdown-trigger:focus-visible {
    outline: 2px solid #e63946;
    outline-offset: 3px;
    border-radius: 0;
}

.main-nav .nav-dropdown-chevron {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.main-nav .nav-dropdown.is-open .nav-dropdown-chevron {
    transform: rotate(180deg);
}

.nav-mega-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    z-index: 1200;
    width: min(720px, calc(100vw - 32px));
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    box-shadow: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s;
}

.nav-mega-panel.is-open {
    display: grid;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%);
}

.nav-mega-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-mega-item,
.nav-mega-panel .nav-mega-item,
.nav-mega-item:hover,
.nav-mega-item.is-active,
.nav-mega-item:focus,
.nav-mega-item:focus-visible {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 4px;
    border-radius: 0;
    border-bottom: none;
    transition: background 0.15s ease;
}

.nav-mega-item:hover,
.nav-mega-panel .nav-mega-item:hover {
    background: #f6f7f9;
    border-bottom: none;
    border-radius: 0;
}

.nav-mega-item.is-active,
.nav-mega-panel .nav-mega-item.is-active {
    background: #fff4f5;
    border-bottom: none;
    border-radius: 0;
}

.nav-mega-item.is-active .nav-mega-label {
    color: #e63946;
}

.nav-mega-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
}

.nav-mega-label {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.15;
}

.breaking-news {
    background: #1a1a2e;
    color: white;
    padding: 0;
    display: flex;
    align-items: stretch;
    min-height: 44px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.breaking-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    padding: 0 18px;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #ff6b6b;
    border-radius: 50%;
    animation: live-pulse 1.4s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.breaking-label {
    white-space: nowrap;
}

.breaking-ticker-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
}

.breaking-ticker-track {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    will-change: transform;
}

.breaking-ticker-track.is-ready {
    animation: ticker-scroll 90s linear infinite;
}

.breaking-ticker-track.is-ready:hover {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.breaking-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 28px 10px 0;
    margin-right: 28px;
    color: #fff;
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    transition: color 0.2s ease;
}

.breaking-item:hover {
    color: #ffd6da;
}

.breaking-item-category {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 3px 8px;
    border-radius: 3px;
}

.breaking-item-title {
    font-size: 14px;
    font-weight: 400;
}

.breaking-loading {
    padding: 12px 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.country-nav {
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    padding: 8px 20px;
}

.country-nav ul {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.country-nav .country-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.5px;
}

.country-nav .country-link {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    padding: 4px 0;
}

.country-nav .country-link:hover,
.country-nav .country-link.active {
    color: #e63946;
    border-bottom: 2px solid #e63946;
}

/* World page compact filter */
.world-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
    position: relative;
    z-index: 20;
}

.world-all-btn-inline {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    color: #006d77;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 13px;
    border: 1px solid #e0e0e0;
    transition: background 0.2s, border-color 0.2s;
}

.world-all-btn-inline:hover {
    background: #eef6f7;
    border-color: #006d77;
}

.news-hub-page .world-countries-bar {
    margin-bottom: 0;
}

.world-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: white;
    color: #333;
    padding: 28px 30px;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
    border-bottom: 1px solid #f0f0f0;
}

.world-hero-updated {
    align-self: flex-end;
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
    white-space: nowrap;
}

.world-hero-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.world-hero-country {
    background: white;
}

.world-hero-text {
    min-width: 0;
}

.world-hero-eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #e63946;
    margin: 0 0 8px;
    font-weight: 600;
}

.world-hero h2 {
    font-size: 28px;
    margin-bottom: 8px;
    line-height: 1.2;
    color: #1a1a2e;
}

.world-hero p {
    font-size: 15px;
    color: #666;
    margin: 0;
    max-width: 640px;
}

.world-all-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    color: #006d77;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    transition: background 0.2s, border-color 0.2s;
}

.world-all-btn:hover {
    background: #eef6f7;
    border-color: #006d77;
}

.world-breaking {
    display: flex;
    align-items: stretch;
    min-height: 44px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    border: 1px solid rgba(230, 57, 70, 0.3);
}

.world-countries {
    background: transparent;
    border-radius: 0 0 12px 12px;
    padding: 20px 24px 16px;
    box-shadow: none;
    margin-bottom: 0;
    position: relative;
    z-index: 20;
}

.world-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
    color: #666;
}

.world-stats #last-updated {
    color: #999;
}

.world-hero-updated:empty {
    display: none;
}

.world-page .ad-leaderboard {
    margin: 0 auto 24px;
    max-width: 100%;
}

.world-news-heading {
    font-size: 22px;
    color: #333;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #e63946;
    display: inline-block;
}

.world-news-grid {
    margin-top: 0;
}

.world-countries-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.world-countries-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f0f0;
}

.world-countries-header h3 {
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.world-countries-header h3 i {
    color: #e63946;
}

.world-countries-header h3 span {
    font-weight: 400;
    color: #888;
    font-size: 15px;
}

.world-filter-label {
    font-size: 14px;
    color: #888;
    font-weight: 400;
    margin: 0;
}

.world-dropdown {
    position: relative;
    display: inline-block;
}

.world-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 2px 10px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 500;
    color: #3d3654;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.world-dropdown-trigger:hover,
.world-dropdown.is-open .world-dropdown-trigger {
    color: #e63946;
    border-bottom-color: #e63946;
}

.world-dropdown-trigger:focus {
    outline: none;
    color: #e63946;
    border-bottom-color: #e63946;
}

.world-dropdown-value {
    line-height: 1.2;
}

.world-dropdown-chevron {
    color: inherit;
    font-size: 12px;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.world-dropdown.is-open .world-dropdown-chevron {
    transform: rotate(180deg);
}

.world-dropdown-panel {
    position: absolute;
    z-index: 300;
    top: calc(100% + 14px);
    left: 0;
    min-width: 280px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(61, 54, 84, 0.14);
    padding: 8px 0;
    border: 1px solid #eee;
}

.world-dropdown-panel::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 32px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.04);
}

.world-dropdown-panel[hidden] {
    display: none;
}

.world-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 340px;
    overflow-y: auto;
}

.world-dropdown-option {
    display: block;
    padding: 14px 28px;
    font-size: 15px;
    line-height: 1.35;
    color: #7a7585;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.world-dropdown-option:hover {
    color: #3d3654;
    background: #faf9fb;
}

.world-dropdown-option.is-selected {
    color: #3d3654;
    font-weight: 600;
}

.world-countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.country-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
    text-align: left;
    text-decoration: none;
}

.country-chip:hover {
    background: #fff;
    border-color: #e63946;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.12);
}

.country-chip.active {
    background: #e63946;
    color: white;
    border-color: #e63946;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.25);
}

.country-chip.active .chip-icon {
    filter: none;
}

.chip-icon {
    font-size: 18px;
    line-height: 1;
}

.chip-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.world-page .featured-news {
    margin-top: 0;
}

.world-section-title {
    font-size: 24px;
    color: #333;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #e63946;
    display: inline-block;
}

.category-badge.norway { background-color: #e63946; }
.category-badge.sweden { background-color: #006aa7; }
.category-badge.denmark { background-color: #c1121f; }
.category-badge.germany { background-color: #ffcc00; color: #333; }
.category-badge.france { background-color: #0055a4; }
.category-badge.spain { background-color: #aa151b; }
.category-badge.japan { background-color: #bc002d; }

/* Main Content Styles */
main,
.page-layout {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.page-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

.content-column {
    min-width: 0;
}

.ad-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Ad units */
.ad-unit {
    background: #fff;
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    margin-bottom: 25px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ad-sidebar .ad-unit {
    margin-bottom: 0;
    width: 100%;
}

.ad-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #999;
    margin-bottom: 8px;
    text-decoration: none;
}

a.ad-label:hover {
    color: #e63946;
    text-decoration: underline;
}

.ad-custom {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.ad-custom img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.ad-custom-link {
    display: inline-block;
    line-height: 0;
    max-width: 100%;
    margin: 0 auto;
}

.ad-unit .adsbygoogle {
    margin-left: auto;
    margin-right: auto;
}

.ad-consent-notice {
    margin: 8px auto 0;
    max-width: 28rem;
}

/* Leaderboard: 728px unit */
.ad-unit.ad-leaderboard {
    width: 728px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.ad-unit.ad-leaderboard .ad-custom {
    width: 728px;
    max-width: 100%;
}

.ad-unit.ad-leaderboard .ad-custom-link {
    display: block;
    width: 728px;
    max-width: 100%;
    margin: 0 auto;
}

.ad-unit.ad-leaderboard .ad-custom img {
    width: 728px;
    max-width: 100%;
    height: auto;
}

.ad-unit.ad-leaderboard .ad-placeholder {
    width: 728px;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* In-content + in-feed: full-width box, 728px image centered inside */
.ad-unit.ad-in_content,
.ad-unit.ad-in-content,
.ad-unit.ad-in_feed,
.ad-unit.ad-in-feed {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.ad-unit.ad-in_content .ad-custom,
.ad-unit.ad-in-content .ad-custom,
.ad-unit.ad-in_feed .ad-custom,
.ad-unit.ad-in-feed .ad-custom {
    width: 100%;
    display: flex;
    justify-content: center;
}

.ad-unit.ad-in_content .ad-custom-link,
.ad-unit.ad-in-content .ad-custom-link,
.ad-unit.ad-in_feed .ad-custom-link,
.ad-unit.ad-in-feed .ad-custom-link {
    display: block;
    width: 728px;
    max-width: 100%;
    margin: 0 auto;
}

.ad-unit.ad-in_content .ad-custom img,
.ad-unit.ad-in-content .ad-custom img,
.ad-unit.ad-in_feed .ad-custom img,
.ad-unit.ad-in-feed .ad-custom img {
    width: 728px;
    max-width: 100%;
    height: auto;
    display: block;
}

.ad-unit.ad-in_content .ad-placeholder,
.ad-unit.ad-in-content .ad-placeholder,
.ad-unit.ad-in_feed .ad-placeholder,
.ad-unit.ad-in-feed .ad-placeholder {
    width: 728px;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* 300×250 sidebar rectangles */
.ad-unit.ad-sidebar_top .ad-custom,
.ad-unit.ad-sidebar_mid .ad-custom {
    width: 300px;
    max-width: 100%;
}

.ad-unit.ad-sidebar_top .ad-custom-link,
.ad-unit.ad-sidebar_mid .ad-custom-link {
    display: block;
    width: 300px;
    max-width: 100%;
    margin: 0 auto;
}

.ad-unit.ad-sidebar_top .ad-custom img,
.ad-unit.ad-sidebar_mid .ad-custom img {
    width: 300px;
    max-width: 100%;
    height: auto;
}

.ad-unit.ad-sidebar_top .ad-placeholder,
.ad-unit.ad-sidebar_mid .ad-placeholder {
    width: 300px;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.news-hub-page #news-container > .ad-unit.ad-in_feed,
.news-hub-page #news-container > .ad-unit.ad-in-feed {
    align-self: stretch;
    width: 100%;
    margin-bottom: 16px;
    flex: 0 0 auto;
}

.ad-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef1f4 100%);
    border-radius: 6px;
    padding: 24px 16px;
    color: #666;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.ad-sidebar_top .ad-placeholder,
.ad-sidebar_mid .ad-placeholder {
    min-height: 250px;
}

.ad-placeholder strong {
    color: #444;
    font-size: 14px;
}

.ad-placeholder span {
    font-size: 13px;
}

.ad-placeholder small {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.ad-leaderboard .ad-placeholder,
.ad-in-content .ad-placeholder,
.ad-in_content .ad-placeholder {
    min-height: 90px;
}

.stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #666;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Al Jazeera-style news hub (home + category pages) */
.news-hub-page {
    --hub-accent: #d64045;
    --hub-dark: #1a1a2e;
}

.hub-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #888;
    margin-bottom: 18px;
}

.hub-meta-bar-end {
    justify-content: flex-end;
}

.hub-meta-updated {
    color: #aaa;
    font-size: 12px;
}

.hub-featured {
    margin-bottom: 28px;
}

.hub-section-label {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 20px;
    font-weight: 900;
    color: var(--hub-dark);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--hub-dark);
}

/* Lead story */
.hub-lead {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.hub-lead:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.hub-lead-media {
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #eee;
}

.hub-lead-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.hub-lead:hover .hub-lead-media img {
    transform: scale(1.03);
}

.hub-lead-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 32px;
}

.hub-lead-category {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--hub-accent);
    margin-bottom: 12px;
}

.hub-lead-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 900;
    line-height: 1.3;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.hub-lead-excerpt {
    font-size: 15px;
    line-height: 1.55;
    color: #555;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hub-lead-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 13px;
    color: #999;
    margin-top: auto;
}

/* Secondary stories grid */
.hub-secondary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.hub-secondary-item {
    position: relative;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    align-items: start;
    padding: 14px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

.hub-secondary-item:hover {
    background: #fafafa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hub-secondary-thumb {
    width: 110px;
    height: 78px;
    border-radius: 3px;
    overflow: hidden;
    background: #eee;
}

.hub-secondary-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hub-secondary-category {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hub-accent);
    margin-bottom: 5px;
}

.hub-secondary-body h4 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a2e;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hub-secondary-body time {
    font-size: 12px;
    color: #999;
}

.hub-card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    text-indent: -9999px;
    overflow: hidden;
}

.hub-feed {
    margin-top: 8px;
}

.hub-feed-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--hub-dark);
    margin-bottom: 6px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--hub-dark);
}

.hub-feed-subtitle {
    margin: -8px 0 20px;
    font-size: 13px;
    color: var(--hub-muted, #666);
}

.news-hub-page #news-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feed-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    overflow: hidden;
}

.feed-card:first-child {
    border-top: 1px solid #e8e8e8;
}

.feed-card:hover {
    background: #fafafa;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.feed-card-link {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 16px;
    color: inherit;
}

.feed-card-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 3px;
    background: #eee;
}

.feed-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.feed-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hub-accent);
    margin-bottom: 8px;
}

.feed-card-body h3 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.feed-excerpt {
    font-size: 14px;
    line-height: 1.55;
    color: #555;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 13px;
    color: #888;
}

.feed-meta time {
    font-weight: 500;
}

.news-hub-page .ad-leaderboard {
    margin: 28px auto;
}

.news-hub-page .ad-in-content,
.news-hub-page .ad-in_content {
    margin: 0 auto 20px;
    width: 100%;
}

.news-hub-page .loading,
.news-hub-page .error,
.news-hub-page .empty-state {
    grid-column: unset;
    width: 100%;
}

.category-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
    color: white;
}

.category-badge.world { background-color: #1a535c; }
.category-badge.business { background-color: #006d77; }
.category-badge.technology { background-color: #e63946; }
.category-badge.ai { background-color: #7209b7; }
.category-badge.sports { background-color: #f4a261; color: #333; }
.category-badge.entertainment { background-color: #9b5de5; }

.loading, .error, .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.empty-state i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

.empty-state code {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 13px;
}

.world-empty-link {
    display: inline-block;
    margin-top: 14px;
    color: #e63946;
    font-weight: 500;
    text-decoration: none;
}

.world-empty-link:hover {
    text-decoration: underline;
}

.search-clear-btn {
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
}

.error {
    color: #e63946;
}

.featured-item .category-badge {
    margin-bottom: 10px;
}

.news-card {
    cursor: pointer;
}

.featured-news {
    margin-bottom: 40px;
}

.featured-news h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #e63946;
    padding-bottom: 10px;
}

.section-note {
    color: #666;
    font-size: 14px;
    margin: -10px 0 20px;
}

#featured-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 300px 150px;
    gap: 15px;
}

.featured-news #featured-container {
    display: grid;
}

.news-hub-page #featured-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    grid-template-columns: none;
    grid-template-rows: none;
}

.featured-news .featured-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    cursor: pointer;
}

.featured-news .featured-item.main {
    grid-row: span 2;
}

.featured-news .featured-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-news .featured-item:hover img {
    transform: scale(1.05);
}

.featured-news .featured-item .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    z-index: 1;
}

.featured-news .featured-item .content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.featured-news .featured-item .content .meta {
    font-size: 12px;
    opacity: 0.8;
}

.featured-news .featured-item.main .content h3 {
    font-size: 24px;
}

.news-grid h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #e63946;
    padding-bottom: 10px;
}

#news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

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

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

.news-card .image {
    height: 180px;
    overflow: hidden;
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover img {
    transform: scale(1.05);
}

.news-card .content {
    padding: 15px;
}

.news-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card .meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 12px;
    margin-bottom: 10px;
}

.news-card .description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .read-more {
    display: inline-block;
    color: #e63946;
    font-weight: 500;
    font-size: 14px;
}

.load-more {
    text-align: center;
    margin: 40px 0;
    min-height: 48px;
}

.load-more-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #666;
    font-weight: 500;
}

.load-more-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #e4e4e4;
    border-top-color: #e63946;
    border-radius: 50%;
    animation: load-more-spin 0.7s linear infinite;
}

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

/* Footer Styles */
.site-footer {
    background: linear-gradient(165deg, #252838 0%, #16182a 55%, #12131f 100%);
    color: #fff;
    position: relative;
    margin-top: 32px;
}

.footer-accent {
    height: 4px;
    background: linear-gradient(90deg, #e63946 0%, #ff6b6b 45%, #e63946 100%);
}

.footer-top {
    padding: 52px 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) 0.85fr 1.15fr 0.8fr;
    gap: 36px 40px;
}

.footer-brand {
    padding-right: 12px;
}

.footer-logo {
    display: inline-block;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.footer-logo:hover {
    color: #ff8a96;
}

.footer-tagline {
    color: #b4b7c8;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 18px;
    max-width: 34ch;
}

.footer-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.footer-stats li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #c5c8d4;
    font-size: 12px;
}

.footer-stats strong {
    color: #fff;
    font-weight: 600;
}

.footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d8dae3;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-contact i {
    color: #e63946;
    font-size: 14px;
}

.footer-contact:hover {
    color: #fff;
}

.footer-section h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    margin-bottom: 18px;
    color: #fff;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(230, 57, 70, 0.45);
}

.footer-note {
    color: #9ca0b0;
    font-size: 13px;
    margin-bottom: 14px;
    line-height: 1.5;
}

.footer-note a {
    color: #ff8a96;
    font-weight: 500;
}

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

.footer-links li {
    margin-bottom: 9px;
}

.footer-links a {
    display: inline-block;
    color: #b8bac9;
    font-size: 14px;
    transition: color 0.2s, transform 0.2s;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-section-world {
    min-width: 0;
}

.footer-links-countries {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
}

.footer-links-countries a {
    font-size: 13px;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.28);
    margin-top: 44px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
}

.footer-copy {
    font-size: 13px;
    color: #8f93a3;
    margin: 0;
}

.footer-disclaimer {
    margin: 0 !important;
    font-size: 11px !important;
    color: #6d7180 !important;
    max-width: 52ch;
    text-align: right;
}

.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e63946;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 14px rgba(230, 57, 70, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #d12235;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 32px 28px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-section-world {
        grid-column: 1 / -1;
    }

    .footer-links-countries {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-disclaimer {
        text-align: left;
        max-width: none;
    }

    .page-layout {
        grid-template-columns: 1fr;
    }

    .ad-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ad-sidebar .ad-unit {
        flex: 1 1 280px;
    }

    #featured-container {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 200px);
    }

    .featured-item.main {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    main,
    .page-layout {
        margin: 16px auto;
        padding: 0 16px;
    }

    .header-container {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px;
        gap: 10px;
    }

    .logo h1 {
        font-size: 22px;
    }

    .search-bar {
        margin: 0;
        max-width: none;
        width: 100%;
    }

    .search-bar input,
    .access-form input[type="password"] {
        font-size: 16px;
    }

    .main-nav {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 -4px;
        padding: 0 4px;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav ul {
        flex-wrap: nowrap;
        gap: 8px;
        padding-bottom: 2px;
    }

    .main-nav ul > li > a {
        display: inline-block;
        white-space: nowrap;
        padding: 8px 4px;
        font-size: 14px;
        background: transparent;
        border-radius: 0;
        border-bottom: 2px solid transparent;
    }

    .main-nav ul > li > a:hover,
    .main-nav ul > li > a.active {
        background: transparent;
        color: #e63946;
        border-bottom: 2px solid #e63946;
    }

    .main-nav .nav-dropdown-trigger {
        display: inline-flex;
        white-space: nowrap;
        padding: 8px 4px;
        font-size: 14px;
        background: transparent;
        border-radius: 0;
        border-bottom: 2px solid transparent;
    }

    .main-nav .nav-dropdown-trigger:hover,
    .main-nav .nav-dropdown-trigger.active,
    .main-nav .nav-dropdown.is-open .nav-dropdown-trigger {
        background: transparent;
        color: #e63946;
        border-bottom: 2px solid #e63946;
        box-shadow: none;
        padding: 8px 4px;
    }

    .nav-mega-panel {
        position: fixed;
        top: auto;
        left: auto;
        width: min(340px, calc(100vw - 24px));
        padding: 12px 12px;
        grid-template-columns: 1fr;
        gap: 10px;
        border-radius: 0;
        transform: translateY(8px);
        max-height: 70vh;
        overflow-y: auto;
    }

    .nav-mega-panel.is-open {
        transform: translateY(0);
    }

    .nav-mega-item,
    .nav-mega-panel .nav-mega-item,
    .nav-mega-item:hover,
    .nav-mega-item.is-active {
        padding: 4px 4px;
        border-radius: 0;
    }

    .nav-mega-label {
        font-size: 14px;
    }

    .hub-lead {
        grid-template-columns: 1fr;
    }

    .hub-lead-body {
        padding: 20px;
    }

    .hub-secondary {
        grid-template-columns: 1fr;
    }

    .feed-card-link {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px 0;
    }

    .feed-card-media {
        aspect-ratio: 16 / 9;
    }

    .feed-card-body h3 {
        font-size: 18px;
    }

    .hub-meta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        font-size: 12px;
    }

    .hub-feed-title {
        font-size: 20px;
    }

    .featured-news h2,
    .news-grid h2 {
        font-size: 20px;
    }

    #featured-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 200px);
    }

    .news-hub-page #featured-container {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        grid-template-rows: none;
    }

    .featured-item.main {
        grid-column: span 1;
    }

    #news-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .news-card .content {
        padding: 16px;
    }

    .news-card .content h3 {
        font-size: 17px;
    }

    .world-countries-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .world-dropdown-panel {
        min-width: min(100vw - 48px, 300px);
    }

    .world-countries-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }

    .world-countries-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .country-chip {
        padding: 10px 12px;
        min-height: 44px;
    }

    .world-hero {
        padding: 22px 20px;
    }

    .world-hero-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .world-hero-updated {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .world-hero h2 {
        font-size: 22px;
    }

    .world-all-btn {
        width: 100%;
        justify-content: center;
    }

    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-banner-actions .cookie-btn {
        width: 100%;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 0 16px;
    }

    .footer-brand,
    .footer-section-world {
        grid-column: auto;
    }

    .footer-top {
        padding: 36px 0 8px;
    }

    .footer-links-countries {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-tagline {
        max-width: none;
    }

    .back-to-top {
        bottom: 18px;
        right: 18px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 20px;
    }

    .world-hub {
        margin-bottom: 20px;
    }

    .ad-sidebar .ad-unit {
        flex: 1 1 100%;
    }

    .static-page-layout {
        padding: 0 16px;
        margin: 16px auto;
    }

    .static-content {
        padding: 24px 18px;
    }
}

.featured-item .full-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    text-indent: -9999px;
    overflow: hidden;
}

/* Photo Row Styles */
.photo-row-section {
    margin: 40px 0;
    width: 100%;
    background-color: #f8f9fa;
    padding: 30px 0;
}

.photo-row-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.photo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
}

.feature-photo {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 500px;
    transition: transform 0.3s ease;
}

.feature-photo:hover {
    transform: scale(1.02);
}

.photo-caption {
    padding: 25px;
    text-align: center;
}

.photo-caption h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.photo-caption p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.photo-btn {
    display: inline-block;
    background-color: #e63946;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.photo-btn:hover {
    background-color: #d12235;
}

/* Responsive design for photo row */
@media (min-width: 768px) {
    .photo-content {
        flex-direction: row;
    }
    
    .feature-photo {
        width: 60%;
        max-height: 400px;
    }
    
    .photo-caption {
        width: 40%;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .photo-caption {
        padding: 20px;
    }
}

/* Static pages */
.static-page-layout {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

.static-page-layout.static-page-full {
    max-width: 1200px;
    width: 100%;
}

.static-page-layout.static-page-full .content-column,
.static-page-layout.static-page-full .static-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.static-content {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.static-content h1 {
    font-size: 32px;
    color: #1d3557;
    margin-bottom: 24px;
}

.static-content h2 {
    font-size: 20px;
    color: #1d3557;
    margin: 28px 0 12px;
}

.static-content p,
.static-content li {
    color: #555;
    line-height: 1.7;
    margin-bottom: 14px;
}

.static-content ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}

.static-content a {
    color: #e63946;
}

.static-content a:hover {
    text-decoration: underline;
}

/* Stats page */
body.stats-page {
    background: #f4f6f9;
}

.stats-main {
    margin: 0;
    padding: 0;
}

.stats-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.stats-hero {
    background: linear-gradient(135deg, #14213d 0%, #1d3557 50%, #274c77 100%);
    color: #fff;
    padding: 56px 0 64px;
}

.stats-eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 12px;
}

.stats-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.15;
}

.stats-lead {
    max-width: 640px;
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 16px;
}

.stats-updated {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.stats-section {
    padding: 36px 0;
}

.stats-section-split {
    padding-top: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stats-card {
    background: #fff;
    border-radius: 10px;
    padding: 24px 22px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(29, 53, 87, 0.06);
}

.stats-card-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #667;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.stats-card-value {
    display: block;
    font-size: 34px;
    font-weight: 700;
    color: #1d3557;
    line-height: 1.1;
    margin-bottom: 8px;
}

.stats-card-note {
    display: block;
    font-size: 13px;
    color: #888;
}

.stats-split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.stats-panel {
    background: #fff;
    border-radius: 10px;
    padding: 28px 26px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(29, 53, 87, 0.06);
}

.stats-panel-head {
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef1f5;
}

.stats-panel-head h2 {
    font-size: 22px;
    color: #1d3557;
    margin-bottom: 4px;
}

.stats-panel-head p {
    font-size: 14px;
    color: #777;
    margin: 0;
}

.stats-bar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stats-bar-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.stats-bar-link:hover .stats-bar-name {
    color: #e63946;
}

.stats-bar-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}

.stats-bar-name {
    font-size: 14px;
    font-weight: 500;
    color: #1d3557;
}

.stats-bar-count {
    font-size: 13px;
    color: #888;
    font-variant-numeric: tabular-nums;
}

.stats-bar-track {
    display: block;
    height: 6px;
    background: #eef1f5;
    border-radius: 999px;
    overflow: hidden;
}

.stats-bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #e63946, #f4a261);
    border-radius: 999px;
    min-width: 2px;
}

.stats-bar-fill-muted {
    background: linear-gradient(90deg, #457b9d, #1d3557);
}

.stats-top-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: stats-top;
}

.stats-top-item {
    counter-increment: stats-top;
    border-bottom: 1px solid #eef1f5;
}

.stats-top-item:last-child {
    border-bottom: none;
}

.stats-top-link {
    display: block;
    padding: 14px 0 14px 36px;
    position: relative;
    color: inherit;
    text-decoration: none;
}

.stats-top-link::before {
    content: counter(stats-top);
    position: absolute;
    left: 0;
    top: 14px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #eef1f5;
    color: #1d3557;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-top-link:hover .stats-top-title {
    color: #e63946;
}

.stats-top-title {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #1d3557;
    line-height: 1.45;
    margin-bottom: 4px;
}

.stats-top-meta {
    display: block;
    font-size: 12px;
    color: #888;
}

.stats-fetch-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stats-fetch-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eef1f5;
    font-size: 14px;
}

.stats-fetch-item:last-child {
    border-bottom: none;
}

.stats-fetch-date {
    color: #1d3557;
    font-weight: 500;
}

.stats-fetch-count {
    color: #666;
    font-variant-numeric: tabular-nums;
}

.stats-fetch-status {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef1f5;
    color: #555;
}

.stats-fetch-status-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.stats-fetch-status-partial {
    background: #fff3e0;
    color: #ef6c00;
}

.stats-fetch-status-error {
    background: #ffebee;
    color: #c62828;
}

.stats-empty,
.stats-footnote {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    margin: 0;
}

.stats-footnote {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eef1f5;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-split-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .stats-hero {
        padding: 40px 0 48px;
    }

    .stats-hero h1 {
        font-size: 32px;
    }

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

    .stats-panel {
        padding: 22px 18px;
    }

    .stats-fetch-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* Contact page — full professional layout */
body.contact-page {
    background: #fff;
}

.contact-pro-main {
    margin: 0;
    padding: 0;
    max-width: none;
}

.contact-pro-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.contact-pro-hero {
    background: linear-gradient(135deg, #14213d 0%, #1d3557 45%, #274c77 100%);
    color: #fff;
    padding: 72px 0 80px;
    position: relative;
    overflow: hidden;
}

.contact-pro-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.contact-pro-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.contact-pro-hero .contact-pro-wrap {
    position: relative;
    z-index: 1;
}

.contact-pro-eyebrow {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 16px;
}

.contact-pro-hero h1 {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
    letter-spacing: -1px;
    line-height: 1.1;
    max-width: 700px;
}

.contact-pro-hero-lead {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 40px;
    max-width: 640px;
}

.contact-pro-hero-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.contact-pro-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

a.contact-pro-meta-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(230, 57, 70, 0.5);
}

.contact-pro-meta-item i {
    font-size: 22px;
    color: #ff8a94;
    margin-top: 4px;
    flex-shrink: 0;
}

.contact-pro-meta-item strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.3;
}

.contact-pro-meta-item small {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.contact-pro-hero-cta {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: #e63946;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.35);
}

.contact-pro-hero-cta:hover {
    background: #c1121f;
    transform: translateY(-2px);
    color: #fff;
}

/* Section headers */
.contact-pro-section-head {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.contact-pro-section-head h2 {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
    color: #1d3557;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.contact-pro-section-head p {
    font-size: 17px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Channel cards */
.contact-pro-channels {
    padding: 80px 0;
    background: #fff;
}

.contact-pro-channel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.contact-pro-channel {
    padding: 32px 28px;
    background: #f8f9fb;
    border: 1px solid #eef1f5;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.contact-pro-channel:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(29, 53, 87, 0.1);
    border-color: #e63946;
}

.contact-pro-channel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: #fff;
    border-radius: 12px;
    color: #e63946;
    font-size: 22px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.contact-pro-channel h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1d3557;
    margin: 0 0 10px;
}

.contact-pro-channel p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Form section */
.contact-pro-form-section {
    padding: 80px 0;
    background: #f4f6f9;
}

.contact-pro-form-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 48px;
    align-items: start;
}

.contact-pro-form-intro h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1d3557;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.contact-pro-form-intro > p {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin: 0 0 32px;
}

.contact-pro-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    display: grid;
    gap: 14px;
}

.contact-pro-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: #444;
    line-height: 1.5;
}

.contact-pro-checklist i {
    color: #e63946;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-pro-checklist a {
    color: #e63946;
}

.contact-pro-direct {
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e4e9ef;
}

.contact-pro-direct p {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin: 0 0 8px;
}

.contact-pro-direct a {
    font-size: 17px;
    font-weight: 600;
    color: #e63946;
    word-break: break-all;
}

.contact-pro-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 8px 40px rgba(29, 53, 87, 0.08);
    border: 1px solid #e8edf2;
}

.contact-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 10px;
    margin-bottom: 28px;
}

.contact-alert i {
    font-size: 22px;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-alert strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.contact-alert p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

.contact-alert-success {
    background: #edf7ed;
    border: 1px solid #c8e6c9;
    color: #1b5e20;
}

.contact-alert-success i { color: #2e7d32; }

.contact-alert-error {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #7f1d1d;
}

.contact-alert-error i { color: #c62828; }

.contact-form {
    display: grid;
    gap: 24px;
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.contact-field input[type="text"],
.contact-field input[type="email"],
.contact-field select,
.contact-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #dde3ea;
    border-radius: 8px;
    font: inherit;
    font-size: 16px;
    color: #333;
    background: #fafbfc;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    appearance: none;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #aab0b8;
}

.contact-field select {
    background-color: #fafbfc;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: #e63946;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
}

.contact-field textarea {
    resize: vertical;
    min-height: 180px;
    line-height: 1.6;
}

.contact-field.has-error input,
.contact-field.has-error select,
.contact-field.has-error textarea {
    border-color: #e63946;
    background: #fff8f8;
}

.contact-field-error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #e63946;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 8px;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 40px;
    border: 0;
    border-radius: 8px;
    background: #e63946;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
}

.contact-submit:hover {
    background: #c1121f;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(230, 57, 70, 0.35);
}

.contact-submit i {
    font-size: 14px;
    transition: transform 0.2s;
}

.contact-submit:hover i {
    transform: translateX(4px);
}

.contact-form-note {
    margin: 0;
    font-size: 13px;
    color: #999;
    line-height: 1.5;
}

/* FAQ */
.contact-pro-faq {
    padding: 80px 0;
    background: #fff;
}

.contact-pro-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.contact-pro-faq-item {
    padding: 32px;
    background: #f8f9fb;
    border-radius: 12px;
    border: 1px solid #eef1f5;
}

.contact-pro-faq-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1d3557;
    margin: 0 0 12px;
}

.contact-pro-faq-item p {
    font-size: 15px;
    color: #666;
    line-height: 1.65;
    margin: 0;
}

/* Bottom CTA */
.contact-pro-cta {
    background: #1d3557;
    padding: 56px 0;
}

.contact-pro-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.contact-pro-cta h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.contact-pro-cta p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.contact-pro-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding: 16px 32px;
    background: #e63946;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.contact-pro-cta-btn:hover {
    background: #c1121f;
    transform: translateY(-2px);
    color: #fff;
}

/* Ad space page */
body.ad-space-page {
    background: #fff;
}

.ad-space-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.ad-space-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1d3557 45%, #274c77 100%);
    color: #fff;
    padding: 72px 0 64px;
    position: relative;
    overflow: hidden;
}

.ad-space-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(230, 57, 70, 0.18), transparent 45%);
    pointer-events: none;
}

.ad-space-hero .ad-space-wrap {
    position: relative;
    z-index: 1;
}

.ad-space-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 14px;
}

.ad-space-hero h1 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    line-height: 1.15;
    max-width: 720px;
    margin-bottom: 18px;
}

.ad-space-lead {
    max-width: 620px;
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 28px;
}

.ad-space-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.ad-space-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}

.ad-space-btn-primary {
    background: #e63946;
    color: #fff;
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.35);
}

.ad-space-btn-primary:hover {
    background: #c1121f;
    color: #fff;
    transform: translateY(-2px);
}

.ad-space-btn-ghost {
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: #fff;
}

.ad-space-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.ad-space-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 720px;
}

.ad-space-stat {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 16px 18px;
}

.ad-space-stat strong {
    display: block;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 4px;
}

.ad-space-stat span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
}

.ad-space-mockup {
    padding: 64px 0;
    background: #f8fafc;
}

.ad-space-mockup-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
}

.ad-space-mockup-copy h2 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 30px;
    color: #1d3557;
    margin-bottom: 14px;
}

.ad-space-mockup-copy p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.ad-space-mockup-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ad-space-mockup-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #444;
    font-size: 15px;
}

.ad-space-mockup-list i {
    color: #e63946;
    font-size: 13px;
}

.ad-space-mockup-note {
    margin-top: 18px;
    font-size: 14px;
    color: #888;
    font-style: italic;
}

.ad-space-wireframe {
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 12px 40px rgba(29, 53, 87, 0.08);
}

.ad-space-wire-header,
.ad-space-wire-featured,
.ad-space-wire-chrome {
    background: #eef1f5;
    border-radius: 6px;
}

.ad-space-wire-chrome {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a94a3;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ad-space-wire-header {
    height: 18px;
    margin-bottom: 10px;
}

.ad-space-wire-nav {
    height: 22px;
    margin-bottom: 8px;
}

.ad-space-wire-breaking {
    height: 14px;
    margin-bottom: 8px;
}

.ad-space-wire-featured {
    height: 64px;
    margin-bottom: 10px;
}

.ad-space-wire-feed-label {
    height: 14px;
    margin-bottom: 6px;
}

.ad-space-wire-site-footer {
    height: 18px;
    margin-top: 10px;
}

.ad-space-wire-body {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 10px;
    align-items: start;
    margin-bottom: 10px;
}

.ad-space-wire-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.ad-space-wire-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ad-space-wire-story {
    height: 36px;
    background: #eef1f5;
    border-radius: 6px;
}

.ad-space-wire-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ad-space-wire-ad {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff3f4;
    border: 2px dashed #f4a5ab;
    border-radius: 6px;
    color: #c1121f;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: center;
    line-height: 1.25;
    padding: 4px;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.ad-space-wire-ad.is-highlighted {
    background: #ffecef;
    border-color: #e63946;
    border-style: solid;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

.ad-zone-leaderboard {
    height: 28px;
    width: 100%;
}

.ad-zone-in-feed {
    height: 26px;
    flex-shrink: 0;
}

.ad-zone-sidebar-top {
    height: 72px;
}

.ad-zone-sidebar-mid {
    height: 72px;
}

.ad-space-section-head {
    margin-bottom: 32px;
}

.ad-space-section-head-center {
    text-align: center;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.ad-space-section-head h2 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 30px;
    color: #1d3557;
    margin-bottom: 10px;
}

.ad-space-section-head p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.ad-space-inventory {
    padding: 64px 0;
}

.ad-space-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ad-space-card {
    background: #fff;
    border: 1.5px solid #e6ebf0;
    border-radius: 14px;
    padding: 22px 20px 20px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.ad-space-card:hover,
.ad-space-card.is-selected {
    border-color: #e63946;
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.12);
    transform: translateY(-2px);
}

.ad-space-card:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

.ad-space-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ad-space-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f0f4f8;
    color: #1d3557;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.ad-space-card-size {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #e63946;
}

.ad-space-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px dashed #cfd8e3;
    border-radius: 8px;
    margin-bottom: 16px;
    color: #8899aa;
    font-size: 12px;
    font-weight: 600;
}

.ad-space-preview-banner {
    height: 48px;
}

.ad-space-preview-rectangle {
    height: 120px;
}

.ad-space-preview-infeed {
    height: 72px;
}

.ad-space-card h3 {
    font-size: 18px;
    color: #1d3557;
    margin-bottom: 8px;
}

.ad-space-card p {
    font-size: 14px;
    line-height: 1.55;
    color: #666;
    margin-bottom: 14px;
}

.ad-space-card-cta {
    font-size: 13px;
    font-weight: 600;
    color: #e63946;
}

.ad-space-benefits {
    padding: 64px 0;
    background: #f8fafc;
}

.ad-space-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.ad-space-benefit {
    background: #fff;
    border-radius: 12px;
    padding: 24px 20px;
    border: 1px solid #e6ebf0;
}

.ad-space-benefit i {
    font-size: 22px;
    color: #e63946;
    margin-bottom: 14px;
}

.ad-space-benefit h3 {
    font-size: 17px;
    color: #1d3557;
    margin-bottom: 8px;
}

.ad-space-benefit p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.ad-space-form-section {
    padding: 64px 0;
}

.ad-space-form-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: start;
}

.ad-space-form-intro h2 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 30px;
    color: #1d3557;
    margin-bottom: 14px;
}

.ad-space-form-intro > p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 24px;
}

.ad-space-form-contact {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e6ebf0;
}

.ad-space-form-contact i {
    color: #e63946;
    font-size: 20px;
    margin-top: 2px;
}

.ad-space-form-contact strong {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.ad-space-form-contact a {
    font-size: 16px;
    font-weight: 600;
    color: #1d3557;
    word-break: break-all;
}

.ad-space-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 40px rgba(29, 53, 87, 0.08);
    border: 1px solid #e8edf2;
}

.ad-space-faq {
    padding: 64px 0;
    background: #f8fafc;
}

.ad-space-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.ad-space-faq-item {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e6ebf0;
}

.ad-space-faq-item h3 {
    font-size: 17px;
    color: #1d3557;
    margin-bottom: 10px;
}

.ad-space-faq-item p {
    font-size: 14px;
    line-height: 1.65;
    color: #666;
    margin: 0;
}

.ad-space-bottom-cta {
    padding: 56px 0;
    background: linear-gradient(135deg, #1d3557 0%, #274c77 100%);
    color: #fff;
}

.ad-space-bottom-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.ad-space-bottom-cta h2 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 28px;
    margin-bottom: 8px;
}

.ad-space-bottom-cta p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.ad-space-login-note {
    margin-top: 16px;
    font-size: 15px;
}

.ad-space-login-note a {
    color: #e63946;
    font-weight: 600;
}

/* Advertiser portal */
.advertiser-login-page,
.advertiser-dashboard-page {
    background: #f4f6f9;
    min-height: 100vh;
}

.advertiser-login-card {
    max-width: 420px;
    margin: 8vh auto;
    padding: 40px 36px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(29, 53, 87, 0.1);
}

.advertiser-login-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e63946;
    margin-bottom: 10px;
}

.advertiser-login-card h1 {
    font-size: 28px;
    color: #1d3557;
    margin-bottom: 10px;
}

.advertiser-login-lead {
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

.advertiser-login-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

.advertiser-login-form input {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    border: 1.5px solid #dde3ea;
    border-radius: 8px;
    font: inherit;
}

.advertiser-login-form button,
.advertiser-submit {
    width: 100%;
    padding: 14px;
    border: 0;
    border-radius: 8px;
    background: #e63946;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.advertiser-login-links {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.advertiser-login-links a {
    color: #1d3557;
    font-weight: 500;
}

.advertiser-topbar {
    background: #1d3557;
    color: #fff;
}

.advertiser-topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.advertiser-brand {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.advertiser-topbar-user {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.advertiser-topbar-user a {
    color: rgba(255, 255, 255, 0.85);
}

.advertiser-main {
    padding: 32px 0 64px;
}

.advertiser-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    gap: 24px;
}

.advertiser-hero-panel {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
    align-items: stretch;
}

.advertiser-hero-copy h1 {
    margin: 8px 0 10px;
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.15;
}

.advertiser-hero-eyebrow {
    margin: 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1a73e8;
    font-weight: 600;
}

.advertiser-budget-card {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #fff;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 12px 30px rgba(26, 115, 232, 0.25);
}

.advertiser-budget-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}

.advertiser-budget-label {
    font-size: 14px;
    opacity: 0.9;
}

.advertiser-budget-remaining {
    font-size: 22px;
    font-weight: 700;
}

.advertiser-budget-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    overflow: hidden;
    margin-bottom: 12px;
}

.advertiser-budget-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #fff;
    transition: width 0.3s ease;
}

.advertiser-budget-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
    opacity: 0.95;
}

.advertiser-budget-warning {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 13px;
}

.advertiser-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.advertiser-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.advertiser-panel-head h2 {
    margin-bottom: 6px;
}

.advertiser-stats-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.advertiser-stat-highlight {
    color: #1a73e8;
}

.advertiser-submit-inline {
    width: auto;
    margin-top: 4px;
}

.advertiser-password-details {
    margin-top: 20px;
    border-top: 1px solid #e8eaed;
    padding-top: 16px;
}

.advertiser-password-details summary {
    cursor: pointer;
    font-weight: 500;
    color: #1a73e8;
}

.advertiser-form-compact {
    margin-top: 14px;
}

.advertiser-form textarea {
    width: 100%;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    resize: vertical;
    min-height: 88px;
}

.advertiser-packages-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.advertiser-package-card {
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 20px;
    background: #fafbfc;
}

.advertiser-package-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.advertiser-package-views {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 700;
    color: #1a73e8;
}

.advertiser-package-price {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
}

.advertiser-package-btn {
    width: 100%;
    margin-top: 12px;
}

.advertiser-orders-wrap h3 {
    margin: 0 0 12px;
    font-size: 16px;
}

.advertiser-order-status {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
}

.advertiser-order-status-pending { background: #fff3e0; color: #ef6c00; }
.advertiser-order-status-approved { background: #e8f5e9; color: #2e7d32; }
.advertiser-order-status-cancelled { background: #eef1f5; color: #555; }

.advertiser-panel {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    border: 1px solid #e6ebf0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.advertiser-panel h1,
.advertiser-panel h2 {
    color: #1d3557;
    margin-bottom: 8px;
}

.advertiser-muted {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.advertiser-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.advertiser-stat-card {
    background: #f8fafc;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    padding: 18px 20px;
}

.advertiser-stat-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 8px;
}

.advertiser-stat-value {
    display: block;
    font-size: 28px;
    line-height: 1.1;
    color: #1d3557;
}

.advertiser-stat-cell {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #1d3557;
}

.advertiser-alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.advertiser-alert.alert-success {
    background: #edf7ed;
    border: 1px solid #c8e6c9;
    color: #1b5e20;
}

.advertiser-alert.alert-error {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #7f1d1d;
}

.advertiser-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.advertiser-form input[type="text"],
.advertiser-form input[type="url"],
.advertiser-form input[type="file"],
.advertiser-form select {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    border: 1.5px solid #dde3ea;
    border-radius: 8px;
    font: inherit;
    background: #fafbfc;
}

.advertiser-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.advertiser-upload-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: end;
    margin-bottom: 16px;
}

.advertiser-or {
    padding-bottom: 24px;
    color: #888;
    font-size: 13px;
    font-weight: 600;
}

.advertiser-table-wrap {
    overflow-x: auto;
}

.advertiser-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.advertiser-table th,
.advertiser-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eef1f5;
    text-align: left;
    vertical-align: middle;
}

.advertiser-thumb {
    width: 96px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #dde3ea;
}

.advertiser-status {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 999px;
}

.advertiser-status-pending { background: #fff3e0; color: #ef6c00; }
.advertiser-status-active { background: #e8f5e9; color: #2e7d32; }
.advertiser-status-paused { background: #eef1f5; color: #555; }
.advertiser-status-rejected { background: #ffebee; color: #c62828; }

.advertiser-btn-danger {
    border: 0;
    background: #ffebee;
    color: #c62828;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.advertiser-actions-cell {
    width: 1%;
    white-space: nowrap;
}

.advertiser-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.advertiser-icon-btn {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s ease, color 0.15s ease;
}

.advertiser-icon-btn:disabled,
.advertiser-icon-btn.is-busy {
    opacity: 0.55;
    cursor: wait;
}

.advertiser-icon-pause,
.advertiser-icon-start {
    background: #e8f0fe;
    color: #1a73e8;
}

.advertiser-icon-pause:hover:not(:disabled),
.advertiser-icon-start:hover:not(:disabled) {
    background: #d2e3fc;
}

.advertiser-icon-edit {
    background: #f3f4f6;
    color: #444;
}

.advertiser-icon-edit:hover:not(:disabled) {
    background: #e5e7eb;
}

.advertiser-icon-delete {
    background: #ffebee;
    color: #c62828;
}

.advertiser-icon-delete:hover:not(:disabled) {
    background: #ffcdd2;
}

.advertiser-toast {
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
}

.advertiser-toast-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.advertiser-toast-error {
    background: #ffebee;
    color: #c62828;
}

.advertiser-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.advertiser-modal[hidden] {
    display: none !important;
}

.advertiser-modal.is-open {
    display: flex !important;
}

.advertiser-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.advertiser-modal-dialog {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.advertiser-modal-dialog h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

.advertiser-modal-banner-preview {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef1f5;
}

.advertiser-banner-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.advertiser-banner-preview-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
}

.advertiser-banner-preview-badge {
    font-size: 11px;
    font-weight: 700;
    color: #1a73e8;
    background: #e8f0fe;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.advertiser-banner-preview-frame {
    background: #f8fafc;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    padding: 20px 16px;
    text-align: center;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advertiser-banner-preview-frame img {
    display: block;
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.advertiser-banner-preview-placeholder {
    margin: 0;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.45;
}

.advertiser-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: #f3f4f6;
    color: #555;
    cursor: pointer;
}

.advertiser-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.advertiser-btn-secondary {
    border: 1px solid #d0d7de;
    background: #fff;
    color: #333;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

body.advertiser-modal-open {
    overflow: hidden;
}

.advertiser-notes-row td {
    background: #fafbfc;
    font-size: 13px;
    color: #666;
}

.advertiser-inline-form {
    display: inline;
}

@media (max-width: 768px) {
    .advertiser-hero-panel,
    .advertiser-dashboard-grid,
    .advertiser-packages-grid {
        grid-template-columns: 1fr;
    }

    .advertiser-stats-grid {
        grid-template-columns: 1fr;
    }

    .advertiser-form-grid,
    .advertiser-upload-row {
        grid-template-columns: 1fr;
    }

    .advertiser-or {
        padding: 0;
        text-align: center;
    }
}

@media (max-width: 992px) {
    .ad-space-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ad-space-mockup-layout,
    .ad-space-form-layout {
        grid-template-columns: 1fr;
    }

    .ad-space-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ad-space-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ad-space-hero {
        padding: 48px 0;
    }

    .ad-space-stats,
    .ad-space-grid,
    .ad-space-benefits-grid,
    .ad-space-faq-grid {
        grid-template-columns: 1fr;
    }

    .ad-space-form-card {
        padding: 24px 20px;
    }

    .ad-space-bottom-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Contact page — mobile */
@media (max-width: 1024px) {
    .contact-pro-channel-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-pro-form-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 767px) {
    .static-content {
        padding: 24px 20px;
    }

    .static-content h1 {
        font-size: 26px;
    }

    .contact-pro-hero {
        padding: 48px 0 56px;
    }

    .contact-pro-hero-meta {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-pro-channels,
    .contact-pro-form-section,
    .contact-pro-faq {
        padding: 56px 0;
    }

    .contact-pro-channel-grid {
        grid-template-columns: 1fr;
    }

    .contact-pro-form-card {
        padding: 28px 24px;
    }

    .contact-pro-form-intro h2 {
        font-size: 26px;
    }

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

    .contact-submit {
        width: 100%;
    }

    .contact-pro-faq-grid {
        grid-template-columns: 1fr;
    }

    .contact-pro-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .contact-pro-cta-btn {
        white-space: normal;
        text-align: center;
        width: 100%;
        justify-content: center;
    }
}

/* Cookie consent */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(29, 53, 87, 0.98);
    color: #fff;
    transform: translateY(110%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cookie-banner-text h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.cookie-banner-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
    max-width: 720px;
}

.cookie-banner-text a {
    color: #fff;
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    border: none;
    border-radius: 6px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.cookie-btn-primary {
    background: #e63946;
    color: #fff;
}

.cookie-btn-primary:hover {
    background: #c1121f;
}

.cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal[hidden],
.cookie-banner[hidden] {
    display: none !important;
}

.cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.cookie-modal-panel {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.cookie-modal-header h2 {
    font-size: 20px;
    color: #1d3557;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.cookie-modal-body {
    padding: 20px 24px;
}

.cookie-modal-intro {
    color: #666;
    margin-bottom: 20px;
}

.cookie-preference {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cookie-preference:last-child {
    border-bottom: none;
}

.cookie-preference-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.cookie-preference p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-required {
    display: inline-block;
    margin-left: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #457b9d;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 999px;
    transition: background 0.2s;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: #e63946;
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(20px);
}

.cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 24px;
    border-top: 1px solid #eee;
}

.cookie-modal-footer .cookie-btn-primary,
.cookie-modal-footer .cookie-btn-secondary {
    color: inherit;
}

.cookie-modal-footer .cookie-btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.ad-consent-notice {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
    text-align: center;
}

.ad-consent-notice button {
    background: none;
    border: none;
    color: #e63946;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

html.marketing-consent .ad-consent-notice {
    display: none;
}

ins.adsbygoogle.ad-consent-pending {
    display: none !important;
}

html.marketing-consent ins.adsbygoogle.ad-consent-pending {
    display: block !important;
}

.inline-cookie-link {
    background: none;
    border: none;
    color: #e63946;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 14px;
}

.privacy-table th,
.privacy-table td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.privacy-table th {
    background: #f8f9fa;
    color: #1d3557;
}

@media (max-width: 767px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-banner-actions .cookie-btn {
        width: 100%;
    }

    .privacy-table {
        display: block;
        overflow-x: auto;
    }
} 