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

/* General Background */
body {
    background-color: var(--light-grey) !important;
}

.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;
}

/* About Page Hover Effects */
.hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(6, 163, 218, 0.2) !important;
    background: #06A3DA !important;
}

.hover-effect:hover h6,
.hover-effect:hover small {
    color: white !important;
}

.hover-effect:hover .fa {
    color: white !important;
}


/*** 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;
}


/*** 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 .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #ffffff;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #ffffff;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@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;
    }
}


/*** Header carousel ***/
@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/carousel-1.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;
}

/*** Navbar Logo Styling ***/
.navbar-logo {
    height: 40px;
    width: auto;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-brand {
    font-weight: 700;
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 35px;
        margin-right: 10px;
    }
}


/*** Enhanced Program Cards ***/
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
    position: relative;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.card:hover .card-title {
    color: var(--primary);
}

.card-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    transition: all 0.3s ease;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 187, 204, 0.3);
}

/* Program grid spacing */
.row.g-4 {
    margin: 2rem 0;
}

/* Program container styling */
.container.py-5 {
    padding: 3rem 0 !important;
}

.section-title-container {
    text-align: center;
    margin-bottom: 3rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .card:hover {
        transform: translateY(-5px);
    }
}

/*** Show/Hide Programs & Diplomas Functionality ***/
.hidden-program,
.hidden-diploma {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hidden-program.fade-in,
.hidden-diploma.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.hidden-program.fade-out,
.hidden-diploma.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

/* Toggle button styling */
#toggleProgramsBtn,
#toggleDiplomasBtn {
    background: linear-gradient(135deg, var(--primary) 0%, #048a99 100%);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 187, 204, 0.3);
}

#toggleProgramsBtn:hover,
#toggleDiplomasBtn:hover {
    background: linear-gradient(135deg, #048a99 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 187, 204, 0.4);
}

#toggleProgramsBtn i,
#toggleDiplomasBtn i {
    transition: transform 0.3s ease;
}

#toggleProgramsBtn:hover i,
#toggleDiplomasBtn:hover i {
    transform: scale(1.1);
}

/* Animation for card appearance */
.program-item,
.diploma-item {
    animation-duration: 0.6s;
    animation-fill-mode: both;
}

.fadeInUp {
    animation-name: fadeInUp;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 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;
    text-transform: capitalize;
    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;
}
/* Dropdown menu base */
.navbar .dropdown-menu {
    border: none;
    border-radius: 8px;
    padding: 8px 0;
    box-shadow: 0px 6px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    overflow: hidden; /* keeps hover bg inside */
}

/* Dropdown animation on hover */
.navbar .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown items */
.navbar .dropdown-menu .dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    border-radius: 0; /* prevents hover bg bleeding */
    width: 100%;      /* makes hover background full width */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover effect for dropdown items */
.navbar .dropdown-menu .dropdown-item:hover {
    background-color: #06BBCC;
    color: #fff;
    transform: translateX(5px);
}

/* Navbar links */
.navbar-light .navbar-nav .nav-link {
    position: relative;
    padding: 12px 18px; /* tighter hover area */
    margin: 0 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover background for navbar links */
.navbar-light .navbar-nav .nav-link:hover {
    background-color: #06BBCC;
    color: #fff !important;
}
/* Center the "Our Programs" heading */
.section-title-container {
   text-align: center;   /* centers the text */
    margin-bottom: 20px; /* space below the heading */
    margin-top: 20px;    /* space above the heading */
}


.section-title {
  font-size: 30px !important;      /* More reasonable size */
  font-weight: 700 !important;
  color: #06BBCC;       /* bootstrap primary blue */
  position: center;
  
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}


/* Program Cards container */
.programs-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center all cards */
}

/* Program Cards */
.program-card {
  display: block;
  width:400px; /* Fixed width for uniformity */
  height: 220px; /* Fixed height for uniformity */
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-decoration: none;
  font-size: 20px;
  color: #6c757d;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  text-align: center;
  
}

.program-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: opacity 0.3s ease;
  padding-bottom: 15px;
}

/* Hover effect */
.program-card:hover {
  background: #06BBCC;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.program-card:hover img {
  opacity: 0.1;

}

.program-card h5 {
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
}

.program-card:hover h5 {
  color: #fff;
}

@media (max-width: 768px) {
  .program-card {
    width: 100%; /* Full width on small screens */
  }
}



/* --- Logo Styling --- */
.navbar-logo {
  height: 45px;
  width: auto;
  transition: all 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
  transform: scale(1.05);
}

