:root {
    --color-background: #050816;
    --color-page: #0b1020;
    --color-surface: #ffffff;
    --color-border-subtle: #e5e7eb;
    --color-accent: #2f41dd;
    --color-accent-soft: #eef0ff;
    --color-text-main: #111827;
    --color-text-muted: #6b7280;
    --radius-xl: 1.3rem;
    --radius-lg: 0.9rem;
    --radius-md: 0.75rem;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.35);
    --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.15);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-text-main);
    background: radial-gradient(circle at top, #151c3b 0, #050816 38%, #050816 100%);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1180px, 100% - 2.5rem);
    margin-inline: auto;
}

.top-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: rgba(5, 8, 22, 0.85);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    transition: box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
}

.top-bar-scrolled {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.6);
    border-bottom-color: rgba(148, 163, 184, 0.4);
}

.top-bar-inner {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding-block: 0.7rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    height: 46px;
    width: auto;
}

.footer-logo {
    height: 76px;
}

.main-nav {
    flex: 1;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #cbd5f5;
    padding-block: 0.45rem;
    border-radius: 999px;
    position: relative;
    padding-inline: 0.1rem;
    text-decoration: none;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(47, 65, 221, 0), rgba(47, 65, 221, 0.9), rgba(47, 65, 221, 0));
    transform-origin: center;
    transform: scaleX(0);
    transition: transform 150ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

.main-nav a.active {
    color: #ffffff;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: #ffffff;
    outline: none;
}

.search-form {
    position: relative;
    flex-shrink: 0;
    width: 230px;
}

.search-form input[type="search"] {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    background: radial-gradient(circle at top left, rgba(47, 65, 221, 0.2), transparent 55%), rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    outline: none;
}

.search-form input::placeholder {
    color: #9ca3af;
}

.search-form input[type="search"]:focus-visible {
    border-color: rgba(129, 140, 248, 1);
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.8);
}

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

.news-ticker {
    border-bottom: 1px solid rgba(15, 23, 42, 0.9);
    background: radial-gradient(circle at top left, rgba(47, 65, 221, 0.25), #020617);
    color: #e5e7eb;
    font-size: 0.87rem;
}

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-block: 0.5rem;
}

.ticker-label {
    flex-shrink: 0;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.55);
}

.ticker-track {
    overflow: hidden;
    position: relative;
    flex: 1;
}

.ticker-row {
    display: inline-flex;
    gap: 2.5rem;
    white-space: nowrap;
    animation: ticker-scroll 38s linear infinite;
}

.ticker-item {
    color: #e5e7eb;
    opacity: 0.92;
    text-decoration: none;
    position: relative;
    padding-right: 1.5rem;
}

.ticker-item::after {
    content: "•";
    position: absolute;
    right: 0;
    color: rgba(156, 163, 175, 0.9);
}

.ticker-item:last-child::after {
    content: "";
}

.ticker-item:hover {
    opacity: 1;
    text-decoration: underline;
}

.page-main {
    padding-block: 1.6rem 3.1rem;
    background: radial-gradient(circle at top, rgba(47, 65, 221, 0.16), transparent 58%), var(--color-page);
}

.hero {
    display: grid;
    grid-template-columns: 1.85fr 1.25fr;
    gap: 1.5rem;
    margin-bottom: 2.8rem;
}

.hero-main {
    background: radial-gradient(circle at top left, rgba(47, 65, 221, 0.15), transparent 52%), #ffffff;
    border-radius: var(--radius-xl);
    padding: 1.4rem 1.4rem 1.55rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid rgba(229, 231, 235, 0.9);
}

.hero-body {
    padding-inline: 0.2rem;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(47, 65, 221, 0.07);
    border-radius: 999px;
    padding: 0.2rem 0.85rem;
    margin-bottom: 0.7rem;
}

.hero-title {
    font-size: clamp(1.75rem, 2.5vw, 2.3rem);
    line-height: 1.18;
    margin: 0 0 0.6rem;
}

.hero-summary {
    margin: 0 0 1.1rem;
    font-size: 0.99rem;
    color: var(--color-text-muted);
}

.meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.meta-category {
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
}

.meta-small {
    font-size: 0.78rem;
}

