﻿
:root {
    --bg: #F7F4EF;
    --surface: #FFFFFF;
    --border: rgba(0,0,0,0.1);
    --border-strong: rgba(0,0,0,0.18);
    --text-primary: #1A1814;
    --text-secondary: #6B6760;
    --text-tertiary: #9E9A95;
    --accent: #1D5C3A;
    --accent-light: #E6F2EC;
    --accent-text: #0D3D25;
    --tag-edu-bg: #EAF1FB;
    --tag-edu: #174B8C;
    --tag-health-bg: #E6F4EC;
    --tag-health: #0D5C2E;
    --tag-women-bg: #FBE9F2;
    --tag-women: #7C1E4F;
    --tag-skill-bg: #FEF3E2;
    --tag-skill: #7A4B08;
    --tag-env-bg: #E2F4EF;
    --tag-env: #0C4D38;
    --tag-award-bg: #EEEAFD;
    --tag-award: #3D2597;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.05);
    --shadow-hover: 0 2px 6px rgba(0,0,0,0.08), 0 8px 28px rgba(0,0,0,0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    font-family: sans-serif;
}

.banner {
    background-image: url('../images/mediaCoverage-banner.jpg');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    border-radius: 16px;
    min-height: 280px;
    display: flex;
    align-items: center;
    width: 100%;
}

.content-wrap {
    padding: 48px 40px;
    max-width: 560px;
    width: 100%;
    margin-left: 25px;
}

.subtitle {
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 2px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.title {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 800;
    color: #e85c00;
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.desc {
    font-size: clamp(13px, 1.5vw, 16px);
    color: #333;
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 420px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.social-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-label {
    font-size: clamp(13px, 1.5vw, 16px);
    font-weight: 500;
    color: #1a1a1a;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.social-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e85c00;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

/* Tablet */
@media (max-width: 768px) {
    .banner {
        background-position: center top;
        background-size: cover;
        border-radius: 12px;
        min-height: 320px;
        align-items: flex-end;
    }

    .content-wrap {
        padding: 28px 24px;
        max-width: 100%;
        background: rgba(255, 255, 255, 0.92);
        border-radius: 0 0 12px 12px;
        width: 100%;
    }

    .desc {
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .banner {
        border-radius: 10px;
        min-height: 260px;
        background-position: center center;
    }

    .content-wrap {
        padding: 20px 16px;
        border-radius: 0 0 10px 10px;
        margin-left: 0px;
    }

    .social-icon {
        width: 30px;
        height: 30px;
    }

    .social-row {
        gap: 8px;
    }
}

/* FILTER */
.filter-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.filter-label {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-right: 4px;
}

.filter-btn {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 99px;
    border: 1px solid var(--border-strong);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-block;
}

    .filter-btn:hover {
        background: var(--surface);
        color: var(--text-primary);
    }

    .filter-btn.active {
        background: #f97a20;
        color: var(--bg);
        border-color: #f97a20;
    }

/* GRID */
.grid-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.5rem 5rem;
}

.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* CARD */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    animation: fadeUp 0.4s ease both;
}

    .card:hover {
        box-shadow: var(--shadow-hover);
        transform: translateY(-3px);
        border-color: var(--border-strong);
    }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card.hidden {
    display: none;
}

.card-image {
    width: 100%;
    height: 229px;
    object-fit: cover;
    object-position: top;
    display: block;
    background: var(--bg);
}

.card-image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #edeae5 0%, #e0ddd7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .placeholder-icon svg {
        width: 24px;
        height: 24px;
        opacity: 0.4;
    }

.card-body {
    padding: 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 99px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tag-edu {
    background: var(--tag-edu-bg);
    color: var(--tag-edu);
}

.tag-health {
    background: var(--tag-health-bg);
    color: var(--tag-health);
}

.tag-women {
    background: var(--tag-women-bg);
    color: var(--tag-women);
}

.tag-skill {
    background: var(--tag-skill-bg);
    color: var(--tag-skill);
}

.tag-env {
    background: var(--tag-env-bg);
    color: var(--tag-env);
}

.tag-award {
    background: var(--tag-award-bg);
    color: var(--tag-award);
}

.pub-date {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .pub-date svg {
        width: 12px;
        height: 12px;
        opacity: 0.5;
    }

.card-title {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text-primary);
}

.card-publisher {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-tertiary);
}

.card-desc {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text-secondary);
    flex: 1;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-pub-badge {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    background: var(--bg);
    padding: 4px 10px;
    border-radius: 6px;
}

.read-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.15s;
}

    .read-link:hover {
        gap: 8px;
    }

    .read-link svg {
        width: 14px;
        height: 14px;
    }

/* FEATURED CARD */
.card.featured {
    grid-column: span 2;
    flex-direction: row;
}

    .card.featured .card-image {
        width: 419px;
        height: auto;
        flex-shrink: 0;
        border-radius: 0;
        object-fit: fill;
    }

    .card.featured .card-title {
        font-size: 22px;
    }

    .card.featured .card-desc {
        font-size: 14px;
    }

    .card.featured .card-image-placeholder {
        width: 360px;
        height: auto;
        min-height: 260px;
        flex-shrink: 0;
        border-radius: 0;
    }

/* NO RESULTS */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-tertiary);
    font-size: 15px;
    display: none;
}

    .no-results.visible {
        display: block;
    }

/* RESPONSIVE */
@media (max-width: 768px) {
    .filter-section, .grid-section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .press-grid {
        grid-template-columns: 1fr;
    }

    .card.featured {
        flex-direction: column;
        grid-column: span 1;
    }

        .card.featured .card-image,
        .card.featured .card-image-placeholder {
            width: 100%;
            /* height: 200px; */
            min-height: 200px;
        }
}
