
:root {
    --apc-primary: #2563eb;
    --apc-dark: #0f172a;
    --apc-muted: #64748b;
    --apc-bg: #f8fafc;
    --apc-card: #ffffff;
    --apc-border: #e2e8f0;
}

body {
    margin: 0;
    background: var(--apc-bg);
    color: var(--apc-dark);
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.new-content-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}


/* HERO */

.new-content-hero {
    text-align: center;
    margin-bottom: 42px;
}

.new-content-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
}

.new-content-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
}

.new-content-hero p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--apc-muted);
    font-size: 18px;
    line-height: 1.7;
}


/* FILTERS */

.content-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 45px;
}

.content-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--apc-border);
    background: white;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    transition: .2s ease;
}

.content-filter:hover {
    border-color: var(--apc-primary);
    color: var(--apc-primary);
}

.content-filter.active {
    background: var(--apc-primary);
    color: white;
    border-color: var(--apc-primary);
}


/* SECTION */

.latest-heading {
    margin-bottom: 22px;
}

.latest-heading h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 5px;
}

.latest-heading p {
    color: var(--apc-muted);
    margin: 0;
}


/* GRID */

.content-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}


/* CARD */

.content-card {
    display: flex;
    flex-direction: column;
    background: var(--apc-card);
    border: 1px solid var(--apc-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 8px 25px rgba(15, 23, 42, .05);
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 16px 35px rgba(15, 23, 42, .10);
}

.content-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #e2e8f0;
}

.content-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.content-type {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--apc-primary);
    margin-bottom: 10px;
}

.content-card h3 {
    font-size: 20px;
    line-height: 1.35;
    font-weight: 750;
    margin: 0 0 10px;
}

.content-description {
    color: var(--apc-muted);
    line-height: 1.6;
    margin-bottom: 15px;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.language-pill {
    padding: 5px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}

.content-date {
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 18px;
}

.content-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 10px;
    background: var(--apc-primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
}

.content-link:hover {
    color: white;
    opacity: .9;
}


/* EMPTY */

.empty-content {
    text-align: center;
    padding: 70px 20px;
    background: white;
    border: 1px solid var(--apc-border);
    border-radius: 18px;
    color: var(--apc-muted);
}

.empty-content i {
    font-size: 50px;
    display: block;
    margin-bottom: 15px;
}


/* MOBILE */

@media (max-width: 600px) {

    .new-content-page {
        padding: 40px 15px 60px;
    }

    .content-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .content-filter {
        white-space: nowrap;
    }

}