/********** Template CSS **********/
:root {
    --primary: #2124B1;
    --secondary: #4777F5;
    --light: #F7FAFF;
    --dark: #1D1D27;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}





/*** Heading ***/
h1,
h2,
h3,
.fw-bold {
    font-weight: 700 !important;
}

h4,
h5,
h6,
.fw-medium {
    font-weight: 500 !important;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.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: 50px;
}


/*** Navbar ***/
.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-left: 25px;
    padding: 35px 0;
    color: var(--light) !important;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--secondary) !important;
}

.navbar-light .navbar-brand h1 {
    color: #FFFFFF;
}

.navbar-light .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-brand img {
    max-height: 45px;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-light {
        position: relative;
        background: #FFFFFF;
    }

    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid #DDDDDD;
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
        color: var(--dark) !important;
    }

    .navbar-light .navbar-brand h1 {
        color: var(--primary);
    }

    .navbar-light .navbar-brand img {
        max-height: 45px;
    }
}

@media (min-width: 992px) {
    .navbar-light {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }
    
    .sticky-top.navbar-light {
        position: fixed;
        background: #FFFFFF;
    }

    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--secondary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .sticky-top.navbar-light .navbar-brand h1 {
        color: var(--primary);
    }
}


/* 2. Logo Link Wrapper */
        .logo-container {
            display: flex;
            align-items: center;
            height: 100%; /* Constrains to the navbar height */
            text-decoration: none;
            background: transparent;
        }

        /* 3. Responsive Logo Image */
        .logo-container img {
            height: 400px; /* Base size - feel free to increase this! */
          
            width: auto;     /* Keeps the exact aspect ratio so it never distorts */
            display: block;
        }



/* Fixes the navbar brand container so it doesn't expand */
.navbar-brand.custom-logo-brand {
    display: inline-flex;
    align-items: center;
    max-height: 70px; /* Locks the maximum space the logo area can take */
    overflow: visible; /* Allows the logo to scale nicely */
}

/* Lets you resize the logo freely without stretching the navbar */
.navbar-brand.custom-logo-brand img {
    height: 200px;       /* <-- INCREASE OR DECREASE THIS VALUE FREELY */
    max-height: none;   /* Overrides Bootstrap limits */
    width: auto;        /* Keeps correct aspect ratio so it never distorts */
    display: block;
}




/*** Hero Header ***/
.hero-header {
    background:
        url(../img/bg-dot.png),
        url(../img/bg-dot.png),
        url(../img/bg-round.png),
        url(../img/bg-tree.png),
        url(../img/bg-bottom-hero.png);
    background-position:
        10px 10px,
        bottom 190px right 10px,
        left 55% top -1px,
        left 45% bottom -1px,
        center bottom -1px;
    background-repeat: no-repeat;
    background-size:
        auto,
        auto,
        auto,
        auto,
        100% auto;
}


/* --- Explore Programs Section Styling --- */
.explore-programs-section {
    padding: 80px 20px;
    background-color: #f8fafc; /* Matches your light background style */
}

.explore-programs-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.programs-banner-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.banner-content {
    flex: 1;
}

.banner-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #3b82f6;
    background: #eff6ff;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 16px;
}

.programs-banner-card h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
    line-height: 1.2;
}

.programs-banner-card p {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Button matching your site's dark navy buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #1e293b; 
    color: #ffffff;
    padding: 14px 28px;
    border-init: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.15);
}

.cta-button:hover {
    background-color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 41, 59, 0.25);
}

.cta-button i {
    transition: transform 0.3s ease;
    
}

.cta-button:hover i {
    transform: translateX(4px);
}

.banner-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.banner-image img {
    max-width: 100%;
    height: auto;
    max-height: 280px;
}

