/* ========================================
   Media Page Specific Styles - Enhanced
   ======================================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: var(--secondary-white);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path fill="%231a7a4f" d="M0 0v46.29c47.79 22.2 103.59 32.17 158 28 70.36-5.37 136.33-33.31 206.8-37.5 73.84-4.36 147.54 16.88 218.2 35.26 69.27 18 138.3 24.88 209.4 13.08 36.15-6 69.85-17.84 104.45-29.34C989.49 25 1113-14.29 1200 52.47V0z" opacity=".25"/></svg>');
    background-size: cover;
    opacity: 0.3;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-breadcrumb {
    font-size: 1rem;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.page-breadcrumb a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Media Gallery Section */
.media-gallery-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--secondary-white);
}

.media-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

/* Media Card */
.media-card {
    background-color: var(--secondary-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.media-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Image Wrapper */
.media-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 Aspect Ratio */
    overflow: hidden;
    background-color: #f0f0f0;
}

.media-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-slow);
}

.media-card:hover .media-image {
    transform: scale(1.1);
}

/* Overlay */
.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(22, 94, 63, 0.9) 100%);
    opacity: 0;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-card:hover .media-overlay {
    opacity: 1;
}

.media-overlay-content {
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.media-card:hover .media-overlay-content {
    transform: translateY(0);
}

.media-icon {
    color: var(--accent-color);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Media Content */
.media-content {
    padding: var(--spacing-lg);
    text-align: center;
}

.media-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.5px;
}

.media-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

/* Media Button */
.media-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 12px 28px;
    background-color: var(--primary-green);
    color: var(--secondary-white);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.media-btn:hover {
    background-color: var(--accent-color);
    color: var(--text-primary);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.btn-arrow {
    transition: var(--transition-normal);
}

.media-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Animation Delays */
.animate-fade-in {
    animation-delay: 0s;
}

.animate-fade-in-delay {
    animation-delay: 0.1s;
}

.animate-fade-in-delay-2 {
    animation-delay: 0.2s;
}

.animate-fade-in-delay-3 {
    animation-delay: 0.3s;
}

.animate-fade-in-delay-4 {
    animation-delay: 0.4s;
}

.animate-fade-in-delay-5 {
    animation-delay: 0.5s;
}

/* Responsive */
@media (min-width: 768px) {
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .page-title {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .media-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .page-title {
        font-size: 4.5rem;
    }
}

@media (max-width: 767px) {
    .media-image-wrapper {
        padding-top: 75%; /* 4:3 for mobile */
    }
}