/* ========== General Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #e8f4f8;
    --accent-color: #ff6b35;
    --dark-gray: #333;
    --light-gray: #f5f5f5;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* ensure content sits below the sticky navbar */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    background-color: #fff;
}

main {
    padding-top: 70px; /* space for fixed navbar */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Navigation ========== */
.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    margin-left: 1rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: transform 0.3s ease, background 0.3s ease;
}
.nav-toggle:hover {
    background: rgba(255,255,255,0.35);
}
.nav-toggle.open {
    transform: rotate(90deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap; /* allow items to wrap instead of overflowing */
}

.nav-link {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* ========== Language Dropdown ========== */

/* responsive navigation adjustments */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .nav-menu {
        display: none; /* hidden until toggled */
        flex-direction: column;
        gap: 0;
        background-color: var(--primary-color);
        width: 100%;
    }
    .nav-menu.open {
        display: flex;
    }
    .nav-link {
        padding: 0.75rem 1rem;
        width: 100%;
    }
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }
}
.nav-language {
    position: relative;
}

.language-dropdown {
    position: relative;
}

.lang-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    font-size: 1rem;
}

.lang-btn:hover {
    color: var(--accent-color);
}

.language-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 1000;
    margin-top: 0.5rem;
}

.language-dropdown:hover .language-menu {
    display: block;
}

.lang-option {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--dark-gray);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid #f0f0f0;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.lang-option.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

/* ========== Hero Section ========== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a5c 100%);
    color: white;
    padding: 100px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    animation: fadeInUp 1s ease;
}

.hero-image img {
    max-width: 240px;
    width: 100%;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.6);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-image {
        margin-bottom: 1.5rem;
    }
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.8;
}

.hero-text {
    max-width: 700px;
    margin: 0 auto;
}

/* ========== Buttons ========== */
.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* ========== Quick Info Section ========== */
.quick-info {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.quick-info h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.info-card a:hover {
    text-decoration: underline;
}

/* ========== Highlights Section ========== */
.highlights {
    padding: 80px 0;
    background-color: white;
}

.highlights h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.highlight-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a5c 100%);
    color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.highlight-card:hover {
    transform: scale(1.05);
}

.highlight-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.highlight-card p {
    font-size: 1rem;
}

/* ========== CTA Section ========== */
.cta-section {
    background-color: var(--accent-color);
    color: white;
    padding: 80px 0;
    text-align: center;
}

/* ========== Project Page ========== */
.project-hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #0b2b5a 0%, #062748 70%, #0e5089 100%);
    color: white;
}

.project-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 3rem;
}

.project-hero-text {
    max-width: 560px;
}

.project-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.project-hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    line-height: 1.1;
}

.project-hero-description {
    font-size: 1.1rem;
    max-width: 580px;
    margin-bottom: 1.75rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
}

.project-hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.project-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.stat-item {
    background: rgba(255,255,255,0.1);
    padding: 1.4rem 1.6rem;
    border-radius: var(--border-radius);
    min-width: 140px;
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255,255,255,0.18);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00f0b8;
}

.stat-label {
    font-size: 0.9rem;
    margin-top: 0.35rem;
    color: rgba(255,255,255,0.9);
}

.project-hero-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.project-showcase {
    padding: 80px 0;
    background: #f6f8fb;
}

