﻿/* =========================================
   CO-CURRICULAR PAGE STYLING
   ========================================= */

.activities-page {
    min-height: 100vh;
    background: #f8fafc; /* Light premium background */
    padding-top: 0;
}

/* =========================================
   PAGE TITLE SECTION (Exact Match)
   ========================================= */
.page-title-section {
    background: #000000;
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

    .page-title-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
        animation: patternMove 20s ease-in-out infinite;
    }

@keyframes patternMove {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 20px);
    }
}

.page-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    animation: titleFadeIn 1s ease-out;
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   CATEGORY TABS (Standardized)
   ========================================= */
.category-tabs-wrapper {
    background: #fff;
    padding: 15px 0;
    position: sticky;
    top: 70px; /* Below Navbar */
    z-index: 90;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.tabs-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.category-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding: 0 50px;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

    .category-tabs::-webkit-scrollbar {
        display: none;
    }

.tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    background: #fff;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px; /* Pill Shape */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

    .tab-btn:hover {
        border-color: #cbd5e1;
        color: #334155;
        transform: translateY(-1px);
    }

    .tab-btn.active {
        background: #000;
        color: #fff;
        border-color: #000;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

/* Scroll Arrows */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s ease;
}

    .scroll-btn:hover {
        background: #f8fafc;
    }

.left-btn {
    left: 0;
}

.right-btn {
    right: 0;
}

.scroll-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* =========================================
   ACTIVITY GRID
   ========================================= */
.activities-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.activity-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

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

.activity-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.activity-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.activity-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.activity-date {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.activity-content h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.activity-content p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .page-title {
        font-size: 2.5rem;
    }

    .page-title-section {
        padding: 100px 20px 60px;
    }

    .scroll-btn {
        display: none;
    }

    .category-tabs {
        padding: 0 20px;
    }

    .activity-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .page-title {
        font-size: 2rem;
    }

    .activities-container {
        padding: 40px 20px;
    }
}