.about-section-logo {
  height: 80px;
  width: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.footer-logo {
  height: 60px;
  width: auto;
  filter: brightness(1.1);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Enhanced navbar with logo */
.navbar-brand {
  transition: all 0.3s ease;
}

.navbar-brand h2 {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* About section logo container */
.about-logo {
  display: inline-block;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 123, 255, 0.2);
  transition: all 0.3s ease;
}

.about-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2);
}

/* Responsive logo sizing */
@media (max-width: 768px) {
  .navbar-logo {
    height: 35px;
  }
  
  .about-section-logo {
    height: 60px;
  }
  
  .footer-logo {
    height: 50px;
  }
  
  .about-logo {
    padding: 15px;
  }
}

/* --- Main Carousel Section --- */
.main-carousel-section {
  position: relative;
  overflow: hidden;
}

.carousel-item {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  z-index: 2;
}

.carousel-overlay h1 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px !important;
}

.carousel-overlay h5 {
  font-weight: 600;
  letter-spacing: 2px;
}

.carousel-overlay p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.header-carousel .owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  padding: 0 50px;
  z-index: 3;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(0, 123, 255, 0.9) !important;
  color: white !important;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: none;
}

.header-carousel .owl-nav .owl-prev {
  left: 30px;
}

.header-carousel .owl-nav .owl-next {
  right: 30px;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
  background: rgba(0, 123, 255, 1) !important;
  transform: scale(1.1);
}

.header-carousel .owl-dots {
  display: none !important; /* Hide the navy dots */
}

/* Animation classes */


/*** Programs Showcase Carousel Styling ***/
.programs-showcase .item {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.programs-showcase .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.programs-showcase .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(6, 187, 204, 0.8), rgba(24, 29, 56, 0.7));
  display: flex;
  align-items: center;
  z-index: 2;
}

