/* ============================
   HOMEPAGE V2 — Option C Layout
   All classes prefixed hp2- to avoid conflicts
   ============================ */

/* --- Breaking Banner --- */
.hp2-breaking {
    padding: 24px 0;
    border-bottom: 1px solid var(--lines, #dddddd);
}
.hp2-breaking-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: center;
}
@media (min-width: 768px) {
    .hp2-breaking-inner {
        grid-template-columns: 1fr 1fr;
    }
}
.hp2-breaking-inner .b2b-home-article {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 4px;
}
.hp2-breaking-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--link_dark, #025585);
    color: #fff;
    font-family: 'Rubik', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
}
.hp2-breaking-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: hp2-pulse-dot 1.5s ease-in-out infinite;
}
@keyframes hp2-pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.hp2-breaking .hp2-cat-tag {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    line-height: 20px;
    margin-bottom: 8px;
    display: block;
}
.hp2-breaking .hp2-cat-tag a {
    color: var(--link_dark, #025585);
    text-decoration: none;
}
.hp2-breaking .hp2-cat-tag a:hover { text-decoration: underline; }
.hp2-breaking .hp2-title {
    font-family: 'Libre Caslon Text', serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    color: var(--text_dark, #111827);
    margin-bottom: 12px;
    margin-top: 0;
}
.hp2-breaking .hp2-title a {
    color: var(--text_dark, #111827);
    text-decoration: none;
}
.hp2-breaking .hp2-title a:hover { text-decoration: underline; }
.hp2-breaking .hp2-excerpt {
    font-family: 'Noto Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--text_mid, #555d69);
    margin-bottom: 12px;
    margin-top: 0;
}
.hp2-meta {
    font-family: 'Noto Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--text_light, #757575);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.hp2-meta .hp2-author {
    font-weight: 700;
    color: var(--text_mid, #555d69);
}
.hp2-meta .hp2-author a {
    color: var(--text_mid, #555d69);
    text-decoration: none;
}
.hp2-meta .hp2-author a:hover { text-decoration: underline; }
.hp2-meta .hp2-sep {
    margin: 0 6px;
}

/* --- Card Grid (5 cards) --- */
.hp2-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 0;
    border-bottom: 1px solid var(--lines, #dddddd);
}
@media (min-width: 600px) {
    .hp2-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 900px) {
    .hp2-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1100px) {
    .hp2-card-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.hp2-card {
    border: 1px solid var(--lines, #dddddd);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}
.hp2-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.hp2-card .b2b-home-article {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.hp2-card-body {
    padding: 12px 14px 16px;
}
.hp2-card-badge {
    font-family: 'Rubik', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #fff;
    background: var(--link_dark, #025585);
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 8px;
}
.hp2-card-badge a {
    color: #fff;
    text-decoration: none;
}
.hp2-card-title {
    font-family: 'Libre Caslon Text', serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    color: var(--text_dark, #111827);
    margin-bottom: 8px;
    margin-top: 0;
}
.hp2-card-title a {
    color: var(--text_dark, #111827);
    text-decoration: none;
}
.hp2-card-title a:hover { text-decoration: underline; }
.hp2-card .hp2-meta {
    font-size: 12px;
}

/* --- More Stories + Sidebar --- */
.hp2-more {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 32px 0;
}
@media (min-width: 768px) {
    .hp2-more {
        grid-template-columns: 3fr 1fr;
    }
}

.hp2-more-feed {
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) {
    .hp2-more-feed {
        padding-right: 24px;
        border-right: 1px solid var(--lines, #dddddd);
    }
}

.hp2-section-label {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text_mid, #555d69);
    margin-bottom: 16px;
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--text_dark, #111827);
}

/* Mobile: full image-on-top cards */
.hp2-more-card {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--lines, #dddddd);
}
.hp2-more-card:first-of-type { padding-top: 0; }
.hp2-more-card:last-of-type { border-bottom: none; }
.hp2-more-card .hp2-more-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 8px;
}
.hp2-more-card .hp2-cat-tag {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    line-height: 20px;
    margin-bottom: 8px;
    display: block;
}
.hp2-more-card .hp2-cat-tag a {
    color: var(--link_dark, #025585);
    text-decoration: none;
}
.hp2-more-card .hp2-cat-tag a:hover { text-decoration: underline; }
.hp2-more-card .hp2-card-title {
    margin-bottom: 0;
}

/* Desktop: compact thumbnail + text layout */
@media (min-width: 768px) {
    .hp2-more-card {
        display: grid;
        grid-template-columns: 120px 1fr;
        gap: 16px;
        align-items: start;
    }
    .hp2-more-card .hp2-more-thumb {
        height: 80px;
        aspect-ratio: auto;
        margin-bottom: 0;
    }
    .hp2-more-card .hp2-cat-tag { font-size: 11px; }
    .hp2-more-card .hp2-meta { font-size: 13px; }
}

.hp2-more-right {
    padding-top: 16px;
}
.hp2-more-right > div {
    max-width: 300px;
}
@media (min-width: 768px) {
    .hp2-more-right {
        padding-left: 16px;
        padding-top: 0;
        position: sticky;
        top: 125px;
        align-self: start;
    }
}


/* ============================
   LATEST NEWS GRID — "More Stories"
   (replaces Post Feed 2)
   Layout only — typography uses theme classes
   ============================ */
.hp2-latest-grid {
    padding: 32px 0;
    border-bottom: 1px solid var(--lines, #dddddd);
}
.hp2-latest-grid__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 768px) {
    .hp2-latest-grid__inner {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
.hp2-latest-featured {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--lines, #dddddd);
}
@media (min-width: 768px) {
    .hp2-latest-featured {
        padding-bottom: 0;
        border-bottom: none;
        padding-right: 20px;
        border-right: 1px solid var(--lines, #dddddd);
    }
}
.hp2-latest-list {
    display: flex;
    flex-direction: column;
}
.hp2-latest-list-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--lines, #dddddd);
}
.hp2-latest-list-item:first-child { padding-top: 0; }
.hp2-latest-list-item:last-child { border-bottom: none; }


/* ============================
   MORE FROM B2B NEWS
   (replaces dead 4-col category buckets)
   Layout only — typography uses theme classes
   ============================ */
.hp2-more-b2b {
    padding: 32px 0;
    border-bottom: 1px solid var(--lines, #dddddd);
}
.hp2-more-b2b__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 600px) {
    .hp2-more-b2b__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .hp2-more-b2b__grid { grid-template-columns: repeat(4, 1fr); }
}
.hp2-more-b2b__col {
    display: flex;
    flex-direction: column;
}
.hp2-more-b2b__card {
    padding: 16px 0;
    border-bottom: 1px solid var(--lines, #dddddd);
}
.hp2-more-b2b__card:first-child { padding-top: 0; }
.hp2-more-b2b__card:last-child { border-bottom: none; }


/* ============================
   CATEGORY FEED — Reusable section
   Stacks on mobile, 2 or 3 col on desktop
   ============================ */
.hp2-cat-feed {
    padding: 32px 0;
    border-bottom: 1px solid var(--lines, #dddddd);
}
.hp2-cat-feed__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.hp2-cat-feed__body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .hp2-cat-feed__body {
        grid-template-columns: 1fr 1fr;
    }
    .hp2-cat-feed--with-sidebar .hp2-cat-feed__body {
        grid-template-columns: 1.5fr 1.5fr 1fr;
    }
}
.hp2-cat-feed__main {
    display: contents;
}
@media (min-width: 768px) {
    .hp2-cat-feed__main {
        display: contents;
    }
}
.hp2-cat-feed__featured {
    /* Stacks naturally on mobile */
}
.hp2-cat-feed__list {
    display: flex;
    flex-direction: column;
}
.hp2-cat-feed__list-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--lines, #dddddd);
}
.hp2-cat-feed__list-item:first-child { padding-top: 0; }
.hp2-cat-feed__list-item:last-child { border-bottom: none; }
.hp2-cat-feed__sidebar {
    /* Stacks below on mobile, sits in 3rd col on desktop */
    position: sticky;
    top: 125px;
}
.hp2-cat-feed__sidebar .sidebar-ad {
    position: sticky;
    top: 125px;
}


/* ============================
   BUSINESS FEED — 2-col card grid + sidebar
   ============================ */
.hp2-biz-feed {
    padding: 32px 0;
    border-bottom: 1px solid var(--lines, #dddddd);
}
.hp2-biz-feed__header {
    margin-bottom: 24px;
}
.hp2-biz-feed__body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .hp2-biz-feed__body {
        grid-template-columns: 1.5fr 1.5fr 1fr;
    }
}
.hp2-biz-feed__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    grid-column: span 1;
}
@media (min-width: 768px) {
    .hp2-biz-feed__grid {
        grid-template-columns: 1fr 1fr;
        grid-column: span 2;
    }
}
.hp2-biz-feed__card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.hp2-biz-feed__sidebar .sidebar-ad {
    position: sticky;
    top: 125px;
}
.hp2-biz-feed > .hp2-card-grid {
    margin-top: 24px;
}


/* ============================
   SHARED UTILITY CLASSES
   Replaces inline styles across homepage templates
   ============================ */

/* Section header row: label + chevron, or label + sponsor */
.hp2-header-row {
    display: flex;
    align-items: center;
}

/* Section label spacing (used on rubik-tag as section heading) */
.hp2-section-heading {
    margin-bottom: 24px;
}

/* Sponsor badge row in section headers */
.hp2-sponsor-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hp2-sponsor-logo {
    max-width: 187px;
    max-height: 80px;
}

/* Category tag spacing above titles */
.hp2-cat-spacing {
    margin-bottom: 6px;
    margin-top: 12px;
}

/* Title links — remove underline */
.hp2-title-link {
    text-decoration: none;
}

/* Featured card title */
.hp2-featured-title {
    margin-bottom: 12px;
    margin-top: 0;
}

/* Featured excerpt */
.hp2-featured-excerpt {
    margin-top: 0;
    margin-bottom: 12px;
}

/* List item title */
.hp2-list-title {
    margin-bottom: 8px;
}

/* Grid card title (grid-sidebar-feed) */
.hp2-grid-card-title {
    margin-top: 12px;
    margin-bottom: 8px;
}

/* Author name bold */
.hp2-author-bold {
    font-weight: 700;
}

/* Card grid wrapper without border (used when nested inside a section) */
.hp2-card-grid--no-border {
    padding: 0;
    border-bottom: none;
}

/* Card grid section wrapper */
.hp2-card-grid-section {
    padding: 32px 0;
    border-bottom: 1px solid var(--lines, #dddddd);
}

/* Sidebar ad background */
.hp2-ad-bg {
    background: #EDF4FC80;
}
