/* =========================================================
   BLOG / ARTICLES PAGE - SAME STYLE AS HOME
========================================================= */

:root {
    --blog-bg: #0f0d0a;
    --blog-card: #0f171f;
    --blog-card-2: #111b26;
    --blog-card-3: #0b1118;

    --blog-border: rgba(255, 255, 255, 0.08);
    --blog-border-soft: rgba(255, 255, 255, 0.055);
    --blog-border-orange: rgba(245, 166, 35, 0.55);

    --blog-orange: #f5a623;
    --blog-orange-2: #ffb22e;

    --blog-text: #ffffff;
    --blog-muted: #aeb8c8;
    --blog-soft: #d6deea;

    --blog-blue: #5572ff;
    --blog-blue-2: #6f8cff;

    --blog-green: #22c55e;
    --blog-red: #ef4444;

    --blog-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

/* =========================================================
   MAIN PAGE
========================================================= */

.sp-blog-page {
    width: 100%;
    padding: 0 0 48px;
}

/* =========================================================
   HERO
========================================================= */

.sp-blog-hero {
    position: relative;
    overflow: hidden;
    min-height: 106px;
    margin-bottom: 22px;
    padding: 24px 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background:
        radial-gradient(circle at right center, rgba(245, 166, 35, 0.10), transparent 34%),
        linear-gradient(180deg, #111b26 0%, #0c121a 100%);
    border: 1px solid var(--blog-border-orange);
    box-shadow: var(--blog-shadow);
}

.sp-blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(245, 166, 35, 0.07), transparent 38%);
    pointer-events: none;
}

.sp-blog-hero > div {
    position: relative;
    z-index: 2;
}

.sp-blog-hero h1 {
    margin: 0 0 8px;
    color: var(--blog-text);
    font-size: 34px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.sp-blog-hero p {
    margin: 0;
    color: var(--blog-soft);
    font-size: 14px;
    font-weight: 700;
}

.sp-blog-hero-ball {
    width: 170px;
    height: 92px;
    opacity: 0.16;
    background:
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.22), transparent 16%),
        linear-gradient(45deg, transparent 47%, rgba(255,255,255,0.28) 49%, transparent 52%),
        radial-gradient(circle, transparent 56%, rgba(255,255,255,0.22) 57%, transparent 59%);
    border-radius: 50%;
}

/* =========================================================
   LAYOUT
========================================================= */

.sp-blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    align-items: start;
}

.sp-blog-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sp-blog-sidebar {
    position: sticky;
    top: 14px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* =========================================================
   FEATURED SECTION
========================================================= */

.sp-blog-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, #111820 0%, #0b1118 100%);
    border: 1px solid var(--blog-border);
    box-shadow: var(--blog-shadow);
}

.sp-blog-main-featured {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    border-radius: 14px;
    display: block;
    color: var(--blog-text);
    text-decoration: none;
    background: #08111d;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sp-blog-main-featured img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.sp-blog-main-featured::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 8, 15, 0.92) 0%, rgba(4, 8, 15, 0.66) 42%, rgba(4, 8, 15, 0.16) 100%),
        linear-gradient(0deg, rgba(4, 8, 15, 0.90) 0%, transparent 55%);
}

.sp-blog-main-featured:hover img {
    transform: scale(1.035);
    opacity: 1;
}

.sp-blog-featured-overlay {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 22px;
    bottom: 22px;
    max-width: 620px;
}

