/********** Template CSS **********/
:root {
    --primary: #06BBCC;
    --light: #F0FBFC;
    --dark: #181d38;
}

/* Typography rendering and fallback adjustments */
html {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Help align fallback fonts' x-height to reduce layout shift during swap */
body {
    font-size-adjust: 0.5; /* conservative default; reduces CLS with common fallbacks */
}

h1, h2, h3, h4, h5, h6 {
    font-size-adjust: 0.5;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
/* #spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-out, visibility 0s linear 1s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
} */
/* Fullscreen Loading Mask */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* Solid white background to fully mask content */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* On top of all elements */
}

#loading-spinner {
    border: 5px solid #f3f3f3; /* Light grey */
    border-top: 5px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 0px;
}


/*** Navbar ***/
.navbar {
    min-height: 70px;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

/* Logo Styling */
.nav-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    transition: all 0.3s ease;
}

/* Navigation Links */
.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-size: 15px;
    font-weight: 500;
    text-transform: lowercase;
    outline: none;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 6px;
}

.navbar-light .navbar-nav .nav-link:first-letter {
    text-transform: uppercase;
}

/* Hover State */
.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary);
    background-color: rgba(6, 187, 204, 0.1);
    text-decoration: none;
}

/* Active State */
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary) !important;
    font-weight: 600 !important;
    background-color: rgba(6, 187, 204, 0.1) !important;
    text-decoration: none;
}

