/* ============================================
   PREMIUM MEDIA CENTRE SECTION
============================================ */

.media-section {
    padding: var(--section-padding) 0;
    background: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Tabs */
.media-tabs-wrapper {
    display: inline-flex;
    background: var(--white);
    padding: 8px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05), inset 0 2px 4px rgba(0, 0, 0, 0.02);
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.media-pill {
    padding: 10px 24px;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
}

.media-pill:hover {
    color: var(--primary-blue);
}

.media-pill.active {
    background: linear-gradient(135deg, #00a7e1 0%, #00d4aa 100%);
    color: var(--white) !important;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(0, 167, 225, 0.3);
    transform: translateY(-2px);
}

/* Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Media Card */
.media-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.media-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Cover Image Area */
.media-cover {
    height: 180px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    /* Default Fallback */
}

/* Specific gradients for variety if image missing */
.media-card:nth-child(1) .media-cover {
    background-image: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
}

.media-card:nth-child(2) .media-cover {
    background-image: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
}

.media-card:nth-child(3) .media-cover {
    background-image: linear-gradient(120deg, #fccb90 0%, #d57eeb 100%);
}

.media-card:nth-child(4) .media-cover {
    background-image: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
}

.cover-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.cover-bg--mint {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.25)),
        linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
}

.cover-bg--blue {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.25)),
        linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
}

.cover-bg--sunset {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.25)),
        linear-gradient(120deg, #fccb90 0%, #d57eeb 100%);
}

.cover-bg--violet {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.25)),
        linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
}

.media-card:hover .cover-bg {
    transform: scale(1.1);
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0.6;
}

/* Date Tag */
.date-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--white);
    padding: 6px 12px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    min-width: 50px;
    z-index: 2;
}

.date-tag .d-day {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-dark-blue);
    line-height: 1;
}

.date-tag .d-month {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    color: var(--gray-500);
    font-weight: 600;
    margin-top: 2px;
}

/* Colored borders for tags */
.date-tag.red {
    border-bottom: 2px solid #ff6b6b;
}

.date-tag.blue {
    border-bottom: 2px solid #4facfe;
}

.date-tag.orange {
    border-bottom: 2px solid #f7941d;
}

/* Body */
.media-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.media-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.media-card:hover .media-body h3 {
    color: var(--primary-blue);
}

.media-body p {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.media-link {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    transition: var(--transition-fast);
}

.media-link:hover {
    gap: 10px;
    letter-spacing: 0.5px;
}

.btn-view-all {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 60px;
    /* Force spacing */
}

.btn-view-all:hover {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 167, 225, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
    .media-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .media-grid {
        grid-template-columns: 1fr;
    }

    .media-tabs-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .media-pill {
        text-align: center;
    }
}