:root {
    --primary-purple: #4E185B;
    --primary-green: #629231;
    --primary-yellow: #E5BC1F;
    --light-purple: #6d2b7d;
}

/* Page Header */
.page-header {
    padding: 3rem 0 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Card Enhancements */
.program-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 1.25rem !important;
    overflow: hidden;
    border: none !important;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1.5rem 3rem rgba(78, 24, 91, 0.15) !important;
}

.program-card:hover .card-img-top {
    transform: scale(1.1);
}

.program-card:hover .card-icon {
    background-color: var(--primary-yellow) !important;
    transform: rotate(360deg);
}

.card-img-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(78, 24, 91, 0.85) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.card-img-top {
    transition: transform 0.6s ease;
}

.card-icon {
    width: 45px;
    height: 45px;
    color: var(--primary-purple);
    font-size: 1.2rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.card-badge-custom {
    background-color: var(--primary-green);
    font-weight: 600;
    padding: 6px 14px;
    font-size: 0.75rem;
    z-index: 2;
}

/* Custom Buttons */
.btn-book {
    background: linear-gradient(135deg, var(--primary-green) 0%, #7ab03d 100%);
    color: white !important;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(98, 146, 49, 0.3);
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(98, 146, 49, 0.45);
    color: white !important;
    background: linear-gradient(135deg, #7ab03d 0%, var(--primary-green) 100%);
}

.btn-info-custom {
    background: transparent;
    color: var(--primary-purple) !important;
    border: 2px solid var(--primary-purple);
    transition: all 0.3s ease;
}

.btn-info-custom:hover {
    background-color: var(--primary-purple);
    color: white !important;
    transform: translateY(-2px);
}



/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Staggered card animation delays */
.row.g-4>div:nth-child(1) .program-card {
    animation-delay: 0.1s;
}

.row.g-4>div:nth-child(2) .program-card {
    animation-delay: 0.2s;
}

.row.g-4>div:nth-child(3) .program-card {
    animation-delay: 0.3s;
}

.row.g-4>div:nth-child(4) .program-card {
    animation-delay: 0.4s;
}

.row.g-4>div:nth-child(5) .program-card {
    animation-delay: 0.5s;
}

/* Modal Styling */
.modal-header-custom {
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    border: none;
}

.list-group-item-custom {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 1rem 0;
}

.list-group-item-custom:last-child {
    border-bottom: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-header {
        padding: 2rem 0 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .card-img-container {
        height: 200px;
    }
}
