/* =====================================================================
   Messages On Hold — News section styles
   Place in:  salient-child/news.css
   Loaded only on news pages (see inc/news-functions.php).
   Layout is handled by Bootstrap 4 (already enqueued globally); this file
   only "skins" the news components. Everything is namespaced under .news-*
   so it won't leak into the rest of the Salient theme.
   ===================================================================== */

@font-face {
    font-family: 'Montserrat';
    src: url('/wp-content/themes/salient-child/fonts/Montserrat.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Oswald';
    src: url('/wp-content/themes/salient-child/fonts/Oswald-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

:root {
    --news-black:      #0a0a0a;
    --news-red:        #990000;   /* nav bar + accents */
    --news-red-dark:   #8f040b;
    --news-nav:        #ffffff;
    --news-nav-text:   #000000;
    --news-panel:      #ffffff;   /* hero/overlay panels */
    --news-ink:        #14181b;   /* headings on light bg */
    --news-muted:      #6c757d;   /* secondary text */
    --news-panel-head: #000000;   /* text header inside panels */
    --news-panel-text: #000000;   /* text inside panels */
    --news-border:     #e6e6e6;
    --news-promo:      #ffffff;
    --news-promo-text: #000000;
}

/* Optional: for the heavy condensed logo/headings in the mockup you can
   load a font such as Anton or Oswald and map it here. Falls back cleanly
   to the theme/system stack if you don't.
   @import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&display=swap');
   --news-display: 'Oswald', sans-serif; */

.container {
    padding: 0px 20px !important;
}

.news-wrap {
    padding: 20px;
    background-color: #fff;
}

/* ---------------------------------------------------------------------
   MASTHEAD + NAV
   --------------------------------------------------------------------- */
.news-masthead__bar {
    background: var(--news-black);
    padding: 22px 0;
    font-family: 'Montserrat';
}

.news-masthead__bar .container {
    justify-content: center;
    max-width: fit-content;
}

.news-masthead__bar .menu-icon#side-menu-icon {
    top: 40px;
}

/* Hamburger */
.news-masthead__toggle {
    background: none;
    border: 0;
    padding: 6px;
    cursor: pointer;
    display: none;
}
.news-masthead__toggle span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 5px 0;
    background: #fff;
    border-radius: 2px;
}

.news-nav {
    background: var(--news-nav);
    position: relative;
    z-index: 11;
}
.news-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid rgb(230, 232, 234);
}
.news-nav__list li {
    position: relative;
}
.news-nav__list li a {
    display: inline-block;
    padding: 15px;
    color: var(--news-nav-text);
    font-weight: 600;
    text-decoration: none;
}
.news-nav__list li a:hover { background-color: #eee; }

.news-nav__list li.active ::after {
    content: "";
    width: 100%;
    height: 4px;
    background-color: rgb(0, 0, 0);
    position: absolute;
    left: 0px;
    bottom: 0px;
}

/* ---------------------------------------------------------------------
   TAB BAR (homepage only)
   --------------------------------------------------------------------- */
.news-tabs {
    display: none !important;
    display: flex;
    align-items: stretch;
    background: var(--news-panel);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 28px;
}
.news-tabs__tab {
    padding: 0px 20px;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}
.news-tabs__tab--active {
    background: var(--news-red);
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-tabs__divider {
    width: 2px;
    background: rgba(255, 255, 255, 0.75);
    margin: 12px 0;
}

/* ---------------------------------------------------------------------
   HERO CARD (image + dark overlay panel)
   --------------------------------------------------------------------- */
.news-hero {
    display: flex;
    background: var(--news-panel);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 28px;
    align-items: flex-start;
    padding: 0px;
}
.news-hero__media {
    flex: 0 0 50%;
    max-width: 50%;
    display: block;
    aspect-ratio: 16 / 9;
}
.news-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 5px;
}
.news-hero__panel {
    flex: 1 1 auto;
    padding: 0px 30px;
    color: var(--news-panel-text);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-hero__title {
    margin: 0 0 14px;
    font-size: clamp(1.7rem, 2.1vw, 2.7rem);
    font-weight: 800;
    line-height: 1.1;
    font-family: 'Montserrat';
}
.news-hero__title a { color: var(--news-panel-head); text-decoration: none; }
.news-hero__title a:hover { color: var(--news-red); text-decoration: underline; }

.news-hero__excerpt,
.news-card__excerpt {
    margin: 0px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--news-panel-text);
    padding-bottom: 0px;
}
.news-hero__byline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 10px 15px 5px 0px;
    font-size: 0.95rem;
    color: var(--news-panel-text);
    align-self: flex-start;
}

