/* ================= LEGACY HERO ================= */

.legacy-slider {
    position: relative;
    height: 90vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: none;
}

.slide.active {
    display: block;
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(11,46,79,0.85),
        rgba(11,46,79,0.5)
    );
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 100px 60px;
    color: #fff;
}

.slide-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* BUTTONS */
.cta-button {
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    display: inline-block;
}

.cta-button.primary {
    background: #7FB343;
    color: #fff;
}

.cta-button.secondary {
    background: #0B2E4F;
    color: #fff;
}

.cta-button.accent {
    background: #F28C28;
    color: #fff;
}

/* HOVER */
.cta-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
	
/* ================= WHY CHOOSE US ================= */

.why-choose-us-section {
    padding: 80px 0;
    background: #f6faf8;
    font-family: 'Poppins', sans-serif;
}

.why-choose-us-section .container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TITLES */
.section-title {
    text-align: center;
    font-size: 2.4rem;
    color: #113655;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* GRID */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* CARD */
.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* ICON */
.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(102,178,63,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 1.8rem;
    color: #66B23F;
}

/* TITLE */
.feature-card h3 {
    font-size: 1.4rem;
    color: #113655;
    margin-bottom: 15px;
    font-weight: 600;
}

/* TEXT */
.feature-card p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* LIST */
.feature-card ul {
    list-style: none;
    text-align: left;
    margin-top: 20px;
}

.feature-card li {
    margin-bottom: 10px;
    color: #333;
    display: flex;
    align-items: center;
}

.feature-card li i {
    color: #66B23F;
    margin-right: 10px;
}

/* MOBILE */
@media (max-width: 768px) {
    .why-choose-us-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 22px;
    }
}

/*** Upcoming courses ***/
/* Namespaced CSS to prevent conflicts */
/* ================= COURSES SECTION ================= */

.courses-section-wrapper {
    font-family: 'Poppins', sans-serif;
    padding: 80px 20px;
    background: #ffffff;
    text-align: center;
}

/* TITLE */
.courses-section-title {
    color: #113655;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.courses-section-subtitle {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* GRID */
.courses-section-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1160px;
    margin: 0 auto;
}

/* CARD */
.course-card-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    padding: 30px;
    flex-basis: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.course-card-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* ICON */
.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* TITLE */
.course-title {
    color: #113655;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* META */
.course-meta {
    font-size: 0.9rem;
    color: #66B23F;
    margin-bottom: 15px;
}

/* DESCRIPTION */
.course-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* BUTTON */
.course-btn {
    display: inline-block;
    background: #66B23F;
    color: #fff;
    padding: 12px 26px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.course-btn:hover {
    background: #58a236;
    transform: translateY(-2px);
}

/* MOBILE */
@media (max-width:768px){
    .course-card-item {
        flex-basis: 100%;
    }
}

/*** Registration section ***/
/* CSS for the Call to Action Section */
.cta-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 20px;
    color: white;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Using rgba for the branding color #914700 with 70% opacity */
    background-color: rgba(102, 178, 63, 0.4);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-year {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff; /* Changed to white */
    margin-bottom: 10px;
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff; /* Changed to white */
}

.cta-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.cta-btn {
    display: inline-block;
    background: #66B23F;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 178, 63, 0.4);
}

.cta-btn:hover {
    background: #733900;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 178, 63, 0.4);
}

/* ================= ACCREDITATION SECTION ================= */

.accreditation-carousel-wrapper {
    font-family: 'Poppins', sans-serif;
    padding: 70px 20px;
    background: #f6faf8;
    text-align: center;
}

/* TITLE */
.accreditation-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: #113655;
    margin-bottom: 10px;
}

.accreditation-subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 50px;
}

/* CAROUSEL */
.accreditation-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

/* SLIDES */
.carousel-slides {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* CARD */
.accreditation-card {
    background: #fff;
    border-radius: 14px;
    padding: 35px 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    max-width: 700px;
    text-align: center;
    transition: 0.3s;
}

.accreditation-card:hover {
    transform: translateY(-5px);
}

/* TEXT */
.accreditation-text {
    font-size: 1.05rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 15px;
    font-style: italic;
}

/* ACCREDITATION BADGE */
.accreditation-number {
    display: inline-block;
    font-weight: 600;
    background: rgba(102,178,63,0.1);
    color: #66B23F;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
}

/* LOGOS */
.accreditation-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 20px;
}

.accreditation-logos img {
    height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.3s;
}

.accreditation-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* BUTTONS (FIXED POSITIONING) */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #113655;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: #66B23F;
    color: #fff;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* DOTS */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.carousel-dot.active {
    background: #66B23F;
    transform: scale(1.3);
}

/* FOOTER NOTE */
.accreditation-footer {
    color: #777;
    font-size: 0.9rem;
    margin-top: 20px;
}

/* MOBILE */
@media (max-width:768px){
    .accreditation-card {
        padding: 25px 18px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }
}