/* ═══════════════════════════════════════════════════════
   WHAT'S NEW PAGE — whats-new.css
   ═══════════════════════════════════════════════════════ */

.wn-wrapper {
    background-color: #F8F8F8;
    padding-bottom: 100px;
    font-family: 'Rubik', sans-serif;
}

.wn-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 0;
}

/* ── Hero ───────────────────────────────────────────── */
.wn-hero {
    position: relative;
    width: 100%;
    min-height: 320px;
    background: #FFFFFF;
    box-shadow: 1px 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0;
}

/* Gold glow top-right */
.wn-hero::after {
    content: '';
    position: absolute;
    width: 389px;
    height: 280px;
    right: -60px;
    top: -73px;
    background: rgba(232, 186, 0, 0.35);
    filter: blur(150px);
    pointer-events: none;
    z-index: 0;
}

/* Green glow bottom-left */
.wn-hero::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 200px;
    left: -40px;
    bottom: -60px;
    background: rgba(56, 89, 46, 0.18);
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.wn-hero__body {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 110px 20px 60px;
}

.wn-hero__title {
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: clamp(28px, 4vw, 40px);
    color: #111827;
    margin: 0 0 10px;
}

.wn-hero__subtitle {
    font-family: 'Rubik', sans-serif;
    font-weight: 300;
    font-size: clamp(16px, 1.8vw, 22px);
    color: #6B7280;
    margin: 0 auto;
    max-width: 600px;
    line-height: 1.6;
}

.wn-hero__deco {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    object-fit: contain;
    opacity: 0.85;
}

/* ── Filter chips ───────────────────────────────────── */
.wn-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.wn-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: #FFFFFF;
    border: 1px solid rgba(107, 114, 128, 0.2);
    border-radius: 20px;
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #4B5563;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.wn-filter-chip:hover {
    background: rgba(232, 186, 0, 0.08);
    border-color: rgba(232, 186, 0, 0.4);
    color: #111827;
    text-decoration: none;
}

.wn-filter-chip.active {
    background: #E8BA00;
    border-color: #E8BA00;
    color: #FFFFFF;
}

/* ── Featured Card ──────────────────────────────────── */
.wn-featured {
    margin-bottom: 80px;
}

.wn-featured__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 40px;
    background: #FFFFFF;
    border: 1px solid rgba(107, 114, 128, 0.1);
    box-shadow: 1px 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    overflow: hidden;
}