.news-byline__avatar {
    height: 28px;
    width: 28px;
    border-radius: 50%;
}

/* ---------------------------------------------------------------------
   2x2 GRID OF SMALL CARDS
   --------------------------------------------------------------------- */
.news-grid {
    margin-bottom: 0px;
}
.news-grid__col {
    margin-bottom: 22px;
}
.news-grid__title {
    padding-bottom: 4px;
    font-size: 20px;
    border-bottom: 1px solid rgb(230, 232, 234);
    font-weight: 600;
}
.news-card {
    display: flex;
    gap: 16px;
    align-items: center;
}
.news-card__thumb {
    flex: 0 0 140px;
    max-width: 140px;
    display: block;
    background: var(--news-panel);
    border-radius: 5px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
.news-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.news-card__body { flex: 1 1 auto; }
.news-card__cat {
    display: block;
    color: var(--news-red);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 6px;
    font-weight: normal;
    line-height: 1.5;
}
.news-card__title {
    display: block;
    color: var(--news-ink);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.3;
    text-decoration: none;
}
.news-card__title:hover { color: var(--news-red); text-decoration: none; }

/* ---------------------------------------------------------------------
   SIDEBAR — THE LATEST + PROMO
   --------------------------------------------------------------------- */
.news-sidebar__title {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--news-ink);
    margin-bottom: 18px;
}
.news-latest {
    list-style: none;
    margin: 0px;
    padding: 0;
}
.news-latest__item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--news-border);
}
.news-latest__item:first-child { padding-top: 0; }
.news-latest__bullet {
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    margin-top: 8px;
    background: var(--news-red);
}
.news-latest__meta {
    display: flex;
    gap: 25px;
    margin-bottom: 4px;
}
.news-latest__cat { color: var(--news-black); font-weight: 600; font-size: 0.9rem; }
.news-latest__time { color: var(--news-black); font-size: 0.9rem; }
.news-latest__headline {
    display: block;
    color: var(--news-ink);
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    font-size: 1.05rem;
}
.news-latest__headline:hover { color: var(--news-red); text-decoration: none; }

.news-promo {
    background: var(--news-promo);
    border-radius: 8px;
    align-items: center;
    justify-content: center;
}

.news-promo .ad-box {
    color: var(--news-black);
}

.news-promo .product-img {
    text-align: center;
}

.news-promo .product-img {
    position: relative;
    min-height: 325px;
    margin: 10px 0px;
}

.news-promo .product-desc {
    margin: 15px 0px;
}

.news-promo .product-img img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.news-promo .ad-title {
    padding-bottom: 0px;
    font-family: Montserrat;
}

.news-promo .ad-title-header {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 0px;
    line-height: 1;
}

.news-promo .ad-title-subheader,
.news-promo .ad-title-footer {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
}
.news-promo .ad-title-desc p,
.news-promo .ad-title-desc ul {
    font-size: 12px;
    line-height: 1.5;
}

.news-promo .ad-title-desc ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 5px;
}

.news-sidebar__link {
    display: flex;
    justify-content: flex-end;
}

.news-sidebar__link:hover {
    color: var(--news-black);
}

.news-sidebar__link-title {
    padding-bottom: 0px;
    margin-bottom: 0px;
    font-weight: 600;
}

.news-sidebar__link:hover .news-sidebar__link-title {
    text-decoration: underline;
}

/* ---------------------------------------------------------------------
   ARTICLE PAGE
   --------------------------------------------------------------------- */
.news-article__cat {
    display: inline-block;
    color: var(--news-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.news-article__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--news-ink);
    margin: 0 0 16px;
}
.news-article__byline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 16px;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--news-ink);
}
.news-article__author { font-weight: 600; }
.news-article__meta { color: var(--news-ink); }
.news-article__ago { color: var(--news-red); font-weight: 700; }

.news-article__featured { margin: 0 0 10px; }
.news-article__featured img { width: 100%; height: auto; border-radius: 6px; display: block; }
.news-article__caption {
    font-style: italic;
    font-size: 0.95rem;
    color: #333;
    margin: 10px 0 26px;
    text-align: center;
}

article.category-the-paddock-report.category-behind-the-lens .news-article__featured img {
    display: none;
}

