/* .elementor-element-32bbcba{
    height: 80vh !important;
} */
/* Carousel Container */
.carousel-container {
    position: relative;
    width: 100%; /* Adjust width as needed */
    height: 80vh; /* Adjust height as needed */
    overflow: hidden;
    /* border: 3px solid #ddd; */
    border-radius: 10px;
}
/* Image Wrapper */
.carousel-wrapper {
    display: flex;
    flex-direction: column;
    position: absolute;
    width: 100%;
    animation: scrollUp 25s linear infinite;
}
/* Row for two images */
.carousel-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
/* Individual Slide */
.carousel-slide {
    width: 48%; /* Two images in a row */
}
.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    padding: 10px 0px;
}
/* Pause Button */
.carousel-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}
.pause-btn {
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.carousel-row:nth-child(odd) .carousel-slide:first-child {
    margin-top: 15px; /* Move left image down */
}

.carousel-row:nth-child(even) .carousel-slide:last-child {
    margin-top: 15px; /* Move right image down */
}
/* Infinite Scrolling Animation */
@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); } /* Moves up smoothly */
}
.hero-left {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 40px 32px 32px 32px;
    /* margin-top: 24px; */
    /* margin-bottom: 24px; */
    text-align: right;
    position: relative;
    z-index: 2;
    align-content: center;
    height: 80vh;
    overflow: auto;
}
.hero-left h1 {
    /* min-height: 60px; */
    margin-bottom: 24px;
    font-size: 2.5rem;
}
#typewriter {
    border-right: 2px solid var(--main-color);
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    font-family: inherit;
    font-size: inherit;
    animation: blink-caret 0.75s step-end infinite;
}
@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--main-color); }
}
.typewriter-highlight {
    color: var(--main-color);
    font-weight: bold;
    border-right: 2px solid var(--main-color);
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    font-family: inherit;
    font-size: inherit;
    animation: blink-caret 0.75s step-end infinite;
    min-height: 50px;
}
/* === Enhanced Sections Styling === */
#achievements {
    background: linear-gradient(135deg, #f8fafc 60%, #e3f0ff 100%);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.achievement-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 32px 12px 20px 12px;
    margin-bottom: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    min-height: 170px;
}
.achievement-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}
.achievement-icon {
    font-size: 2.5rem;
    color: var(--main-color);
    margin-bottom: 10px;
    display: block;
}
#partners {
    background: linear-gradient(90deg, #f6fafd 60%, #eaf3ff 100%);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.partners-swiper .swiper-slide img {
    filter: grayscale(1) brightness(0.9);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s, transform 0.2s;
    height: 115px;
    /* max-height: 80px; */
    margin: 0 auto;
}
.partners-swiper .swiper-slide img:hover {
    filter: grayscale(0) brightness(1);
    opacity: 1;
    transform: scale(1.08);
}
#blogs {
    background: linear-gradient(135deg, #f8fafc 60%, #e3f0ff 100%);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.blogs-swiper .card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s, transform 0.2s;
    overflow: hidden;
    min-height: 350px;
    direction: rtl;
    text-align: right;
}
.blogs-swiper .card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    transform: translateY(-6px) scale(1.03);
}
.blogs-swiper .card-img-top {
    border-radius: 18px 18px 0 0;
    object-fit: cover;
    height: 180px;
}
.blogs-swiper .card-title {
    color: var(--main-color);
    font-weight: bold;
    font-size: 1.2rem;
}
.blogs-swiper .btn-primary {
    background: var(--main-color);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    padding: 6px 18px;
}
.blogs-swiper .btn-primary:hover {
    background: #0d6efd;
}
.swiper-button-next, .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: var(--main-color);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(4,162,162,0.13), 0 1.5px 8px rgba(0,0,0,0.07);
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    border: none;
    z-index: 2;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--main-color-dark, #038080);
    transform: scale(1.1);
}
.swiper-button-next i, .swiper-button-prev i {
    font-size: 1.5rem;
    color: #fff;
    pointer-events: none;
}
.swiper-button-next::after, .swiper-button-prev::after {
    display: none;
}
.swiper-pagination-bullet-active {
    background: var(--main-color) !important;
}
.edu-swiper .swiper-slide {
  height: auto;
  display: flex;
  align-items: stretch;
  margin-left: 12px;
  margin-right: 12px;
}
.courses-list-arabic .course-card, .programs-list-arabic .program-card {
  min-width: 280px;
  max-width: 370px;
  margin: 0 auto;
  margin-bottom: 16px;
}
.edu-swiper .swiper-pagination {
  bottom: 0;
}
.edu-swiper .swiper-button-next, .edu-swiper .swiper-button-prev {
  top: 55%;
}
.edu-swiper .swiper-wrapper {
  padding-bottom: 32px;
  margin-left: -12px;
  margin-right: -12px;
}
/* Enhanced Tabs UI for التعليم والتطوير */
#education-development .nav-tabs {
  border: none;
  background: #f6fafd;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(4,162,162,0.06);
  padding: 0.5rem 0.5rem 0 0.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