.hero-side {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
}

.side-story {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-card);
    border: 1px solid rgba(229, 231, 235, 0.9);
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    
}
.side-story .media-thumb-side {
    width: 170px;
    max-width: 170px;
    height: 150px;
    flex-shrink: 0;
}



.side-title {
    font-size: 1rem;
    margin: 0 0 0.4rem;
}

.section-block {
    margin-bottom: 2.4rem;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.15rem;
    color: #e5e7eb;
}

.section-header h2 {
    font-size: 1.05rem;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
}

.section-header h2::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(47, 65, 221, 0), rgba(47, 65, 221, 1));
}

.section-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: #c7d2fe;
    text-decoration: none;
}

.section-link:hover,
.section-link:focus-visible {
    text-decoration: underline;
    outline: none;
}

.cards-grid {
    display: grid;
    gap: 1rem;
}

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

.story-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 0.9rem 0.95rem 1.2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(229, 231, 235, 0.9);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 100%;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.card-link:hover .story-title,
.card-link:hover .hero-title,
.card-link:hover .side-title {
    text-decoration: underline;
}

.story-title {
    margin: 0;
    font-size: 1.02rem;
}

.story-summary {
    margin: 0;
    font-size: 0.93rem;
    color: var(--color-text-muted);
}

.media-thumb {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #0f172a;
    position: relative;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.media-thumb-hero {
    aspect-ratio: 16 / 9;
}

.media-thumb-side {
    aspect-ratio: 16 / 9;
}

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

.media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c7d2fe;
    background-image:
        linear-gradient(135deg, rgba(47, 65, 221, 0.3), rgba(37, 99, 235, 0.15)),
        repeating-linear-gradient(135deg, rgba(15, 23, 42, 0.35) 0, rgba(15, 23, 42, 0.35) 1px, transparent 1px, transparent 8px);
    position: relative;
}

.media-placeholder::before {
    
    position: absolute;
    top: 0.55rem;
    left: 0.7rem;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.85;
}