/* CTA Buttons */
.navbar .btn {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navbar .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.navbar .btn.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.navbar .btn.btn-primary:hover {
    background: #05a5b5;
    border-color: #05a5b5;
}

.navbar .btn.btn-secondary {
    background: var(--dark);
    border-color: var(--dark);
}

.navbar .btn.btn-secondary:hover {
    background: #0f1419;
    border-color: #0f1419;
}

/* Active State for Button Navigation Items */
.navbar-light .navbar-nav .btn.active {
    /* background: var(--primary) !important; */
    color: white !important;
    box-shadow: 0 5px 15px rgba(6, 187, 204, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* Toggle Button */
.navbar-toggler {
    border: none;
    padding: 4px 8px;
    font-size: 1.1rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Sticky Navbar */
.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
    .nav-logo {
        height: 45px;
    }
    
    .navbar .btn {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

@media (max-width: 991.98px) {
    .navbar {
        min-height: 60px;
    }
    
    .nav-logo {
        height: 40px;
    }
    
    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
        margin-top: 1rem;
        padding: 1rem 1.5rem 0;
    }
    
    .navbar-light .navbar-nav .nav-link {
        padding: 12px 20px;
        margin: 2px 0;
        text-align: center;
        border-radius: 8px;
    }
    
    .nav-links-container {
        width: 100%;
        padding: 0 1rem;
    }
    
    .navbar .btn {
        font-size: 0.9rem;
        padding: 12px 20px;
        margin: 4px 0;
        height: auto;
        line-height: 1.4;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .navbar {
        min-height: 55px;
    }
    
    .nav-logo {
        height: 35px;
    }
    
    .navbar-light .navbar-nav {
        padding: 1rem 1rem 0;
    }
    
    .navbar-light .navbar-nav .nav-link {
        font-size: 14px;
        padding: 12px 16px;
        margin: 3px 0;
    }
    
    .nav-links-container {
        padding: 0 0.5rem;
    }
    
    .navbar .btn {
        font-size: 0.85rem;
        padding: 10px 18px;
        height: auto;
        line-height: 1.4;
    }
}

@media (max-width: 575.98px) {
    .navbar {
        min-height: 50px;
    }
    
    .nav-logo {
        height: 30px;
    }
    
    .navbar-light .navbar-nav {
        padding: 0.8rem 0.8rem 0;
    }
    
    .navbar-light .navbar-nav .nav-link {
        font-size: 13px;
        padding: 10px 14px;
        margin: 2px 0;
    }
    
    .nav-links-container {
        padding: 0 0.3rem;
    }
    
    .navbar .btn {
        font-size: 0.8rem;
        padding: 8px 16px;
        height: auto;
        line-height: 1.3;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: row;
    }
    
    .navbar .btn i {
        font-size: 0.7rem;
        margin-left: 4px;
    }
    
    .navbar .btn span {
        display: inline;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .dropdown-menu.fade-down {
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}



/*** Hero Carousel ***/
.hero-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    padding: 2rem 0;
    animation: fadeInUp 1s ease-out;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-badge {
    display: inline-block;
    padding: 12px 25px;
    background: rgba(13, 202, 240, 0.2);
    border: 2px solid #0dcaf0;
    color: #0dcaf0;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(13, 202, 240, 0.3);
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    color: white;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.95);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.hero-btn {
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    text-align: center;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.hero-btn.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.hero-btn.btn-primary:hover {
    background: #05a5b5;
    border-color: #05a5b5;
    color: white;
}

.hero-btn.btn-secondary {
    background: var(--dark);
    border-color: var(--dark);
    color: white;
}

.hero-btn.btn-secondary:hover {
    background: #0f1419;
    border-color: #0f1419;
    color: white;
}

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

/* Responsive Design */
@media (min-width: 768px) {
    .hero-buttons {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .hero-content {
        text-align: left;
    }
    
    .hero-description {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Ensure proper container padding on all devices */
.hero-overlay .container {
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 575.98px) {
    .hero-overlay .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 400px) {
    .hero-overlay .container {
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media (max-width: 767.98px) {
    .hero-carousel-wrapper {
        min-height: 85vh;
        padding: 1rem 0;
    }
    
    .hero-content {
        padding: 1rem 0;
        max-width: 100%;
        overflow: hidden;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 10px 20px;
        margin-bottom: 1.2rem;
    }
    
    .hero-title {
        margin-bottom: 0.8rem;
        line-height: 1.1;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-subtitle {
        margin-bottom: 1.2rem;
        letter-spacing: 2px;
        font-size: 0.9rem;
    }
    
    .hero-description {
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
        line-height: 1.5;
        padding: 0 0.5rem;
    }
    
    .hero-btn {
        padding: 12px 20px;
        font-size: 0.85rem;
        min-width: 160px;
        margin: 0.3rem 0;
    }
}

@media (max-width: 575.98px) {
    .hero-carousel-wrapper {
        min-height: 90vh;
        padding: 0.5rem 0;
    }
    
    .hero-content {
        padding: 0.5rem 0;
        max-width: 100%;
        overflow: hidden;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 6px 12px;
        margin-bottom: 0.8rem;
    }
    
    .hero-title {
        margin-bottom: 0.6rem;
        line-height: 1.1;
        font-size: 1.4rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-subtitle {
        margin-bottom: 0.8rem;
        letter-spacing: 1px;
        font-size: 0.8rem;
    }
    
    .hero-description {
        margin-bottom: 1.2rem;
        font-size: 0.85rem;
        line-height: 1.4;
        padding: 0 0.3rem;
    }
    
    .hero-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        min-width: 140px;
        margin: 0.2rem 0;
    }
}

@media (max-width: 400px) {
    .hero-carousel-wrapper {
        min-height: 95vh;
        padding: 0.3rem 0;
    }
    
    .hero-content {
        padding: 0.3rem 0;
    }
    
    .hero-badge {
        font-size: 0.65rem;
        padding: 5px 10px;
        margin-bottom: 0.6rem;
    }
    
    .hero-title {
        margin-bottom: 0.5rem;
        font-size: 1.2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        margin-bottom: 0.6rem;
        font-size: 0.75rem;
    }
    
    .hero-description {
        margin-bottom: 1rem;
        font-size: 0.8rem;
        line-height: 1.3;
        padding: 0 0.2rem;
    }
    
    .hero-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        min-width: 120px;
        margin: 0.15rem 0;
    }
}

/* Legacy Header Carousel Support */
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(24, 29, 56, .7), rgba(24, 29, 56, .7)), url(../img/classroom.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(15, 23, 43, .7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}



.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px); /* Adjusts the line width */
    height: 2px;
    bottom: 5px; /* Positions the line below the title */
    left: -60px; /* Extends the line 60px to the left */
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*** Service ***/
.service-item {
    background: var(--light);
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}


/*** Categories & Courses ***/
.category img,
.course-item img {
    transition: .5s;
}

.category a:hover img,
.course-item:hover img {
    transform: scale(1.1);
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: normal;
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.pack {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    margin-bottom: 20px;
}

.course-item {
    height: 1105.69px;
    padding-bottom: 30px; /* Additional space to prevent overlap */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.course-item2 {
    height: 700.69px;
    padding-bottom: 30px; /* Additional space to prevent overlap */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Démarche d'inscription Section */
.registration-steps {
    background-color: var(--light); /* Light background color for contrast */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow effect */
    padding: 20px;
    border-radius: 10px;
}

.step {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.step:last-child {
    border-bottom: none;
}

.step h5 {
    font-weight: 700;
    margin-bottom: 8px;
}

.step-number {
    font-weight: 600;
    color: var(--primary);
    margin-right: 8px;
}

.step p {
    margin-bottom: 0;
    color: #555;
}

/* Accompagnement sur-mesure Section */
.feature-box {
    background-color: var(--light); /* Light background */
    border-radius: 10px;
    transition: 0.3s;
}

.feature-box img {
    border-radius: 8px;
}

.feature-box:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.feature-box h5 {
    font-weight: 700;
    color: var(--primary);
    margin-top: 10px;
}

.feature-box p {
    color: #555;
}
/* Hero Intro Section */
.hero-intro {
    position: relative;
    background: url('../img/hero-bg.jpg') center/cover no-repeat;
    padding: 100px 20px;
    color: #fff;
}

.hero-intro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay for readability */
    z-index: 1;
}

.hero-intro .content-container {
    position: relative;
    z-index: 2; /* Ensures content sits above the overlay */
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-heading {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.4;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.intro-subtext {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-intro .btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    background: var(--primary);
    color: #fff;
    transition: all 0.3s ease;
    border: none;
}

.hero-intro .btn:hover {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-intro {
        padding: 60px 15px;
    }
    .intro-heading {
        font-size: 2.2rem;
    }
    .intro-subtext {
        font-size: 1rem;
    }
}
.feature {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.feature-bg {
    background-color: #f8f9fa; /* Light gray background for alternating sections */
    padding: 20px;
    border-radius: 10px;
}

.section-image {
    width: 100%;
    max-height: 300px; /* Ensures uniform image height */
    object-fit: cover; /* Keeps image aspect ratio */
}


h1 {
    color: #343a40 ; 
}


h2 {
    font-size: 1.75rem; /* Consistent size for all titles */
    color: #343a40 ;/* Primary color for titles */
    margin-bottom: 1rem;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}
.card:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}
.card-title {
    font-weight: bold;
}

.testimonial-card .card-footer {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

/* NEW MODERN DESIGNS FOR SPECIFIC SECTIONS - 2023 */

/* ----- NOS PROGRAMMES SECTION ----- */
.programs-section {
    background: #f8f9fa !important;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.programs-section::before, .benefits-section::before, .testimonials-section::before, .about-section::before, .features-section::before, .registration-section::before {
    content: none !important;
    background: none !important;
}

.programs-section::after, .benefits-section::after, .testimonials-section::after, .about-section::after, .features-section::after, .registration-section::after {
    content: none !important;
    background: none !important;
}

.programs-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.programs-badge {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(6, 187, 204, 0.1);
    border: 1px solid #06BBCC;
    color: #06BBCC;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.programs-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    display: inline-block;
}

.programs-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #06BBCC, #0dcaf0);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.programs-section .program-card {
    position: relative;
    height: 350px !important;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
    border: none;
    background: transparent;
}

.programs-section .program-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(6, 187, 204, 0.3);
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 187, 204, 0.8) 0%, rgba(13, 202, 240, 0.8) 100%);
    opacity: 0.85;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.program-card:hover::before {
    opacity: 0.95;
}

.program-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #06BBCC 0%, #0dcaf0 100%);
    z-index: 1;
}

.program-icon {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
}

.program-card:hover .program-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}

.program-icon i {
    font-size: 24px;
    color: #06BBCC;
    transition: all 0.5s ease;
}

.program-card:hover .program-icon i {
    transform: scale(1.2);
}

.program-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: white;
    z-index: 2;
    border-top-left-radius: 30px;
    height: 65%;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.program-card:hover .program-content {
    transform: translateY(5px);
}

.program-content h3 {
    color: #333;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    transform: translateY(0);
    transition: all 0.4s ease 0.1s;
}

.program-card:hover .program-content h3 {
    transform: translateY(-5px);
    color: #06BBCC;
}

.program-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
    transform: translateY(0);
    opacity: 0.8;
    transition: all 0.4s ease 0.2s;
}

.program-card:hover .program-content p {
    transform: translateY(-5px);
    opacity: 1;
}

.program-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.9);
    color: #06BBCC;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(0);
    opacity: 0.9;
    transition: all 0.4s ease;
}

.program-card:hover .program-badge {
    transform: translateY(-5px) scale(1.05);
    opacity: 1;
    background: #fff;
    box-shadow: 0 8px 20px rgba(6, 187, 204, 0.2);
}

/* Card background image with parallax effect */
.program-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform: scale(1);
}

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

/* Floating particles animation */
.program-card .particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.program-card .particle {
    position: absolute;
    display: block;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
}

.program-card .particle:nth-child(1) {
    width: 15px;
    height: 15px;
    top: 20%;
    left: 20%;
    animation: floating 6s infinite ease-in-out;
}

.program-card .particle:nth-child(2) {
    width: 10px;
    height: 10px;
    top: 40%;
    left: 80%;
    animation: floating 8s infinite ease-in-out;
}

.program-card .particle:nth-child(3) {
    width: 8px;
    height: 8px;
    top: 70%;
    left: 10%;
    animation: floating 7s infinite ease-in-out;
}

.program-card .particle:nth-child(4) {
    width: 12px;
    height: 12px;
    top: 10%;
    left: 60%;
    animation: floating 10s infinite ease-in-out;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-15px) translateX(10px);
    }
    50% {
        transform: translateY(-5px) translateX(-15px);
    }
    75% {
        transform: translateY(10px) translateX(15px);
    }
}

/* Glowing effect on hover */
.program-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    z-index: 3;
    transition: all 1s ease;
    opacity: 0;
}

.program-card:hover::after {
    animation: glowSweep 1.5s ease-out;
}

@keyframes glowSweep {
    0% {
        top: -50%;
        left: -50%;
        opacity: 0;
    }
    20% {
        opacity: 0.2;
    }
    100% {
        top: 150%;
        left: 150%;
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .program-card {
        height: 380px !important;
    }
    
    .program-content {
        padding: 20px;
    }
    
    .program-content h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    .programs-section, .benefits-section, .testimonials-section, .about-section {
        padding: 50px 0;
    }
    
    .section-badge {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .program-badge {
        top: 20px;
        right: 20px;
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .program-icon {
        top: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
    }
    
    .program-icon i {
        font-size: 20px;
    }
    
    .programs-section .program-card {
        height: 320px !important;
    }
}

/* ----- POURQUOI NOUS CHOISIR SECTION ----- */
.benefits-section {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.benefits-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(6, 187, 204, 0.05) 0%, rgba(6, 187, 204, 0) 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
    z-index: 1;
}

.benefits-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefits-badge {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(6, 187, 204, 0.1);
    border: 1px solid #06BBCC;
    color: #06BBCC;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.benefits-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    display: inline-block;
}

.benefits-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #06BBCC, #0dcaf0);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.benefits-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.benefit-item {
    position: relative;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.benefit-item::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 187, 204, 0.05) 0%, rgba(6, 187, 204, 0) 80%);
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(6, 187, 204, 0.15);
}

.benefit-item:hover::before {
    opacity: 1;
}

.benefit-number {
    font-size: 2rem;
    font-weight: 900;
    color: rgba(6, 187, 204, 0.15);
    line-height: 1;
    transition: all 0.4s ease;
}

.benefit-item:hover .benefit-number {
    color: rgba(6, 187, 204, 0.3);
    transform: scale(1.1);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #06BBCC 0%, #0dcaf0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(6, 187, 204, 0.2);
    transition: all 0.4s ease;
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1) rotate(10deg);
}

.benefit-icon i {
    font-size: 24px;
    color: white;
}

.benefit-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.benefit-item p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .program-content h3 {
        font-size: 1.1rem;
    }
    
    .benefit-item h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    .benefit-item .d-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .benefit-icon {
        margin-bottom: 15px;
    }
    
    .benefit-number {
        margin-top: 10px;
    }
    
    .benefit-item h3 {
        margin: 10px 0;
    }
}

/* Global Background Unification */
.programs-section, .benefits-section, .testimonials-section, .about-section, .features-section, .registration-section {
    background: #f8f9fa !important;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Enhanced section subtitles */
.features-subtitle, .packs-subtitle, .registration-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.packs-subtitle {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* COURS.HTML MODERN PACK CARDS */
.modern-pack-card {
    position: relative;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%;
    border: none;
    transform-style: preserve-3d;
}

.modern-pack-card:hover {
    transform: translateY(-15px) rotateX(2deg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}

.pack-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

.pack-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 187, 204, 0.8) 0%, rgba(2, 136, 209, 0.8) 100%);
    z-index: 1;
    transition: opacity 0.5s ease;
}

.modern-pack-card:hover .pack-image-wrapper::before {
    opacity: 0.9;
}

.pack-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-pack-card:hover .pack-image {
    transform: scale(1.1);
}

.pack-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 2;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.pack-content {
    padding: 35px 30px 30px;
    position: relative;
}

.pack-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: #333;
    margin-bottom: 15px;
    position: relative;
}

.pack-price::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #06BBCC, #0288d1);
    border-radius: 2px;
}

.pack-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.pack-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.pack-features li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #555;
    transition: all 0.3s ease;
}

.pack-features li:hover {
    color: #06BBCC;
    padding-left: 5px;
}

.pack-features li i {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.pack-btn {
    background: linear-gradient(135deg, #06BBCC 0%, #0288d1 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(6, 187, 204, 0.3);
    position: relative;
    overflow: hidden;
}

.pack-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.pack-btn:hover::before {
    left: 100%;
}

.pack-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(6, 187, 204, 0.4);
    background: linear-gradient(135deg, #0288d1 0%, #06BBCC 100%);
}

/* Common section badge styling for cours.html */
.section-badge {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(6, 187, 204, 0.1);
    border: 1px solid #06BBCC;
    color: #06BBCC;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #06BBCC, #0dcaf0);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Revolutionary Modern Steps Design */
.modern-step-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.modern-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 187, 204, 0.05) 0%, rgba(6, 187, 204, 0) 80%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modern-step-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(6, 187, 204, 0.15);
}

.modern-step-card:hover::before {
    opacity: 1;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #06BBCC 0%, #0288d1 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    box-shadow: 0 10px 25px rgba(6, 187, 204, 0.3);
    z-index: 2;
    transition: all 0.4s ease;
}

.modern-step-card:hover .step-number {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 30px rgba(6, 187, 204, 0.4);
}

.step-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(6, 187, 204, 0.1) 0%, rgba(6, 187, 204, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    border: 3px solid rgba(6, 187, 204, 0.2);
}

.step-icon i {
    font-size: 2rem;
    color: #06BBCC;
    transition: all 0.4s ease;
}

.modern-step-card:hover .step-icon {
    background: linear-gradient(135deg, #06BBCC 0%, #0288d1 100%);
    border-color: #06BBCC;
    transform: scale(1.1);
}

.modern-step-card:hover .step-icon i {
    color: white;
    transform: scale(1.2);
}

.step-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.modern-step-card:hover .step-content h4 {
    color: #06BBCC;
    transform: translateY(-3px);
}

.step-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    transition: all 0.3s ease;
}

.modern-step-card:hover .step-content p {
    color: #555;
}

.step-arrow {
    position: absolute;
    bottom: 10px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(6, 187, 204, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    opacity: 0.7;
}

.step-arrow i {
    font-size: 1rem;
    color: #06BBCC;
    transition: all 0.4s ease;
}

.modern-step-card:hover .step-arrow {
    background: #06BBCC;
    opacity: 1;
    transform: scale(1.1);
}

.modern-step-card:hover .step-arrow i {
    color: white;
}

.step-final {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    opacity: 1;
}

.step-final i {
    color: white;
}

/* Enhanced Pack Cards with Better Styles */
.modern-pack-card .pack-content {
    transition: all 0.4s ease;
}

.modern-pack-card:hover .pack-content {
    transform: translateY(-5px);
}

.pack-features li {
    transition: all 0.3s ease;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.pack-features li:last-child {
    border-bottom: none;
}

.pack-features li:hover {
    background: rgba(6, 187, 204, 0.05);
    padding-left: 10px;
    border-radius: 8px;
}
/* Enhanced Testimonials matching index style */
.testimonial-item {
    position: relative;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
}

.testimonial-item::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 187, 204, 0.05) 0%, rgba(6, 187, 204, 0) 80%);
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(6, 187, 204, 0.15);
}

.testimonial-item:hover::before {
    opacity: 1;
}

.testimonial-quote {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 6rem;
    font-family: Georgia, serif;
    color: rgba(6, 187, 204, 0.1);
    line-height: 1;
}

.testimonial-item h5 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    position: relative;
}

