        :root {
            --primary-color: #3046c5;
            --accent-color: #ff6b6b;
            --light-bg: #f8f9fa;
            --dark-text: #2d3748;
            --light-text: #718096;
            --success-color: #38a169;
            --warning-color: #e9b949;
            --danger-color: #e53e3e;
            --border-radius: 0.5rem;
            --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }

        /* Event Header Styling */
        .event-header {
            background: linear-gradient(135deg, #5b6eff, #8c5bff);
            border-radius: var(--border-radius);
            padding: 2.5rem;
            color: white;
            margin-top: 50px;
            margin-bottom: 2rem;
            position: relative;
            overflow: hidden;
            box-shadow: var(--box-shadow);
        }

        .event-header::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
            opacity: 0.2;
        }

        .event-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            color: white !important;
        }

        .event-badge {
            display: inline-flex;
            align-items: center;
            padding: 0.5rem 1rem;
            background-color: rgba(255, 255, 255, 0.15);
            border-radius: 50px;
            margin-right: 1rem;
            margin-bottom: 0.5rem;
            backdrop-filter: blur(5px);
        }

        .event-badge i {
            margin-right: 0.5rem;
        }

        .event-badge a {
            color: white !important;
            text-decoration: none;
        }

        .register-btn {
            background-color: white;
            color: var(--primary-color);
            border: none;
            padding: 0.75rem 1.5rem;
            font-weight: 600;
            border-radius: 50px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .register-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
            background-color: #f8f9fa;
        }

        /* Tabs Styling */
        .nav-tabs {
            border-bottom: none;
            margin-bottom: 1.5rem;
            gap: 0.5rem;
        }

        .nav-tabs .nav-item {
            margin-bottom: 0;
        }

        .nav-tabs .nav-link {
            border: none;
            padding: 0.75rem 1.25rem;
            border-radius: var(--border-radius);
            font-weight: 500;
            color: var(--dark-text);
            transition: all 0.3s ease;
        }

        .nav-tabs .nav-link:hover {
            background-color: rgba(0, 0, 0, 0.03);
        }

        .nav-tabs .nav-link.active {
            color: var(--primary-color);
            background-color: rgba(48, 70, 197, 0.1);
            border-bottom: 2px solid var(--primary-color);
        }

        /* Card Styling */
        .content-card {
            border: none;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            overflow: hidden;
            transition: transform 0.3s ease;
        }

        .card-header {
            background-color: white;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            padding: 1.25rem 1.5rem;
        }

        .card-header h5 {
            font-weight: 600;
            color: var(--dark-text);
            margin: 0;
        }

        /* Info Item Styling */
        .info-item {
             border-left: 3px solid #3046c5;
    padding-left: 15px;
    margin-bottom: 15px;
            margin-bottom: 1rem;
        }

        .info-label {
            display: block;
            font-size: 0.85rem;
            font-weight: 500;
            color: var(--light-text);
            margin-bottom: 0.25rem;
        }

        .info-value {
            display: block;
            font-weight: 500;
            color: var(--dark-text);
        }

        /* Kelas Card Styling */
        .kelas-card {
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            transition: all 0.3s ease;
            height: 100%;
            overflow: hidden;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .kelas-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        }

        .kelas-header {
            padding: 1.25rem;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            background: linear-gradient(to right, #f5f7ff, #fff);
        }

        .kelas-title {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 0.25rem;
            color: var(--dark-text);
        }

        .kelas-code {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            background-color: #f0f4ff;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 500;
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }

        .kelas-body {
            padding: 1.25rem;
        }

        .kelas-detail {
            display: flex;
            align-items: center;
            margin-bottom: 0.75rem;
        }

        .kelas-detail i {
            width: 1.5rem;
            color: var(--primary-color);
            font-size: 0.9rem;
        }

        .kelas-detail span {
            font-size: 0.9rem;
        }

        .kelas-price {
            margin-top: 1.25rem;
            padding-top: 1rem;
            border-top: 1px dashed rgba(0, 0, 0, 0.1);
            text-align: right;
        }

        .price-value {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--primary-color);
        }

        /* Kandang Card Styling */
        .kandang-card {
            background: white;
            border-radius: var(--border-radius);
            padding: 1.5rem;
            display: flex;
            align-items: center;
            box-shadow: var(--box-shadow);
            transition: all 0.3s ease;
            border: 1px solid rgba(0, 0, 0, 0.05);
            height: 100%;
        }

        .kandang-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        }

        .kandang-icon {
            width: 3rem;
            height: 3rem;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #f0f4ff;
            border-radius: 50%;
            margin-right: 1rem;
            color: var(--primary-color);
            font-size: 1.25rem;
        }

        .kandang-info h5 {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--dark-text);
        }

        /* Status Badge Styling */
        .status-badge {
            padding: 0.35rem 1rem;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 500;
        }

        .badge-open {
            background-color: rgba(56, 161, 105, 0.1);
            color: var(--success-color);
        }

        .badge-closed {
            background-color: rgba(229, 62, 62, 0.1);
            color: var(--danger-color);
        }

        .badge-ongoing {
            background-color: rgba(66, 153, 225, 0.1);
            color: #3182ce;
        }

        .badge-finished {
            background-color: rgba(113, 128, 150, 0.1);
            color: var(--light-text);
        }

        /* Animation */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

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

        .fade-in {
            animation: fadeIn 0.5s ease forwards;
        }

        /* Style untuk download THB */