.programs-showcase .hero-text h5 {
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.programs-showcase .hero-text h1 {
  color: #ffffff !important;
  font-weight: 800;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  margin-bottom: 1.5rem;
}

.programs-showcase .hero-text p {
  color: #f8f9fa !important;
  font-size: 1.1rem;
  line-height: 1.6;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  margin-bottom: 2rem;
}

.programs-showcase .btn {
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 25px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.programs-showcase .btn-primary {
  background: #ffffff;
  color: var(--primary);
  border: 2px solid #ffffff;
}

.programs-showcase .btn-primary:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(6, 187, 204, 0.4);
}

.programs-showcase .btn-light {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.programs-showcase .btn-light:hover {
  background: #ffffff;
  color: var(--primary);
  transform: translateY(-2px);
}

/* Enhanced arrow styling for this carousel */
.programs-showcase .header-carousel .owl-nav .owl-prev,
.programs-showcase .header-carousel .owl-nav .owl-next {
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--primary) !important;
  border: 2px solid rgba(255, 255, 255, 0.9);
  font-size: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.programs-showcase .header-carousel .owl-nav .owl-prev:hover,
.programs-showcase .header-carousel .owl-nav .owl-next:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(6, 187, 204, 0.3);
}

/*** Programs Page Background Styling ***/
/* Option 1: Simple solid background color */
.programs-page-bg {
  background-color: #f8f9fa; /* Light gray background */
  min-height: 100vh;
}

/* Option 2: Gradient background */
.programs-page-gradient {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
}

/* Option 3: Primary color theme background */
.programs-page-primary {
  background: linear-gradient(135deg, var(--light) 0%, #ffffff 50%, var(--light) 100%);
  min-height: 100vh;
}

/* Option 4: Modern blue gradient */
.programs-page-modern {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: white;
}

/* Option 5: Subtle pattern background */
.programs-page-pattern {
  background-color: #f8f9fa;
  background-image: 
    radial-gradient(circle at 25px 25px, rgba(6, 187, 204, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 75px 75px, rgba(6, 187, 204, 0.1) 2px, transparent 2px);
  background-size: 100px 100px;
  min-height: 100vh;
}

/* Adjust card styling for colored backgrounds */
.programs-page-modern .card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.programs-page-modern .section-title {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

@keyframes slideInDown {
  from {
    transform: translate3d(0, -100%, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideInUp {
  from {
    transform: translate3d(0, 100%, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

.slideInDown {
  animation-name: slideInDown;
}

.slideInUp {
  animation-name: slideInUp;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-item {
    height: 70vh;
    min-height: 500px;
  }
  
  .carousel-overlay h1 {
    font-size: 2.5rem !important;
  }
  
  .carousel-overlay .hero-buttons .btn {
    display: block;
    margin-bottom: 15px;
    margin-right: 0 !important;
  }
  
  .header-carousel .owl-nav {
    padding: 0 20px;
  }
  
  .header-carousel .owl-nav .owl-prev,
  .header-carousel .owl-nav .owl-next {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}
.hero-image-container {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-content {
  position: relative;
  text-align: center;
  color: white;
  z-index: 3;
  max-width: 900px;
  padding: 0 20px;
}


.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.hero-buttons {
  margin-bottom: 3rem;
}

.hero-buttons .btn {
  padding: 15px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;

  transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
  opacity: 0.9;
}

/* Enhanced overlay */
.hero-image-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(6, 187, 204, 0.3) 0%, rgba(24, 29, 56, 0.6) 100%);
  z-index: 1;
}

.hero-image-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
  z-index: 2;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%; /* Full height for background usage */
  overflow: hidden;
}

/* --- Professional Section Styling --- */
.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, #48cae4 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.section-heading {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-subheading {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 0;
  line-height: 1.6;
}

/* --- Features Section --- */
.features-section {
  background: white;
  position: relative;
  overflow: hidden;
}

.features-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 49%, rgba(6, 187, 204, 0.02) 50%, transparent 51%);
  pointer-events: none;
}

.feature-card {
  text-align: center;
  padding: 40px 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(6, 187, 204, 0.1);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary) 0%, #48cae4 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  position: relative;
  overflow: hidden;
}

.feature-icon::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.feature-card:hover .feature-icon::before {
  opacity: 1;
  animation: shimmer 0.6s ease;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.feature-icon i {
  font-size: 1.8rem;
  color: white;
  z-index: 1;
  position: relative;
}

.feature-card h5 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
}

.feature-card p {
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
}

/* --- About Us Section with Background Carousel --- */
.about-us-section {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  padding-top: 40px; /* Extra padding for breathing room */
  border-top: 1px solid rgba(0, 123, 255, 0.1); /* Subtle separator line */
}

/* Background Carousel */
.background-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.background-carousel .background-carousel-slider {
  height: 100%;
}

.background-carousel .item {
  position: relative;
  width: 100%;
  height: 100%;
}

.background-carousel .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25; /* Reduced for less visual load */
  filter: grayscale(40%) brightness(1.1);
  will-change: transform; /* Optimize for animations */
}

/* Overlay to ensure content readability */
.background-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(248, 249, 250, 0.4); /* Reduced overlay for better visibility */
  z-index: 2;
}

/* Hide navigation controls for background carousel */
.background-carousel .owl-nav,
.background-carousel .owl-dots {
  display: none !important;
}

/* Content positioning */
.about-us-section .container {
  position: relative;
  z-index: 3;
}

.about-us-section {
  background: rgba(248, 249, 250, 0.85); /* Allow more carousel visibility */
  position: relative;
  overflow: hidden;
}

.about-us-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(6,187,204,0.05)"/><circle cx="80" cy="80" r="1" fill="rgba(6,187,204,0.05)"/><circle cx="40" cy="60" r="1" fill="rgba(6,187,204,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
  pointer-events: none;
}

.section-title {
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 14px;
}

.about-card {
  background: white;
  border-radius: 15px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(6, 187, 204, 0.1);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, #48cae4 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.about-card:hover::before {
  transform: scaleX(1);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, #48cae4 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
}

.about-card-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
}

.about-card:hover .about-card-icon::before {
  width: 100%;
  height: 100%;
}

.about-card-icon i {
  font-size: 2rem;
  color: white;
  z-index: 1;
  position: relative;
}

.about-card-content h4 {
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.about-card-content p {
  color: #6c757d;
  line-height: 1.8;
  font-size: 15px;
}

/* --- Programs Showcase Section --- */
.programs-showcase {
  background: linear-gradient(135deg, var(--dark) 0%, #2c3e50 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.programs-showcase .section-badge {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.programs-showcase .section-heading {
  color: white;
}

.programs-showcase .section-subheading {
  color: rgba(255, 255, 255, 0.8);
}

/* --- Statistics Section --- */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, #48cae4 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hexagons" width="50" height="43.4" patternUnits="userSpaceOnUse"><polygon points="25,0 50,14.4 50,28.9 25,43.4 0,28.9 0,14.4" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23hexagons)"/></svg>') repeat;
  pointer-events: none;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: all 0.6s ease;
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-card .stat-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.stat-card .stat-icon i {
  font-size: 1.5rem;
  color: white;
}

.stat-card .stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  display: block;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-card .stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.hero-carousel .item {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-carousel .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradient overlay */
.hero-carousel .item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.7) 100%
  );
}

/* Navigation arrows */
.owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff !important;
  border: none;
  font-size: 2rem !important;
  padding: 5px 15px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.owl-nav button:hover {
  background: rgba(0, 0, 0, 0.8);
}

.owl-nav .owl-prev {
  left: 10px;
}

.owl-nav .owl-next {
  right: 10px;
}

/* --- Slide Animations --- */

/* Slide out to left */
@keyframes slideOutLeftFast {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(-100%); opacity: 1; } /* keep visible, no fade */
}

.owl-animated-out.slideOutLeftFast {
  animation: slideOutLeftFast 0.6s ease forwards;
}

/* Slide in from right */
@keyframes slideInRightFast {
  from { transform: translateX(100%); opacity: 1; }
  to { transform: translateX(0); opacity: 1; }
}

.owl-animated-in.slideInRightFast {
  animation: slideInRightFast 0.6s ease forwards;
}

/* Responsive adjustments for hero image and all new sections */
@media (max-width: 992px) {
  .hero-stats {
    gap: 2rem;
  }
  
  .section-heading {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .hero-image-container {
    height: 80vh;
    min-height: 500px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .hero-buttons .btn {
    padding: 12px 25px;
    font-size: 14px;
  }
  
  .section-heading {
    font-size: 2rem;
  }
  
  .section-subheading {
    font-size: 1rem;
  }
  
  /* Features responsive */
  .feature-card {
    padding: 30px 15px;
    margin-bottom: 20px;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
  }
  
  .feature-icon i {
    font-size: 1.5rem;
  }
  
  /* About Us responsive adjustments */
  .about-card {
    padding: 30px 20px;
    margin-bottom: 30px;
  }
  
  .about-card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }
  
  .about-card-icon i {
    font-size: 1.5rem;
  }
  
  .about-card-content h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .about-card-content p {
    font-size: 14px;
  }
  
  /* Stats responsive */
  .stat-card {
    padding: 30px 20px;
    margin-bottom: 20px;
  }
  
  .stat-card .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .hero-image-container {
    height: 70vh;
    min-height: 450px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-buttons {
    margin-bottom: 2rem;
  }
  
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }
  
  .stat-number {
    font-size: 2rem !important;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .section-heading {
    font-size: 1.8rem;
  }
  
  .section-subheading {
    font-size: 0.95rem;
  }
  
  /* Features mobile */
  .feature-card {
    padding: 25px 15px;
  }
  
  .feature-card h5 {
    font-size: 1.1rem;
  }
  
  .feature-card p {
    font-size: 14px;
  }
  
  /* About Us mobile adjustments */
  .about-us-section {
    padding: 40px 0 !important;
  }
  
  .about-card {
    padding: 25px 15px;
    border-radius: 10px;
  }
  
  .about-card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
  }
  
  .about-card-icon i {
    font-size: 1.2rem;
  }
  
  .about-card-content {
    text-align: center;
  }
  
  .about-card-content h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }
  
  .about-card-content p {
    font-size: 13px;
    line-height: 1.6;
  }
  
  /* Stats mobile */
  .stat-card {
    padding: 25px 15px;
  }
  
  .stat-card .stat-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
  }
  
  .stat-card .stat-icon i {
    font-size: 1.2rem;
  }
  
  .stat-card .stat-number {
    font-size: 2.2rem;
  }
  
  .stat-card .stat-label {
    font-size: 0.9rem;
  }
}

