/* Media Gallery Page Styles - Extension of base styles.css */

/* Media Hero Section */
.media-hero-section {
    background: #178a63;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.media-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(61, 155, 124, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(245, 176, 65, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.media-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.media-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.media-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.media-hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto;
}

/* Media Filter Section */
.media-filter-section {
    background: #0A0E27;
    padding: 3rem 2rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-wrapper {
    max-width: 100%;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
    letter-spacing: -0.01em;
}

.filter-count {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.count-number {
    font-size: 2rem;
    font-weight: 800;
    color: #10B981;
    letter-spacing: -0.02em;
}

.count-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--text-white);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-color: #10B981;
    color: white;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* Media Gallery Section */
.media-gallery-section {
    background: #0A0E27;
    padding: 3rem 2rem 5rem;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.media-item {
    transition: opacity 0.3s ease;
}

.media-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.media-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.media-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
    background: #000;
}

.media-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.media-card:hover .media-thumbnail img {
    transform: scale(1.05);
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-card:hover .media-overlay {
    opacity: 1;
}

.play-btn,
.view-btn {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.play-btn:hover,
.view-btn:hover {
    transform: scale(1.1);
    background: white;
}

.play-btn svg,
.view-btn svg {
    width: 28px;
    height: 28px;
    fill: #0A0E27;
}

.play-btn svg {
    margin-left: 3px; /* Optical alignment for play icon */
}

.media-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.media-badge svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.video-badge {
    background: rgba(239, 68, 68, 0.9);
}

.infographic-badge {
    background: rgba(16, 185, 129, 0.9);
}

.cartoon-badge {
    background: rgba(245, 176, 65, 0.9);
}

.photo-badge {
    background: rgba(59, 130, 246, 0.9);
}

.media-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.media-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.media-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.media-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex: 1;
}

.media-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.media-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.media-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

.action-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--text-secondary);
    transition: fill 0.3s ease;
}

.action-btn:hover svg {
    fill: #10B981;
}

/* Load More Button */
.load-more-wrapper {
    text-align: center;
}

.load-more-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 2.5rem;
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.load-more-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.load-more-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.load-more-btn:hover svg {
    transform: translateY(3px);
}

/* Featured Collection Section */
.featured-collection-section {
    background: linear-gradient(135deg, #0A0E27 0%, #1A1F3A 100%);
    padding: 5rem 2rem;
}

.collection-header {
    text-align: center;
    margin-bottom: 3rem;
}

.collection-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.collection-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.collection-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
}

.collection-card.large-card {
    grid-column: 1 / -1;
    flex-direction: row;
}

.collection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F5B041 0%, #F59E0B 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.collection-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(245, 176, 65, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.collection-card:hover::before {
    transform: scaleX(1);
}

.collection-image {
    position: relative;
    width: 100%;
    padding-bottom: 60%;
    overflow: hidden;
    background: #000;
}

.large-card .collection-image {
    width: 50%;
    padding-bottom: 0;
    min-height: 300px;
}

.collection-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection-card:hover .collection-image img {
    transform: scale(1.05);
}

.collection-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.large-card .collection-content {
    justify-content: center;
}

.collection-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #F5B041;
    background: rgba(245, 176, 65, 0.1);
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.collection-name {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.collection-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Media Detail Modal */
.media-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.modal-container {
    position: relative;
    max-width: 1400px;
    width: 100%;
    max-height: 90vh;
    background: rgba(26, 31, 58, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.9);
    border-color: rgba(239, 68, 68, 0.5);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.modal-content {
    display: flex;
    height: 90vh;
    max-height: 800px;
}

.modal-media-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    padding: 2rem;
    overflow: hidden;
}

.modal-media {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.modal-video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
}

.modal-details {
    width: 420px;
    background: rgba(10, 14, 39, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-category-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.3;
    margin: 0;
}

.modal-body {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.detail-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.detail-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.detail-tag:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10B981;
}

.metadata-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.metadata-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.metadata-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.metadata-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-white);
}

