.hero-slider .prevArrow,
.hero-slider .nextArrow {
  position: absolute;
  bottom: 0px;
  z-index: 9;
  color: rgba(255, 255, 255, 0.5);
  border: 0;
  font-size: 30px;
  transition: all linear .2s;
  background: transparent;
}

.hero-slider .prevArrow:focus,
.hero-slider .nextArrow:focus {
  outline: 0;
}

.hero-slider .prevArrow:hover,
.hero-slider .nextArrow:hover {
  color: #db2727;
}

.hero-slider .prevArrow {
  right: 120px;
}

.hero-slider .nextArrow {
  right: 60px;
}

.hero-slider .slick-dots {
  position: absolute;
  bottom: 0px;
  text-align: center;
  left: 0;
  padding-left: 400;
}

.hero-slider .slick-dots li {
  display: inline-block;
  margin: 0 6px;
}

.hero-slider .slick-dots li.slick-active button {
  background: #db2727;
}

.hero-slider .slick-dots li button {
  color: transparent;
  padding: 0;
  overflow: hidden;
  height: 10px;
  width: 10px;
  background: rgba(255, 255, 255, 0.5);
  border: 0;
  outline: 0;
}

/* Wrapper */
.wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 100%;
}

/* Arrow icons */
.wrapper i {
  height: 46px;
  width: 46px;
  line-height: 46px;
  text-align: center;
  background: #dc3545;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  position: absolute;
  z-index: 10;
}

.wrapper i#left {
  left: -20px;
}

.wrapper i#right {
  right: -20px;
}

/* Carousel container */
.carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* Firefox */
}

.carousel::-webkit-scrollbar {
  display: none;
  /* Chrome */
}

/* Images */
.carousel img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  user-select: none;
}

/* While dragging */
.carousel.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.carousel.dragging img {
  pointer-events: none;
}

/* start academic css */

/* ---------- HERO ---------- */
.academics-hero {

  background-size: cover;
  background-position: center;
  padding: 100px 0;
  margin-top: 180px;
}

.academics-hero h1 {
  font-weight: 700;
}

/* ---------- SECTION ---------- */
.section-padding {
  padding: 60px 0;
}

.section-subtitle {
  max-width: 700px;
  margin: auto;
  color: #666;
}

/* ---------- CARD ---------- */
.academic-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  transition: .3s ease;
}

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

.academic-title {
  font-weight: 600;
  color: #393d72;
}

.subject-list li {
  padding: 4px 0;
}

/* ---------- RESPONSIVE ---------- */
@media(max-width:768px) {
  .academics-hero {
    padding: 70px 0;
  }
}


/* start about css */

/* Container for the Tree and Buttons */
.tree-wrapper {
  position: relative;
  width: 100%;
  max-width: 1300px;
  aspect-ratio: 3 / 2;
  margin-bottom: 50px;
}


.bg-tree {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
  background: white;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}


/* Floating Clickable Labels */
.value-label {
  position: absolute;
  background: white;
  color: var(--text-dark);
  padding: 8px 15px;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border-left: 5px solid var(--accent-orange);
  white-space: nowrap;
  z-index: 10;
}

.value-label:hover {
  transform: scale(1.08) translateY(-3px);
  background: var(--accent-orange);
  color: white;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.25);
}

.pos-1 {
  top: 16%;
  left: 30%;
  border-color: #f39c12;
}

/* Taqwa */
.pos-2 {
  top: 35%;
  left: 17%;
  border-color: #a3c139;
}

/* Role Model */
.pos-3 {
  top: 16%;
  left: 59%;
  border-color: #16a085;
}

/* Enjoining Good */
.pos-4 {
  top: 61%;
  left: 11%;
  border-color: #2980b9;
}

/* Research */
.pos-5 {
  top: 36%;
  left: 70%;
  border-color: #f1c40f;
}

/* Service */
.pos-6 {
  top: 62%;
  left: 75%;
  border-color: #e67e22;
}

/* Ideology */


/* Modal / Description Popup */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.dcard {
  background: white;
  width: 90%;
  max-width: 550px;
  padding: 40px;
  border-radius: 15px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 25px;
  cursor: pointer;
  color: #bdc3c7;
}

.dcard h2 {
  margin-top: 0;
  color: #4b3621;
  border-bottom: 2px solid #f39c12;
  padding-bottom: 10px;
}

.dcard p {
  line-height: 1.7;
  color: #555;
  text-align: justify;
}

.arabic {
  font-family: 'Noto Sans Arabic', sans-serif;
  color: #34495e;
  font-size: 1.15em;
}

.arabic {
  font-family: 'Noto Sans Arabic', sans-serif;
  color: #34495e;
  font-size: 1em;
}

/* ---------- RESPONSIVE ---------- */
@media(max-width:768px) {
  .pos-1 {
    top: 15%;
    left: 22%;
    border-color: #f39c12;
  }

  /* Taqwa */
  .pos-2 {
    top: 32%;
    left: 12%;
    border-color: #a3c139;
  }

  /* Role Model */
  .pos-3 {
    top: 15%;
    left: 49%;
    border-color: #16a085;
  }

  /* Enjoining Good */
  .pos-4 {
    top: 60%;
    left: 2%;
    border-color: #2980b9;
  }

  /* Research */
  .pos-5 {
    top: 32%;
    left: 60%;
    border-color: #f1c40f;
  }

  /* Service */
  .pos-6 {
    top: 60%;
    left: 56%;
    border-color: #e67e22;
  }
}

/* emagazine css */

