/*
 Theme Name:   Quwa Theme
 Theme URI:    https://quwa.org
 Description:  Custom theme for Quwa Pakistan Defence Journal
 Author:       Bilal Khan
 Author URI:   https://quwa.org
 Template:     generatepress
 Version:      1.0.70.50
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  quwa-theme
 Tags:         news, magazine, defence, journal
*/

/* ==========================================================================
   Child theme styles go here
   ========================================================================== */

/* Visually hidden H1 for homepage SEO (Janes-style) */
.home-h1 {
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    height: 0.0625rem !important;
    margin: -0.0625rem !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 0.0625rem !important;
}

/* ==========================================================================
   GENERATEPRESS OVERRIDES

   These styles neutralize GeneratePress's default layout to allow
   our custom layout.css to work correctly.
   ========================================================================== */

/* Reset GP site wrapper */
.site,
#page {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure top-bar sits flush at top — no gap */
.top-bar {
    margin-top: 0 !important;
}

/* Reset GP content area */
#content,
.site-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* Ensure our containers work correctly */
.site-content > .container,
.site-content .container {
    max-width: var(--container-max, 1200px);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4, 1rem);
    padding-right: var(--space-4, 1rem);
}

/* Reset any GP grid/flexbox interference */
#primary,
#secondary,
.content-area,
.widget-area,
.site-main {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove GP container defaults */
.generate-columns,
.generate-columns-container {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure our header takes full width */
.site-header {
    width: 100%;
    background: var(--color-white, #fff);
    border-bottom: 1px solid var(--color-border, #e5e7eb);
}

/* Ensure our footer takes full width */
.site-footer {
    width: 100%;
}

/* Reset GP's inside-article container */
.inside-article {
    padding: 0 !important;
    margin: 0 !important;
}

/* Make sure GP's post-image works with our layout */
.post-image {
    margin: 0 !important;
}

/* Reset entry-content padding from GP */
.entry-content {
    margin: 0 !important;
}

/* Ensure sidebar doesn't break layout */
.sidebar .widget {
    margin-bottom: var(--space-6, 1.5rem);
}

/* Fix any GP nav interference */
#site-navigation,
.main-navigation {
    float: none !important;
    clear: none !important;
}

/* ==========================================================================
   HOMEPAGE LAYOUT (v68.13) - Breaking Defense Style

   Hero: Overlay style - text over image with gradient
   Featured: Centered with whitespace (max-width ~1000-1100px)
   Latest News: Centered with sidebar RIGHT for ads
   Ads: Fixed ad-unit parameters across all templates
   ========================================================================== */

/* Main content wrapper - narrower for more whitespace */
.home .site-content,
.home .content-area {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 1024px) {
    .home .site-content,
    .home .content-area {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* Remove any left floats on homepage */
.home .site-main {
    float: none !important;
}

/* Hero main article - constrained width */
.home .card-hero {
    max-width: none;
    width: 100%;
}

/* Featured cards - 3-column grid */
.home .featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: none;
    width: 100%;
}

/* Latest news section - content expands properly */
.home .section-latest .main-content {
    width: 100%;
}

/* ==========================================================================
   SINGLE POST MOBILE READING POLISH (v70.29)

   Creates a tidier mobile measure with more breathing room around article
   body copy, closer to a newspaper-style reading column.
   ========================================================================== */

@media (max-width: 767px) {
    body.single-post .site-content .container,
    body.single .site-content .container {
        padding-left: 28px !important;
        padding-right: 28px !important;
    }

    body.single-post .article-main,
    body.single .article-main {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    body.single-post .article-content,
    body.single .article-content,
    body.single-post .entry-content,
    body.single .entry-content {
        max-width: 34rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        font-size: 18px !important;
        line-height: 1.62 !important;
        letter-spacing: 0 !important;
        color: #4f5967 !important;
    }

    body.single-post .article-content p,
    body.single-post .entry-content p,
    body.single-post article p,
    body.single .article-content p,
    body.single .entry-content p,
    body.single-post .article-content p[class],
    body.single-post .entry-content p[class],
    body.single .article-content p[class],
    body.single .entry-content p[class] {
        font-size: 18px !important;
        line-height: 1.62 !important;
        letter-spacing: 0 !important;
        margin-bottom: 22px !important;
        color: #4f5967 !important;
    }

    body.single-post .article-content h2,
    body.single-post .entry-content h2,
    body.single .article-content h2,
    body.single .entry-content h2 {
        font-size: 24px !important;
        line-height: 1.25 !important;
        letter-spacing: 0 !important;
        margin-top: 34px !important;
        margin-bottom: 14px !important;
    }

    body.single-post .article-content h3,
    body.single-post .entry-content h3,
    body.single .article-content h3,
    body.single .entry-content h3 {
        font-size: 20px !important;
        line-height: 1.3 !important;
        letter-spacing: 0 !important;
    }

    body.single-post .related-section,
    body.single .related-section {
        margin-top: 42px !important;
        padding: 28px 0 36px !important;
        border-top: 2px solid #111111 !important;
    }

    body.single-post .related-title,
    body.single .related-title {
        font-size: 26px !important;
        line-height: 1.15 !important;
        margin-bottom: 18px !important;
    }

    body.single-post .related-grid,
    body.single .related-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    body.single-post .related-grid .card,
    body.single .related-grid .card {
        border: 0 !important;
        border-bottom: 1px solid #d6d6d6 !important;
        box-shadow: none !important;
        padding: 14px 0 !important;
        background: transparent !important;
    }

    body.single-post .related-grid .card:first-child,
    body.single .related-grid .card:first-child {
        padding-top: 0 !important;
    }

    body.single-post .related-grid .card:last-child,
    body.single .related-grid .card:last-child {
        border-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    body.single-post .related-grid .card > a,
    body.single .related-grid .card > a {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 148px !important;
        grid-template-areas:
            "category image"
            "title image"
            "meta image";
        column-gap: 16px !important;
        align-items: start !important;
        text-decoration: none !important;
    }

    body.single-post .related-grid .overflow-hidden,
    body.single .related-grid .overflow-hidden {
        grid-area: image;
        width: 148px !important;
        margin: 0 !important;
        align-self: start !important;
    }

    body.single-post .related-grid .card-image,
    body.single-post .related-grid .aspect-4-3,
    body.single .related-grid .card-image,
    body.single .related-grid .aspect-4-3 {
        width: 148px !important;
        height: 92px !important;
        aspect-ratio: auto !important;
        object-fit: cover !important;
    }

    body.single-post .related-grid .featured-card-category,
    body.single .related-grid .featured-card-category {
        grid-area: category;
        font-size: 12px !important;
        line-height: 1.2 !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        color: #6b7280 !important;
        margin: 0 0 5px !important;
    }

    body.single-post .related-grid .card-title,
    body.single .related-grid .card-title {
        grid-area: title;
        font-size: 21px !important;
        line-height: 1.08 !important;
        font-weight: 700 !important;
        letter-spacing: 0 !important;
        margin: 0 !important;
        color: #111111 !important;
    }

    body.single-post .related-grid .featured-card-meta,
    body.single .related-grid .featured-card-meta {
        grid-area: meta;
        font-size: 12px !important;
        line-height: 1.2 !important;
        margin-top: 8px !important;
        color: #777777 !important;
    }
}

@media (max-width: 420px) {
    body.single-post .related-grid .card > a,
    body.single .related-grid .card > a {
        grid-template-columns: minmax(0, 1fr) 128px !important;
        column-gap: 14px !important;
    }

    body.single-post .related-grid .overflow-hidden,
    body.single .related-grid .overflow-hidden,
    body.single-post .related-grid .card-image,
    body.single-post .related-grid .aspect-4-3,
    body.single .related-grid .card-image,
    body.single .related-grid .aspect-4-3 {
        width: 128px !important;
    }

    body.single-post .related-grid .card-image,
    body.single-post .related-grid .aspect-4-3,
    body.single .related-grid .card-image,
    body.single .related-grid .aspect-4-3 {
        height: 84px !important;
    }

    body.single-post .related-grid .card-title,
    body.single .related-grid .card-title {
        font-size: 19px !important;
    }
}

.home .section-latest .latest-list {
    width: 100%;
}

/* Latest cards fill their container */
.home .section-latest .latest-card {
    width: 100%;
}

/* Responsive: 3 columns at tablet (769-1024px) — Breaking Defense style */
@media (min-width: 769px) and (max-width: 1024px) {
    .home .featured-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
}

/* Responsive: 1 column below 768px */
@media (max-width: 768px) {
    .home .featured-grid {
        grid-template-columns: 1fr;
    }

    .home .card-hero,
    .home .section-latest .main-content,
    .home .latest-list {
        max-width: 100%;
    }
}

/* ==========================================================================
   RELATED ARTICLES EDITORIAL POLISH (v70.31)

   Keep related links visually connected to the article page: lighter framing,
   consistent type scale, and a cleaner transition from body copy to recirc.
   ========================================================================== */

body.single-post .related-section,
body.single .related-section {
    margin-top: 56px !important;
    padding: 34px 0 48px !important;
    border-top: 1px solid #d7dde3 !important;
    background: #ffffff !important;
}

body.single-post .related-section .container,
body.single .related-section .container {
    max-width: 1180px !important;
}

body.single-post .related-title,
body.single .related-title {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    font-size: 26px !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
    margin: 0 0 22px !important;
    color: #171717 !important;
}

body.single-post .related-title::after,
body.single .related-title::after {
    content: "" !important;
    display: block !important;
    flex: 1 !important;
    height: 1px !important;
    background: #e3e7eb !important;
}

body.single-post .related-grid,
body.single .related-grid {
    gap: 28px !important;
}

body.single-post .related-grid .card,
body.single .related-grid .card {
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.single-post .related-grid .card:hover,
body.single .related-grid .card:hover {
    box-shadow: none !important;
}

body.single-post .related-grid .card > a,
body.single .related-grid .card > a {
    height: 100% !important;
    text-decoration: none !important;
}

body.single-post .related-grid .overflow-hidden,
body.single .related-grid .overflow-hidden {
    margin-bottom: 12px !important;
    border-radius: 4px !important;
    background: #f4f6f7 !important;
}

body.single-post .related-grid .card-image,
body.single-post .related-grid .aspect-4-3,
body.single .related-grid .card-image,
body.single .related-grid .aspect-4-3 {
    aspect-ratio: 16 / 9 !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
}

body.single-post .related-grid .featured-card-category,
body.single .related-grid .featured-card-category {
    font-family: var(--font-heading, 'Poppins', sans-serif) !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: #5f6b76 !important;
    margin: 0 0 6px !important;
}

body.single-post .related-grid .card-title,
body.single .related-grid .card-title {
    font-size: 20px !important;
    line-height: 1.18 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    color: #171717 !important;
    margin: 0 !important;
}

body.single-post .related-grid .featured-card-meta,
body.single .related-grid .featured-card-meta {
    font-size: 13px !important;
    line-height: 1.2 !important;
    margin-top: 10px !important;
    color: #747b84 !important;
}

@media (min-width: 768px) {
    body.single-post .related-grid,
    body.single .related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    body.single-post .related-section,
    body.single .related-section {
        margin-top: 42px !important;
        padding: 26px 0 34px !important;
        border-top: 1px solid #d7dde3 !important;
    }

    body.single-post .related-title,
    body.single .related-title {
        font-size: 24px !important;
        margin-bottom: 14px !important;
    }

    body.single-post .related-title::after,
    body.single .related-title::after {
        display: none !important;
    }

    body.single-post .related-grid,
    body.single .related-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    body.single-post .related-grid .card,
    body.single .related-grid .card {
        padding: 15px 0 !important;
        border-bottom: 1px solid #e1e5e8 !important;
    }

    body.single-post .related-grid .card:first-child,
    body.single .related-grid .card:first-child {
        padding-top: 0 !important;
    }

    body.single-post .related-grid .card:last-child,
    body.single .related-grid .card:last-child {
        padding-bottom: 0 !important;
        border-bottom: 0 !important;
    }

    body.single-post .related-grid .card > a,
    body.single .related-grid .card > a {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 132px !important;
        grid-template-areas:
            "category image"
            "title image"
            "meta image";
        column-gap: 14px !important;
        align-items: start !important;
    }

    body.single-post .related-grid .overflow-hidden,
    body.single .related-grid .overflow-hidden {
        grid-area: image !important;
        width: 132px !important;
        margin: 0 !important;
        border-radius: 4px !important;
    }

    body.single-post .related-grid .card-image,
    body.single-post .related-grid .aspect-4-3,
    body.single .related-grid .card-image,
    body.single .related-grid .aspect-4-3 {
        width: 132px !important;
        height: 82px !important;
        aspect-ratio: auto !important;
    }

    body.single-post .related-grid .featured-card-category,
    body.single .related-grid .featured-card-category {
        grid-area: category !important;
        font-size: 11px !important;
        margin-bottom: 5px !important;
    }

    body.single-post .related-grid .card-title,
    body.single .related-grid .card-title {
        grid-area: title !important;
        font-size: 18px !important;
        line-height: 1.14 !important;
    }

    body.single-post .related-grid .featured-card-meta,
    body.single .related-grid .featured-card-meta {
        grid-area: meta !important;
        font-size: 12px !important;
        margin-top: 7px !important;
    }
}

@media (max-width: 380px) {
    body.single-post .related-grid .card > a,
    body.single .related-grid .card > a {
        grid-template-columns: minmax(0, 1fr) 112px !important;
        column-gap: 12px !important;
    }

    body.single-post .related-grid .overflow-hidden,
    body.single .related-grid .overflow-hidden,
    body.single-post .related-grid .card-image,
    body.single-post .related-grid .aspect-4-3,
    body.single .related-grid .card-image,
    body.single .related-grid .aspect-4-3 {
        width: 112px !important;
    }

    body.single-post .related-grid .card-image,
    body.single-post .related-grid .aspect-4-3,
    body.single .related-grid .card-image,
    body.single .related-grid .aspect-4-3 {
        height: 74px !important;
    }

    body.single-post .related-grid .card-title,
    body.single .related-grid .card-title {
        font-size: 17px !important;
    }
}

/* ==========================================================================
   HOMEPAGE HERO + FEATURED FEED POLISH (v70.32)

   Makes the mobile hero less dominant and gives the three featured articles
   below it a Breaking Defense-style editorial rhythm with rectangular media,
   clearer padding, and short excerpts.
   ========================================================================== */

body.home .card-hero-overlay {
    border-radius: 0 !important;
}

body.home .card-hero-overlay .card-hero-image-wrapper {
    min-height: clamp(420px, 58vh, 620px) !important;
}

body.home .card-hero-overlay .card-hero-content {
    padding: 22px 24px 30px !important;
}

body.home .card-hero-overlay .card-hero-title {
    max-width: 760px !important;
}

body.home .section-hero .featured-grid {
    border-bottom: 0 !important;
    padding: 34px 24px 20px !important;
    gap: 34px !important;
}

body.home .section-hero .featured-grid .card {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible !important;
}

body.home .section-hero .featured-grid .card > a {
    display: block !important;
    text-decoration: none !important;
}

body.home .section-hero .featured-grid .overflow-hidden {
    margin-bottom: 12px !important;
    background: #f2f4f6 !important;
    border-radius: 0 !important;
}

body.home .section-hero .featured-grid .card-image,
body.home .section-hero .featured-grid .aspect-4-3 {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    object-fit: cover !important;
}

body.home .section-hero .featured-grid .featured-card-category {
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    color: #6b7280 !important;
    margin: 0 0 8px !important;
}

body.home .section-hero .featured-grid .card-title {
    font-size: 22px !important;
    line-height: 1.12 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    color: #111111 !important;
    margin: 0 0 12px !important;
}

body.home .section-hero .featured-grid .featured-card-excerpt {
    display: block !important;
    font-family: var(--font-article, 'Vollkorn', Georgia, serif) !important;
    font-size: 17px !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
    color: #4f5967 !important;
    margin: 0 0 14px !important;
}

body.home .section-hero .featured-grid .featured-card-meta {
    font-size: 13px !important;
    line-height: 1.2 !important;
    color: #747b84 !important;
    margin-top: 0 !important;
}

body.single-post .related-grid .featured-card-excerpt,
body.single .related-grid .featured-card-excerpt {
    display: none !important;
}

@media (min-width: 768px) {
    body.home .section-hero .container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    body.home .card-hero-overlay .card-hero-image-wrapper {
        min-height: clamp(420px, 48vh, 560px) !important;
    }

    body.home .section-hero .featured-grid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (min-width: 1024px) {
    body.home .card-hero-overlay .card-hero-image-wrapper {
        min-height: clamp(430px, 44vh, 540px) !important;
    }

    body.home .section-hero .featured-grid {
        gap: 30px !important;
        padding-top: 38px !important;
        padding-bottom: 26px !important;
    }

    body.home .section-hero .featured-grid .card-title {
        font-size: 21px !important;
    }
}

@media (max-width: 767px) {
    body.home .card-hero-overlay .card-hero-image-wrapper {
        min-height: clamp(430px, 58vh, 520px) !important;
    }

    body.home .card-hero-overlay .card-hero-content {
        padding: 20px 24px 28px !important;
    }

    body.home .card-hero-overlay .card-hero-title {
        font-size: 31px !important;
        line-height: 1.12 !important;
    }

    body.home .section-hero .featured-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 34px !important;
        padding: 34px 24px 20px !important;
    }

    body.home .section-hero .featured-grid .card-title {
        font-size: 25px !important;
        line-height: 1.08 !important;
    }

    body.home .section-hero .featured-grid .featured-card-excerpt {
        font-size: 18px !important;
        line-height: 1.52 !important;
    }
}

/* ==========================================================================
   HOMEPAGE PREMIUM CTA (v70.33)

   Responsive recirculation module for the gap between the hero package and
   Latest News, with a right-to-left social proof logo marquee.
   ========================================================================== */

body.home .home-premium-cta {
    background: #ffffff;
    padding: 4px 0 26px;
}

body.home .home-premium-cta .container {
    max-width: 1200px;
}

body.home .home-premium-cta__panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 18px 28px;
    align-items: stretch;
    padding: 18px 30px;
    border: 1px solid #dfe5e8;
    border-left: 4px solid #1f9cac;
    background:
        linear-gradient(135deg, rgba(31, 156, 172, 0.06), rgba(212, 168, 75, 0.08)),
        #fbfcfd;
}

body.home .home-premium-cta__copy {
    min-width: 0;
    align-self: center;
}

body.home .home-premium-cta__eyebrow {
    font-family: var(--font-heading, 'Poppins', sans-serif) !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    color: #177a87 !important;
    margin: 0 0 8px !important;
}

body.home .home-premium-cta h2 {
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: clamp(22px, 2vw, 29px);
    line-height: 1.1;
    letter-spacing: 0;
    color: #111111;
    margin: 0 0 8px;
}

body.home .home-premium-cta__copy > p:not(.home-premium-cta__eyebrow) {
    max-width: 720px;
    font-family: var(--font-article, 'Vollkorn', Georgia, serif) !important;
    font-size: 17px !important;
    line-height: 1.42 !important;
    color: #4f5967 !important;
    margin: 0 !important;
}

body.home .home-premium-cta__action {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

body.home .home-premium-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 4px;
    background: #1f9cac;
    color: #ffffff !important;
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 2px 0 #177a87;
    transition: transform 0.2s ease, background 0.2s ease;
}

body.home .home-premium-cta__button:hover {
    background: #177a87;
    color: #ffffff !important;
    transform: translateY(-1px);
}

body.home .home-premium-cta__lead-form {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin: 0;
}

body.home .home-premium-cta__email {
    width: 100%;
    min-height: 38px;
    padding: 9px 12px;
    border: 1px solid #d6dde2;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.78);
    color: #111111;
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: 13px;
    line-height: 1.2;
}

body.home .home-premium-cta__email:focus {
    outline: 0;
    border-color: #1f9cac;
    box-shadow: 0 0 0 3px rgba(31, 156, 172, 0.15);
}

body.home .home-premium-cta__lead-button {
    width: 100%;
    min-height: 38px;
    padding: 9px 14px;
    border: 1px solid #177a87;
    border-radius: 4px;
    background: transparent;
    color: #177a87;
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.home .home-premium-cta__lead-button:hover {
    background: #177a87;
    color: #ffffff;
    transform: translateY(-1px);
}

body.home .home-premium-cta__lead-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

body.home .home-premium-cta__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.home .home-premium-cta__message {
    display: none;
    margin: 0;
    padding: 8px 10px;
    border-radius: 4px;
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: 12px;
    line-height: 1.35;
}

body.home .home-premium-cta__message.is-visible {
    display: block;
}

body.home .home-premium-cta__message--success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #0a7c58;
}

body.home .home-premium-cta__message--error {
    background: rgba(217, 52, 42, 0.08);
    border: 1px solid rgba(217, 52, 42, 0.3);
    color: #b02a22;
}

body.home .home-premium-cta__proof {
    grid-column: 1 / -1;
    min-width: 0;
    border-left: 0;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    padding: 14px 0 0;
    display: grid;
    grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

body.home .home-premium-cta__proof p {
    font-family: var(--font-heading, 'Poppins', sans-serif) !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: #68717b !important;
    margin: 0 !important;
}

body.home .home-premium-cta__marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 58px;
    mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}

body.home .home-premium-cta__track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 22px;
    animation: home-premium-marquee 28s linear infinite;
}

body.home .home-premium-cta__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 48px;
    padding: 0 16px;
    border: 0;
    background: transparent;
    filter: grayscale(1) opacity(0.74);
}

body.home .home-premium-cta__logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100px;
    max-height: 32px;
    object-fit: contain;
}

body.home .home-premium-cta__logo--cnn img { max-height: 20px; }
body.home .home-premium-cta__logo--bbc img { max-height: 24px; }
body.home .home-premium-cta__logo--dawn img { max-height: 20px; }
body.home .home-premium-cta__logo--cfr img { max-height: 30px; }
body.home .home-premium-cta__logo--rusi img { max-height: 28px; }
body.home .home-premium-cta__logo--leonardo img { max-height: 20px; }
body.home .home-premium-cta__logo--thales img { max-height: 20px; max-width: 108px; }
body.home .home-premium-cta__logo--elt img { max-height: 32px; }

@keyframes home-premium-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    body.home .home-premium-cta__track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
    }

    body.home .home-premium-cta__marquee {
        mask-image: none;
        -webkit-mask-image: none;
    }
}

@media (max-width: 900px) {
    body.home .home-premium-cta {
        padding: 4px 0 26px;
    }

    body.home .home-premium-cta__panel {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 22px 22px;
    }

    body.home .home-premium-cta__proof {
        border-left: 0;
        border-top: 1px solid rgba(17, 17, 17, 0.08);
        padding-left: 0;
        padding-top: 18px;
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 767px) {
    body.home .home-premium-cta .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    body.home .home-premium-cta__panel {
        padding: 20px;
    }

    body.home .home-premium-cta h2 {
        font-size: 25px;
    }

    body.home .home-premium-cta__copy > p:not(.home-premium-cta__eyebrow) {
        font-size: 16px !important;
        line-height: 1.45 !important;
    }

    body.home .home-premium-cta__button {
        width: 100%;
    }

    body.home .home-premium-cta__logo {
        width: 112px;
        height: 54px;
    }
}

/* ==========================================================================
   ARTICLE + HOME TYPOGRAPHY REFINEMENTS (v70.34)
   ========================================================================== */

body.single-post .article-content,
body.single .article-content,
body.single-post .entry-content,
body.single .entry-content {
    font-size: 18px !important;
    line-height: 1.58 !important;
    letter-spacing: 0 !important;
    color: #2f3742 !important;
}

body.single-post .article-content p,
body.single-post .entry-content p,
body.single-post article.single-article .article-content p,
body.single .article-content p,
body.single .entry-content p,
body.single-post .article-content p[class],
body.single-post .entry-content p[class],
body.single .article-content p[class],
body.single .entry-content p[class],
body.single-post .article-content ul,
body.single-post .article-content ol,
body.single-post .article-content li,
body.single-post .entry-content ul,
body.single-post .entry-content ol,
body.single-post .entry-content li,
body.single .article-content ul,
body.single .article-content ol,
body.single .article-content li,
body.single .entry-content ul,
body.single .entry-content ol,
body.single .entry-content li {
    font-size: 18px !important;
    line-height: 1.58 !important;
    letter-spacing: 0 !important;
    color: #2f3742 !important;
}

body.single-post .article-content p,
body.single-post .entry-content p,
body.single .article-content p,
body.single .entry-content p {
    margin-bottom: 19px !important;
}

body.home .card-hero-overlay .card-hero-date,
body.home .card-hero-overlay .card-hero-meta .meta-separator {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.home .section-hero .featured-grid .card-title {
    font-size: 19px !important;
    line-height: 1.16 !important;
    margin-bottom: 9px !important;
}

body.home .section-hero .featured-grid .featured-card-excerpt {
    font-size: 15px !important;
    line-height: 1.45 !important;
    color: #4a5563 !important;
    margin-bottom: 10px !important;
}

@media (min-width: 1024px) {
    body.home .section-hero .featured-grid .card-title {
        font-size: 18px !important;
    }
}

@media (max-width: 767px) {
    body.single-post .article-content,
    body.single .article-content,
    body.single-post .entry-content,
    body.single .entry-content,
    body.single-post .article-content p,
    body.single-post .entry-content p,
    body.single .article-content p,
    body.single .entry-content p {
        font-size: 17px !important;
        line-height: 1.58 !important;
        color: #2f3742 !important;
    }

    body.home .section-hero .featured-grid .card-title {
        font-size: 22px !important;
        line-height: 1.12 !important;
    }

    body.home .section-hero .featured-grid .featured-card-excerpt {
        font-size: 16px !important;
        line-height: 1.45 !important;
    }
}

/* ==========================================================================
   RELATED ARTICLES INLINE RECIRCULATION (v70.34)
   ========================================================================== */

body.single-post .article-main > .related-section,
body.single .article-main > .related-section {
    margin: 46px 0 0 !important;
    padding: 28px 0 6px !important;
    border-top: 2px solid #111111 !important;
    background: #ffffff !important;
}

body.single-post .article-main > .related-section .related-title,
body.single .article-main > .related-section .related-title {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    font-size: 24px !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
    margin: 0 0 18px !important;
    color: #111111 !important;
}

body.single-post .article-main > .related-section .related-title::after,
body.single .article-main > .related-section .related-title::after {
    content: "" !important;
    display: block !important;
    flex: 1 !important;
    height: 1px !important;
    background: #d9dee5 !important;
}

body.single-post .article-main > .related-section .related-grid,
body.single .article-main > .related-section .related-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

body.single-post .article-main > .related-section .card,
body.single .article-main > .related-section .card {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

body.single-post .article-main > .related-section .card > a,
body.single .article-main > .related-section .card > a {
    display: block !important;
    text-decoration: none !important;
}

body.single-post .article-main > .related-section .overflow-hidden,
body.single .article-main > .related-section .overflow-hidden {
    margin: 0 0 9px !important;
    border-radius: 0 !important;
    background: #f3f5f6 !important;
}

body.single-post .article-main > .related-section .card-image,
body.single-post .article-main > .related-section .aspect-4-3,
body.single .article-main > .related-section .card-image,
body.single .article-main > .related-section .aspect-4-3 {
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
    object-fit: cover !important;
}

body.single-post .article-main > .related-section .featured-card-category,
body.single .article-main > .related-section .featured-card-category {
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    color: #626b76 !important;
    margin: 0 0 6px !important;
}

body.single-post .article-main > .related-section .card-title,
body.single .article-main > .related-section .card-title {
    font-size: 15px !important;
    line-height: 1.16 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    color: #111111 !important;
    margin: 0 !important;
}

body.single-post .article-main > .related-section .featured-card-excerpt,
body.single .article-main > .related-section .featured-card-excerpt {
    display: none !important;
}

body.single-post .article-main > .related-section .featured-card-meta,
body.single .article-main > .related-section .featured-card-meta {
    font-size: 12px !important;
    line-height: 1.2 !important;
    color: #747b84 !important;
    margin-top: 8px !important;
}

@media (max-width: 767px) {
    body.single-post .article-main > .related-section,
    body.single .article-main > .related-section {
        margin-top: 36px !important;
        padding-top: 24px !important;
    }

    body.single-post .article-main > .related-section .related-title,
    body.single .article-main > .related-section .related-title {
        font-size: 23px !important;
        margin-bottom: 12px !important;
    }

    body.single-post .article-main > .related-section .related-title::after,
    body.single .article-main > .related-section .related-title::after {
        display: none !important;
    }

    body.single-post .article-main > .related-section .related-grid,
    body.single .article-main > .related-section .related-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    body.single-post .article-main > .related-section .card,
    body.single .article-main > .related-section .card {
        padding: 14px 0 !important;
        border-bottom: 1px solid #e1e5e8 !important;
    }

    body.single-post .article-main > .related-section .card:first-child,
    body.single .article-main > .related-section .card:first-child {
        padding-top: 0 !important;
    }

    body.single-post .article-main > .related-section .card:last-child,
    body.single .article-main > .related-section .card:last-child {
        border-bottom: 0 !important;
    }

    body.single-post .article-main > .related-section .card > a,
    body.single .article-main > .related-section .card > a {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 124px !important;
        grid-template-areas:
            "category image"
            "title image"
            "meta image";
        column-gap: 14px !important;
    }

    body.single-post .article-main > .related-section .overflow-hidden,
    body.single .article-main > .related-section .overflow-hidden {
        grid-area: image !important;
        width: 124px !important;
        margin: 0 !important;
    }

    body.single-post .article-main > .related-section .card-image,
    body.single-post .article-main > .related-section .aspect-4-3,
    body.single .article-main > .related-section .card-image,
    body.single .article-main > .related-section .aspect-4-3 {
        width: 124px !important;
        height: 78px !important;
        aspect-ratio: auto !important;
    }

    body.single-post .article-main > .related-section .featured-card-category,
    body.single .article-main > .related-section .featured-card-category {
        grid-area: category !important;
    }

    body.single-post .article-main > .related-section .card-title,
    body.single .article-main > .related-section .card-title {
        grid-area: title !important;
        font-size: 18px !important;
        line-height: 1.14 !important;
    }

    body.single-post .article-main > .related-section .featured-card-meta,
    body.single .article-main > .related-section .featured-card-meta {
        grid-area: meta !important;
        font-size: 12px !important;
        margin-top: 7px !important;
    }
}
