.program-slider-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 70px 0;
    position: relative;
    margin-bottom: 40px;
    overflow: hidden;
}

.program-slider-section::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(112, 48, 160, 0.1);
    z-index: 0;
}

.program-slider-section::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.1);
    z-index: 0;
}

.program-slider-section h1 {
    color: #7030a0;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.program-slider-section h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #7030a0;
}

.program-slider-section .green {
    color: #4caf50;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.program-slider-section .green:hover {
    color: #388e3c;
    transform: translateX(-5px);
}

.program-carousel {
    margin-top: 40px;
    padding: 10px 5px 40px;
}

.program-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    border: none;
    background-color: #fff;
    position: relative;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(112, 48, 160, 0.15);
}

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

.program-card .img-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.program-card:hover .img-container::after {
    opacity: 1;
}

.program-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.program-card .card-body {
    padding: 25px 20px;
    position: relative;
}

.program-card .card-title {
    font-weight: bold;
    margin-bottom: 12px;
    color: #7030a0;
    font-size: 1.2rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.program-card:hover .card-title {
    color: #5d259a;
}

.program-card .card-text {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.program-card .btn-primary {
    background-color: #7030a0;
    border-color: #7030a0;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(112, 48, 160, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.program-card .btn-primary:hover {
    background-color: #5d259a;
    border-color: #5d259a;
    box-shadow: 0 6px 20px rgba(112, 48, 160, 0.3);
    transform: translateY(-2px);
}

.owl-program {
    padding: 0 30px;
}

.owl-program .owl-stage-outer {
    padding: 20px 0;
}

.owl-program .owl-nav {
    position: absolute;
    top: 40%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 10px;
}

.owl-program .owl-prev,
.owl-program .owl-next {
    width: 48px;
    height: 48px;
    background-color: #7030a0 !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin: 0 -15px !important;
    pointer-events: auto;
    color: white !important;
    transition: all 0.3s ease;
}

.owl-program .owl-prev:hover,
.owl-program .owl-next:hover {
    background-color: #5d259a !important;
    transform: scale(1.1);
}

.owl-program .owl-prev i,
.owl-program .owl-next i {
    font-size: 20px;
    color: white;
}

.owl-program .owl-dots {
    margin-top: 20px !important;
    display: flex;
    justify-content: center;
}

.owl-program .owl-dot {
    margin: 0 5px;
}

.owl-program .owl-dot span {
    width: 12px;
    height: 12px;
    margin: 5px;
    background: #d6d6d6;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.owl-program .owl-dot.active span {
    background: #7030a0 !important;
    transform: scale(1.2);
}

.owl-program .owl-dot:hover span {
    background: #7030a0 !important;
    opacity: 0.7;
}

/* Add a program count badge */
.program-card::before {
    content: "";
    position: absolute;
    top: 15px;
    right: 15px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7030a0;
    z-index: 10;
    box-shadow: 0 0 0 4px rgba(112, 48, 160, 0.3);
}

/* Progress bar */
.progress-container {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.05);
    height: 5px;
    position: relative;
    max-width: 300px;
    margin: 10px auto 20px;
    border-radius: 5px;
    overflow: hidden;
}

.slide-progress {
    width: 0;
    height: 5px;
    background: #7030a0;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 5px;
}

/* Animation classes */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fadeIn {
    animation-name: fadeIn;
}

@keyframes pulse {
    from {
        transform: scale3d(1, 1, 1);
    }
    50% {
        transform: scale3d(1.05, 1.05, 1.05);
    }
    to {
        transform: scale3d(1, 1, 1);
    }
}

.pulse {
    animation-name: pulse;
    animation-duration: 0.5s;
}

/* Animate cards on load */
.owl-item .program-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

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

/* Responsive adjustments */
@media (max-width: 991px) {
    .program-card .img-container {
        height: 200px;
    }

    .program-slider-section {
        padding: 50px 0;
    }
}

@media (max-width: 767px) {
    .program-card .img-container {
        height: 180px;
    }

    .program-slider-section {
        padding: 40px 0;
    }

    .program-card .card-body {
        padding: 20px 15px;
    }

    .program-card .btn-primary {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}