#education-development .nav-tabs .nav-link {
  border: none;
  border-radius: 14px 14px 0 0;
  background: transparent;
  color: var(--main-color);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.75rem 2.2rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  margin-bottom: 0;
}
#education-development .nav-tabs .nav-link.active {
  /* background: linear-gradient(90deg, #eaf3ff 60%, #f6fafd 100%); */
  color: var(--card-dark);
  background: var(--main-color);
  /* color: var(--main-color) !important; */
  box-shadow: 0 4px 16px rgba(4,162,162,0.10);
  /* color: var(--main-color-dark, #038080); */
}
#education-development .nav-tabs .nav-link:not(.active):hover {
  background: #eaf3ff;
  color: var(--main-color-dark, #038080);
}
/* --- Course & Program Card UI Fixes --- */
.course-card, .program-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 24px rgba(4,162,162,0.08);
  border: 1px solid #e3f0ff;
  overflow: hidden;
  transition: box-shadow 0.22s, transform 0.22s;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 340px;
  position: relative;
}
.course-card:hover, .program-card:hover {
  box-shadow: 0 12px 32px rgba(4,162,162,0.18);
  transform: translateY(-6px) scale(1.03);
}
.course-image-banner, .program-image-banner {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  background: #f8f8f8;
  transition: transform 0.22s;
}
.course-card:hover .course-image-banner, .program-card:hover .program-image-banner {
  transform: scale(1.05);
}
.course-card-body, .program-card-body {
  padding: 22px 18px 16px 18px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.course-card h5, .program-card h5 {
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--main-color-dark, #038080);
  margin-bottom: 0.7rem;
  margin-top: 0.2rem;
  line-height: 1.4;
  min-height: 48px;
}
.course-info-row, .program-info-row {
  font-size: 1.02rem;
  color: var(--navbar-text);
  opacity: 0.85;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.course-icon, .program-icon {
  color: var(--main-color, #04a2a2);
  font-size: 1.1em;
  margin-left: 6px;
  margin-right: 2px;
  vertical-align: middle;
}
.program-type-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  background: linear-gradient(90deg, #0a7e8c 0%, #8c0a7e 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: bold;
  border-radius: 20px;
  padding: 4px 18px;
  box-shadow: 0 2px 8px #0a7e8c22;
  z-index: 2;
  letter-spacing: 1px;
}
.course-card .btn, .program-card .btn {
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  padding: 7px 22px;
  margin-top: 10px;
  justify-content: center;
}
.course-card .btn-primary, .program-card .btn-outline-primary {
  width: 100%;
}
@media (max-width: 767px) {
  .course-card, .program-card {
    min-height: 260px;
    border-radius: 14px;
  }
  .course-image-banner, .program-image-banner {
    height: 130px;
    border-radius: 14px 14px 0 0;
  }
  .course-card-body, .program-card-body {
    padding: 14px 10px 10px 10px;
  }
  .program-type-tag {
    top: 10px;
    right: 10px;
    font-size: 0.85rem;
    padding: 3px 12px;
  }
}
@media (max-width: 767px) {
    #achievements, #partners, #blogs {
        border-radius: 10px;
        padding: 1.5rem 0.5rem;
    }
    .achievement-card {
        min-height: 120px;
        padding: 18px 6px 12px 6px;
    }
    .blogs-swiper .card-img-top {
        height: 120px;
    }
    #education-development .nav-tabs .nav-link {
      font-size: 1rem;
      padding: 0.5rem 1.1rem;
    }
}
@media (max-width: 768px) {
    .swiper-button-next, .swiper-button-prev {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .swiper-button-next i, .swiper-button-prev i {
        font-size: 1.1rem;
    }
}