.site-footer {
    border-top: 1px solid rgba(30, 64, 175, 0.9);
    background: radial-gradient(circle at top, rgba(47, 65, 221, 0.18), #020617);
    color: #e5e7eb;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr;
    gap: 2rem;
    padding-block: 2.2rem;
}

.footer-column h3 {
    margin-top: 0;
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.footer-text {
    margin-top: 0.9rem;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #cbd5f5;
    max-width: 26rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.4rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: #cbd5f5;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
    outline: none;
}

.footer-bottom {
    border-top: 1px solid rgba(30, 64, 175, 0.85);
    padding-block: 0.9rem;
    font-size: 0.8rem;
    color: #9ca3af;
    background: #020617;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

@media (max-width: 1024px) {
    .top-bar-inner {
        flex-wrap: wrap;
        row-gap: 0.75rem;
    }

    .main-nav {
        order: 2;
        width: 100%;
    }

    .main-nav ul {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .main-nav ul::-webkit-scrollbar {
        height: 4px;
    }

    .main-nav ul::-webkit-scrollbar-thumb {
        background: rgba(148, 163, 184, 0.7);
        border-radius: 999px;
    }

    .search-form {
        order: 1;
        width: 200px;
        margin-left: auto;
    }

    .hero {
        grid-template-columns: 1.6fr 1.2fr;
    }

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

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

@media (max-width: 768px) {
    .top-bar-inner {
        padding-block: 0.65rem;
    }

    .search-form {
        width: 100%;
        order: 3;
    }

    .ticker-inner {
        flex-wrap: wrap;
        row-gap: 0.45rem;
    }

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

    .hero-main {
        padding: 1.25rem 1.15rem 1.4rem;
    }

    .hero-side {
        grid-template-columns: 1fr 1fr;
    }

    .side-story {
        grid-template-columns: 1fr;
    }

    .cards-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

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

    .footer-bottom-inner {
        flex-direction: column;
        gap: 0.4rem;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 1.5rem, 640px);
    }

    .hero-side {
        grid-template-columns: 1fr;
    }

    .cards-grid-3 {
        grid-template-columns: 1fr;
    }

    .story-card {
        padding-inline: 0.9rem;
    }

    .side-story {
        padding-inline: 0.9rem;
    }
}


/* Side story layout refinements */
.side-story {
    align-items: stretch;
}

.side-story .side-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

    .side-story .side-content {
        margin-top: 0.5rem;
    }
}

/* Modal / popup styles */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal.is-open {
    display: flex;
}

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

.modal-dialog {
    position: relative;
    max-width: 480px;
    width: min(100% - 2.5rem, 480px);
    background-color: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem 1.6rem 1.6rem;
    z-index: 1;
}

.modal-dialog h2 {
    margin-top: 0;
    margin-bottom: 0.9rem;
    font-size: 1.1rem;
}

.modal-dialog p {
    margin: 0 0 0.7rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.modal-dialog a {
    color: var(--color-accent);
    text-decoration: none;
}

.modal-dialog a:hover {
    text-decoration: underline;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    color: var(--color-text-muted);
}

body.modal-open {
    overflow: hidden;
}


/* Article page layout */
.article-layout {
    margin-top: 1.8rem;
    margin-bottom: 2.8rem;
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 3fr) minmax(260px, 320px);
    gap: 1.8rem;
    align-items: flex-start;
}

.article-main {
    background-color: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: 1.8rem 1.9rem 2.2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border-subtle);
}

.article-header {
    margin-bottom: 1.4rem;
}

.article-kicker {
    display: inline-flex;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background-color: var(--color-accent-soft);
    color: var(--color-accent);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.article-title {
    margin: 0 0 0.8rem;
    font-size: 1.6rem;
    line-height: 1.35;
    color: var(--color-text-main);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.article-meta .meta-category {
    font-weight: 600;
    color: var(--color-accent);
}

.article-location {
    position: relative;
    padding-left: 0.9rem;
}

.article-location::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background-color: var(--color-border-subtle);
    transform: translateY(-50%);
}

.article-hero-media {
    margin: 1.3rem 0 1.6rem;
}

.article-hero-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

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

.article-body p {
    margin: 0 0 1rem;
}

.article-subheading {
    font-size: 1.1rem;
    margin: 1.7rem 0 0.8rem;
    color: var(--color-text-main);
}

.article-inline-media {
    margin: 1.8rem auto;
    max-width: 580px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background-color: #000000;
}

.article-inline-media img {
    display: block;
    width: 100%;
}

.media-caption {
    padding: 0.55rem 0.9rem 0.7rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    background-color: #f9fafb;
}

.article-note {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    padding-top: 0.6rem;
    border-top: 1px solid var(--color-border-subtle);
    margin-top: 1.6rem;
}

/* Article sidebar advertisement */

.article-sidebar {
    position: relative;
}

.ad-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 0.9rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border-subtle);
    text-align: center;
}

.ad-card img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    margin: 0.25rem auto 0.5rem;
}

.ad-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin: 0 0 0.35rem;
    color: var(--color-text-muted);
}

.sidebar-block {
    margin-top: 1.4rem;
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1rem 1.1rem 1.2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border-subtle);
}

.sidebar-block + .sidebar-block {
    margin-top: 1.1rem;
}

.sidebar-heading {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-text-muted);
    margin: 0 0 0.75rem;
}

.sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.sidebar-list a {
    font-size: 0.92rem;
    color: var(--color-text-main);
    text-decoration: none;
    line-height: 1.4;
}

.sidebar-list a:hover {
    color: var(--color-accent);
}

.sidebar-featured-story {
    margin-bottom: 0.95rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--color-border-subtle);
}

.sidebar-featured-story a {
    text-decoration: none;
    color: inherit;
}

.sidebar-featured-story img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    margin-bottom: 0.6rem;
}

.sidebar-featured-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.sidebar-top-stories .sidebar-list a {
    font-size: 0.9rem;
}

.sidebar-sponsored-list a,
.sidebar-sponsored-grid a {
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.sidebar-sponsored-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.sidebar-sponsored-item {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.sidebar-sponsored-media img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.sidebar-sponsored-title {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.35;
}


@media (max-width: 960px) {
    .article-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-main {
        order: 1;
    }

    .article-sidebar {
        order: 2;
        margin-top: -0.3rem;
    }
}
