/*
Theme Name: A1 TV News
Theme URI: https://a1tvnews.tv
Author: A1 TV News
Description: Custom professional newsroom theme for A1 TV News.
Version: 1.2
Text Domain: a1tv-news
*/

:root {
    --red: #d71920;
    --black: #0b0b0b;
    --text: #151515;
    --muted: #666;
    --line: #dedede;
    --soft: #f5f5f5;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--red);
}

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

.a1-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* TOP BAR */

.a1-topbar {
    background: #0d0d0d;
    color: #fff;
    min-height: 34px;
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
}

.a1-topbar .a1-container {
    display: flex;
    align-items: center;
}


/* HEADER */

.a1-header {
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
}

.a1-header .a1-container {
    min-height: 96px;
    display: flex;
    align-items: center;
}

.a1-logo {
    display: inline-block;
    color: #050505;
    font-size: 40px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -2px;
}

.a1-logo span {
    color: var(--red);
}


/* NAVIGATION */

.a1-nav {
    background: #fff;
    border-bottom: 3px solid var(--red);
}

.a1-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    min-height: 47px;
    display: flex;
    align-items: center;
    gap: 25px;
    overflow-x: auto;
    scrollbar-width: none;
}

.a1-nav ul::-webkit-scrollbar {
    display: none;
}

.a1-nav li {
    flex: 0 0 auto;
}

.a1-nav a {
    display: block;
    padding: 14px 0 13px;
    color: #111;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}

.a1-nav a:hover {
    color: var(--red);
}


/* BREAKING */

.a1-breaking {
    min-height: 40px;
    background: var(--soft);
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    font-size: 13px;
}

.a1-breaking .a1-container {
    display: flex;
    align-items: center;
}

.a1-breaking strong {
    background: var(--red);
    color: #fff;
    padding: 7px 11px;
    margin-right: 14px;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}


/* HERO */

.a1-home-hero {
    padding: 28px 0 34px;
}

.a1-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
    gap: 28px;
}

.a1-lead-story img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #eee;
}

.a1-category {
    margin-top: 12px;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.a1-lead-story h1 {
    margin: 8px 0 9px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 38px;
    line-height: 1.08;
    letter-spacing: -0.8px;
    font-weight: 800;
}

.a1-summary {
    margin: 0 0 10px;
    color: #555;
    font-size: 16px;
    line-height: 1.5;
}

.a1-meta {
    color: #777;
    font-size: 12px;
}

.a1-hero-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 18px;
    align-content: start;
}

.a1-hero-small {
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}

.a1-hero-small img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.a1-hero-small h3 {
    margin: 8px 0 6px;
    font-size: 17px;
    line-height: 1.22;
    font-weight: 700;
}


/* SECTIONS */

.a1-section {
    padding: 26px 0 38px;
    border-top: 1px solid #ccc;
}

.a1-section-head {
    margin-bottom: 20px;
    padding-top: 10px;
    border-top: 4px solid #111;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.a1-section-head h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 800;
}

.a1-view-all {
    color: #555;
    font-size: 12px;
    font-weight: 700;
}

.a1-view-all:hover {
    color: var(--red);
}


/* LATEST GRID */

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

.a1-card {
    padding-bottom: 14px;
    border-bottom: 1px solid #ddd;
}

.a1-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.a1-card h3 {
    margin: 9px 0 7px;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 700;
}


/* CATEGORY SECTIONS */

.a1-category-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr);
    gap: 32px;
}

.a1-category-lead {
    padding-right: 30px;
    border-right: 1px solid #ddd;
}

.a1-category-lead img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.a1-category-lead h2 {
    margin: 11px 0 8px;
    font-size: 27px;
    line-height: 1.13;
    font-weight: 800;
}

.a1-category-lead p {
    margin: 0 0 10px;
    color: #555;
    font-size: 14px;
    line-height: 1.55;
}

.a1-list-story {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #ddd;
}

.a1-list-story a {
    display: grid;
    grid-template-columns: 135px 1fr;
    gap: 15px;
}

.a1-list-story img {
    width: 135px;
    height: 84px;
    object-fit: cover;
}

.a1-list-story h3 {
    margin: 0 0 7px;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
}


/* VIDEOS */

.a1-video-section {
    padding: 34px 0 45px;
    background: #111;
    color: #fff;
}

.a1-dark-head {
    border-color: #fff;
}

.a1-video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.a1-video-image {
    position: relative;
}