.wn-featured__media {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(232, 186, 0, 0.15), rgba(56, 89, 46, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wn-featured__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wn-featured__media-placeholder {
    font-size: 64px;
    color: rgba(232, 186, 0, 0.5);
}

.wn-featured__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wn-featured__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wn-featured__title {
    font-weight: 500;
    font-size: clamp(22px, 2.6vw, 32px);
    line-height: 1.3;
    color: #111827;
    margin: 0;
}

.wn-featured__desc {
    font-weight: 300;
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.6;
    color: #4B5563;
    margin: 0;
}

.wn-featured__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 12px 28px;
    background: linear-gradient(180deg, #FFFFFF -20%, #E8BA00 100%);
    border: 1px solid rgba(107, 114, 128, 0.12);
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #111827;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 8px;
}

.wn-featured__cta:hover {
    transform: translateY(-2px);
    box-shadow: 1px 6px 14px rgba(0, 0, 0, 0.15);
    color: #111827;
    text-decoration: none;
}

/* ── Section Titles ─────────────────────────────────── */
.wn-section-title {
    font-weight: 500;
    font-size: clamp(22px, 2.4vw, 28px);
    color: #111827;
    margin-bottom: 24px;
}

/* ── Updates Grid ───────────────────────────────────── */
.wn-grid-section {
    margin-bottom: 80px;
}

.wn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.wn-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #FFFFFF;
    border: 1px solid rgba(107, 114, 128, 0.1);
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wn-card:hover {
    transform: translateY(-4px);
    box-shadow: 1px 8px 20px rgba(0, 0, 0, 0.08);
}

.wn-card__media {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(232, 186, 0, 0.1), rgba(56, 89, 46, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
}

.wn-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wn-card__media-placeholder {
    font-size: 36px;
    color: rgba(232, 186, 0, 0.5);
}

.wn-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.wn-card__title {
    font-weight: 500;
    font-size: 18px;
    line-height: 1.4;
    color: #111827;
    margin: 0 0 8px;
}

.wn-card__desc {
    font-weight: 300;
    font-size: 15px;
    line-height: 1.5;
    color: #6B7280;
    margin: 0 0 16px;
    flex-grow: 1;
}

.wn-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.wn-card__date {
    font-weight: 300;
    font-size: 13px;
    color: #9CA3AF;
}

.wn-card__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    font-size: 14px;
    color: #E8BA00;
    text-decoration: none;
    cursor: pointer;
}

.wn-card__link:hover {
    color: #c49d00;
    text-decoration: none;
}

/* ── Type Badges (New / Improved / Fixed) ───────────── */
.wn-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.wn-badge--new {
    background: rgba(232, 186, 0, 0.15);
    color: #92700a;
    border: 1px solid rgba(232, 186, 0, 0.4);
}

.wn-badge--improved {
    background: rgba(56, 89, 46, 0.12);
    color: #38592E;
    border: 1px solid rgba(56, 89, 46, 0.3);
}

.wn-badge--fixed {
    background: rgba(107, 114, 128, 0.12);
    color: #4B5563;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* ── Audience Tags ──────────────────────────────────── */
.wn-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    background: rgba(107, 114, 128, 0.08);
    border-radius: 12px;
    font-weight: 400;
    font-size: 11px;
    color: #4B5563;
    white-space: nowrap;
}

.wn-tag--parents {
    background: rgba(232, 186, 0, 0.12);
    color: #92700a;
}

.wn-tag--schools {
    background: rgba(56, 89, 46, 0.12);
    color: #38592E;
}

.wn-tag--teachers {
    background: rgba(75, 85, 99, 0.12);
    color: #4B5563;
}

.wn-tag--providers {
    background: rgba(17, 24, 39, 0.08);
    color: #111827;
}

/* ── Coming Soon Section ────────────────────────────── */
.wn-coming-soon {
    margin-bottom: 80px;
}

.wn-coming-soon__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.wn-coming-card {
    position: relative;
    padding: 24px;
    background: #FFFFFF;
    border: 1px dashed rgba(232, 186, 0, 0.5);
    border-radius: 20px;
    transition: all 0.2s ease;
}

.wn-coming-card:hover {
    border-color: #E8BA00;
    box-shadow: 0 4px 16px rgba(232, 186, 0, 0.12);
}

.wn-coming-card__badge {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    padding: 3px 10px;
    background: rgba(232, 186, 0, 0.18);
    color: #92700a;
    border: 1px solid rgba(232, 186, 0, 0.4);
    border-radius: 12px;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.3px;
}

.wn-coming-card__title {
    font-weight: 500;
    font-size: 18px;
    line-height: 1.4;
    color: #111827;
    margin: 0 0 10px;
    padding-inline-end: 70px;
}

.wn-coming-card__desc {
    font-weight: 300;
    font-size: 14px;
    line-height: 1.5;
    color: #6B7280;
    margin: 0 0 16px;
}

.wn-coming-card__audiences {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ── Empty State ────────────────────────────────────── */
.wn-empty {
    text-align: center;
    padding: 60px 20px;
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid rgba(107, 114, 128, 0.1);
    color: #6B7280;
    font-size: 18px;
    font-weight: 300;
}

/* ── Feedback Footer ────────────────────────────────── */
.wn-feedback {
    text-align: center;
    padding: 40px 20px;
    background: #FFFFFF;
    border: 1px solid rgba(107, 114, 128, 0.1);
    border-radius: 20px;
}

.wn-feedback__text {
    font-weight: 400;
    font-size: 18px;
    color: #111827;
    margin: 0 0 6px;
}

.wn-feedback__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 16px;
    color: #E8BA00;
    text-decoration: none;
    margin-top: 8px;
}

.wn-feedback__link:hover {
    color: #c49d00;
    text-decoration: none;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1150px) {
    .wn-hero__body {
        padding: 40px 20px 50px;
    }
}

@media (max-width: 900px) {
    .wn-featured__card {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px;
    }

    .wn-featured__media {
        aspect-ratio: 16 / 9;
    }

    .wn-hero__deco {
        opacity: 0.4;
    }
}

@media (max-width: 600px) {
    .wn-wrapper {
        padding-bottom: 70px;
    }

    .wn-container {
        padding-top: 40px;
    }

    .wn-hero__deco {
        display: none;
    }

    .wn-featured {
        margin-bottom: 56px;
    }

    .wn-grid-section,
    .wn-coming-soon {
        margin-bottom: 56px;
    }

    .wn-grid,
    .wn-coming-soon__grid {
        grid-template-columns: 1fr;
    }

    .wn-featured__card {
        padding: 20px;
    }

    .wn-card,
    .wn-coming-card {
        padding: 20px;
    }
}

/* RTL — flip arrow icons */
html[dir="rtl"] .wn-card__link i,
html[dir="rtl"] .wn-featured__cta i,
html[dir="rtl"] .wn-feedback__link i {
    transform: scaleX(-1);
}