/* Responsive layout for mobile devices */
@media (max-width: 768px) {
    .programs-banner-card {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
    }
    
    .programs-banner-card h2 {
        font-size: 1.75rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .banner-image {
        display: none; /* Hides graphic on smaller screens if space is tight */
    }
}







        :root {
            --primary: #1e2a5e;
            --primary-hover: #141d40;
            --white: #ffffff;
            --bg-light: #f0f4f8;
            --text-dark: #2d3748;
            --success: #22543d;
            --success-bg: #c6f6d5;
            --danger: #822727;
            --danger-bg: #fed7d7;
            --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-strong: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }

        * { box-sizing: border-box; }
        body { 
            font-family: 'Poppins', sans-serif; 
            background: var(--bg-light); 
            margin: 0; padding: 0; 
            color: var(--text-dark); 
            line-height: 1.6;
            transition: direction 0.3s ease;
        }

        /* RTL Support */
        body.rtl { direction: rtl; }
        body.rtl .top-nav { justify-content: flex-start; }
        body.rtl .lang-btn { margin-left: 0; margin-right: 8px; }
        body.rtl .btn-back svg { transform: rotate(180deg); }
        body.rtl .btn-back:hover { transform: translateX(5px); }
        body.rtl select { background-position: left 20px center; }

        .top-nav {
            background: var(--white);
            padding: 10px 20px;
            display: flex;
            justify-content: flex-end;
            border-bottom: 1px solid #e2e8f0;
        }

        .lang-btn {
            background: transparent; border: 1px solid #e2e8f0; border-radius: 8px;
            padding: 6px 12px; cursor: pointer; font-weight: 600; font-size: 0.85rem;
            margin-left: 8px; transition: 0.3s;
        }
        .lang-btn.active { border-color: var(--primary); color: var(--primary); background: #f0f4ff; }

        .main-header { text-align: center; padding: 40px 20px 20px; color: var(--primary); }
        .main-header h1 { margin: 0; font-size: 2.5rem; font-weight: 800; }
        .main-header p { margin: 5px 0; letter-spacing: 3px; color: #718096; font-weight: 600; }

        .container { max-width: 1100px; margin: auto; padding: 20px; }

        .filter-panel { 
            background: var(--white); 
            padding: 40px; 
            border-radius: 30px; 
            box-shadow: var(--shadow-strong); 
            margin-bottom: 45px;
            display: flex; 
            flex-direction: column; 
            gap: 30px; 
            align-items: center;
            border: 1px solid rgba(226, 232, 240, 0.8);
            background: linear-gradient(to bottom, #ffffff, #fcfdff);
        }
        .filter-group { display: flex; flex-direction: column; gap: 12px; }
        .filter-group label { 
            font-weight: 700; 
            font-size: 1.1rem; 
            color: var(--primary); 
            letter-spacing: 0.5px;
            padding-left: 5px;
        }
        select { 
            padding: 16px 24px; 
            border-radius: 16px; 
            border: 2px solid #e2e8f0; 
            background: #ffffff; 
            width: 320px; 
            outline: none; 
            font-size: 1.05rem; 
            font-weight: 600; 
            color: var(--text-dark);
            cursor: pointer; 
            transition: all 0.3s ease;
            box-shadow: var(--shadow-soft);
            appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e2a5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 20px center;
            background-size: 16px;
        }
        select:hover { border-color: var(--primary); transform: translateY(-2px); }
        select:focus { 
            border-color: var(--primary); 
            box-shadow: 0 0 0 4px rgba(30, 42, 94, 0.15); 
        }

        @media (min-width: 768px) { .filter-panel { flex-direction: row; justify-content: center; gap: 60px; } }

        .program-card {
            display: flex; flex-direction: column; background: var(--white); 
            border-radius: 20px; margin-bottom: 25px; overflow: hidden; box-shadow: var(--shadow-soft);
        }
        .card-img { width: 100%; height: 200px; background-size: cover; background-position: center; }
        .card-content { padding: 25px; flex: 1; }
        .card-action { padding: 25px; background: #f8fafc; border-top: 1px solid #edf2f7; text-align: center; }

        @media (min-width: 768px) {
            .program-card { flex-direction: row; height: 260px; }
            .card-img { width: 35%; height: auto; }
            .card-action { width: 240px; border-top: none; border-left: 1px solid #edf2f7; display: flex; flex-direction: column; justify-content: center; }
            body.rtl .card-action { border-left: none; border-right: 1px solid #edf2f7; }
        }

        .status-tag { display: inline-block; padding: 6px 14px; border-radius: 8px; font-size: 0.75rem; font-weight: 800; }
        .tag-open { background: var(--success-bg); color: var(--success); border: 1px solid #9ae6b4; }
        .tag-closed { background: var(--danger-bg); color: var(--danger); border: 1px solid #feb2b2; }

        .btn-details, .btn-apply {
            border: none; border-radius: 12px; font-weight: 700; cursor: pointer; transition: 0.3s; text-decoration: none;
            background: var(--primary); color: white; padding: 14px; width: 100%; display: block;
        }
        .btn-details:hover, .btn-apply:hover { background: var(--primary-hover); transform: translateY(-2px); }

        .btn-back { 
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #ffffff; 
            color: var(--primary); 
            padding: 12px 24px; 
            border-radius: 14px;
            border: 2px solid #e2e8f0;
            font-weight: 700;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-bottom: 25px;
            box-shadow: var(--shadow-soft);
        }
        .btn-back:hover { 
            background: var(--primary); 
            color: white; 
            border-color: var(--primary);
            transform: translateX(-5px);
            box-shadow: 0 4px 12px rgba(30, 42, 94, 0.2);
        }

        .details-overlay { display: none; position: fixed; inset: 0; background: white; z-index: 2000; overflow-y: auto; padding: 20px; }
        .details-container { max-width: 900px; margin: 20px auto; padding-bottom: 60px; }
        
        .details-mini-header { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; border-bottom: 2px solid #f0f4f8; padding-bottom: 20px; }
        .mini-pic { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; }
        
        .details-section { margin-bottom: 35px; }
        .details-section h3 { color: var(--primary); border-bottom: 2px solid #edf2f7; padding-bottom: 8px; margin-bottom: 15px; }
        .additionnels-notes { background: #fdfaf0; padding: 25px; border-radius: 15px; border: 1px solid #faedcd; }
        
        ul { padding-left: 20px; }
        body.rtl ul { padding-left: 0; padding-right: 20px; }
        li { margin-bottom: 12px; }
    

/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 4px;
    bottom: 0;
    left: 0;
    background: var(--dark);
}

.section-title::after {
    position: absolute;
    content: "";
    width: 4px;
    height: 4px;
    bottom: 0;
    left: 50px;
    background: var(--dark);
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -25px;
}

.section-title.text-center::after {
    left: 50%;
    margin-left: 25px;
}

.section-title h6::before,
.section-title h6::after {
    position: absolute;
    content: "";
    width: 10px;
    height: 10px;
    top: 2px;
    left: 0;
    background: rgba(33, 66, 177, .5);
}

.section-title h6::after {
    top: 5px;
    left: 3px;
}


/*** Service ***/
.service-item {
    position: relative;
    height: 350px;
    padding: 30px 25px;
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}

.service-item:hover {
    background: var(--primary);
}

.service-item .service-icon {
    margin: 0 auto 20px auto;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    background: url(../img/icon-shape-primary.png) center center no-repeat;
    transition: .5s;
}

.service-item:hover .service-icon {
    color: var(--primary);
    background: url(../img/icon-shape-white.png);
}

.service-item h5,
.service-item p {
    transition: .5s;
}

.service-item:hover h5,
.service-item:hover p {
    color: var(--light);
}

.service-item a.btn {
    position: relative;
    display: flex;
    color: var(--primary);
    transition: .5s;
    z-index: 1;
}

.service-item:hover a.btn {
    color: var(--primary);
}

.service-item a.btn::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 35px;
    top: 0;
    left: 0;
    border-radius: 35px;
    background: #DDDDDD;
    transition: .5s;
    z-index: -1;
}

.service-item:hover a.btn::before {
    width: 100%;
    background: var(--light);
}


/*** Project Portfolio ***/
.portfolio-overlay {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 30px;
    top: 0;
    left: 0;
    background: var(--primary);
    transition: .5s;
    z-index: 1;
    opacity: 0;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item .btn {
    position: absolute;
    width: 90px;
    height: 90px;
    top: 0px;
    right: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(../img/icon-shape-white.png) center center no-repeat;
    border: none;
    transition: .5s;
    opacity: 0;
    z-index: 2;
}

.portfolio-item:hover .btn {
    opacity: 1;
    transition-delay: .15s;
}


/*** Footer ***/
.footer {
    background: url(../img/footer.png) center center no-repeat;
    background-size: contain;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid rgba(256, 256, 256, .1);
    border-radius: 40px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: var(--light);
    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: 14px;
    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;
}


/* Container layout to keep cards stacked perfectly in place */
.css-testimonial-container {
  position: relative;
  min-height: 280px;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

/* Attractive Creative Blue Card Design with Glow */
.testimonial-card-box {
  background: linear-gradient(145deg, #ffffff, #f4f8ff);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0, 123, 255, 0.12), 0 5px 15px rgba(0, 0, 0, 0.03);
  border: 2px solid rgba(0, 123, 255, 0.2);
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card-box:hover {
  border-color: rgba(0, 123, 255, 0.5);
  box-shadow: 0 20px 45px rgba(0, 123, 255, 0.2);
}

/* Responsive Flex Wrapper */
.testimonial-flex-wrapper {
  display: flex;
  align-items: center;
  gap: 30px;
}

.testimonial__img-col {
  flex-shrink: 0;
  text-align: center;
}

.testimonial__content-col {
  flex-grow: 1;
}

/* Profile Picture Frame with Vibrant Blue Gradient Ring */
.testimonial__img-wrapper {
  display: inline-block;
  padding: 5px;
  background: linear-gradient(135deg, #007bff, #00d4ff);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.35);
}

.testimonial__img-circle {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid #ffffff;
}

/* Typography & Content Styling */
.testimonial__content h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.testimonial__role {
  color: #007bff;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.testimonial__i {
  color: #4a5568;
  font-style: italic;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 0;
}

.testimonial__icon {
  position: absolute;
  right: 35px;
  bottom: 25px;
  font-size: 40px;
  color: rgba(0, 123, 255, 0.12);
  pointer-events: none;
}

/* Base style for each testimonial item */
.css-testimonial__item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  animation: infiniteTestimonialFade 24s infinite;
}

/* Timing offsets for 3 items (12 seconds total: 4 seconds each) */
.css-testimonial__item.delay-1 {
  animation-delay: 0s;
}

.css-testimonial__item.delay-2 {
  animation-delay: 8s;
}

.css-testimonial__item.delay-3 {
  animation-delay: 6s;
}

/* Smooth Infinite Loop Keyframes */
@keyframes infiniteTestimonialFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
  }
  4% {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  30% {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  34% {
    opacity: 0;
    transform: translateY(-20px);
    visibility: hidden;
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
    visibility: hidden;
  }
}

/* ==========================================
   MOBILE RESPONSIVE BREAKPOINT (< 768px)
   ========================================== */
@media (max-width: 767.98px) {
  .css-testimonial-container {
    min-height: 380px; /* Gives extra vertical room for stacked mobile layout */
  }

  .testimonial-card-box {
    padding: 25px 20px;
  }

  .testimonial-flex-wrapper {
    flex-direction: column; /* Stack image above text on mobile */
    text-align: center;
    gap: 15px;
  }

  .testimonial__img-circle {
    width: 80px;
    height: 80px;
  }

  .testimonial__content h3 {
    font-size: 19px;
  }

  .testimonial__i {
    font-size: 14px;
    line-height: 1.6;
  }

  .testimonial__icon {
    right: 20px;
    bottom: 15px;
    font-size: 28px;
  }
}