.team-section {
  background: #f7f9fc;
  padding: 100px 0 80px;
  margin-top: 120px;
  /* HEADER HEIGHT */
}

@media(max-width:768px) {
  .team-section {
    margin-top: 0px;
  }
}

/* all campus css */

.services a {
  text-decoration: none;
}

.services .service-box {
  text-align: center;
}

.services .service-box h2 {
  color: #222;
  font-size: 20px;
  padding-top: 10px;
  text-decoration: none;
}

.services a .service-box:hover h2 {
  color: #27db45;
}

.services .investor-box {
  background-color: #eeeeee;
  background-position: center center;
  padding: 20px;
  width: 100%;
  min-height: 150px;
  display: block;
  position: relative;
  box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.2);
}

.services .investor-box h2 {
  font-size: 20px;
}

.services .investor-box .flip-view {
  position: absolute;
  top: 0;
  width: 100%;
  background-color: #db2727;
  left: -10%;
  padding: 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: all ease-in-out 333ms;
}

.services .investor-box a {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.services .investor-box:hover .flip-view {
  left: 0;
  visibility: visible;
  opacity: 1;
}


.tab-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.tab-scroll {
  overflow-x: auto;
  white-space: nowrap;
  flex-wrap: nowrap !important;
  scrollbar-width: none;
  /* Firefox */
}

.tab-scroll::-webkit-scrollbar {
  display: none;
  /* Chrome */
}

.tab-scroll .nav-item {
  flex: 0 0 auto;
}

/* Buttons */
.scroll-btn {
  background: #db2727;
  color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 10;
}

.scroll-btn.left {
  margin-right: 5px;
}

.scroll-btn.right {
  margin-left: 5px;
}

.scroll-btn:hover {
  background: #a61c1c;
}

/* gallery css */

.photo-gallery {
  color: #313437;
  background-color: #fff;
}

.photo-gallery p {
  color: #7d8285;
}

.photo-gallery h2 {
  font-weight: bold;
  margin-bottom: 40px;
  padding-top: 40px;
  color: inherit;
}

@media (max-width:767px) {
  .photo-gallery h2 {
    margin-bottom: 25px;
    padding-top: 25px;
    font-size: 24px;
  }
}

.photo-gallery .intro {
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto 40px;
}

.photo-gallery .intro p {
  margin-bottom: 0;
}

.photo-gallery .photos {
  padding-bottom: 20px;
}

.photo-gallery .item {
  padding-bottom: 30px;
}

/* index css */

.about {
  background: #f8f9fa;
}

.counter-box {
  background: #dc3545;
  padding: 35px 15px;
  border-radius: 14px;
  color: #ffffff;
  height: 100%;
  transition: all 0.35s ease;
}

.counter-box h2 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 6px;
}

.counter-box h6 {
  font-size: 14px;
  letter-spacing: 1px;
  margin: 0;
}

.counter-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

@media (max-width:767px) {
  .quick-access{
    padding: 0px;
  }
}

.quick-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  height: 100%;
}

.quick-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.12);
}

.icon-box {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  transition: transform 0.4s ease;
}

.quick-card:hover .icon-box {
  transform: rotate(8deg) scale(1.1);
}

.quick-card h4 {
  margin-bottom: 12px;
  font-weight: 600;
}

.quick-card p {
  font-size: 15px;
  color: #666;
  margin-bottom: 20px;
}

.quick-card .btn {
  padding: 8px 24px;
  border-radius: 30px;
  font-size: 14px;
}

/* GALLERY CAROUSEL */
.product {
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.product-container {
  padding: 0 5vw;
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.product-container::-webkit-scrollbar {
  display: none;
}

.product-card {
  flex: 0 0 auto;
  width: 250px;
  height: 350px;
  margin-right: 80px;
}

.product-image {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card:hover {
  opacity: 1;
}

.pre-btn,
.nxt-btn {
  border: none;
  /* width: 10vw; */
  height: 100%;
  position: absolute;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
  cursor: pointer;
  z-index: 18;
}

.pre-btn {
  left: 0;
  transform: rotate(0deg);
}

.nxt-btn {
  right: 0;
  transform: rotate(360deg);
}

.pre-btn img,
.nxt-btn img {
  opacity: 0.2;
}

.pre-btn:hover img,
.nxt-btn:hover img {
  opacity: 1;
}

/* counter */
.countcontainer {
  position: relative;
  margin: auto;
  overflow: hidden;
  width: 500px;
}

#myheading {
  text-align: center;
  margin-top: 2em;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: #F6F4F3;
}

#timer {
  color: #F6F4F3;
  text-align: center;
  text-transform: uppercase;
  font-size: .7em;
  letter-spacing: 5px;
}

.days,
.hours,
.minutes,
.seconds {
  display: inline-block;
  padding: 20px;
  width: 140px;
  border-radius: 5px;
  background: #EF2F3C;
  margin-bottom: 10px;
}

.numbers {
  color: #F6F4F3;
  font-size: 4em;
}

@media (max-width: 767px) {
  .countcontainer {
    margin-left: 0px;
    margin-right: 0px;
  }

}

.section-sm {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Desktop: normal grid */
@media (min-width: 992px) {
  .emagazine-wrapper {
    display: flex;
    flex-wrap: wrap;
  }

  .emagazine-wrapper .emagazine-item {
    position: relative;
  }

  .flickity-enabled {
    display: block;
  }
}

/* Mobile: slider */
@media (max-width: 991px) {
  .emagazine-wrapper {
    display: block;
  }

  .emagazine-item {
    width: 80%;
    margin-right: 15px;
  }
}