.news-article__content {
    font-size: 1.12rem;
    line-height: 1.7;
    color: #1d2125;
}
.news-article__content p { margin-bottom: 0px; text-align: justify; }
.news-article__content img { max-width: 100%; width: 100% ;height: auto; border-radius: 6px; }
.news-article__content figcaption {
    font-style: italic;
    font-size: 0.95rem;
    color: #333;
    margin-top: 8px;
    text-align: center;
}

/* Share button */
.news-article__share { margin: 40px 0 10px; }
.news-share-btn {
    display: block;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 20px;
    background: var(--news-black);
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}
.news-share-btn:hover { background: #000; }

/* Related (optional) */
.news-related { margin-top: 44px; }
.news-related__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--news-ink);
    margin-bottom: 18px;
}

/* Email + copy colours */
.news-share__link--email:hover { background: #5f6b7a; }
.news-share__link--copy:hover  { background: #2f9e44; }

/* The copy control is a <button> — normalise it to match the anchors */
button.news-share__link {
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
    position: relative;
}

/* Swap link icon → check when copied */
.news-share .news-share__link .news-share__icon-check { display: none; }
.news-share__link--copy.is-copied .news-share__icon-link  { display: none; }
.news-share__link--copy.is-copied .news-share__icon-check { display: block; }
.news-share__link--copy.is-copied { background: #2f9e44; }

/* "Copied!" tooltip */
.news-share__copied {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #0a0a0a;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}
.news-share__link--copy.is-copied .news-share__copied { opacity: 1; }

/* Pagination */
/* --- Pagination --- */
.news-pagination { margin: 36px 0 8px; }

.news-pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;   /* or flex-start to left-align */
}

.news-pagination li { margin: 0; }

/* Shared look for number links, current, dots, prev/next */
.news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    color: var(--news-ink);
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

/* Hover on clickable items */
.news-pagination a.page-numbers:hover {
    background: var(--news-ink);
    border-color: var(--news-ink);
    color: #fff;
}

/* Current page */
.news-pagination .page-numbers.current {
    background: var(--news-red);
    border-color: var(--news-red);
    color: #fff;
}

/* Prev / Next */
.news-pagination .page-numbers.prev,
.news-pagination .page-numbers.next {
    font-weight: 700;
}

/* The "…" gap indicator, when there are many pages */
.news-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    min-width: auto;
    padding: 0 4px;
}

/* ---------------------------------------------------------------------
   FOOTER
   --------------------------------------------------------------------- */
.news-footer {
    background: var(--news-black);
    color: #cfcfcf;
    padding: 40px 0;
}
.news-footer__logo {
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.6rem;
    letter-spacing: 1px;
}
.news-footer__copy { margin: 0; font-size: 0.9rem; }

/* --- Social share bar --- */
.news-share {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 40px 0 10px;
}
.news-share .news-share__label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--news-ink);
}
.news-share .news-share__list {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0 !important;
}
.news-share .news-share__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--news-black);
    color: #fff;
    text-decoration: none;
    transition: background-color .15s ease, transform .15s ease;
}
.news-share .news-share__link:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}
.news-share .news-share__link svg { width: 20px; height: 20px; display: block; }

#countdown-ticker {
    display: inline-block;
    line-height: 1;
    padding: 5px;
    font-size: 40px;
}
#countdown-ticker .ticker-text {
    display: inline-block;
    font-size: 20px;
    color: white;
    font-weight: 200 !important;
    margin-left: 5px;
}
#countdown-ticker .ticker {
    font-size: 30px;
    float: left;
    padding: 0 10px;
    font-weight: 600;
}

#ajax-content-wrap {
    background-color: #fff;
}

/* --- News - Category Listing --- */
.news-listing__title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--news-ink);
    margin-bottom: 18px;
}

/* --- News - Separator ---*/
hr {
    border: none;
    height: 1px;
    background-color: #ccc;
    width: 100%;
    margin: 10px auto;
}
.news-head:hover {
    color: var(--news-black);
}
.news-head:hover .news-head__title {
    text-decoration: underline;
}
.news-head__title {
    color: var(--news-black);
    padding-bottom: 0px;
    font-weight: 700;
    font-size: 1.8rem;
    display: inline-block;
    margin-bottom: 2rem;
}
.chevron {
    width: 18px;
    height: 18px;
}
.chevron-right {
    transform: rotate(270deg);
}
.chevron path {
    fill: #404040;
}

.fa-chevron-left,
.fa-chevron-right {
    display: none;
}

.news-sidebar__link .chevron {
    margin: 7px 5px;
}

/* --- News - Shorts ---*/
/* Give the carousel room for the arrows and clip nothing */
.news-shorts { max-width: 1385px; margin: 0px auto; position: relative; padding: 0px; }

