/* ============================================
   PIRANOT V4 - HERO & HOMEPAGE ENHANCED
   ============================================ */

/* Hero Section Professional Styling */
.hero {
    display: flex;
    gap: 20px;
    margin-bottom: 48px;
    min-height: 520px;
}

.hero .main {
    flex: 1 1 60%;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(11, 59, 143, 0.12);
}

.hero .main a {
    display: block;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero .main .thumb {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero .main:hover .thumb {
    transform: scale(1.05);
}

.hero .main .overlay {
    position: absolute;
    inset: 0;
    padding: 32px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(11, 59, 143, 0.9));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.3s ease;
}

.hero .main:hover .overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(11, 59, 143, 1));
}

.hero .main .overlay .cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    background: rgba(255, 210, 0, 0.95);
    color: #111;
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    width: fit-content;
}

.hero .main .overlay h2 {
    margin: 0;
    font-size: 42px;
    font-weight: 900;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Side Cards */
.hero .side {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero .side .card {
    display: flex;
    gap: 12px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 12px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.hero .side .card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.hero .side .card:hover {
    transform: translateX(4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    border-color: #d8d8d8;
}

.hero .side .card:hover::before {
    transform: scaleY(1);
}

.hero .side .card .thumb {
    width: 100px;
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.hero .side .card:hover .thumb {
    transform: scale(1.08);
}

.hero .side .card > div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero .side .card h3 {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
    flex-grow: 1;
}

.hero .side .card .meta {
    font-size: 11px;
    color: #999;
    margin-top: auto;
    font-weight: 500;
}

/* Featured Story Badge */
.featured-story-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #c40000, #ff0000);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(196, 0, 0, 0.3);
}

/* ============================================
   IMPROVED GRID CARDS
   ============================================ */

.section .grid .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.section .grid .card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.section .grid .card .thumb {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.section .grid .card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* ============================================
   CALL-TO-ACTION SECTIONS
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, #0b3b8f 0%, #0a2f73 100%);
    color: #fff;
    padding: 48px 32px;
    border-radius: 16px;
    text-align: center;
    margin: 60px 0;
}

.cta-section h2 {
    font-size: 32px;
    font-weight: 900;
    margin: 0 0 16px 0;
}

.cta-section p {
    font-size: 16px;
    margin: 0 0 24px 0;
    opacity: 0.95;
}

.cta-section .btn {
    display: inline-block;
    background: #ffd200;
    color: #0b3b8f;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid #ffd200;
}

.cta-section .btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================
   LOAD MORE BUTTON
   ============================================ */

.load-more-wrapper {
    text-align: center;
    margin: 40px 0;
}

.btn-load-more {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.25s ease;
    border: 2px solid var(--primary);
}

.btn-load-more:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(11, 59, 143, 0.15);
}

/* ============================================
   RESPONSIVE HERO
   ============================================ */

@media (max-width: 1100px) {
    .hero {
        flex-direction: column;
        min-height: auto;
        gap: 24px;
    }

    .hero .main {
        flex: 1 1 auto;
        min-height: 360px;
    }

    .hero .side {
        flex: 1 1 auto;
        flex-direction: row;
    }

    .hero .side .card {
        flex: 1 1 calc(50% - 7px);
    }

    .hero .main .overlay h2 {
        font-size: 32px;
    }
}

@media (max-width: 900px) {
    .hero {
        gap: 16px;
    }

    .hero .main .overlay {
        padding: 24px;
    }

    .hero .main .overlay h2 {
        font-size: 26px;
    }

    .hero .side {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hero .side .card {
        flex: 1 1 calc(50% - 7px);
    }
}

@media (max-width: 768px) {
    .hero {
        gap: 12px;
    }

    .hero .side {
        flex-direction: column;
    }

    .hero .side .card {
        flex: 1 1 auto;
    }

    .hero .main .overlay {
        padding: 20px;
    }

    .hero .main .overlay h2 {
        font-size: 22px;
    }

    .cta-section {
        padding: 32px 20px;
        margin: 40px 0;
    }

    .cta-section h2 {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .hero .side .card {
        flex-direction: row;
        gap: 8px;
        padding: 10px;
    }

    .hero .side .card .thumb {
        width: 80px;
        height: 70px;
    }

    .hero .main .overlay {
        padding: 16px;
    }

    .hero .main .overlay h2 {
        font-size: 18px;
    }

    .cta-section {
        padding: 24px 16px;
        margin: 30px 0;
    }

    .cta-section h2 {
        font-size: 20px;
    }

    .cta-section .btn {
        width: 100%;
        box-sizing: border-box;
    }
}
