/* ==========================================================================
   Courses Page Layout Extensions (3 Equal Grid & Slideshow Anim)
   ========================================================================== */
.courses-hero-banner {
    background: linear-gradient(135deg, #172554 0%, #0e1e43 100%);
    padding: 60px 0;
    border-bottom: 5px solid var(--secondary-sky-blue);
}


/* ==========================================================================
   Courses Page Strict Typography Bold Rules
   ========================================================================== */
.sub-heading-accent {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: block;
}

/* This makes the tag ultra bold exactly like the photo style layout */
.sub-heading-bold {
    font-weight: 800 !important; 
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Readability enhance */
}









.courses-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch; /* Ensures all 3 cards always have exactly equal height */
}

.premium-program-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border-top: 6px solid var(--secondary-sky-blue);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.premium-program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(23, 37, 84, 0.15);
}

/* 3-Images Automatic Slider Effect via Pure CSS Animation */
.course-slideshow-frame {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: #e2e8f0;
}

.slides-track {
    display: flex;
    width: 300%; /* Space for 3 images side by side */
    height: 100%;
    animation: autoCourseSlider 12s infinite ease-in-out;
}

.slides-track img {
    width: 33.333%; /* Each image occupies exactly one full view width */
    height: 100%;
    object-fit: cover;
}

/* Keyframes logic mapping smooth 3-step interval rotation */
@keyframes autoCourseSlider {
    0%, 28% { transform: translateX(0); }
    33%, 61% { transform: translateX(-33.333%); }
    66%, 94% { transform: translateX(-66.666%); }
    100% { transform: translateX(0); }
}

.course-age-pill {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 2;
}

.program-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pushes the CTA buttons to align horizontally at the bottom */
}

.program-card-content h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.program-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #475569;
    margin-bottom: 20px;
}

.benefits-bullet-wrapper {
    background-color: var(--light-background);
    padding: 15px 20px;
    border-radius: 14px;
    margin-bottom: 25px;
    flex-grow: 1;
}

.benefits-bullet-wrapper h5 {
    color: var(--dark-text);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.benefits-bullet-wrapper ul {
    list-style: none;
}

.benefits-bullet-wrapper li {
    font-size: 0.88rem;
    color: #334155;
    margin-bottom: 8px;
    line-height: 1.4;
}

.benefits-bullet-wrapper li:last-child {
    margin-bottom: 0;
}

.card-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

/* Responsive Media Controls Override */
@media (max-width: 1024px) {
    .courses-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .courses-cards-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .course-slideshow-frame {
        height: 200px;
    }
}