/* =========================================================
   H2HFACTS BETTING BLOG - LEFT LEAGUE SIDEBAR + FULL CONTENT
   File: public/css/blog-page.css
   ========================================================= */

.h2h-blog-shell {
    align-items: start;
    gap: 14px;
}

.h2h-blog-no-rightbar {
    grid-template-columns: 300px minmax(0, 1fr) !important;
}

.h2h-blog-no-rightbar .h2h-blog-main {
    grid-column: 2;
}

.h2h-blog-main {
    min-width: 0;
    display: grid;
    gap: 14px;
}

/* HERO */
.blog-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(83,255,80,.10), transparent 32%),
        linear-gradient(180deg, rgba(4,25,10,.96), rgba(1,9,5,.98));
    border: 1px solid rgba(83,255,80,.18);
}

.blog-hero-copy span,
.blog-section-head span {
    display: block;
    color: #55f041;
    font-size: 10px;
    line-height: 1;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.blog-hero-copy h1 {
    margin: 7px 0 6px;
    color: #fff;
    font-size: 30px;
    line-height: 1.05;
    font-weight: 1000;
}

.blog-hero-copy p {
    max-width: 820px;
    margin: 0;
    color: rgba(230,255,232,.64);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 850;
}

.blog-hero-stats {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.blog-hero-stats > div {
    min-width: 104px;
    min-height: 66px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 10px;
    border-radius: 15px;
    background: rgba(83,255,80,.09);
    border: 1px solid rgba(83,255,80,.20);
}

.blog-hero-stats i {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(83,255,80,.12);
    color: #55f041;
    font-size: 14px;
}

.blog-hero-stats strong {
    display: block;
    color: #55f041;
    font-size: 22px;
    line-height: 1;
    font-weight: 1000;
}

.blog-hero-stats small {
    display: block;
    margin-top: 2px;
    color: rgba(230,255,232,.62);
    font-size: 10px;
    line-height: 1;
    font-weight: 1000;
    text-transform: uppercase;
}

.blog-empty-card {
    padding: 28px;
    border-radius: 18px;
    background: rgba(4,25,10,.96);
    border: 1px solid rgba(83,255,80,.16);
    color: rgba(230,255,232,.68);
    text-align: center;
    font-weight: 900;
}

/* MAIN CONTENT FULL WIDTH */
.blog-content-main {
    min-width: 0;
    display: grid;
    gap: 14px;
}

/* TOP GRID - FULL WITHOUT RIGHT SIDEBAR */
.blog-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr) minmax(280px, .75fr);
    gap: 12px;
}

.blog-card {
    position: relative;
    min-height: 290px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 14px;
    border-radius: 17px;
    background: #020805;
    border: 1px solid rgba(83,255,80,.18);
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, border-color .18s ease;
}

.blog-card-large {
    min-height: 390px;
}

.blog-card:hover,
.blog-strip-card:hover,
.blog-list-card:hover {
    transform: translateY(-2px);
    border-color: rgba(83,255,80,.34);
}

.blog-card-bg,
.blog-card-bg img,
.blog-card-overlay {
    position: absolute;
    inset: 0;
}

.blog-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .76;
    transform: scale(1.01);
}

.blog-card-overlay {
    background:
        linear-gradient(90deg, rgba(1,7,4,.96) 0%, rgba(1,7,4,.70) 42%, rgba(1,7,4,.20) 100%),
        linear-gradient(180deg, rgba(1,7,4,.10) 0%, rgba(1,7,4,.92) 100%);
}

.blog-card-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.blog-badge,
.blog-strip-card span,
.blog-list-content > span {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(83,255,80,.10);
    border: 1px solid rgba(83,255,80,.22);
    color: #55f041;
    font-size: 10px;
    line-height: 1;
    font-weight: 1000;
    text-transform: uppercase;
}

.blog-card h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 36px;
    line-height: 1.05;
    font-weight: 1000;
}

.blog-card h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 1000;
}

.blog-card p {
    max-width: 600px;
    margin: 0 0 12px;
    color: rgba(230,255,232,.70);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 800;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: rgba(230,255,232,.58);
    font-size: 11px;
    font-weight: 900;
}

.blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* STRIP */
.blog-strip-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.blog-strip-card {
    min-height: 118px;
    display: grid;
    grid-template-columns: 136px minmax(0, 1fr);
    gap: 11px;
    padding: 10px;
    border-radius: 16px;
    background:
        radial-gradient(circle at top left, rgba(83,255,80,.08), transparent 34%),
        linear-gradient(180deg, rgba(4,22,10,.96), rgba(1,9,5,.98));
    border: 1px solid rgba(83,255,80,.16);
    color: inherit;
    text-decoration: none;
    transition: .18s ease;
}

.blog-strip-img img {
    width: 136px;
    height: 98px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.blog-strip-card h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 15px;
    line-height: 1.22;
    font-weight: 1000;
}

/* LATEST */
.blog-section-card {
    padding: 14px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(83,255,80,.08), transparent 34%),
        linear-gradient(180deg, rgba(4,22,10,.96), rgba(1,9,5,.98));
    border: 1px solid rgba(83,255,80,.16);
}

.blog-section-head {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.blog-section-head h2 {
    margin: 4px 0 0;
    color: #fff;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 1000;
}

.blog-section-head a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #55f041;
    font-size: 12px;
    font-weight: 1000;
    text-decoration: none;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.blog-list-card {
    overflow: hidden;
    display: grid;
    border-radius: 16px;
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.06);
    color: inherit;
    text-decoration: none;
    transition: .18s ease;
}

.blog-list-card:nth-child(1),
.blog-list-card:nth-child(7n) {
    grid-column: span 2;
}

.blog-list-img img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.blog-list-content {
    padding: 12px;
}

.blog-list-content h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 16px;
    line-height: 1.22;
    font-weight: 1000;
}

.blog-list-card:nth-child(1) .blog-list-content h3,
.blog-list-card:nth-child(7n) .blog-list-content h3 {
    font-size: 22px;
}

.blog-list-content p {
    margin: 0 0 11px;
    color: rgba(230,255,232,.62);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 760;
}

.portal-loadmore-wrap {
    display: flex;
    justify-content: center;
    margin: 4px 0 18px;
}

.portal-loadmore-btn {
    width: max-content;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    border-radius: 10px;
    background: linear-gradient(180deg, #34ff43, #0c8f22);
    color: #031006;
    font-size: 12px;
    font-weight: 1000;
    text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 1500px) {
    .h2h-blog-no-rightbar {
        grid-template-columns: 280px minmax(0, 1fr) !important;
    }

    .blog-top-grid {
        grid-template-columns: minmax(0, 1fr) minmax(250px, .75fr);
    }

    .blog-card-medium:nth-child(3) {
        grid-column: span 2;
        min-height: 240px;
    }

    .blog-strip-grid,
    .blog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .blog-list-card:nth-child(1),
    .blog-list-card:nth-child(7n) {
        grid-column: span 1;
    }
}

@media (max-width: 1180px) {
    .h2h-blog-no-rightbar {
        grid-template-columns: 250px minmax(0, 1fr) !important;
    }

    .blog-top-grid,
    .blog-strip-grid,
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-card-medium:nth-child(3) {
        grid-column: span 1;
    }
}

@media (max-width: 900px) {
    .h2h-blog-shell {
        display: block !important;
        padding: 10px !important;
    }

    .h2h-blog-no-rightbar .h2h-blog-main {
        grid-column: auto;
    }

    .blog-hero-card {
        grid-template-columns: 1fr;
    }

    .blog-hero-stats {
        width: 100%;
    }

    .blog-hero-stats > div {
        flex: 1;
    }

    .blog-top-grid,
    .blog-strip-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card,
    .blog-card-large,
    .blog-card-medium:nth-child(3) {
        grid-column: span 1;
        min-height: 260px;
    }

    .blog-card h2 {
        font-size: 25px;
    }

    .blog-strip-card {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .blog-strip-img img {
        width: 110px;
        height: 86px;
    }

    .blog-list-card:nth-child(1),
    .blog-list-card:nth-child(7n) {
        grid-column: span 1;
    }

    .blog-list-card:nth-child(1) .blog-list-content h3,
    .blog-list-card:nth-child(7n) .blog-list-content h3 {
        font-size: 18px;
    }
}

@media (max-width: 560px) {
    .blog-hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .blog-card {
        min-height: 300px;
    }

    .blog-strip-card {
        grid-template-columns: 1fr;
    }

    .blog-strip-img img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}


/* =========================================================
   NEWS/BLOG CATEGORY FINAL PATCH
   ========================================================= */

.h2h-blog-no-rightbar {
    grid-template-columns: 300px minmax(0, 1fr) !important;
}

.h2h-blog-no-rightbar .h2h-blog-main {
    grid-column: 2 !important;
}

.h2h-blog-no-rightbar .blog-hero-stats {
    display: none !important;
}

.h2h-blog-no-rightbar .blog-top-grid,
.h2h-blog-no-rightbar .blog-strip-grid,
.h2h-blog-no-rightbar .blog-rightbar {
    display: none !important;
}

.h2h-blog-no-rightbar .blog-hero-card {
    grid-template-columns: 1fr !important;
}

.h2h-blog-no-rightbar .blog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

@media (max-width: 1500px) {
    .h2h-blog-no-rightbar {
        grid-template-columns: 280px minmax(0, 1fr) !important;
    }

    .h2h-blog-no-rightbar .blog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1180px) {
    .h2h-blog-no-rightbar {
        grid-template-columns: 250px minmax(0, 1fr) !important;
    }

    .h2h-blog-no-rightbar .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    .h2h-blog-no-rightbar {
        display: block !important;
    }

    .h2h-blog-no-rightbar .h2h-blog-main {
        grid-column: auto !important;
    }

    .h2h-blog-no-rightbar .blog-grid {
        grid-template-columns: 1fr !important;
    }
}
/* =========================================================
   H2HFACTS SINGLE BLOG POST PAGE
   ========================================================= */

.h2h-post-shell {
    grid-template-columns: 300px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 14px !important;
}

.h2h-post-main {
    grid-column: 2 !important;
    min-width: 0 !important;
    display: grid !important;
    gap: 14px !important;
}

.h2h-post-article {
    min-width: 0;
    display: grid;
    gap: 14px;
}

.h2h-post-hero,
.h2h-post-card {
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(83,255,80,.09), transparent 34%),
        linear-gradient(180deg, rgba(4,22,10,.96), rgba(1,9,5,.98));
    border: 1px solid rgba(83,255,80,.16);
    box-shadow: 0 18px 42px rgba(0,0,0,.22);
}

.h2h-post-hero {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(360px, .78fr);
    align-items: stretch;
    gap: 0;
}

.h2h-post-hero-copy {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 28px;
}

.h2h-post-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: rgba(230,255,232,.48);
    font-size: 11px;
    font-weight: 900;
}

