/**
 * Homepage News Section — Premium Dark Style v2
 * Fixes: rounded design, proper font stack, no card hover effects
 */

/* ============================
   Font override for news section
   ============================ */
.hp-news,
.hp-news * {
    font-family: 'Inter', sans-serif !important;
}

/* ============================
   Section Shell
   ============================ */
.hp-news {
    background: var(--section-background-gradient-vertical);
    padding: 96px 0 110px;
    position: relative;
    overflow: hidden;
}

.hp-news::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 75% 10%, rgba(20, 110, 180, 0.14) 0%, transparent 65%),
        radial-gradient(ellipse 50% 50% at 5% 90%, rgba(254, 124, 3, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* faint dot-grid texture */
.hp-news::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

.hp-news-inner {
    position: relative;
    z-index: 1;
}

/* ============================
   Header Row
   ============================ */
.hp-news-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
    margin-bottom: 40px;
}


.hp-news-title {
    font-size: clamp(1.85rem, 3.2vw, 2.75rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.08;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.hp-news-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    line-height: 1.75;
    max-width: 400px;
    margin: 0;
}

/* CTA button */
.hp-news-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    color: #ffffff !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background 0.28s ease, border-color 0.28s ease;
    white-space: nowrap;
    align-self: center;
}

.hp-news-cta:hover {
    background: var(--secondary-color, #fe7c03);
    border-color: var(--secondary-color, #fe7c03);
}

.hp-news-cta-arrow {
    font-size: 1.25rem;
    transition: transform 0.25s ease;
    line-height: 0;
    position: relative;
    top: -1px;
}

.hp-news-cta:hover .hp-news-cta-arrow {
    transform: translateX(4px);
}

/* ============================
   Filter Tabs
   ============================ */
.hp-news-filters {
    display: flex;
    align-items: stretch;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hp-news-filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55);
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.hp-news-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.hp-news-filter-btn.is-active {
    background: var(--secondary-color, #fe7c03);
    border-color: var(--secondary-color, #fe7c03);
    color: #ffffff;
}

/* ============================
   Main Grid
   ============================ */
.hp-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

/* ============================
   Featured Post (left)
   ============================ */
.hp-news-featured {
    position: relative;
    overflow: hidden;
    background: #0b2140;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hp-news-featured-img {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-height: 300px;
    border-radius: 12px 12px 0 0;
}

.hp-news-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* gradient scrim */
.hp-news-featured-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(to top, #0b2140 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* badge */
.hp-news-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--secondary-color, #fe7c03);
    color: #ffffff;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 4px;
    z-index: 2;
}

.hp-news-featured-body {
    padding: 26px 28px 30px;
}

.hp-news-featured-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.77rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

.hp-news-featured-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.28;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}

.hp-news-featured-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hp-news-featured-title a:hover {
    color: var(--secondary-color, #fe7c03);
}

.hp-news-featured-excerpt {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 0 0 22px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color, #fe7c03);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    text-decoration: none;
    transition: gap 0.22s ease;
}

.hp-news-read-more:hover {
    gap: 14px;
    color: var(--secondary-color, #fe7c03);
}

/* ============================
   Post List (right column)
   ============================ */
.hp-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hp-news-list-item {
    display: grid;
    grid-template-columns: 190px 1fr;
    overflow: hidden;
    border-radius: 10px;
    background: #0b2140;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    position: relative;
    min-height: 110px;
    flex: 1;
}

/* thumbnail */
.hp-news-list-thumb {
    position: relative;
    overflow: hidden;
    align-self: stretch;
}

.hp-news-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hp-news-list-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--secondary-color, #fe7c03);
    color: #ffffff;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 3px;
    z-index: 2;
    white-space: nowrap;
    max-width: calc(100% - 20px);
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* body */
.hp-news-list-body {
    padding: 16px 44px 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
}

.hp-news-list-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.hp-news-list-title {
    font-size: 0.93rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-news-list-excerpt {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.8rem;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* static arrow — no hover animation */
.hp-news-list-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    line-height: 1;
}

/* ============================
   Empty state
   ============================ */
.hp-news-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    padding: 60px 0;
    font-size: 1rem;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 1024px) {
    .hp-news-featured-img {
        min-height: 220px;
    }

    .hp-news-header {
        gap: 1.5rem;
    }

    .hp-news-title {
        font-size: 2.1rem;
    }

    .hp-news-title-break {
        display: block;
        margin-top: 4px;
    }

    .hp-news-filters {
        gap: 10px;
        justify-content: center;
    }

    .hp-news-filter-btn {
        padding: 9px 18px;
        flex: 1 1 auto;
        justify-content: center;
        text-align: center;
    }

    .hp-news-list-item {
        grid-template-columns: 160px 1fr;
    }
}

@media (max-width: 900px) {
    .hp-news-grid {
        grid-template-columns: 1fr;
    }

    .hp-news-featured-img {
        min-height: 260px;
    }
}

@media (max-width: 680px) {
    .hp-news {
        padding: 60px 0 70px;
    }

    .hp-news-header {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 24px;
    }

    .hp-news-title {
        font-size: 2rem;
    }

    .hp-news-cta {
        align-self: flex-start;
    }

    .hp-news-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
        margin-bottom: 24px;
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .hp-news-filters::-webkit-scrollbar {
        display: none;
    }

    .hp-news-filter-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .hp-news-list-item {
        grid-template-columns: 130px 1fr;
    }

    .hp-news-list-body {
        padding: 14px 20px 14px 16px;
    }

    .hp-news-list-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .hp-news-list-item {
        grid-template-columns: 110px 1fr;
        min-height: 90px;
    }

    .hp-news-list-body {
        padding: 12px 14px;
        gap: 6px;
    }

    .hp-news-list-title {
        font-size: 0.85rem;
    }

    .hp-news-list-excerpt {
        display: none;
    }

    .hp-news-list-badge {
        display: none;
    }

    .hp-news-featured-body {
        padding: 20px 20px 24px;
    }

    .hp-news-featured-title {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }

    .hp-news-featured-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        margin-bottom: 18px;
    }

    .hp-news-cta {
        width: 100%;
        justify-content: center;
    }

    .hp-news-filter-btn {
        padding: 8px 16px;
        font-size: 0.72rem;
    }
}