.sp-blog-pill {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    margin-bottom: 72px;
    border-radius: 7px;
    color: #101010;
    background: var(--blog-orange);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.sp-blog-date {
    margin-bottom: 8px;
    color: #dbe7ff;
    font-size: 12px;
    font-weight: 850;
}

.sp-blog-featured-overlay h2 {
    margin: 0 0 12px;
    color: var(--blog-text);
    font-size: 32px;
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.sp-blog-featured-overlay p {
    margin: 0 0 18px;
    color: var(--blog-soft);
    font-size: 14px;
    line-height: 1.55;
    max-width: 560px;
}

.sp-blog-featured-overlay em {
    height: 34px;
    padding: 0 14px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-style: normal;
    font-weight: 950;
    background: linear-gradient(180deg, var(--blog-blue-2) 0%, var(--blog-blue) 100%);
    box-shadow: 0 8px 18px rgba(85, 114, 255, 0.28);
}

/* =========================================================
   FEATURED SIDE CARDS
========================================================= */

.sp-blog-featured-side {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sp-blog-side-featured {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-height: 112px;
    border-radius: 14px;
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    color: var(--blog-text);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.sp-blog-side-featured:hover {
    border-color: var(--blog-border-orange);
    background: rgba(255, 255, 255, 0.065);
}

.sp-blog-side-featured img {
    width: 145px;
    height: 100%;
    min-height: 92px;
    object-fit: cover;
    border-radius: 10px;
}

.sp-blog-side-featured div {
    min-width: 0;
    align-self: center;
}

.sp-blog-side-featured span {
    display: block;
    margin-bottom: 8px;
    color: var(--blog-muted);
    font-size: 11px;
    font-weight: 800;
}

.sp-blog-side-featured h3 {
    margin: 0 0 10px;
    color: var(--blog-text);
    font-size: 15px;
    line-height: 1.25;
    font-weight: 950;
}

.sp-blog-side-featured em {
    height: 24px;
    padding: 0 9px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    font-size: 10px;
    font-style: normal;
    font-weight: 950;
    background: linear-gradient(180deg, var(--blog-blue-2) 0%, var(--blog-blue) 100%);
}

/* =========================================================
   SECTION HEAD
========================================================= */

.sp-blog-section {
    min-width: 0;
}

.sp-blog-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.sp-blog-section-head span {
    display: block;
    margin-bottom: 4px;
    color: var(--blog-orange);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sp-blog-section-head h2 {
    margin: 0;
    color: var(--blog-text);
    font-size: 22px;
    font-weight: 950;
}

.sp-blog-filter-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sp-blog-filter-pills a {
    height: 34px;
    padding: 0 12px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    color: var(--blog-soft);
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--blog-border);
}

.sp-blog-filter-pills a.active,
.sp-blog-filter-pills a:hover {
    color: var(--blog-orange);
    border-color: var(--blog-border-orange);
    background: rgba(245, 166, 35, 0.08);
}

/* =========================================================
   ARTICLE GRID
========================================================= */

.sp-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.sp-blog-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 14px;
    background:
        linear-gradient(180deg, #111820 0%, #0b1118 100%);
    border: 1px solid var(--blog-border);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sp-blog-card:hover {
    transform: translateY(-2px);
    border-color: var(--blog-border-orange);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.30);
}

.sp-blog-card-image {
    position: relative;
    display: block;
    overflow: hidden;
    height: 170px;
    background: #07101c;
}

.sp-blog-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.sp-blog-card:hover .sp-blog-card-image img {
    transform: scale(1.04);
    opacity: 0.92;
}

.sp-blog-card-category {
    position: absolute;
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    height: 24px;
    padding: 0 9px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    color: #111;
    font-size: 10px;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: var(--blog-orange);
}

.sp-blog-card-body {
    padding: 14px;
}

.sp-blog-card-meta {
    margin-bottom: 8px;
    color: var(--blog-muted);
    font-size: 11px;
    font-weight: 800;
}

.sp-blog-card h3 {
    margin: 0 0 10px;
}

.sp-blog-card h3 a {
    display: block;
    color: var(--blog-text);
    text-decoration: none;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.sp-blog-card h3 a:hover {
    color: var(--blog-orange);
}

.sp-blog-card p {
    margin: 0 0 14px;
    color: var(--blog-soft);
    font-size: 13px;
    line-height: 1.55;
}

.sp-blog-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sp-blog-read-time {
    min-width: 0;
    color: var(--blog-muted);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.sp-blog-read-btn {
    height: 32px;
    padding: 0 13px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 950;
    background: linear-gradient(180deg, var(--blog-blue-2) 0%, var(--blog-blue) 100%);
    box-shadow: 0 8px 18px rgba(85, 114, 255, 0.28);
}

/* =========================================================
   LOAD MORE
========================================================= */

.sp-blog-loadmore-wrap {
    display: flex;
    justify-content: center;
    padding-top: 2px;
}

.sp-blog-loadmore-btn {
    min-width: 240px;
    height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
    background:
        linear-gradient(180deg, #111820 0%, #0b1118 100%);
    border: 1px solid var(--blog-border);
}

.sp-blog-loadmore-btn:hover {
    color: var(--blog-orange);
    border-color: var(--blog-border-orange);
}

/* =========================================================
   RIGHT SIDEBAR
========================================================= */

.sp-blog-side-card {
    padding: 16px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, #111820 0%, #0b1118 100%);
    border: 1px solid var(--blog-border);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.sp-blog-side-card h3 {
    margin: 0 0 14px;
    color: var(--blog-text);
    font-size: 17px;
    font-weight: 950;
}

.sp-blog-most-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sp-blog-most-item {
    display: grid;
    grid-template-columns: 24px 72px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    color: var(--blog-text);
    text-decoration: none;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--blog-border-soft);
}

.sp-blog-most-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.sp-blog-rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: #111;
    background: var(--blog-orange);
    font-size: 12px;
    font-weight: 950;
}

.sp-blog-most-item img {
    width: 72px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.sp-blog-most-item h4 {
    margin: 0 0 4px;
    color: var(--blog-text);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 900;
}

.sp-blog-most-item span:not(.sp-blog-rank) {
    color: var(--blog-muted);
    font-size: 10px;
    font-weight: 800;
}

.sp-blog-most-item:hover h4 {
    color: var(--blog-orange);
}

/* Latest sidebar */

.sp-blog-latest-list {
    display: flex;
    flex-direction: column;
}

.sp-blog-latest-list a {
    min-height: 38px;
    padding: 9px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    color: var(--blog-text);
    text-decoration: none;
    border-top: 1px solid var(--blog-border-soft);
}

.sp-blog-latest-list a:first-child {
    border-top: 0;
    padding-top: 0;
}

.sp-blog-latest-list span {
    min-width: 0;
    color: var(--blog-soft);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-blog-latest-list em {
    color: var(--blog-muted);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.sp-blog-latest-list a:hover span {
    color: var(--blog-orange);
}

/* Topics */

.sp-blog-topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sp-blog-topic-list a {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    color: var(--blog-soft);
    text-decoration: none;
    font-size: 11px;
    font-weight: 850;
    border: 1px solid var(--blog-border);
    background: rgba(255, 255, 255, 0.035);
}

.sp-blog-topic-list a:hover {
    color: var(--blog-orange);
    border-color: var(--blog-border-orange);
}

.sp-blog-view-topics {
    margin-top: 14px;
    display: inline-flex;
    color: var(--blog-orange);
    text-decoration: none;
    font-size: 12px;
    font-weight: 950;
}

/* =========================================================
   EMPTY
========================================================= */

.sp-blog-empty {
    padding: 28px;
    border-radius: 14px;
    color: var(--blog-soft);
    font-size: 14px;
    font-weight: 800;
    background:
        linear-gradient(180deg, #111820 0%, #0b1118 100%);
    border: 1px solid var(--blog-border);
}

/* =========================================================
   OLD CLASS COMPATIBILITY
========================================================= */

.portal-page {
    padding: 0;
}

.portal-container {
    width: 100%;
    margin: 0;
}

.portal-layout,
.portal-main,
.portal-sidebar,
.portal-section,
.portal-grid,
.portal-card,
.portal-side-box {
    all: unset;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1450px) {
    .sp-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sp-blog-featured {
        grid-template-columns: minmax(0, 1fr);
    }

    .sp-blog-featured-side {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sp-blog-side-featured {
        grid-template-columns: 1fr;
    }

    .sp-blog-side-featured img {
        width: 100%;
        height: 120px;
    }
}

@media (max-width: 1200px) {
    .sp-blog-layout {
        grid-template-columns: 1fr;
    }

    .sp-blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .sp-blog-hero {
        padding: 22px;
    }

    .sp-blog-hero h1 {
        font-size: 28px;
    }

    .sp-blog-main-featured {
        min-height: 330px;
    }

    .sp-blog-featured-overlay h2 {
        font-size: 26px;
    }

    .sp-blog-featured-side {
        grid-template-columns: 1fr;
    }

    .sp-blog-side-featured {
        grid-template-columns: 130px minmax(0, 1fr);
    }

    .sp-blog-side-featured img {
        width: 130px;
        height: 96px;
    }

    .sp-blog-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .sp-blog-grid {
        grid-template-columns: 1fr;
    }

    .sp-blog-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .sp-blog-hero-ball {
        display: none;
    }

    .sp-blog-main-featured {
        min-height: 390px;
    }

    .sp-blog-featured-overlay {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .sp-blog-pill {
        margin-bottom: 40px;
    }

    .sp-blog-featured-overlay h2 {
        font-size: 23px;
    }

    .sp-blog-featured-overlay p {
        font-size: 13px;
    }
}

@media (max-width: 520px) {
    .sp-blog-hero {
        min-height: 96px;
        padding: 18px;
        border-radius: 14px;
    }

    .sp-blog-hero h1 {
        font-size: 24px;
    }

    .sp-blog-hero p {
        font-size: 12px;
    }

    .sp-blog-featured {
        padding: 8px;
        border-radius: 14px;
    }

    .sp-blog-main-featured {
        min-height: 420px;
    }

    .sp-blog-side-featured {
        grid-template-columns: 1fr;
    }

    .sp-blog-side-featured img {
        width: 100%;
        height: 150px;
    }

    .sp-blog-card-image {
        height: 190px;
    }

    .sp-blog-loadmore-btn {
        width: 100%;
    }
}