.h2h-post-breadcrumb a {
    color: rgba(230,255,232,.66);
    text-decoration: none;
}

.h2h-post-breadcrumb a:hover {
    color: #55f041;
}

.h2h-post-breadcrumb i {
    color: rgba(230,255,232,.28);
    font-size: 9px;
}

.h2h-post-kicker,
.h2h-post-related-head span,
.h2h-post-related-card span {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(83,255,80,.10);
    border: 1px solid rgba(83,255,80,.22);
    color: #55f041;
    font-size: 10px;
    line-height: 1;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.h2h-post-hero h1 {
    max-width: 900px;
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 4.1vw, 58px);
    line-height: 1.02;
    font-weight: 1000;
    letter-spacing: -.035em;
}

.h2h-post-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(230,255,232,.66);
    font-size: 15px;
    line-height: 1.55;
    font-weight: 780;
}

.h2h-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: rgba(230,255,232,.56);
    font-size: 12px;
    font-weight: 900;
}

.h2h-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.h2h-post-meta i {
    color: #55f041;
}

.h2h-post-hero-image {
    min-height: 390px;
    position: relative;
    overflow: hidden;
    border-left: 1px solid rgba(83,255,80,.12);
}

.h2h-post-hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(1,7,4,.62), transparent 42%),
        linear-gradient(180deg, transparent, rgba(1,7,4,.18));
    pointer-events: none;
}

.h2h-post-hero-image img {
    width: 100%;
    height: 100%;
    min-height: 390px;
    display: block;
    object-fit: cover;
}

.h2h-post-card {
    padding: 0;
    overflow: hidden;
}

.h2h-post-content {
    max-width: 1040px;
    padding: 32px;
    color: rgba(245,255,246,.84);
    font-size: 16px;
    line-height: 1.78;
    font-weight: 650;
}

.h2h-post-content > *:first-child {
    margin-top: 0 !important;
}

.h2h-post-content > *:last-child {
    margin-bottom: 0 !important;
}

.h2h-post-content p {
    margin: 0 0 20px;
}

