/* ================= ÉVÉNEMENTS SECTION STYLES ================= */

/* ================= COMMON STYLES FOR ALL SECTIONS ================= */
.association-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    position: relative;
    z-index: 2;
}

/* Page Header */
.association-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.association-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.association-header h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, #c8a34d 0%, #d4b15c 100%);
    border-radius: 2px;
}

.association-header p {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Page Subtitle */
.page-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-subtitle::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #c8a34d;
    border-radius: 2px;
}

/* Section Navigation */
.evenement-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.evenement-nav-link {
    background: white;
    padding: 15px 30px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.evenement-nav-link:hover {
    color: #c8a34d;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.evenement-nav-link.active {
    background: linear-gradient(135deg, #c8a34d 0%, #d4b15c 100%);
    color: white;
    border-color: #c8a34d;
}

/* ================= 1. ACTIVITÉS STYLES ================= */
.activites-section {
    background: linear-gradient(135deg, #f9f7f4 0%, #f6f2ee 100%);
    min-height: calc(100vh - 180px);
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.activites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(550px, 1fr));
    gap: 40px;
    margin-top: 40px;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.activite-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(200, 163, 77, 0.1);
    height: 600px;
    display: flex;
    flex-direction: column;
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
    width: 100%;
}

.activite-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(200, 163, 77, 0.3);
}

.activite-image {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.activite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.activite-card:hover .activite-image img {
    transform: scale(1.1);
}

.activite-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(200, 163, 77, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(200, 163, 77, 0.3);
}

.activite-content {
    padding: 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.activite-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.4;
    min-height: 78px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.activite-content p {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.activite-link {
    display: inline-block;
    color: #c8a34d;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
    position: relative;
    padding: 8px 0;
    margin-top: auto;
    cursor: pointer;
}

.activite-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #c8a34d;
    transition: width 0.3s ease;
}

.activite-link:hover {
    color: #b3913a;
    padding-left: 10px;
}

.activite-link:hover::after {
    width: 100%;
}

/* ================= 2. CARTE QSL STYLES ================= */
.carte-qsl-section {
    background: linear-gradient(135deg, #f9f7f4 0%, #f6f2ee 100%);
    min-height: calc(100vh - 180px);
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carte-qsl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 40px;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.carte-qsl-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(200, 163, 77, 0.1);
    height: 450px;
    display: flex;
    flex-direction: column;
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
    width: 100%;
}

.carte-qsl-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(200, 163, 77, 0.3);
}

.carte-qsl-image {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.carte-qsl-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.carte-qsl-card:hover .carte-qsl-image img {
    transform: scale(1.1);
}

.carte-qsl-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.carte-qsl-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.4;
}

.carte-qsl-content p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.carte-qsl-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.carte-qsl-btn {
    display: inline-block;
    background: linear-gradient(135deg, #c8a34d 0%, #d4b15c 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.carte-qsl-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(200, 163, 77, 0.4);
    background: linear-gradient(135deg, #d4b15c 0%, #c8a34d 100%);
}

/* ================= 3. ALBUM PHOTO STYLES - UPDATED ================= */
.album-photo-section {
    background: linear-gradient(135deg, #f9f7f4 0%, #f6f2ee 100%);
    min-height: calc(100vh - 180px);
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.album-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(900px, 1fr)); /* Wider cards */
    gap: 40px;
    margin-top: 40px;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.album-photo-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(200, 163, 77, 0.1);
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
    min-height: 400px;
}

.album-photo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(200, 163, 77, 0.3);
}

.album-photo-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Always 3 columns */
    grid-template-rows: 250px; /* Single row */
    gap: 2px;
    height: 250px; /* Fixed height */
}

.album-photo-images.single-image {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
    height: 250px;
}

.album-photo-images.two-images {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 250px;
    height: 250px;
}

.album-photo-img {
    overflow: hidden;
    height: 100%;
}

.album-photo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.album-photo-img:hover img {
    transform: scale(1.1);
}

/* Make sure all images are visible even when less than 3 */
.album-photo-img:nth-child(1) {
    grid-column: span 1;
}

.album-photo-img:nth-child(2) {
    border-right: 1px solid #f0f0f0;
}

.album-photo-content {
    padding: 30px;
    text-align: center;
}

.album-photo-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.album-photo-count {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #c8a34d;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Album Photo Modal Gallery */
.album-photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.album-photo-modal-img {
    height: 250px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.album-photo-modal-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.album-photo-modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.modal-photo-count {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #c8a34d;
    font-weight: 600;
}

/* ================= 4. ALBUM VIDEO STYLES - ENHANCED ================= */
.album-video-section {
    background: linear-gradient(135deg, #f9f7f4 0%, #f6f2ee 100%);
    min-height: calc(100vh - 180px);
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.album-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 40px;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.album-video-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(200, 163, 77, 0.1);
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
}

.album-video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(200, 163, 77, 0.3);
}

.video-container {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    transition: transform 0.5s ease;
}

.album-video-card:hover .video-container video {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(200, 163, 77, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.play-button:hover {
    transform: scale(1.1);
    background: rgba(200, 163, 77, 1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.album-video-content {
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.album-video-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.3;
}

.video-info {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.video-duration {
    font-weight: 600;
    color: #c8a34d;
}

/* ================= MODAL STYLES (FOR ALL SECTIONS) ================= */
.evenement-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 40px 20px;
    align-items: center;
    justify-content: center;
}

.evenement-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.evenement-modal {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 1200px; /* Wider modal for photo albums */
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    transform: translateY(20px);
    transition: transform 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.evenement-modal-overlay.active .evenement-modal {
    transform: translateY(0);
}

/* Activités Modal */
.activite-modal-image {
    height: 400px;
    overflow: hidden;
    position: relative;
    border-radius: 24px 24px 0 0;
    flex-shrink: 0;
}

.activite-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-date {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(200, 163, 77, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(200, 163, 77, 0.3);
    z-index: 5;
}

.modal-content {
    padding: 40px;
    flex-grow: 1;
    overflow-y: auto;
}

.modal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal-description {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #555;
    line-height: 1.9;
    margin-bottom: 30px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.modal-description p {
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal-description p:last-child {
    margin-bottom: 0;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    margin-top: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666;
}

.modal-author, .modal-category {
    font-weight: 600;
    color: #c8a34d;
}

/* Carte QSL Modal */
.qsl-modal-image {
    height: 500px;
    overflow: hidden;
    position: relative;
    border-radius: 24px 24px 0 0;
}

.qsl-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f8f8;
}

.qsl-modal-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.qsl-download-btn {
    display: inline-block;
    background: linear-gradient(135deg, #c8a34d 0%, #d4b15c 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.qsl-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(200, 163, 77, 0.4);
    background: linear-gradient(135deg, #d4b15c 0%, #c8a34d 100%);
}

/* Album Video Modal */
.video-modal-container {
    padding: 40px;
    flex-grow: 1;
    overflow-y: auto;
}

.video-modal-player {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 30px;
    background: #000;
}

.video-modal-player video {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    max-height: 600px;
    object-fit: contain;
}

.modal-video-info {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #c8a34d;
    font-weight: 600;
}

/* Album Photo Modal */
.album-photo-modal-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 20px;
}

.album-photo-modal-img {
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.album-photo-modal-img:hover {
    transform: scale(1.05);
}

.album-photo-modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* No Content Messages */
.no-content {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.no-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.no-content p {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #666;
}

/* ================= ANIMATIONS ================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animations for grid items */
.activite-card:nth-child(1) { animation-delay: 0.1s; }
.activite-card:nth-child(2) { animation-delay: 0.2s; }
.activite-card:nth-child(3) { animation-delay: 0.3s; }
.activite-card:nth-child(4) { animation-delay: 0.4s; }
.activite-card:nth-child(5) { animation-delay: 0.5s; }
.activite-card:nth-child(6) { animation-delay: 0.6s; }

.carte-qsl-card:nth-child(1) { animation-delay: 0.1s; }
.carte-qsl-card:nth-child(2) { animation-delay: 0.2s; }
.carte-qsl-card:nth-child(3) { animation-delay: 0.3s; }
.carte-qsl-card:nth-child(4) { animation-delay: 0.4s; }

.album-photo-card:nth-child(1) { animation-delay: 0.1s; }
.album-photo-card:nth-child(2) { animation-delay: 0.2s; }
.album-photo-card:nth-child(3) { animation-delay: 0.3s; }
.album-photo-card:nth-child(4) { animation-delay: 0.4s; }

.album-video-card:nth-child(1) { animation-delay: 0.1s; }
.album-video-card:nth-child(2) { animation-delay: 0.2s; }
.album-video-card:nth-child(3) { animation-delay: 0.3s; }
.album-video-card:nth-child(4) { animation-delay: 0.4s; }

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 1200px) {
    .association-container {
        padding: 50px 30px;
    }
    
    .association-header h1 {
        font-size: 46px;
    }
    
    .page-subtitle {
        font-size: 28px;
    }
    
    .activites-grid {
        grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
        gap: 30px;
    }
    
    .carte-qsl-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
    
    .album-photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(700px, 1fr)); /* Adjust for medium screens */
    }
    
    .album-video-grid {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    }
    
    .activite-card {
        height: 580px;
    }
    
    .activite-image {
        height: 330px;
    }
    
    .activite-content h3 {
        font-size: 26px;
        min-height: 72px;
    }
    
    .carte-qsl-card {
        height: 420px;
    }
    
    .carte-qsl-image {
        height: 280px;
    }
    
    .album-photo-images {
        grid-template-rows: 220px; /* Adjust height */
    }
    
    .album-photo-images.single-image,
    .album-photo-images.two-images {
        grid-auto-rows: 220px;
        height: 220px;
    }
    
    .video-container {
        height: 280px;
    }
    
    .modal-content {
        padding: 40px;
    }
    
    .modal-content h2 {
        font-size: 32px;
    }
    
    .activite-modal-image {
        height: 350px;
    }
    
    .qsl-modal-image {
        height: 450px;
    }
    
    .video-modal-player {
        max-height: 500px;
    }
    
    .evenement-modal {
        max-width: 1000px; /* Adjust modal width */
    }
}

@media (max-width: 992px) {
    .association-header h1 {
        font-size: 42px;
    }
    
    .association-header {
        margin-bottom: 30px;
    }
    
    .activites-grid {
        grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    }
    
    .carte-qsl-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .album-photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(600px, 1fr)); /* Adjust for smaller screens */
    }
    
    .album-video-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
    
    .activite-card {
        height: 560px;
    }
    
    .activite-image {
        height: 320px;
    }
    
    .activite-content h3 {
        font-size: 24px;
        min-height: 68px;
    }
    
    .activite-content p {
        font-size: 17px;
    }
    
    .carte-qsl-card {
        height: 400px;
    }
    
    .carte-qsl-image {
        height: 250px;
    }
    
    .carte-qsl-content h3 {
        font-size: 20px;
    }
    
    .album-photo-images {
        grid-template-rows: 200px;
    }
    
    .album-photo-images.single-image {
        grid-auto-rows: 250px;
        height: 250px;
    }
    
    .album-photo-images.two-images {
        grid-auto-rows: 200px;
        height: 200px;
    }
    
    .video-container {
        height: 250px;
    }
    
    .play-button {
        width: 70px;
        height: 70px;
        font-size: 24px;
    }
    
    .activite-modal-image {
        height: 300px;
    }
    
    .modal-content h2 {
        font-size: 28px;
    }
    
    .modal-description {
        font-size: 17px;
    }
    
    .qsl-modal-image {
        height: 400px;
    }
    
    .qsl-modal-content h2 {
        font-size: 24px;
    }
    
    .video-modal-player {
        max-height: 450px;
    }
}

@media (max-width: 768px) {
    .association-container {
        padding: 40px 20px;
    }
    
    .association-header h1 {
        font-size: 36px;
        padding-bottom: 15px;
    }
    
    .association-header p {
        font-size: 18px;
    }
    
    .page-subtitle {
        font-size: 26px;
    }
    
    .evenement-nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .evenement-nav-link {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .activites-grid,
    .carte-qsl-grid,
    .album-photo-grid,
    .album-video-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        width: 100%;
        max-width: 600px;
        padding: 0 15px;
    }
    
    .album-photo-grid {
        max-width: 100%; /* Allow full width on mobile */
    }
    
    .activite-card,
    .carte-qsl-card,
    .album-photo-card,
    .album-video-card {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .activite-card {
        height: 520px;
    }
    
    .activite-image {
        height: 280px;
    }
    
    .activite-content {
        padding: 30px;
    }
    
    .activite-content h3 {
        font-size: 22px;
        min-height: auto;
    }
    
    .carte-qsl-card {
        height: 380px;
    }
    
    .carte-qsl-image {
        height: 230px;
    }
    
    .carte-qsl-content {
        padding: 25px;
    }
    
    .carte-qsl-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .album-photo-images {
        grid-template-rows: 180px;
        grid-template-columns: repeat(3, 1fr); /* Keep 3 columns on mobile */
    }
    
    .album-photo-images.single-image {
        grid-auto-rows: 200px;
        height: 200px;
    }
    
    .album-photo-images.two-images {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        height: 180px;
    }
    
    .video-container {
        height: 220px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    .album-video-content h3 {
        font-size: 22px;
    }
    
    .video-info {
        font-size: 15px;
    }
    
    .evenement-modal {
        width: 95%;
        max-width: 95%;
        max-height: 85vh;
    }
    
    .activite-modal-image {
        height: 250px;
    }
    
    .modal-content {
        padding: 30px;
    }
    
    .modal-content h2 {
        font-size: 24px;
    }
    
    .modal-description {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .video-modal-container {
        padding: 30px;
    }
    
    .video-modal-player {
        max-height: 350px;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .album-photo-modal-images {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .album-photo-modal-img {
        height: 150px;
    }
    
    .album-photo-gallery {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    
    .qsl-modal-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .qsl-modal-image {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .association-header h1 {
        font-size: 32px;
    }
    
    .association-header p {
        font-size: 16px;
    }
    
    .page-subtitle {
        font-size: 24px;
    }
    
    .activite-card {
        height: 480px;
        max-width: 100%;
    }
    
    .activite-content {
        padding: 25px;
    }
    
    .activite-content h3 {
        font-size: 20px;
    }
    
    .activite-content p {
        font-size: 16px;
    }
    
    .activite-image {
        height: 250px;
    }
    
    .carte-qsl-card {
        height: 350px;
        max-width: 100%;
    }
    
    .carte-qsl-content {
        padding: 20px;
    }
    
    .carte-qsl-content h3 {
        font-size: 18px;
    }
    
    .carte-qsl-content p {
        font-size: 14px;
    }
    
    .carte-qsl-image {
        height: 200px;
    }
    
    .album-photo-images {
        grid-template-rows: 150px;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .album-photo-images.single-image {
        grid-auto-rows: 180px;
        height: 180px;
    }
    
    .album-photo-images.two-images {
        grid-auto-rows: 150px;
        height: 150px;
    }
    
    .album-photo-content {
        padding: 20px;
    }
    
    .album-photo-content h3 {
        font-size: 20px;
    }
    
    .album-photo-count {
        font-size: 14px;
    }
    
    .video-container {
        height: 200px;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 18px;
        border-width: 2px;
    }
    
    .album-video-content {
        padding: 20px;
    }
    
    .album-video-content h3 {
        font-size: 20px;
    }
    
    .video-info {
        font-size: 14px;
    }
    
    .activites-grid,
    .carte-qsl-grid,
    .album-photo-grid,
    .album-video-grid {
        padding: 0 10px;
    }
    
    .evenement-modal-overlay {
        padding: 20px 10px;
    }
    
    .activite-modal-image {
        height: 200px;
    }
    
    .modal-content {
        padding: 25px 20px;
    }
    
    .modal-content h2 {
        font-size: 22px;
    }
    
    .modal-description {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .video-modal-container {
        padding: 20px;
    }
    
    .video-modal-player {
        max-height: 250px;
    }
    
    .modal-footer {
        font-size: 13px;
    }
    
    .album-photo-modal-images {
        grid-template-columns: 1fr;
    }
    
    .album-photo-modal-img {
        height: 200px;
    }
    
    .album-photo-gallery {
        grid-template-columns: 1fr;
    }
    
    .qsl-modal-image {
        height: 300px;
    }
}

/* Arabic Support */
.arabic-text {
    font-family: 'Noto Naskh Arabic', 'Amiri', serif;
    text-align: right;
    direction: rtl;
    font-size: 18px;
    line-height: 2;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(200, 163, 77, 0.2);
    border-top-color: #c8a34d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}