/* =====================================================
   UPDATES PAGE — STRUCTURED + CONSISTENT WITH PRODUCTS
===================================================== */


/* ================= HERO ================= */

.updates-hero {
    padding: 110px 0 25px;
    text-align: center;
    background: linear-gradient(to bottom, #fafafa, #fff);
}

.updates-hero h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
}

.updates-hero p {
    color: var(--muted);
    font-size: 14px;
    max-width: 480px;
    margin: 0 auto 20px;
    line-height: 1.5;
}


/* ================= FILTER (SAME AS PRODUCTS) ================= */

.updates-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;

    background: #f3f4f6;
    padding: 6px;
    border-radius: 50px;

    width: fit-content;
    margin: 0 auto;
}

.updates-filter a {
    text-decoration: none;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 50px;
    transition: all .25s ease;
}

.updates-filter a:hover {
    background: rgba(227, 30, 36, 0.1);
    color: var(--primary);
}

.updates-filter a.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.25);
}


/* ================= NEWS SECTION ================= */

.news-section {
    padding: 40px 0 70px;
    background: #fff;
}

.news-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* FIXED 4 COLUMNS */
    gap: 22px;
}


/* ================= NEWS CARD ================= */

.news-card {
    background: #f7f7f7;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .05);
    transition: all .3s ease;

    display: flex;
    flex-direction: column;
    min-height: 340px;
    /* LOCKED HEIGHT */
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 25px rgba(0, 0, 0, .1);
}

/* IMAGE */

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* CONTENT */

.news-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* TAG */

.tag {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    max-width: fit-content;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
}

/* TITLE */

.news-content h3 {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.4;
    color: #111827;
}

/* TEXT */

.news-content p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    min-height: 48px;
    /* keeps alignment consistent */
}

/* READ MORE */

.news-content a {
    margin-top: auto;
    font-weight: 600;
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
}

.news-content a:hover {
    text-decoration: underline;
}


/* ================= SOCIAL SECTION ================= */

/* .social-updates {
    background: #fafafa;
    padding: 50px 0 70px;
}

.social-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.social-grid {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 18px;
}

.social-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .05);
}

.social-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.social-meta {
    padding: 10px;
    display: flex;
    justify-content: space-around;
    font-size: 12px;
    color: var(--muted);
} */

.news-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 12px;
}

.news-image img,
.news-image video,
.news-image iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ================================
   SINGLE UPDATE PAGE
================================ */

.update-single {
    padding: 120px 0 80px;
    background: #fafafa;
}

.update-single .container {
    max-width: 900px;
}

/* TITLE */

.update-single h1 {
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #111827;
}

/* DATE */

.update-date {
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 30px;
}

/* MEDIA */

.update-media {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.update-media img,
.update-media video,
.update-media iframe {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border: none;
}

/* CONTENT */

.update-text {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
}

.update-text p {
    margin-bottom: 18px;
}

.back-updates {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

/* MOBILE */

@media(max-width:768px) {

    .update-single {
        padding: 100px 0 60px;
    }

    .update-single h1 {
        font-size: 28px;
    }

    .update-media img,
    .update-media video,
    .update-media iframe {
        height: 240px;
    }

}

/* ================= RESPONSIVE STRUCTURE ================= */

/* Tablet */
@media (max-width: 1024px) {

    .news-grid,
    .social-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Small Tablet */
@media (max-width: 768px) {

    .updates-hero {
        padding: 95px 0 20px;
    }

    .updates-hero h1 {
        font-size: 24px;
    }

    .updates-hero p {
        font-size: 13px;
    }

    .updates-filter a {
        font-size: 8px;
    }

    .news-grid,
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 480px) {

    .updates-hero h1 {
        font-size: 22px;
    }

    .updates-hero p {
        font-size: 12.5px;
    }

    .news-grid,
    .social-grid {
        grid-template-columns: 1fr;
    }
}