.testimonial-item p {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    position: relative;
    max-width: 90%;
    margin: 0 auto 15px;
}

@media (max-width: 991px) {
    .modern-step-card {
        margin-bottom: 30px;
        padding: 25px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .step-icon {
        width: 70px;
        height: 70px;
    }
    
    .step-icon i {
        font-size: 1.75rem;
    }
    
    .testimonial-quote {
        font-size: 4rem;
    }
}

@media (max-width: 767px) {
    .modern-step-card {
        padding: 20px;
    }
    
    .step-arrow {
        display: none;
    }
    
    .testimonial-quote {
        font-size: 3rem;
        top: 10px;
        left: 15px;
    }
}

/* Common section header styling */
.programs-header, .benefits-header, .testimonials-header, .about-header, .features-header, .packs-header, .registration-header, .section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-badge {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(6, 187, 204, 0.1);
    border: 1px solid #06BBCC;
    color: #06BBCC;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #06BBCC, #0dcaf0);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* ----- TESTIMONIALS SECTION ----- */
.testimonials-section {
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 187, 204, 0.1) 0%, rgba(6, 187, 204, 0) 70%);
    top: -150px;
    left: -150px;
    z-index: 1;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonials-badge {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(6, 187, 204, 0.1);
    border: 1px solid #06BBCC;
    color: #06BBCC;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.testimonials-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    display: inline-block;
}

.testimonials-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #06BBCC, #0dcaf0);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.testimonials-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-item {
    position: relative;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
}