.btn-download {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-download:hover {
    background: linear-gradient(135deg, #218838, #1ea882);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white;
}

.btn-download:active {
    transform: translateY(0);
}

.btn-download-primary {
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
    white-space: nowrap;
}

.btn-download-primary:hover {
    background: linear-gradient(135deg, #0056b3, #520dc2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    color: white;
}

/* Download Section Styles */
.download-section-full {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #e9ecef;
}

.download-card {
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
    border: 1px solid #e3e6f0;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(135deg, #007bff, #6610f2);
}

.download-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.15);
    border-color: #007bff;
}

.download-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff, #6610f2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.download-content {
    flex-grow: 1;
    min-width: 0; /* Penting untuk text truncation */
}

.download-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.download-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.download-action {
    flex-shrink: 0;
}

.file-details {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.file-info {
    gap: 8px;
}

/* File Type Specific Styling */
.file-type-pdf {
    color: #dc3545 !important;
}

.file-type-word {
    color: #007bff !important;
}

.file-type-excel {
    color: #28a745 !important;
}

.file-type-powerpoint {
    color: #fd7e14 !important;
}

.file-type-text {
    color: #17a2b8 !important;
}

.file-type-archive {
    color: #6c757d !important;
}

/* Loading Animation for Download */
.btn-download.downloading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-download.downloading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* RESPONSIVE MEDIA QUERIES */

/* Tablet dan mobile landscape */
@media (max-width: 991.98px) {
    .download-card {
        padding: 20px;
        gap: 15px;
    }

    .download-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .download-title {
        font-size: 1rem;
    }

    .download-subtitle {
        font-size: 0.85rem;
    }

    .btn-download-primary {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* Mobile portrait - perbaikan utama */
@media (max-width: 767.98px) {
    .download-section-full {
        margin-top: 15px;
        padding-top: 15px;
    }

    .download-card {
        padding: 15px;
        gap: 12px;
        flex-direction: column;
        text-align: center;
    }

    .download-card::before {
        width: 100%;
        height: 5px;
        top: 0;
        left: 0;
    }

    .download-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 auto;
    }

    .download-content {
        width: 100%;
        text-align: center;
    }

    .download-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .download-subtitle {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .file-details {
        justify-content: center;
        margin-top: 10px;
    }

    .file-details small {
        word-break: break-all;
        max-width: 100%;
        display: block;
        margin-top: 5px;
    }

    .download-action {
        width: 100%;
        margin-top: 10px;
    }

    .btn-download-primary {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Mobile kecil */
@media (max-width: 575.98px) {
    .download-card {
        padding: 12px;
        border-radius: 12px;
    }

    .download-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .download-title {
        font-size: 0.95rem;
    }

    .download-subtitle {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .btn-download-primary {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .file-details {
        flex-direction: column;
        gap: 5px;
    }

    .badge {
        font-size: 0.7rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .download-card {
        padding: 10px;
        gap: 10px;
    }

    .download-section-full {
        margin-top: 10px;
        padding-top: 10px;
    }

    .download-title {
        font-size: 0.9rem;
    }

    .download-subtitle {
        font-size: 0.75rem;
    }

    .btn-download-primary {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* Hover effects hanya untuk desktop */
@media (min-width: 992px) {
    .download-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0, 123, 255, 0.15);
    }

    .btn-download-primary:hover {
        transform: translateY(-3px);
    }
}

/* Fix untuk text overflow */
.download-content * {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.file-details small {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.2;
}

.back-button-container {
    margin-top: 1rem;
    margin-bottom: 2rem;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}



.btn-back:hover {
    background: linear-gradient(135deg, #5a6268, #3d4449);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

.btn-back:hover::before {
    left: 100%;
}

.btn-back i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-back:hover i {
    transform: translateX(-3px);
}

.btn-back:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .back-button-container {
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }

    .btn-back {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}
