/* ============================================================
   activities.css — 本會活動頁面專屬樣式
   依賴：main.css（activities 使用 banner slider，已在 main.css）
   ============================================================ */

/* ============================================================
   Activities Gallery / Lightbox
   ============================================================ */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active { display: flex; }

.lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

.lightbox-inner img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px; right: 0;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: all 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

/* ============================================================
   Services / Activities Cards Section
   ============================================================ */
.activities-section {
    padding: 100px 20px;
    background: var(--light-color);
}

.activities-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.activity-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 5px;
    background: var(--gradient-2);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.activity-card i {
    font-size: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.activity-card h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.activity-card p { color: #666; line-height: 1.8; }

/* ============================================================
   Photo Gallery（活動相片）
   ============================================================ */
.photo-gallery {
    padding: 100px 20px;
    background: #fff;
}

.photo-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.photo-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.photo-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-item:hover img { transform: scale(1.08); }

.photo-item .photo-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(26, 95, 122, 0.7);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-item:hover .photo-overlay { opacity: 1; }

.photo-item .photo-overlay i {
    font-size: 3rem;
    color: #fff;
}

/* ============================================================
   CTA Section（活動頁版）
   ============================================================ */
.cta-section {
    padding: 100px 20px;
    background: var(--gradient-1);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.cta-section .cta-btn {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.cta-btn-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #25d366;
    color: #fff;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(37,211,102,0.4);
}

.cta-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37,211,102,0.5);
    color: #fff;
}

/* SEO Section（活動頁） */
.seo-section {
    padding: 60px 20px;
    background: var(--light-color);
}

.seo-section .seo-container {
    max-width: 900px;
    margin: 0 auto;
}

.seo-section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.seo-section h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin: 25px 0 15px;
}

.seo-section p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.9;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .activities-grid { grid-template-columns: 1fr; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-btn-large { padding: 15px 30px; font-size: 1rem; }
}

@media (max-width: 480px) {
    .photo-grid { grid-template-columns: 1fr; }
}
