/* Activities Portal Styles */
.activities-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.activity-card {
    display: flex;
    align-items: center;
    padding: 2.5rem 2rem;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    gap: 3rem;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.activity-card:last-child {
    border-bottom: none;
}

.activity-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transform: scaleY(0);
    transition: all 0.3s ease;
}

.activity-card:hover {
    background: var(--theme-btn-hover);
    transform: translateX(10px);
}

.activity-card:hover::after {
    opacity: 1;
    transform: scaleY(1);
}

[data-theme="light"] .activity-card:hover {
    background: rgba(14, 165, 233, 0.04);
}

.activity-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 18px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--glass-shadow);
}

.activity-card:hover .activity-icon {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--glow-primary);
    background: var(--glass-bg);
}

.activity-icon svg {
    width: 100%;
    height: 100%;
}

.activity-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.activity-card:hover .activity-title {
    color: var(--primary-color);
}

.activity-desc {
    font-size: 1.05rem;
    line-height: 1.9;
    margin: 0;
    color: var(--text-muted);
}

.activity-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0.5rem;
    opacity: 0.8;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.activity-card:hover .activity-link {
    opacity: 1;
}

.activity-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.activity-card:hover .activity-link svg {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .activity-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .activity-card:hover {
        transform: translateY(-5px) translateX(0);
        background: var(--theme-btn-hover);
    }

    .activity-icon {
        width: 64px;
        height: 64px;
        padding: 14px;
    }

    .activity-title {
        font-size: 1.3rem;
    }

    .activity-desc {
        font-size: 0.95rem;
    }

    .activity-link {
        opacity: 0.8;
        transform: translateX(0);
    }
}

/* Content Section Box */
.content-section-box {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 4rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-section-box:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .content-section-box:hover {
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.1);
}

/* Adjustments for headings inside boxes */
.content-section-box .content-title {
    margin-top: 0;
    padding-top: 0;
}

.content-section-box .content-title::before,
.content-section-box .content-title::after {
    display: none;
    /* Hide global separators inside boxes */
}

@media (max-width: 768px) {
    .content-section-box {
        padding: 2rem 1.5rem;
        margin-bottom: 2.5rem;
        border-radius: 20px;
    }
}

/* Image Captions */
.image-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.25rem;
    margin-bottom: 2.5rem;
    font-weight: 500;
}