/* Gutter: with variableWidth, margin on the item is the reliable gutter */
.news-shorts .slick-slide { height: auto; }
.news-shorts .slick-slide > div { line-height: 0; }   /* kill inline-block gaps */
.news-shorts__item {
    width: 265px;
    height: 471px;            /* 265 x 16/9 — explicit beats aspect-ratio inside Slick */
    margin: 0 8px;
    display: block;
}

/* The clickable video box keeps the fixed dimensions + play-button anchor */
.news-shorts__media {
    position: relative;
    display: block;
    width: 265px;
    height: 471px;
    padding: 0;
    border: 0;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.news-shorts__iframe { width: 265px; height: 471px; border: 0; border-radius: 10px; }

/* Title caption */
.news-shorts__caption {
    margin: 10px 2px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--news-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;      /* keep captions to 2 lines so heights stay even */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Play button — restore it now that .news-shorts__item is position:relative again */
.news-shorts__facade { position: relative; height: 471px; padding: 0; border: 0; background: #000; cursor: pointer; border-radius: 10px; overflow: hidden; }
.news-shorts__thumb  { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-shorts__play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 54px; height: 54px; border-radius: 50%;
    background: rgba(0,0,0,.6); color: #fff;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
}
.news-shorts__play svg { width: 22px; height: 22px; margin-left: 3px; }

/* Custom arrows */
.news-shorts__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; z-index: 3;
    border: 0; border-radius: 50%;
    background: #0a0a0a; color: #fff;
    font-size: 24px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.news-shorts__nav:hover { background: var(--news-red); }
.news-shorts__nav--prev { left: 0; }
.news-shorts__nav--next { right: 0; }
.news-shorts__nav.slick-disabled { opacity: .35; cursor: default; }

.news-shorts__row .slick-arrow:after { content: "" !important; }

/* Pre-init: show only the first item so it doesn't stack tall */
.news-shorts__row:not(.slick-initialized) .news-shorts__item:nth-child(n+2) { display: none; }

/* ---------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 991px) {
    /* Sidebar drops below content; add breathing room */
    .news-nav { display: none; }
    .news-sidebar { margin-top: 0px; }
    .news-masthead__kym-logo { max-width: 170px; }
}

@media (max-width: 767px) {
    .news-masthead__bar .container,
    .news-nav .container,
    .news-wrap .container {
        max-width: none !important;
    }
    .news-masthead__bar .container {
        margin-top: 5px;
        padding: 0px;
        display: block !important;
        max-width: 100% !important;
    }
    .news-masthead__kym-logo { max-width: 150px; }
    /* Hero stacks: image on top, panel below */
    .news-hero { flex-direction: column; }
    .news-hero__media,
    .news-hero__panel { flex: 1 1 auto; max-width: 100%; }

    .news-card { flex-direction: column; }
    .news-card__thumb,
    .news-card__body { flex: 1 1 auto; width: 100% ;max-width: 100%; }

    .news-hero__media { aspect-ratio: 16 / 9; }

    .news-nav__list { justify-content: flex-start; gap: 4px 18px; }
    .news-tabs { flex-wrap: wrap; justify-content: center; }

    .news-tabs__tab { padding: 10px; }

    .news-tabs__tab--active { width: 100%; }

    .news-nav__list li a { padding: 10px; }

    #countdown-ticker .ticker { font-size: 20px; }
    #countdown-ticker .ticker-text { font-size: 14px; }

    .news-hero__title { margin-top: 20px; }
    .news-tabs__divider { display: none; }

    .news-hero__panel { padding: 0px; }

    .news-ads { margin-bottom: 20px; }

    .news-masthead__logo img {
        width: 75%;
    }
    .news-promo .product-img img {
        max-width: 300px;
    }
}

@media (max-width: 700px) {
    .news-shorts {
        max-width: 280px;
    }
}

@media (max-width: 575px) {
    .news-share-btn { font-size: 1.25rem; padding: 16px; }
    .news-wrap { padding: 30px 0px; }
    .news-card { align-items: center; }
    .news-masthead__bar  .menu-icon#side-menu-icon { top: 30px; }
}

@media (max-width: 425px) {
    .news-nav__list { gap: 4px 0px; }
    .news-tabs__tab { font-size: 1rem; }
    .news-head__title { font-size: 1.6rem; }
    #countdown-ticker .ticker { padding: 0px 5px; }
    #countdown-ticker .ticker { font-size: 16px; }
}