/* ============================================================
   PROGRAMME DETAIL PAGE
   ============================================================ */

/* Hero */
.detail-hero {
    background: linear-gradient(145deg, #0b1a33 0%, #1a2a4a 50%, #0d1f3c 100%);
    padding: 8rem 0 5rem;
    /* Increased top padding from 4rem to 8rem */
    position: relative;
    overflow: hidden;
    min-height: 450px;
    /* Added minimum height for consistency */
    display: flex;
    align-items: center;
}

.detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(13, 110, 253, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(111, 66, 193, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.detail-hero .container {
    position: relative;
    z-index: 2;
}

.status-badge {
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-open {
    background: rgba(25, 135, 84, 0.15);
    color: #28a745;
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.status-badge.status-upcoming {
    background: rgba(255, 193, 7, 0.15);
    color: #e0a800;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.status-badge.status-closed {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.detail-image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.detail-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Registration Card */
.register-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.register-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

/* Closed Card */
.closed-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.closed-icon {
    font-size: 4rem;
    color: #fd7e14;
    margin-bottom: 1rem;
}

/* Info Cards */
.info-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.info-card-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1a1a1a;
    margin-bottom: 1.25rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f5;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item.highlight {
    background: rgba(25, 135, 84, 0.04);
    margin: 0 -0.5rem;
    padding: 0.5rem 0.5rem;
    border-radius: 8px;
    border-bottom: none;
}

.info-label {
    color: #6c757d;
    font-size: 0.85rem;
}

.info-value {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Form Message */
.form-message {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
    animation: slideDown 0.3s ease;
}

.form-message.success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #a3cfbb;
}

.form-message.error {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f1aeb5;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 991.98px) {
    .detail-hero {
        padding: 7rem 0 4rem;
        /* Slightly less on tablets but still enough */
        min-height: 380px;
    }
}

@media (max-width: 767.98px) {
    .detail-hero {
        padding: 6rem 0 3.5rem;
        /* More top padding for mobile */
        text-align: center;
        min-height: 320px;
    }

    .detail-hero .display-4 {
        font-size: 2.2rem;
    }

    .register-card {
        padding: 1.5rem;
    }

    .info-item {
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (max-width: 575.98px) {
    .detail-hero {
        padding: 5.5rem 0 3rem;
        /* Extra padding for very small screens */
    }
}