/* ===== MEDIA PAGE ENHANCED STYLES (BLOG STYLE) ===== */

/* Fix Top White Space for Media Page */
body.media-page {
    padding-top: 80px;
    /* Space for fixed header */
}

/* Page Header Styles */
.media-header-section {
    background: linear-gradient(135deg, var(--primary-wine) 0%, var(--primary-purple) 100%);
    padding: 8rem 0 6rem;
    text-align: center;
    color: var(--primary-white) !important;
    position: relative;
    overflow: hidden;
}

.media-header-section::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 100px;
    background: white;
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.media-header-section h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-family: var(--font-display);
    margin-bottom: 1.5rem;
    color: var(--primary-white) !important;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.media-header-section p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.95) !important;
    line-height: 1.6;
}

/* Featured Story Section */
.featured-story-section {
    margin-top: -8rem;
    position: relative;
    z-index: 20;
    padding-bottom: 4rem;
}

.featured-story-container {
    background: white;
    border-radius: 40px;
    padding: 4rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.featured-story-container h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--primary-wine);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.featured-story-container p.lead {
    font-size: 1.2rem;
    color: var(--primary-wine) !important;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.featured-story-container p {
    color: var(--text-secondary) !important;
    line-height: 1.8;
    text-align: justify;
}

.mission-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 25px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Category Filters */
.media-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.filter-btn {
    padding: 0.8rem 1.8rem;
    border-radius: 40px;
    border: 2px solid #eef2f6;
    background: #f8fafc;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
    border-color: var(--primary-wine);
    color: var(--primary-wine);
}

.filter-btn.active {
    background: var(--primary-wine);
    border-color: var(--primary-wine);
    color: white;
    box-shadow: 0 8px 15px rgba(114, 47, 55, 0.3);
}

/* Blog Grid & Cards */
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding-bottom: 4rem;
}

.media-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

.media-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.media-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.media-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.media-card:hover .media-image img {
    transform: scale(1.1);
}

.media-category {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--primary-gold);
    color: var(--primary-wine);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.media-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.media-meta {
    margin-bottom: 1rem;
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.media-meta i {
    color: var(--primary-gold);
    margin-right: 0.4rem;
}

.media-content h3 {
    font-size: 1.4rem;
    color: var(--primary-wine);
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.media-card:hover h3 {
    color: var(--primary-purple);
}

.media-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: justify;
    flex-grow: 1;
}

.read-more {
    font-weight: 700;
    color: var(--primary-wine);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Newsletter Section */
.newsletter-section {
    background: var(--primary-wine);
    padding: 6rem 0;
    color: var(--primary-white);
}

.newsletter-section h2,
.newsletter-section p {
    color: var(--primary-white) !important;
}

/* Mobile Responsiveness */
@media (max-width: 1100px) {
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    body.media-page {
        padding-top: 60px !important;
    }

    .media-header-section {
        padding: 6rem 1.5rem 5rem;
    }

    .featured-story-section {
        margin-top: -5rem;
    }

    .featured-story-container {
        padding: 2.5rem 2rem;
        border-radius: 30px;
    }

    .mission-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 2.5rem;
    }

    .featured-image-wrapper {
        order: -1;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 4rem 1.5rem;
    }
}

/* iPhone SE Specific (Small Screens) */
@media (max-width: 400px) {
    body.media-page {
        padding-top: 45px !important;
    }

    .media-header-section {
        padding: 5rem 1rem 4rem;
    }

    .media-header-section h1 {
        font-size: 2.2rem;
    }

    .media-header-section p {
        font-size: 1rem;
    }

    .featured-story-section {
        margin-top: -4rem;
        padding-bottom: 2rem;
    }

    .featured-story-container {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .featured-story-container h2 {
        font-size: 1.6rem;
    }

    .mission-image {
        height: 250px;
        border-radius: 15px;
    }

    .media-filters {
        gap: 0.5rem;
        margin-bottom: 3rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .media-image {
        height: 200px;
    }

    .media-content {
        padding: 1.5rem;
    }

    .media-content h3 {
        font-size: 1.25rem;
    }

    .media-meta {
        font-size: 0.75rem;
        gap: 0.75rem;
    }

    .newsletter-section {
        padding: 4rem 1rem !important;
    }
}