/* activities.html — page-specific styles */

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.activity-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

.activity-card .btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
    box-sizing: border-box;
    gap: 8px;
}

.activity-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #eee;
    margin-bottom: 1rem;
    border-radius: 8px;
}

/* News Section */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-info {
    padding: 1.5rem;
}

.news-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-excerpt {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Membership Form */

.membership-form {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Prompt', sans-serif;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(62, 123, 39, 0.12);
}

.checkbox-group {
    margin: 1.5rem 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

/* Event Badges */

.event-date {
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.event-status {
    background: var(--primary-light);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    display: inline-block;
    margin-left: 0.5rem;
}

/* Gallery Slider */

.gallery-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-slider-container {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-slider-container::-webkit-scrollbar {
    display: none;
}

.gallery-slider-track {
    display: grid;
    grid-template-rows: repeat(4, 200px);
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (15px * 4)) / 5);
    gap: 15px;
    padding: 10px 0;
}

.gallery-slide {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.gallery-slide:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(47, 128, 2, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-slide:hover .gallery-overlay {
    opacity: 1;
}

.zoom-icon {
    display: none;
    color: #fff;
    font-size: 2rem;
    font-style: normal;
}

.slider-nav {
    background: #ffffff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.slider-nav:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.slider-progress-container {
    width: 200px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    margin: 2rem auto 0;
    border-radius: 2px;
    overflow: hidden;
}

.slider-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

/* Lightbox */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    transition: all 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-light);
}

@media (max-width: 1024px) {
    .gallery-slider-track {
        grid-template-rows: repeat(4, 180px);
        grid-auto-columns: calc((100% - (15px * 2)) / 3);
    }
}

@media (max-width: 768px) {
    .gallery-slider-track {
        grid-template-rows: repeat(4, 150px);
        grid-auto-columns: calc((100% - (10px * 1)) / 2);
        gap: 10px;
    }

    .gallery-slide {
        width: 100%;
    }
}