.modal-actions {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
}

.modal-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.download-btn {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
}

.share-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.modal-action-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Modal Responsive Design */
@media (max-width: 1024px) {
    .modal-content {
        flex-direction: column;
        height: auto;
        max-height: 90vh;
    }

    .modal-media-wrapper {
        height: 50vh;
        min-height: 300px;
    }

    .modal-details {
        width: 100%;
        max-height: 40vh;
    }
}

@media (max-width: 768px) {
    .media-detail-modal {
        padding: 0;
    }

    .modal-container {
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }

    .modal-content {
        max-height: 100vh;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }

    .modal-header,
    .modal-body,
    .modal-actions {
        padding: 1.5rem;
    }

    .modal-actions {
        flex-direction: column;
    }
}

/* Community Impact Section */
.community-impact-section {
    background: #0A0E27;
    padding: 5rem 2rem;
}

/* Newsletter Section within CTA */
.newsletter-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-content {
    text-align: center;
    margin-bottom: 2rem;
}

.newsletter-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.newsletter-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.newsletter-form {
    max-width: 100%;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-btn {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
}

.newsletter-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.newsletter-privacy {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}

@media (max-width: 768px) {
    .newsletter-section {
        margin-top: 3rem;
        padding-top: 2rem;
    }

    .form-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .newsletter-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Community Impact Section */
.community-impact-section {
    background: #0A0E27;
    padding: 5rem 2rem;
}

.impact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.impact-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.impact-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.impact-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.impact-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.impact-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.impact-stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.stat-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.stat-icon-wrapper svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #10B981 0%, #3D9B7C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.impact-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10B981 0%, #059669 100%);
    border-radius: 20px 20px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-quote {
    margin-bottom: 1.5rem;
}

.testimonial-quote svg {
    width: 40px;
    height: 40px;
    fill: rgba(16, 185, 129, 0.3);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
}

.author-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.author-location {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Responsive Design for Community Impact Section */
@media (max-width: 1200px) {
    .impact-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-testimonials {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .community-impact-section {
        padding: 3rem 1.5rem;
    }

    .impact-header {
        margin-bottom: 3rem;
    }

    .impact-stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .impact-stat-card {
        padding: 2rem 1.5rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .impact-testimonials {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 2rem;
    }
}

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

    .collection-grid {
        grid-template-columns: 1fr;
    }

    .large-card .collection-image {
        width: 100%;
        padding-bottom: 60%;
        min-height: auto;
    }

    .collection-card.large-card {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .media-hero-section {
        padding: 4rem 1.5rem 3rem;
    }

    .media-hero-title {
        font-size: 2rem;
    }

    .media-hero-description {
        font-size: 1.1rem;
    }

    .media-filter-section {
        padding: 2rem 1.5rem 1.5rem;
    }

    .filter-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-buttons {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .media-gallery-section {
        padding: 2rem 1.5rem 3rem;
    }

    .media-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .featured-collection-section {
        padding: 3rem 1.5rem;
    }

    .collection-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .media-eyebrow {
        font-size: 0.75rem;
        padding: 0.375rem 1rem;
    }

    .count-number {
        font-size: 1.5rem;
    }

    .filter-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .filter-btn svg {
        width: 18px;
        height: 18px;
    }

    .media-content {
        padding: 1.25rem;
    }

    .media-title {
        font-size: 1.1rem;
    }

    .play-btn,
    .view-btn {
        width: 56px;
        height: 56px;
    }

    .play-btn svg,
    .view-btn svg {
        width: 24px;
        height: 24px;
    }

    .load-more-btn {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }

    .collection-content {
        padding: 1.5rem;
    }
}

/* Filter Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.media-item {
    animation: fadeIn 0.4s ease-out;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar for Filter Buttons on Mobile */
.filter-buttons::-webkit-scrollbar {
    height: 4px;
}

.filter-buttons::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.filter-buttons::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.5);
    border-radius: 2px;
}

.filter-buttons::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.7);
}