.h2h-post-content h1,
.h2h-post-content h2,
.h2h-post-content h3,
.h2h-post-content h4 {
    margin: 34px 0 13px;
    color: #fff;
    line-height: 1.16;
    font-weight: 1000;
    letter-spacing: -.02em;
}

.h2h-post-content h2 {
    font-size: 28px;
}

.h2h-post-content h3 {
    font-size: 22px;
}

.h2h-post-content h4 {
    font-size: 18px;
}

.h2h-post-content a {
    color: #55f041;
    font-weight: 900;
    text-decoration: none;
    border-bottom: 1px solid rgba(83,255,80,.30);
}

.h2h-post-content a:hover {
    border-bottom-color: #55f041;
}

.h2h-post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 24px 0;
    border-radius: 16px;
    border: 1px solid rgba(83,255,80,.14);
}

.h2h-post-content ul,
.h2h-post-content ol {
    margin: 0 0 22px 22px;
    padding: 0;
}

.h2h-post-content li {
    margin: 8px 0;
    padding-left: 3px;
}

.h2h-post-content blockquote {
    margin: 26px 0;
    padding: 18px 20px;
    border-left: 4px solid #55f041;
    border-radius: 14px;
    background: rgba(83,255,80,.08);
    color: rgba(245,255,246,.90);
    font-size: 17px;
    font-weight: 850;
}

.h2h-post-content table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(0,0,0,.18);
}

.h2h-post-content th,
.h2h-post-content td {
    padding: 12px;
    border: 1px solid rgba(255,255,255,.08);
    text-align: left;
}

.h2h-post-content th {
    color: #55f041;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
}

.h2h-post-related {
    padding: 18px;
}

.h2h-post-related-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.h2h-post-related-head h2 {
    margin: 7px 0 0;
    color: #fff;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 1000;
}

.h2h-post-related-head a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #55f041;
    font-size: 12px;
    font-weight: 1000;
    text-decoration: none;
}

.h2h-post-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.h2h-post-related-card {
    overflow: hidden;
    display: grid;
    border-radius: 16px;
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.06);
    color: inherit;
    text-decoration: none;
    transition: .18s ease;
}

.h2h-post-related-card:hover {
    transform: translateY(-2px);
    border-color: rgba(83,255,80,.32);
}

.h2h-post-related-card img,
.h2h-post-related-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.h2h-post-related-placeholder {
    display: grid;
    place-items: center;
    background: rgba(83,255,80,.10);
    color: #55f041;
    font-size: 34px;
    font-weight: 1000;
}

.h2h-post-related-card div:last-child {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.h2h-post-related-card h3 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 1000;
}

.h2h-post-related-card small {
    color: rgba(230,255,232,.55);
    font-size: 11px;
    font-weight: 900;
}

@media (max-width: 1500px) {
    .h2h-post-shell {
        grid-template-columns: 280px minmax(0, 1fr) !important;
    }

    .h2h-post-hero {
        grid-template-columns: minmax(0, 1fr) minmax(320px, .70fr);
    }

    .h2h-post-content {
        max-width: 980px;
    }

    .h2h-post-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .h2h-post-shell {
        grid-template-columns: 250px minmax(0, 1fr) !important;
    }

    .h2h-post-hero {
        grid-template-columns: 1fr;
    }

    .h2h-post-hero-image {
        min-height: 300px;
        border-left: 0;
        border-top: 1px solid rgba(83,255,80,.12);
    }

    .h2h-post-hero-image img {
        min-height: 300px;
    }

    .h2h-post-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .h2h-post-shell {
        display: block !important;
        padding: 10px !important;
    }

    .h2h-post-main {
        grid-column: auto !important;
    }

    .h2h-post-hero-copy {
        padding: 18px;
    }

    .h2h-post-hero h1 {
        font-size: 28px;
    }

    .h2h-post-hero p {
        font-size: 13px;
    }

    .h2h-post-hero-image,
    .h2h-post-hero-image img {
        min-height: 230px;
    }

    .h2h-post-content {
        padding: 20px;
        font-size: 15px;
        line-height: 1.72;
    }

    .h2h-post-content h2 {
        font-size: 23px;
    }

    .h2h-post-content h3 {
        font-size: 19px;
    }

    .h2h-post-related-grid {
        grid-template-columns: 1fr;
    }

    .h2h-post-related-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .h2h-post-content {
        padding: 16px;
        font-size: 14px;
    }

    .h2h-post-hero-copy {
        padding: 16px;
    }
}