.a1-video-image img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.a1-play {
    position: absolute;
    left: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.a1-video-card h3 {
    margin: 10px 0 5px;
    font-size: 17px;
    line-height: 1.25;
}


/* =========================
   ARTICLE / STORY PAGE
========================= */

.single-post main,
.a1-article-wrap {
    width: min(820px, calc(100% - 40px));
    margin: 38px auto 60px;
}

/* MAIN STORY HEADLINE */

.single-post h1,
.a1-article-wrap h1 {
    margin: 0 0 18px;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 40px;
    line-height: 1.12;
    letter-spacing: -0.7px;
    font-weight: 800;
    color: #111;
}

/* STORY BODY */

.single-post main p,
.a1-article-wrap p {
    margin: 0 0 20px;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 17px;
    line-height: 1.7;
    font-weight: 400;
    color: #222;
}

/* STORY SUBHEADINGS */

.single-post main h2,
.a1-article-wrap h2 {
    margin: 34px 0 14px;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 800;
}

.single-post main h3,
.a1-article-wrap h3 {
    margin: 28px 0 12px;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 750;
}

/* BYLINE */

.single-post .byline,
.single-post .author,
.a1-byline {
    font-size: 14px;
    line-height: 1.45;
    color: #555;
    font-weight: 600;
}

/* ARTICLE IMAGES */

.single-post main img,
.a1-article-wrap img {
    max-width: 100%;
    height: auto;
    margin: 25px auto;
}


/* FOOTER */

footer {
    margin-top: 0;
    padding: 45px 0 48px;
    background: #111;
    color: #fff;
    border-top: 4px solid var(--red);
}

footer .a1-logo {
    color: #fff;
    font-size: 34px;
}

footer p {
    margin: 15px 0 0;
    color: #bbb;
    font-size: 13px;
}


/* TABLET */

@media (max-width: 1000px) {

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

    .a1-lead-story h1 {
        font-size: 34px;
    }

    .a1-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .a1-category-lead {
        padding-right: 0;
        border-right: 0;
    }

    .a1-video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* MOBILE */

@media (max-width: 700px) {

    .a1-container {
        width: calc(100% - 28px);
    }

    .a1-header .a1-container {
        min-height: 75px;
    }

    .a1-logo {
        font-size: 32px;
    }

    .a1-nav ul {
        gap: 20px;
    }

    .a1-nav a {
        font-size: 13px;
    }

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

    .a1-lead-story h1 {
        font-size: 30px;
    }

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

    .a1-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px 14px;
    }

    .a1-video-grid {
        grid-template-columns: 1fr 1fr;
    }

    .single-post h1,
    .a1-article-wrap h1 {
        font-size: 30px;
        line-height: 1.15;
    }

    .single-post main p,
    .a1-article-wrap p {
        font-size: 16px;
        line-height: 1.65;
    }

    .single-post main h2,
    .a1-article-wrap h2 {
        font-size: 24px;
    }
}


/* SMALL MOBILE */

@media (max-width: 480px) {

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

    .a1-list-story a {
        grid-template-columns: 105px 1fr;
    }

    .a1-list-story img {
        width: 105px;
        height: 72px;
    }

    .a1-lead-story h1 {
        font-size: 28px;
    }
}
/* SINGLE NEWS ARTICLE */

.a1-single-page {
    background: #fff;
}

.a1-article-wrap {
    width: min(820px, calc(100% - 40px));
    margin: 45px auto 70px;
}

.a1-article-title {
    margin: 8px 0 14px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 42px;
    line-height: 1.12;
    letter-spacing: -0.7px;
    font-weight: 800;
    color: #111;
}

.a1-article-meta {
    margin-bottom: 24px;
    color: #777;
    font-size: 13px;
}

.a1-article-featured {
    margin-bottom: 30px;
}

.a1-article-featured img {
    width: 100%;
    height: auto;
}

.a1-article-content {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: #222;
}

.a1-article-content p {
    margin: 0 0 21px;
    font-size: 17px;
    line-height: 1.75;
    font-weight: 400;
}

.a1-article-content h2 {
    margin: 34px 0 14px;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 800;
}

.a1-article-content h3 {
    margin: 28px 0 12px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 750;
}

.a1-article-content strong {
    font-weight: 700;
}

@media (max-width: 700px) {

    .a1-article-wrap {
        width: calc(100% - 28px);
        margin-top: 30px;
    }

    .a1-article-title {
        font-size: 30px;
        line-height: 1.16;
    }

    .a1-article-content,
    .a1-article-content p {
        font-size: 16px;
        line-height: 1.7;
    }
}