/* --- Statistics Counter Section --- */
.stats-section {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.1;
}

.stats-section .container {
  position: relative;
  z-index: 2;
}

.stat-card {
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  height: 100%;
}

.stat-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
  color: #fff;
}

.stat-label {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.95);
}

.stat-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

/* --- Enhanced Features Section --- */
.features-section {
  background: #f8f9fa;
}

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 123, 255, 0.1);
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 123, 255, 0.15);
  border-color: rgba(0, 123, 255, 0.3);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
  color: white;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-card h5 {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.feature-card p {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- Testimonials Section --- */
.testimonials-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.testimonial-item {
  padding: 0 15px;
}

.testimonial-content {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  margin-bottom: 30px;
}

.testimonial-quote {
  font-size: 3rem;
  color: #007bff;
  opacity: 0.3;
  position: absolute;
  top: 20px;
  left: 30px;
}

.testimonial-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #495057;
  margin: 30px 0 25px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #007bff;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #007bff;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
}

.author-info h5 {
  margin: 0;
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.1rem;
}

.author-info span {
  color: #6c757d;
  font-size: 0.9rem;
}

/* --- Call-to-Action Section --- */
.cta-section {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  transform: skewX(-15deg);
  transform-origin: top;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: white;
}

.cta-description {
  font-size: 1.2rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.cta-buttons .btn {
  padding: 15px 30px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.cta-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .cta-buttons {
    text-align: center;
    margin-top: 30px;
  }
  
  .cta-buttons .btn {
    display: block;
    margin-bottom: 15px;
  }
  
  .cta-title {
    font-size: 2rem;
  }
}

/*** Language Translation Enhancements ***/
/* Language dropdown styling */
.nav-item.dropdown .nav-link {
    display: flex;
    align-items: center;
}

#currentLang {
    font-weight: 600;
    font-size: 14px;
}

/* Professional hover effects */
.nav-link:hover {
    color: var(--primary) !important;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--primary);
    color: white !important;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

/* Enhanced button styling */
.cta-button {
    box-shadow: 0 4px 15px rgba(6, 125, 234, 0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    box-shadow: 0 6px 20px rgba(6, 125, 234, 0.5);
    transform: translateY(-2px);
}

/* Smooth transitions for language switch */
[data-translate] {
    transition: opacity 0.3s ease;
}

/* Globe icon animation */
.fa-globe {
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Professional card shadows */
.feature-card, .about-card {
    transition: all 0.3s ease;
}

.feature-card:hover, .about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* RTL Support for Arabic Language */
html[lang="ar"] {
    direction: rtl;
    text-align: right;
}

html[lang="ar"] body {
    text-align: right;
}

/* Keep Navbar LTR (Left-to-Right) even in Arabic */
html[lang="ar"] .navbar,
html[lang="ar"] .navbar-nav,
html[lang="ar"] .navbar-collapse {
    direction: ltr;
    text-align: left;
}

html[lang="ar"] .dropdown-menu {
    direction: ltr;
    text-align: left;
}

/* RTL Button adjustments - except navbar and footer */
html[lang="ar"] .btn i:not(.navbar .btn i):not(.footer .btn i) {
    margin-left: 0;
    margin-right: 0.5rem;
}

html[lang="ar"] .fa-arrow-right:not(.navbar .fa-arrow-right):not(.footer .fa-arrow-right) {
    transform: rotate(180deg);
}

/* RTL List adjustments */
html[lang="ar"] ul,
html[lang="ar"] ol {
    padding-right: 1.5rem;
    padding-left: 0;
}

/* RTL Icon adjustments - except navbar and footer */
html[lang="ar"] .me-2:not(.navbar .me-2):not(.footer .me-2) {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

html[lang="ar"] .me-3:not(.navbar .me-3):not(.footer .me-3) {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

html[lang="ar"] .ms-2:not(.navbar .ms-2):not(.footer .ms-2) {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

html[lang="ar"] .ms-3:not(.navbar .ms-3):not(.footer .ms-3) {
    margin-right: 1rem !important;
    margin-left: 0 !important;
}

/* RTL Text alignment */
html[lang="ar"] .text-start {
    text-align: right !important;
}

html[lang="ar"] .text-end {
    text-align: left !important;
}

/* Keep Footer LTR (Left-to-Right) even in Arabic */
html[lang="ar"] .footer,
html[lang="ar"] .footer .container,
html[lang="ar"] .footer .row {
    direction: ltr;
    text-align: left;
}

html[lang="ar"] .footer .btn-link {
    text-align: left;
}

/* RTL Breadcrumb */
html[lang="ar"] .breadcrumb-item + .breadcrumb-item::before {
    float: right;
    padding-left: 0.5rem;
    padding-right: 0;
}

/* Keep Programs Showcase LTR */
html[lang="ar"] .programs-showcase,
html[lang="ar"] .programs-showcase .container,
html[lang="ar"] .programs-showcase .header-carousel {
    direction: ltr;
    text-align: left;
}

/* RTL Carousel arrows - except programs showcase */
html[lang="ar"] .owl-nav .owl-prev:not(.programs-showcase .owl-prev) {
    left: auto;
    right: 20px;
}

html[lang="ar"] .owl-nav .owl-next:not(.programs-showcase .owl-next) {
    right: auto;
    left: 20px;
}

/* Smooth transition for direction change */
html {
    transition: direction 0.3s ease;
}