.testimonial-item::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 187, 204, 0.05) 0%, rgba(6, 187, 204, 0) 80%);
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(6, 187, 204, 0.15);
}

.testimonial-item:hover::before {
    opacity: 1;
}

.testimonial-quote {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 6rem;
    font-family: Georgia, serif;
    color: rgba(6, 187, 204, 0.1);
    line-height: 1;
}

.testimonial-item h5 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    position: relative;
}

.testimonial-item p {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    position: relative;
    max-width: 90%;
    margin: 0 auto 15px;
}

/* Make all carousel controls consistent */
.carousel-control-prev, 
.carousel-control-next {
    width: 50px !important;
    height: 50px !important;
    background: #06BBCC !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    box-shadow: 0 8px 20px rgba(6, 187, 204, 0.3) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    border: none !important;
}

.carousel-control-prev {
    left: 10px !important;
}

.carousel-control-next {
    right: 10px !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: #06BBCC !important;
    color: #ffffff !important;
    opacity: 0.9 !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 10px 25px rgba(6, 187, 204, 0.4) !important;
}

.carousel-control-prev i,
.carousel-control-next i {
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
}

.carousel-control-prev:hover i,
.carousel-control-next:hover i {
    transform: scale(1.1) !important;
}

@media (max-width: 991px) {
    .testimonial-item {
        padding: 30px;
    }
    
    .testimonial-quote {
        font-size: 4rem;
    }
}

