/* ===================== VARIABLES ===================== */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --bg-light: #f9fafb;
    --bg-lighter: #f3f4f6;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-lighter);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===================== PAGE LAYOUT ===================== */
.ekstrakurikuler-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.ekstrakurikuler-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================== HERO SECTION ===================== */
.ekstrakurikuler-hero {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--bg-white);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    letter-spacing: -0.5px;
}

.hero-title i {
    font-size: 60px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.6;
}

.hero-decoration {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.decoration-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.decoration-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.decoration-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ===================== FILTER SECTION ===================== */
.ekstrakurikuler-filter {
    background: var(--bg-white);
    padding: 40px 20px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--secondary-color), #1d4ed8);
    color: var(--bg-white);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ===================== CONTENT SECTION ===================== */
.ekstrakurikuler-content {
    padding: 60px 20px;
}

/* ===================== GALLERY GRID ===================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-bottom: 60px;
}

/* ===================== GALLERY CARD ===================== */
.gallery-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* ===================== IMAGE WRAPPER ===================== */
.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
    background: var(--bg-light);
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-card:hover .gallery-image {
    transform: scale(1.1);
}

/* ===================== OVERLAY ===================== */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(59, 130, 246, 0.75) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 5;
    padding: 20px;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.overlay-wrapper {
    text-align: center;
    color: var(--bg-white);
    width: 100%;
}

.overlay-badge {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 12px;
    animation: zoomIn 0.4s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.overlay-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.overlay-desc {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 12px;
    line-height: 1.5;
}

.overlay-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
    font-size: 12px;
}

.overlay-info {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
}

.overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}

.overlay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* ===================== CATEGORY BADGE ===================== */
.category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.badge-text {
    display: inline-block;
    background: var(--accent-color);
    color: var(--bg-white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================== CARD CONTENT ===================== */
.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-info {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-info i {
    color: var(--secondary-color);
}

.card-description {
    font-size: 14px;
    color: var(--text-light);
    margin-top: auto;
    line-height: 1.5;
}

/* ===================== EMPTY STATE ===================== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 40px;
    color: var(--text-light);
}

.empty-icon {
    font-size: 100px;
    color: var(--border-color);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 26px;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 700;
}

.empty-state p {
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
}

/* ===================== STATISTICS SECTION ===================== */
.ekstrakurikuler-stats {
    background: var(--bg-white);
    padding: 60px 20px;
    border-radius: 12px;
    margin-bottom: 60px;
    box-shadow: var(--shadow-md);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-light), var(--bg-lighter));
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.1);
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 16px;
    display: block;
}

.stat-card h3 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* ===================== CTA SECTION ===================== */
.ekstrakurikuler-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white);
    padding: 60px 20px;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.ekstrakurikuler-cta h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.ekstrakurikuler-cta p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
        gap: 12px;
    }

    .hero-title i {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .ekstrakurikuler-hero {
        padding: 60px 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .ekstrakurikuler-filter {
        top: 70px;
        padding: 30px 20px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
        gap: 6px;
    }

    .ekstrakurikuler-cta h2 {
        font-size: 28px;
    }

    .ekstrakurikuler-cta p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
        gap: 10px;
    }

    .hero-title i {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .ekstrakurikuler-hero {
        padding: 40px 15px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 8px 14px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .filter-group {
        gap: 8px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .card-title {
        font-size: 16px;
    }

    .card-info {
        font-size: 12px;
    }

    .ekstrakurikuler-content {
        padding: 40px 15px;
    }

    .ekstrakurikuler-stats {
        padding: 40px 15px;
    }

    .stats-container {
        gap: 16px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-icon {
        font-size: 32px;
    }

    .stat-number {
        font-size: 28px;
    }

    .ekstrakurikuler-cta {
        padding: 40px 15px;
    }

    .ekstrakurikuler-cta h2 {
        font-size: 22px;
    }

    .ekstrakurikuler-cta p {
        font-size: 13px;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}