/* ========================================
   Activities Page Specific Styles - Fixed Image Display
   ======================================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: var(--secondary-white);
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path fill="%231a7a4f" d="M0 0v46.29c47.79 22.2 103.59 32.17 158 28 70.36-5.37 136.33-33.31 206.8-37.5 73.84-4.36 147.54 16.88 218.2 35.26 69.27 18 138.3 24.88 209.4 13.08 36.15-6 69.85-17.84 104.45-29.34C989.49 25 1113-14.29 1200 52.47V0z" opacity=".25"/></svg>');
    background-size: cover;
    opacity: 0.3;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-breadcrumb {
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.page-breadcrumb a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Main Activities Section - Fixed Image Aspect Ratio */
.main-activities-section {
    padding: var(--spacing-lg) 0;
}

.activities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    max-width: 1100px;
    margin: 0 auto;
}

.activity-card {
    background-color: var(--secondary-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.activity-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background-color: #f0f0f0;
}

.activity-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-slow);
}

.activity-card:hover .activity-image {
    transform: scale(1.05);
}

.activity-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.activity-content {
    padding: var(--spacing-lg);
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.activity-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.5px;
}

.activity-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.activity-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 12px 28px;
    background-color: var(--primary-green);
    color: var(--secondary-white);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    align-self: center;
}

.activity-btn:hover {
    background-color: var(--accent-color);
    color: var(--text-primary);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.btn-icon {
    transition: var(--transition-normal);
}

.activity-btn:hover .btn-icon {
    transform: translateX(3px);
}

/* Services Section - Compact Grid */
.services-section {
    padding: var(--spacing-lg) 0;
}

.services-header {
    margin-bottom: var(--spacing-md);
}

.services-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: var(--spacing-sm);
}

.services-content {
    max-width: 1000px;
    margin: 0 auto;
}

.services-grid-compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xs);
}

.service-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background-color: var(--secondary-white);
    border-radius: 8px;
    transition: var(--transition-normal);
    border-left: 3px solid transparent;
}

.service-item:hover {
    background-color: var(--bg-light);
    border-left-color: var(--primary-green);
    transform: translateX(5px);
}

.service-icon {
    flex-shrink: 0;
    color: var(--primary-green);
}

.service-item span {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Partners Section */
.partners-section {
    padding: var(--spacing-lg) 0;
}

/* Responsive */
@media (min-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
        gap: var(--spacing-md);
    }
    
    .activity-image-wrapper {
        padding-top: 60%; /* Adjusted for better display on tablets */
    }
    
    .services-grid-compact {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }
    
    .page-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .page-title {
        font-size: 3.5rem;
    }
    
    .activity-image-wrapper {
        padding-top: 56.25%; /* Back to 16:9 for desktop */
    }
    
    .services-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Fix for very wide images */
@media (min-width: 1200px) {
    .activities-grid {
        max-width: 1100px;
    }
}