:root {
    --color-background: #f5f7fb;
    --color-surface: #ffffff;
    --color-primary: #d62828;
    --color-secondary: #003566;
    --color-muted: #6c7a89;
    --color-border: #e2e8f0;
    --radius-base: 16px;
    --shadow-soft: 0 24px 48px rgba(15, 23, 42, 0.08);
    --container-width: min(1100px, 92vw);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--color-background);
    color: #111827;
    line-height: 1.6;
}

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

a:hover,
a:focus {
    color: var(--color-primary);
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.container {
    width: var(--container-width);
    margin: 0 auto;
}

.site-header {
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 10;
}

.top-bar {
    background: var(--color-secondary);
    color: #e0f2fe;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    gap: 1rem;
}

.top-bar__left {
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
}

.top-bar__ticker {
    min-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.top-bar__ticker::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.15) 100%);
    pointer-events: none;
}

.top-bar__ticker-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-form input {
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.search-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1.4rem;
    border-radius: 999px;
    border: none;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(214, 40, 40, 0.28);
}

.btn:disabled,
.btn[aria-disabled="true"] {
    cursor: default;
    opacity: 0.55;
    box-shadow: none;
    transform: none;
}

.btn--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn--light {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.brand {
    display: flex;
    flex-direction: column;
    color: var(--color-secondary);
    text-decoration: none;
    gap: 0.5rem;
}

.brand--has-logo {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.brand__logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand__text {
    display: flex;
    flex-direction: column;
}

.brand__name {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand__tagline {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-muted);
    margin-top: 0.1rem;
}

.site-header__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1.5rem;
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.site-nav a {
    font-weight: 500;
    color: var(--color-muted);
}

.site-nav a:hover,
.site-nav a:focus {
    color: var(--color-secondary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-secondary);
    margin-bottom: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-main {
    padding-bottom: 4rem;
}

.hero {
    padding: 2rem 0 1rem;
}

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

.hero__featured {
    background: var(--color-surface);
    border-radius: var(--radius-base);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.hero__image {
    min-height: 100%;
}

.hero__image img {
    height: 100%;
}

.hero__content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero__content h1 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.2;
}

.hero__side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.headline {
    background: var(--color-surface);
    border-radius: var(--radius-base);
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
}

.section-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

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

.card-grid--3 {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
    background: var(--color-surface);
    border-radius: var(--radius-base);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    box-shadow: var(--shadow-soft);
}

.card--vertical {
    flex-direction: column;
    height: 100%;
}

.card__image {
    flex: 1 1 45%;
    max-height: 200px;
}

.card--vertical .card__image {
    max-height: 220px;
}

.card--horizontal {
    flex-direction: row;
}

.card--horizontal .card__image {
    flex: 0 0 220px;
    max-height: none;
}

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

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    background: var(--color-surface);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    font-weight: 500;
}

.tag-chip__count {
    font-size: 0.85rem;
    color: var(--color-muted);
    background: rgba(15, 23, 42, 0.08);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.section-header p {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.card__content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.meta--compact {
    gap: 0.5rem;
}

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

.widget {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-base);
    box-shadow: var(--shadow-soft);
}

.widget--dark {
    background: linear-gradient(135deg, var(--color-secondary), #0a192f);
    color: #fff;
}

.list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.list--dense li {
    line-height: 1.4;
}

.tag-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.tag-list a {
    color: #cbd5f5;
    font-size: 0.95rem;
}

.tag-list a:hover,
.tag-list a:focus {
    color: #fff;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 53, 102, 0.08);
    color: var(--color-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge--primary {
    background: rgba(214, 40, 40, 0.1);
    color: var(--color-primary);
}

.badge--outline {
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.08);
}
.badge--ghost {
    background: rgba(15, 23, 42, 0.06);
    color: #1f2937;
}

.breaking-news {
    background: linear-gradient(135deg, rgba(214, 40, 40, 0.08), rgba(0, 53, 102, 0.08));
    padding: 2rem 0;
    margin-top: 2.5rem;
    border-block: 1px solid rgba(15, 23, 42, 0.06);
}

.breaking-news__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.breaking-news__list {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
}

.breaking-news__list::-webkit-scrollbar {
    height: 8px;
}

.breaking-news__list::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.15);
    border-radius: 999px;
}

.breaking-news__item {
    min-width: 220px;
    background: var(--color-surface);
    border-radius: 18px;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    scroll-snap-align: start;
}

.breaking-news__item h3 {
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
}

.breaking-news__item time {
    font-size: 0.85rem;
    color: var(--color-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.split-layout {
    display: grid;
    grid-template-columns: 3fr 1.25fr;
    gap: 2rem;
    margin-top: 2rem;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 3rem auto 1.5rem;
}

.in-depth__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

.in-depth__card {
    background: var(--color-surface);
    border-radius: var(--radius-base);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.in-depth__image {
    display: block;
    height: 200px;
}

.in-depth__content {
    padding: 1.5rem;
    display: grid;
    gap: 0.75rem;
}

.in-depth__content h3 {
    margin: 0;
    font-size: 1.3rem;
}

.in-depth__content p {
    margin: 0;
    color: var(--color-muted);
}

.news-digest {
    margin: 3rem auto 0;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.news-digest__panel {
    background: var(--color-surface);
    border-radius: var(--radius-base);
    box-shadow: var(--shadow-soft);
    padding: 1.75rem;
}

.news-digest__panel h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.news-digest__panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.1rem;
}

.news-digest__panel li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
}

.news-digest__panel p {
    margin: 0;
}

.news-digest__time {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-secondary);
    font-weight: 700;
    background: rgba(0, 53, 102, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    align-self: center;
}

.category-highlights {
    margin-top: 3rem;
    display: grid;
    gap: 2rem;
}

.category-block {
    background: var(--color-surface);
    border-radius: var(--radius-base);
    box-shadow: var(--shadow-soft);
    padding: 1.75rem;
}

.category-block__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.category-block__content {
    display: grid;
    gap: 1.2rem;
}

.mini-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
}

.mini-card__image {
    height: 80px;
    border-radius: 16px;
    overflow: hidden;
}

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

.article-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

.article__meta h1 {
    font-size: 2.4rem;
    margin: 0.5rem 0 0;
}

.article__image {
    margin: 1.5rem 0;
    border-radius: var(--radius-base);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.article__content {
    display: grid;
    gap: 1.25rem;
    font-size: 1.05rem;
}

.article__tags {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.page-header {
    margin: 2.5rem 0 1.5rem;
}

.page-header h1 {
    margin-bottom: 0.5rem;
    font-size: 2.1rem;
}

.not-found {
    background: var(--color-surface);
    border-radius: var(--radius-base);
    padding: 3rem;
    text-align: center;
    margin: 2rem 0;
    box-shadow: var(--shadow-soft);
}

.empty-state {
    margin: 3rem 0;
    padding: 3rem;
    background: var(--color-surface);
    border-radius: var(--radius-base);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.empty-state h1 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.empty-state p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-muted);
    line-height: 1.6;
}

.empty-state__actions {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.empty-state__actions .btn {
    min-width: 200px;
}

.site-footer {
    margin-top: 4rem;
    background: #0b1736;
    color: #cbd5f5;
    padding: 3rem 0 2rem;
}

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

.footer-grid h3 {
    color: #fff;
}

.footer-contact {
    display: grid;
    gap: 0.6rem;
    margin-top: 1.25rem;
    font-size: 0.9rem;
}

.footer-contact__item {
    display: grid;
    gap: 0.15rem;
}

.footer-contact__label {
    font-weight: 600;
    color: #fff;
    font-size: 0.85rem;
}

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

.newsletter-form input {
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: none;
}

.newsletter-form.is-loading .btn {
    opacity: 0.7;
    pointer-events: none;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.social-links a {
    color: var(--color-secondary);
    font-weight: 600;
}

.form-feedback {
    min-height: 1.25rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.form-feedback--success {
    color: #4ade80;
}

.form-feedback--error {
    color: #f87171;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: #cbd5f5;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #ffffff;
}

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

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

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

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

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

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

@media (max-width: 768px) {
    .site-header__main {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        gap: 5px;
    }

    .site-nav {
        width: 100%;
        display: none;
    }

    .site-nav.active {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    .brand {
        width: 100%;
        align-items: flex-start;
    }

    .brand--has-logo {
        gap: 0.65rem;
    }

    .brand__logo {
        width: 56px;
        height: 56px;
    }

    .brand__tagline {
        font-size: 0.75rem;
    }

    .mini-card {
        grid-template-columns: 1fr;
    }

    .card {
        flex-direction: column;
    }

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

    .section-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .in-depth__grid {
        grid-template-columns: 1fr;
    }

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

    .breaking-news__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .breaking-news__item {
        min-width: 180px;
    }
}

.ticker-animate {
    animation: tickerFade 5s linear infinite;
}

@keyframes tickerFade {
    0% { opacity: 0; transform: translateX(20px); }
    10% { opacity: 1; transform: translateX(0); }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-20px); }
}

body.standalone {
    min-height: 100vh;
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0b1736, #1f2d55);
    color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.standalone-main {
    width: 100%;
    max-width: 480px;
    padding: 2rem;
}

.standalone-card {
    background: rgba(12, 22, 52, 0.9);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.standalone-card h1 {
    margin-bottom: 1rem;
}

.standalone-card .btn {
    margin-top: 2rem;
}
