/* Activities Page - Hero Video Section */

.activities-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    background: linear-gradient(135deg, #07162b 0%, #0b2342 45%, #154a7c 100%);
}

@supports (height: 100dvh) {
    .activities-hero {
        min-height: 100dvh;
    }
}

.activities-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.activities-hero__video iframe,
.activities-hero__video video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

/* Ensure video covers full screen on all aspect ratios */
@media (min-aspect-ratio: 16/9) {
    .activities-hero__video iframe,
    .activities-hero__video video {
        width: 100%;
        height: 56.25vw;
        min-height: 100vh;
    }
}

@media (max-aspect-ratio: 16/9) {
    .activities-hero__video iframe,
    .activities-hero__video video {
        width: 177.78vh;
        height: 100%;
        min-width: 100vw;
    }
}

@supports (height: 100dvh) {
    .activities-hero__video iframe,
    .activities-hero__video video {
        min-height: 100dvh;
    }
    
    @media (min-aspect-ratio: 16/9) {
        .activities-hero__video iframe,
        .activities-hero__video video {
            min-height: 100dvh;
        }
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    max-width: var(--hero-text-max-width);
    width: 100%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--hero-gap);
}

.hero-title {
    font-size: var(--hero-title-size);
    font-weight: var(--hero-title-weight);
    line-height: var(--hero-title-line-height);
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: var(--hero-letter-spacing);
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: var(--hero-subtitle-size);
    font-weight: var(--hero-subtitle-weight);
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
    opacity: 0.9;
    line-height: var(--hero-subtitle-line-height);
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

.page-navigation {
    margin-top: clamp(1.25rem, 3vw, 2rem);
    position: relative;
    z-index: 2;
    width: 100%;
}

.nav-grid {
    display: flex;
    gap: clamp(1.25rem, 3vw, 1.75rem);
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 clamp(0.5rem, 2vw, 1.25rem);
    -webkit-overflow-scrolling: touch;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: clamp(1.05rem, 3vw, 1.4rem);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 130px;
    flex: 0 1 170px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nav-icon i {
    font-size: 1.35rem;
    color: white;
}

.nav-text {
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    font-weight: 700;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.nav-item:hover .nav-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.nav-item.active .nav-icon {
    background: rgba(255, 255, 255, 0.3);
}

.nav-item.active .nav-icon i {
    color: #ffffff;
}

.section-title {
    color: #ffffff;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

/* Activity Card Fade-in Animation */
.activity-card {
    opacity: 0;
    transform: translateY(40px);
    animation: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation delays for each card */
.activity-card:nth-child(1) { animation-delay: 0.2s; }
.activity-card:nth-child(2) { animation-delay: 0.45s; }
.activity-card:nth-child(3) { animation-delay: 0.7s; }
.activity-card:nth-child(4) { animation-delay: 0.95s; }
.activity-card:nth-child(5) { animation-delay: 1.2s; }
.activity-card:nth-child(6) { animation-delay: 1.45s; }
.activity-card:nth-child(7) { animation-delay: 1.7s; }
.activity-card:nth-child(8) { animation-delay: 1.95s; }

/* Responsive Design */
@media (max-width: 768px) {
    .activities-hero {
        min-height: 100vh;
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .activities-hero__video iframe,
    .activities-hero__video video {
        width: 100vw;
        height: 100vh;
        min-width: 100%;
        min-height: 100%;
        transform: translate(-50%, -50%) scale(1.05);
        object-fit: cover;
    }

    .hero-content {
        padding: 1.5rem;
        max-width: 95%;
        background: none;
        border-radius: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    
    .hero-title {
        font-size: var(--hero-title-size);
    }
    
    .hero-subtitle {
        font-size: var(--hero-subtitle-size);
        margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
    }
    
    .nav-grid {
        gap: clamp(1rem, 3vw, 1.25rem);
        flex-direction: row;
        align-items: stretch;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 clamp(0.65rem, 3vw, 1rem);
    }
    
    .nav-item {
        height: auto;
        padding: clamp(0.95rem, 3vw, 1.2rem);
        min-width: 130px;
        max-width: none;
        margin: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
    }
    
    .nav-icon {
        width: 40px;
        height: 40px;
    }
    
    .nav-icon i {
        font-size: 1.2rem;
    }
    
    .nav-text {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .activities-section {
        padding: 3rem 0;
    }

    .activity-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 1rem;
        max-width: 95%;
        background: none;
        border-radius: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    
    .hero-title {
        font-size: var(--hero-title-size);
        margin-bottom: 0;
    }
    
    .hero-subtitle {
        font-size: var(--hero-subtitle-size);
        margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
    }
    
    .nav-grid {
        gap: clamp(0.9rem, 3vw, 1.1rem);
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: stretch;
        overflow-x: auto;
        padding: 0 clamp(0.65rem, 4vw, 1rem);
    }
    
    .nav-item {
        height: auto;
        padding: clamp(0.85rem, 3vw, 1.1rem);
        min-width: 130px;
        flex-direction: column;
        gap: 0.65rem;
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        align-items: center;
        box-sizing: border-box;
    }
    
    .nav-icon {
        width: 36px;
        height: 36px;
    }
    
    .nav-icon i {
        font-size: 1.1rem;
    }
    
    .nav-text {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

/* Activities Grid */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
    transition: opacity 0.3s ease;
}

@media (max-width: 1024px) {
    .activities-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }
}

/* Activity Card */
.activity-card {
    position: relative;
    background: linear-gradient(135deg, #14497c 0%, #1a5590 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    padding-top: clamp(2.5rem, 4vw, 3.25rem);
    transition: all 0.3s ease;
    box-shadow: 0 12px 32px rgba(20, 73, 124, 0.35);
    color: #ffffff;
}

.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(20, 73, 124, 0.45);
}

.activity-content {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 1.6vw, 1.1rem);
    min-height: 100%;
}

.activity-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    align-self: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.activity-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-align: center;
    line-height: 1.3;
    min-height: clamp(3.4rem, 6.5vw, 5rem);
}

.activity-date {
    position: absolute;
    top: clamp(0.75rem, 2vw, 1.25rem);
    left: clamp(0.75rem, 2vw, 1.25rem);
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.activity-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-align: center;
    margin-top: clamp(0.6rem, 1.6vw, 1rem);
    flex: 1 1 auto;
}

.activity-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    align-self: center;
    margin-top: clamp(0.6rem, 1.6vw, 1rem);
}

.activity-status.completed {
    background: rgba(76, 175, 80, 0.2);
    color: #a5d6a7;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.activity-status.planned {
    background: rgba(33, 150, 243, 0.2);
    color: #90caf9;
    border: 1px solid rgba(33, 150, 243, 0.4);
}

/* Activities Section */
.activities-section {
    position: relative;
    padding: 4rem 0;
    background: #f4f7fb;
}

.activities-section .container {
    position: relative;
    z-index: 2;
}