.project-showcase-header {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.project-showcase-header h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-showcase-header p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.project-showcase-frame {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.project-showcase-frame iframe {
    width: 100%;
    height: 650px;
    border: none;
}

@media (max-width: 960px) {
    .project-hero-grid {
        grid-template-columns: 1fr;
    }

    .project-hero {
        padding: 60px 0 50px;
    }

    .project-hero-title {
        font-size: 2.6rem;
    }
}

/* Project list */
.section-title {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: #00f0b8;
    text-align: center;
}

.project-list {
    padding: 90px 0;
    background: #0b2144;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.project-card-image {
    height: 170px;
    background-size: cover;
    background-position: center;
}

.project-card-body {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex-grow: 1;
}

.project-card-title {
    font-size: 1.5rem;
    margin: 0;
    color: white;
}

.project-card-subtitle {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

.project-card-category {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    background: rgba(0,240,184,0.16);
    color: #00f0b8;
    margin-bottom: 0.6rem;
}

.project-card-desc {
    flex-grow: 1;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.74);
    line-height: 1.5;
}

.project-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    background: rgba(0,240,184,0.18);
    color: #00f0b8;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-card .btn-secondary {
    margin-top: 0.75rem;
    align-self: flex-start;
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    color: white;
}

.project-card .btn-secondary:hover {
    background: rgba(255,255,255,0.18);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ========== Page Header ========== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a5c 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.kegiatan {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.kegiatan-grid {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.kegiatan-text {
    flex: 1 1 350px;
}

.kegiatan-image {
    flex: 1 1 350px;
}

.kegiatan-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ========== Timeline (Experiences) ========== */
.experiences {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 52%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 52%;
    margin-right: 0;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--primary-color);
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.experience-header {
    margin-bottom: 1rem;
}

.experience-header h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.company-badge {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 1rem;
}

.period {
    display: inline-block;
    color: #999;
    font-style: italic;
    font-size: 0.95rem;
}

.experience-desc {
    margin-bottom: 1rem;
    color: #666;
}

.achievements {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--secondary-color);
}

.achievements h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.achievements ul {
    margin-left: 2rem;
    color: #666;
}

.achievements li {
    margin-bottom: 0.5rem;
}

/* ========== Education ========== */
.education {
    padding: 60px 0;
}

.education-timeline {
    display: grid;
    gap: 2rem;
}

.education-item {
    display: flex;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.edu-icon {
    font-size: 3rem;
    min-width: 60px;
    text-align: center;
}

.edu-content h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.school {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.period {
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
}

.details {
    color: #666;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.thesis {
    color: #666;
    margin-top: 1rem;
    font-size: 0.95rem;
    font-style: italic;
}

/* ========== Skills ========== */
.skills-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.skills-category {
    margin-bottom: 4rem;
}

.skills-category h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-header h4 {
    color: var(--primary-color);
    margin: 0;
}

.skill-level {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.skill-bar {
    background-color: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
    width: var(--skill-level, 0%);
}

/* ========== Certifications ========== */
.certifications {
    padding: 60px 0;
    background-color: white;
}

.cert-list {
    display: grid;
    /* allow cards to shrink on small screens */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

/* mobile-specific overrides */
@media (max-width: 600px) {
    .cert-list {
        grid-template-columns: 1fr;
    }
    .cert-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .cert-icon {
        margin-bottom: 0.5rem;
    }
}

.cert-item {
    display: flex;
    gap: 1.5rem;
    background: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.cert-item:hover {
    background-color: var(--secondary-color);
    transform: translateX(5px);
}

.cert-item.cert-link {
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

.cert-item.cert-link:hover {
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.2);
}

.cert-icon {
    color: var(--accent-color);
    font-size: 2rem;
    font-weight: bold;
    min-width: 40px;
}

.cert-details {
    flex: 1;
    position: relative;
}

.cert-details h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1rem;
}

.cert-item.cert-link .cert-details h3 {
    transition: var(--transition);
}

.cert-item.cert-link:hover .cert-details h3 {
    color: var(--accent-color);
}

.cert-link-icon {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.9rem;
    opacity: 0;
    transition: var(--transition);
}

.cert-item.cert-link:hover .cert-link-icon {
    opacity: 1;
}

/* ========== Certification Viewer ========== */
.cert-view {
    padding: 60px 0;
}

/* ========== Responsive Adjustments for Smaller Screens ========== */
@media (max-width: 768px) {
    /* Hero text scales down */
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.4rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    /* Quick info grid collapses */
    .info-grid {
        grid-template-columns: 1fr;
    }
    /* Timeline items full width and simpler layout */
    .timeline::before {
        left: 8px;
    }
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin: 0 0 3rem 0;
        text-align: left;
    }
    .timeline-content {
        padding: 1.5rem;
    }
    .timeline-marker {
        left: 0;
    }
    /* Footer adjust */
    .footer .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
}

.cert-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.cert-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========== Footer ========== */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 0;
}

.footer p {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-marker {
        left: 30px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 70px;
        margin-right: 0;
        text-align: left;
    }

    .education-item {
        flex-direction: column;
        align-items: center;
    }

    .edu-icon {
        font-size: 2rem;
    }

    .edu-content {
        text-align: center;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .kegiatan-grid {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        gap: 0.5rem;
        font-size: 0.8rem;
    }
}

/* ========== Activities ========== */
.activities {
    padding: 60px 0;
    background-color: white;
}

.activity-category {
    margin-bottom: 3rem;
}

.activity-category-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid rgba(0,0,0,0.1);
    padding-bottom: 0.5rem;
}

.activity-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.activity-item {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.activity-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
    max-height: 260px;
    border-radius: var(--border-radius);
    aspect-ratio: 4 / 3; /* keep cards consistent regardless of image orientation */
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide {
    width: 100%;
    height: 100%;
}

.slide.hidden {
    display: none;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.slide-btn:hover {
    background: rgba(0, 0, 0, 0.55);
}

.slide-btn.prev {
    left: 0.5rem;
}

.slide-btn.next {
    right: 0.5rem;
}

.slide-indicators {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: background 0.2s ease;
}

.indicator.active {
    background: rgba(255, 255, 255, 0.95);
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: zoom-in;
    transition: transform 0.2s ease;
}
.activity-image img:hover {
    transform: scale(1.02);
}
.activity-details h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.2rem;
}

.activity-details p {
    color: var(--text-color);
    margin: 0.5rem 0 0 0;
}

/* ========== Image Lightbox (click-to-zoom) ========== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: 2000;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    width: min(95vw, 1300px);
    height: min(95vh, 850px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 0 20px rgba(0,0,0,0.35);
    background: #000;
}

.lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    background: black;
}

.lightbox-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.85);
}

/* Mobile overrides for activities */
@media (max-width: 600px) {
    .activity-list {
        grid-template-columns: 1fr;
    }
}