@media (max-width: 767px) {
    .testimonial-item {
        padding: 25px;
    }
    
    .testimonial-quote {
        font-size: 3rem;
        top: 10px;
        left: 15px;
    }
    
    .testimonial-item h5 {
        font-size: 1.2rem;
    }
    
    .carousel-control-prev, 
    .carousel-control-next {
        width: 40px !important;
        height: 40px !important;
    }
}

@media (max-width: 991px) {
    .carousel-control-prev, 
    .carousel-control-next {
        width: 44px !important;
        height: 44px !important;
    }
}

@media (max-width: 480px) {
    .carousel-control-prev, 
    .carousel-control-next {
        width: 34px !important;
        height: 34px !important;
        box-shadow: 0 6px 16px rgba(6, 187, 204, 0.28) !important;
    }
}

/* ----- MODERN FOOTER STYLES ----- */
.footer-section {
    position: relative;
    background: linear-gradient(145deg, #181d38 0%, #242d4a 80%, #1b2240 100%);
    color: #f5f5f5;
    overflow: hidden;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-section::before,
.footer-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    z-index: 0;
}

.footer-section::before {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #06BBCC 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.footer-section::after {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #06BBCC 0%, transparent 70%);
    bottom: -300px;
    left: -200px;
}

.footer-top {
    position: relative;
    z-index: 1;
    padding: 30px 0 15px; /* Further reduced padding */
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.footer-logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #06BBCC;
    border-radius: 10px;
}

.footer-logo span {
    background: linear-gradient(to right, #06BBCC, #0dcaf0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.footer-about-text {
    font-size: 0.9rem;
    color: #adb5bd;
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
    border-left: 3px solid rgba(6, 187, 204, 0.3);
}

.footer-social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #06BBCC 0%, #0dcaf0 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icon i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(6, 187, 204, 0.3);
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover i {
    transform: scale(1.2);
}

.footer-heading {
    font-size: 1.1rem; /* Further reduced size */
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px; /* Reduced space */
    position: relative;
    padding-bottom: 3px; /* Reduced padding */
}

.footer-separator {
    width: 40px; /* Reduced width */
    height: 2px;
    background: linear-gradient(90deg, #06BBCC, rgba(13, 202, 240, 0.3));
    margin-bottom: 10px; /* Reduced margin */
    border-radius: 5px;
    position: relative;
}

.footer-separator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 15px;
    height: 2px;
    background: #06BBCC;
    border-radius: 5px;
    animation: separatorPulse 2s infinite;
}

@keyframes separatorPulse {
    0% { width: 15px; }
    50% { width: 30px; }
    100% { width: 15px; }
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.footer-links li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.footer-links li a {
    display: flex;
    align-items: center;
    color: #adb5bd;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    overflow: hidden; /* Prevent text overflow */
}

.footer-links li a i {
    font-size: 12px;
    margin-right: 8px;
    color: #06BBCC;
    transition: all 0.3s ease;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 187, 204, 0.05);
    border-radius: 50%;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.footer-links li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-links li a:hover i {
    transform: translateX(3px);
    background: rgba(6, 187, 204, 0.2);
}

.footer-contact-info {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    width: 100%;
    overflow: hidden; /* Prevent text overflow */
}

.contact-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 32px;
    height: 32px;
    background: rgba(6, 187, 204, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(6, 187, 204, 0.1);
    flex-shrink: 0;
}

.icon-box::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(6, 187, 204, 0.3);
    animation: ripple 2s linear infinite;
    opacity: 0;
}

@keyframes ripple {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.icon-box i {
    font-size: 14px;
    color: #06BBCC;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.contact-text {
    flex: 1;
    min-width: 0; /* Allow text to shrink properly */
    overflow: hidden; /* Prevent text overflow */
}

.contact-text span {
    color: #adb5bd;
    font-size: 0.85rem;
    line-height: 1.2;
    display: block;
    white-space: nowrap; /* Keep text on one line */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis for overflow text */
}

/* Email needs special handling for overflow */
.contact-email span {
    font-size: 0.75rem;
}

.footer-bottom {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px 0; /* Further reduced padding */
    margin-top: 15px; /* Further reduced margin */
}

.copyright {
    font-size: 0.85rem;
    color: #adb5bd;
    text-align: left;
}

.copyright a {
    color: #06BBCC;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

.copyright a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: #06BBCC;
    transition: width 0.3s ease;
}

.copyright a:hover {
    color: #fff;
}

.copyright a:hover::after {
    width: 100%;
}

.credits {
    font-size: 0.85rem;
    color: #adb5bd;
    text-align: right;
}

.credits a {
    color: #06BBCC;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 600;
}

.credits a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: #06BBCC;
    transition: width 0.3s ease;
}

.credits a:hover {
    color: #fff;
}

.credits a:hover::after {
    width: 100%;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    background: #06BBCC;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 5px 20px rgba(6, 187, 204, 0.4);
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.back-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #06BBCC 30%, #0dcaf0 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.back-to-top i {
    position: relative;
    z-index: 1;
    animation: arrowBounce 2s infinite;
}

@keyframes arrowBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

.back-to-top:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 10px 25px rgba(6, 187, 204, 0.5);
}

.back-to-top:hover::before {
    opacity: 1;
}

/* Improved responsive styling for better organization and centering */
@media (max-width: 991px) {
    .footer-section {
        text-align: center;
    }
    
    .footer-top {
        padding: 30px 0 15px;
    }
    
    .footer-logo::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-separator {
        margin: 0 auto 15px;
    }
    
    .footer-about-text {
        padding-left: 0;
        border-left: none;
        padding: 0 15px;
        max-width: 80%;
        margin: 0 auto 15px;
    }
    
    .footer-social-icons {
        justify-content: center;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 80%;
        margin: 0 auto;
    }
    
    .footer-links li {
        padding: 0 10px;
        margin: 0 5px 10px;
        border-bottom: none;
        border-right: 1px dashed rgba(255, 255, 255, 0.05);
    }
    
    .footer-links li:last-child {
        border-right: none;
    }
    
    .contact-item {
        flex-direction: row;
        text-align: left;
        padding: 8px 12px;
        max-width: 90%;
        margin: 0 auto 10px;
        justify-content: center;
    }
    
    .icon-box {
        margin-right: 10px;
        margin-bottom: 0;
    }
    
    .footer-bottom {
        padding: 12px 0;
    }
    
    .copyright, .credits {
        text-align: center;
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .footer-top {
        padding: 20px 0 10px;
    }
    
    .footer-heading {
        font-size: 1.1rem;
        margin-top: 15px;
    }
    
    .footer-about-text {
        font-size: 0.85rem;
        max-width: 100%;
    }
    
    .footer-links {
        flex-direction: column;
        max-width: 100%;
    }
    
    .footer-links li {
        padding: 0;
        margin-bottom: 8px;
        border-right: none;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
        padding-bottom: 8px;
    }
    
    .contact-item {
        max-width: 100%;
        padding: 4px 8px;
        margin-bottom: 5px;
        align-items: center;
    }
    
    .contact-text span {
        font-size: 0.8rem;
    }
    
    .icon-box {
        width: 28px;
        height: 28px;
        margin-right: 8px;
    }
    
    .icon-box i {
        font-size: 12px;
    }
    
    .footer-bottom {
        padding: 10px 0;
        margin-top: 15px;
    }
    
    .copyright, .credits {
        font-size: 0.8rem;
    }
}

/* Compact footer layout for contact items */


/* Tablet view optimizations */
@media (min-width: 768px) and (max-width: 991px) {
    .footer-contact-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .contact-item {
        width: 100%;
        margin-bottom: 6px;
        align-items: center;
    }
    
    .contact-text {
        display: flex;
        align-items: center;
    }
}

/* =============================
   Responsive Fixes & Overrides
   ============================= */

/* Fluid media */
img, video { max-width: 100%; height: auto; }

/* Replace rigid card heights with fluid min-heights */
.programs-section .program-card {
    height: auto !important;
    min-height: clamp(260px, 45vw, 360px);
}
@media (max-width: 991px) {
    .programs-section .program-card {
        min-height: clamp(240px, 60vw, 340px);
    }
}
@media (max-width: 576px) {
    .programs-section .program-card {
        min-height: clamp(220px, 70vw, 320px);
    }
}

/* Courses: remove hard-coded heights */
.course-item, .course-item2 {
    height: auto !important;
    min-height: 0;
}

/* Scalable typography for section titles and hero text */
.section-title {
    font-size: clamp(1.5rem, 2.5vw + 1rem, 2.5rem) !important;
}
.hero-intro .intro-heading {
    font-size: clamp(1.8rem, 3.5vw + 1rem, 2.8rem) !important;
}
.hero-intro .intro-subtext {
    font-size: clamp(1rem, 1vw + 0.75rem, 1.2rem) !important;
}

/* Carousel controls positioning on small screens */
.header-carousel .owl-nav { right: 3%; }
@media (max-width: 767px) {
    .carousel-control-prev { left: 10px !important; }
    .carousel-control-next { right: 10px !important; }
}


/* Responsive navbar tweaks */
.navbar {
    min-height: 56px;
}
.navbar .nav-logo { max-height: 60px; height: auto; }
@media (max-width: 991.98px) {
    .navbar .nav-logo { max-height: 52px; }
    .navbar-nav { padding: 0.75rem 0 !important; }
}
@media (max-width: 575.98px) {
    .navbar .nav-logo { max-height: 46px; }
}

/* Keep brand and toggler on one line */
.navbar { display: flex; align-items: center; }
.navbar > .navbar-brand { flex: 0 0 auto; }
.navbar > .navbar-toggler { flex: 0 0 auto; }
.navbar > .collapse { flex: 1 1 auto; }

/* About section responsive typography */
.about-title {
    font-size: clamp(1.6rem, 2.5vw + 0.8rem, 2.8rem);
    font-weight: 700;
    color: #343a40;
    line-height: 1.25;
}

.about-text {
    font-size: clamp(1rem, 0.6vw + 0.8rem, 1.2rem);
    line-height: 1.8;
}

@media (max-width: 575.98px) {
    .about-text {
        line-height: 1.7;
    }
}

