/**
 * Styles for Activities Listing & Single Activity Details
 * Modern, responsive, and prominent card image sizes
 */

/* ===================================================
   Activities Listing Page (.activities-grid & .activity-card)
   =================================================== */

.activity-card {
    background: #ffffff;
    border-radius: 18px !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(30, 136, 229, 0.35) !important;
}

/* Card Image Wrapper & Zoom */
.activity-card .card-img-wrapper {
    position: relative;
    height: 280px;
    width: 100%;
    overflow: hidden;
    background: #f1f5f9;
}

.activity-card .activity-img-link {
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    position: relative;
}

.activity-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.3s ease;
}

.activity-card:hover .card-img-top {
    transform: scale(1.08);
}

.activity-card .activity-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activity-card:hover .activity-img-overlay {
    opacity: 1;
}

.activity-card .activity-img-overlay .btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.activity-card:hover .activity-img-overlay .btn {
    transform: translateY(0);
}

/* Type Badge */
.activity-card .activity-type {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.activity-card .activity-type.charity {
    background: linear-gradient(135deg, #e53935, #d32f2f);
}

.activity-card .activity-type.educational {
    background: linear-gradient(135deg, #0288d1, #0277bd);
}

.activity-card .activity-type.other {
    background: linear-gradient(135deg, #757575, #616161);
}

/* Card Body & Clickable Links */
.activity-card .card-body {
    padding: 1.5rem;
}

.activity-card .activity-title-link {
    color: #1e293b;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.5;
    transition: color 0.25s ease;
}

.activity-card:hover .activity-title-link,
.activity-card .activity-title-link:hover {
    color: var(--primary-color, #1e88e5);
}

.activity-card .activity-desc-link {
    color: #64748b;
    font-size: 0.96rem;
    line-height: 1.7;
    transition: color 0.25s ease;
}

.activity-card:hover .activity-desc-link {
    color: #475569;
}

/* Responsive adjustments for cards */
@media (max-width: 992px) {
    .activity-card .card-img-wrapper {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .activity-card .card-img-wrapper {
        height: 220px;
    }
}


/* ===================================================
   Single Activity Details Page (activity.php)
   =================================================== */

.activity-detail-container {
    margin-bottom: 3rem;
}

.activity-hero-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.09);
    background: #f1f5f9;
    margin-bottom: 2.5rem;
}

.activity-detail-hero {
    width: 100%;
    height: 540px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

@media (max-width: 992px) {
    .activity-detail-hero {
        height: 420px;
    }
}

@media (max-width: 576px) {
    .activity-detail-hero {
        height: 280px;
    }
}

.activity-detail-title {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.4;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .activity-detail-title {
        font-size: 1.7rem;
    }
}

.activity-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.activity-meta-badge {
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.92rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

/* Activity Content Box */
.activity-content-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
    font-size: 1.12rem;
    line-height: 2;
    color: #334155;
    margin-bottom: 3rem;
}

.activity-content-box p {
    margin-bottom: 1.5rem;
}

.activity-content-box img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 1.5rem 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

/* Gallery Section */
.activity-gallery-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.activity-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 3rem;
}

.activity-gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 240px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.35s ease;
}

.activity-gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

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

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