/* Tahapan Kegiatan */
#tahapan-kegiatan .gallery-img {
    cursor: pointer;
    transition: transform 0.3s ease;
}
#tahapan-kegiatan .gallery-img:hover {
    transform: scale(1.05);
}
#tahapan-kegiatan .modal-content img {
    max-height: 80vh;
    margin: auto;
}
/* Riwayat Training  */
#history-training .container, #layanan-populer .container {
    max-width: 1200px;
    margin-top: 40px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
}
#history-training h1, #tahun-berjalan h1, #tahapan-daftar h1, #pelatihan-populer h1, #total-alumni h1{
    color: #33B0C7;
    font-weight: 600;
    /* text-align: center; */
    margin-bottom: 30px;
    font-size: 38px;
}
#history-training .nav-pills .nav-link {
    cursor: pointer;
    color: #2c3e50;
    background-color: #e9ecef;
    margin-bottom: 10px;
    border-radius: 10px;
    padding: 15px 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}
#history-training .nav-pills .nav-link:hover {
    background-color: #d1e7ff;
    transform: translateX(5px);
}
#history-training .nav-pills .nav-link.active {
    background-color: #33B0C7;
    color: white;
    box-shadow: 0 2px 10px rgba(13, 110, 253, 0.3);
}
#history-training .tab-content {
    min-height: 300px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #dee2e6;
}
/* tahun berjalan */
#tahun-berjalan .swiper {
    width: 100%;
    padding-top: 30px;
    padding-bottom: 50px;
}

#tahun-berjalan .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 90%;
    max-width: 1200px;
    transition: transform 0.3s ease;
    filter: brightness(0.7);
    height: auto; /* Allow height to be determined by content */
    display: flex;
    align-items: center;
    justify-content: center;
}

#tahun-berjalan .swiper-slide-active {
    filter: brightness(1);
    transform: scale(1.05);
}

#tahun-berjalan .image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#tahun-berjalan .schedule-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh; /* Limit height to prevent overly tall images */
    object-fit: contain; /* Maintain aspect ratio */
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

#tahun-berjalan .thumbnail-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

#tahun-berjalan .thumbnail {
    width: 120px;
    height: 70px;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    object-fit: cover;
    border: 2px solid transparent;
}

#tahun-berjalan .thumbnail.active {
    opacity: 1;
    border-color: #3b82f6;
    transform: scale(1.1);
}

#tahun-berjalan .thumbnail:hover {
    opacity: 0.9;
}

#tahun-berjalan .fullscreen-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#tahun-berjalan .fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

#tahun-berjalan .close-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}

#tahun-berjalan .zoom-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

#tahun-berjalan .zoom-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

#tahun-berjalan .zoom-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

#tahun-berjalan .custom-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    pointer-events: none;
}

#tahun-berjalan .nav-btn {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    pointer-events: auto;
}

#tahun-berjalan .nav-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

#tahun-berjalan .nav-btn i {
    color: #3b82f6;
    font-size: 20px;
}

/* Grid view styles */
#tahun-berjalan .grid-view-image {
    width: 100%;
    height: 300px; /* Fixed height for grid view */
    object-fit: cover; /* Cover to ensure consistent appearance */
    border-radius: 8px;
    transition: transform 0.3s ease;
}

#tahun-berjalan .grid-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Loading spinner */
#tahun-berjalan .loading-spinner {
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 5px solid #3b82f6;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -25px;
    margin-left: -25px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#tahun-berjalan .image-wrapper {
    position: relative;
    min-height: 200px;
}

/* Tahapan Daftar */
#tahapan-daftar {
    margin-top: 80px;
    padding: 40px 0;
}

#tahapan-daftar .step-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

#tahapan-daftar .step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

#tahapan-daftar .step-number {
    font-size: 48px;
    font-weight: 800;
    color: rgba(59, 130, 246, 0.2);
    position: absolute;
    top: -15px;
    right: 10px;
}

#tahapan-daftar .step-icon {
    font-size: 36px;
    color: #33B0C7;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    #tahun-berjalan .thumbnail {
        width: 80px;
        height: 50px;
    }

    #tahun-berjalan .swiper-slide {
        width: 95%;
    }

    #tahun-berjalan .nav-btn {
        width: 40px;
        height: 40px;
    }

    #tahun-berjalan .grid-view-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    #tahun-berjalan .thumbnail {
        width: 60px;
        height: 40px;
    }

    #tahun-berjalan h1 {
        font-size: 1.5rem !important;
    }

    #tahun-berjalan .nav-btn {
        width: 35px;
        height: 35px;
    }

    #tahun-berjalan .nav-btn i {
        font-size: 16px;
    }

    #tahun-berjalan .grid-view-image {
        height: 180px;
    }
}

#tahun-berjalan .animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Counter Alumni */
#total-alumni .counter-animation {
    animation: countUp 2s ease-out forwards;
}

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

#total-alumni .card-hover {
    transition: all 0.3s ease;
}

#total-alumni .card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
