:root {
  --default-color: #212529; /* Default color used for the majority of the text content across the entire website */
  --primary-color: #046a38; /* Islamic green */
  --secondary-color: #2c3e50;
  --accent-color: #00a3a3; /* Teal */
  --accent-hover-color: #008080;  /* Lighter/Brighter Teal for hover */
  --light-bg: #f5f5f5;


  --accent-active-color: #006666;
  --accent-disabled-bg: #a3dcdc;
  --accent-disabled-text: #f0fafa;


  --Amiri-font: 'Amiri', serif;
  --Kufi-font: 'kufi';
  --Montserrat-font: 'Montserrat', sans-serif;
  --Urdu-font: 'Urdu';
}


@font-face {
  font-family: Urdu;
  font-style: normal;  
  src: url("../fonts/webfont.eot?#iefix") format("embedded-opentype"), 
  url("../fonts/webfont.woff") format("woff"), 
  url("../fonts/webfont.ttf") format("truetype");
}

@font-face {
  font-family: kufi;
  font-style: normal;  
  src:  url('../fonts/DroidKufi-Regular.woff') format('woff'),
  url('../fonts/DroidKufi-Regular.ttf') format('truetype');
}

/*--------------------------------------------------------------
# Mix css
--------------------------------------------------------------*/

body {
  font-family: var(--Montserrat-font);
  overflow-x: hidden;
  background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
}

.amiri {
  font-family: var(--Amiri-font);
  font-size: 1.2em;
  direction: rtl;
}

.kufi{
  font-family: var(--Kufi-font);
  font-style: normal;
  font-weight: 400;  
}

.urdu{
  font-family: var(--Urdu-font);
  font-weight: 200;
  font-size: 1.1rem !important;
}
.urdu-heading{
  font-family: var(--Urdu-font);  
  font-size: 1em;
  font-weight: bold;
}


.thin-Montserrat {
  font-family: var(--Montserrat-font);
  font-weight: 300;
}

h1{
    color: var(--accent-color);
}

.jba_text{
  color: var(--accent-color);
}


.jba_bg{
  background-color: var(--accent-color) !important;
}


/*my custom link color*/
a.jba_link {
  color: var(--accent-color);
  text-decoration: none;
  position: relative;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  font-weight: 600;
  padding: 0 2px;
}

a.jba_link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

a.jba_link:hover {
  color: var(--accent-hover-color);
}

a.jba_link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
  background-color: var(--accent-hover-color);
}

a.jba_link:focus {
  outline: 2px solid var(--accent-hover-color);
  outline-offset: 2px;
  border-radius: 2px;
}
/*my custom link color end*/





/*--------------------------------------------------------------
# Custom button
--------------------------------------------------------------*/
.btn-jba {
  display: inline-block;
  font-weight: 400;
  color: #fff;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  background-color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.375rem;
  transition: background-color 0.15s ease-in-out, 
  border-color 0.15s ease-in-out, 
  box-shadow 0.15s ease-in-out;
  cursor: pointer;
}

.btn-jba:hover {
  background-color: var(--accent-hover-color);
  border-color: var(--accent-hover-color);
  color: #fff;
  text-decoration: none;
}

.btn-jba:focus {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(0, 163, 163, 0.5);
}

.btn-jba:active {
  background-color: var(--accent-active-color);
  border-color: var(--accent-active-color);
}

.btn-jba:disabled,
.btn-jba.disabled {
  background-color: var(--accent-disabled-bg);
  border-color: var(--accent-disabled-bg);
  color: var(--accent-disabled-text);
  cursor: not-allowed;
  opacity: 0.65;
  pointer-events: none;
}

/*my custom button end*/



/*my custom button outline*/
.btn-outline-jba {
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  background-color: transparent;
  transition: all 0.3s ease;
}

.btn-outline-jba:hover,
.btn-outline-jba:focus {
  background-color: var(--accent-color);
  color: #fff;
  text-decoration: none;
}
/*_______my custom button end*/





/*--------------------------------------------------------------
# Stat-Box
--------------------------------------------------------------*/
.stat-box {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent light */
  backdrop-filter: blur(6px); /* Subtle glass effect */
  padding: 30px;
  border-radius: 12px; /* Slightly smoother corners */
  /*border: 1px solid rgba(201, 166, 107, 0.3);  Soft gold border (from your theme) */
  /*box-shadow:0 4px 20px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.1);*/
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.5); /* 50% opacity white */
}


.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.testimonial-card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  border-top: 5px solid var(--accent-color);
}

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 81% 19% 36% 64% / 58% 34% 66% 42%;
  animation: blobAnimation 8s infinite ease-in-out;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;  
  object-fit: cover;
  object-position: top;
}

.teacher-card {
  text-align: center;
  margin-bottom: 30px;
}

.teacher-img {
  width: 220px;
  height: 220px;
  /*border-radius: 50%;*/
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70% ;
  animation: blobAnimation 8s infinite ease-in-out;
  object-fit: cover;
  object-position: top;
  /* border: 5px solid white; */
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  margin-bottom: 15px;
}

@keyframes blobAnimation {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 40% 60% 60% 40% / 35% 40% 60% 65%;
    }
    50% {
        border-radius: 70% 30% 30% 70% / 60% 65% 35% 40%;
    }
    75% {
        border-radius: 60% 40% 50% 50% / 40% 50% 50% 60%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}


footer {
  background-color: darkcyan;
  color: white;
  padding: 50px 0;
  font-size: 12px;
}

.social-icon {
  color: white;
  font-size: 1.5rem;
  margin-right: 15px;
  transition: color 0.3s;
}

.social-icon:hover {
  color: var(--accent-color);
}

.islamic-pattern {
  opacity: 0.1;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.pattern-container {
  position: relative;
}




.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px; 
  font-family: var(--Montserrat-font) !important;
  font-weight: 200 !important;
}

.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  height: 5px;
  background-color: #f8f8f8;
  max-width: 100%;
}




/*--------------------------------------------------------------
# Prayer-times
--------------------------------------------------------------*/
.prayer-times {
  background-color: var(--accent-color);
  color: white;
  padding: 20px;
  border-radius: 10px;
}

.prayer-time {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

@media (max-width: 992px) {
  .hero-image {
    height: 400px;
  }

  .floating-cards {
    margin-top: -80px;
  }
}

@media (max-width: 768px) {
  .hero-image {
    height: 350px;
  }

  .floating-cards {
    margin-top: -60px;
  }

  .modern-card img {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .hero-image {
    height: 300px;
  }

  .floating-cards {
    margin-top: -40px;
  }
}
.mar_n {
  margin-top: -140px;
  position: relative; 
}

.zIndex {
  z-index: 99999 !important;
}



/*--------------------------------------------------------------
# Nav Bar
--------------------------------------------------------------*/
.nav-custom {
  position: fixed !important;
  left: 0;
  top: 0;
  width: 100%;
  padding: 25px 10px;
  background-color: burlywood;
  /*background: linear-gradient(
    135deg,
    rgba(246, 204, 150, 0.9) 0%,
    rgba(194, 161, 118, 0.85) 50%,
    rgba(222, 184, 135, 0.8) 100%
  );*/
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  z-index: 1060;
  transition: top 0.3s ease;
}


.logo-hidden {
  opacity: 0;
  transform: translateY(-35%);
  transition: opacity 0.3s ease;
  transition: transform 0.3s ease-in-out;
  /*display: none !important;*/
}


.logo-small {
  transform: scale(0.7) translateY(-10px);
  transition: transform 0.3s ease, top 0.3s ease;
  margin-top: 5px; /* Optional: tweak as needed */
}



.navbar-hidden {
  transform: translateY(-35%);
  transition: transform 0.3s ease-in-out;
  padding-top: 35px;
  padding-right: 10px;
  padding-left: 10px;
  padding-bottom: 5px;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; /* ✅ Set height to allow scrolling */
    overflow-y: auto; /* ✅ Enable vertical scrolling */
    background: #606470;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease-out;
    z-index: 1000;
    margin-top: 0;
    border-radius: 0;
    border-left: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overscroll-behavior: contain; /* Optional: prevent bounce on iOS */
    -webkit-overflow-scrolling: touch; /* Optional: smooth scroll on iOS */
  }

  .navbar-collapse.show {
    transform: translateY(0);
  }

  .navbar-nav {
    margin-top: 3rem;
  }

  .nav-item {
    margin-bottom: 1.5rem;
  }

  .navbar-toggler {
    position: relative;
    z-index: 1100;
  }

  /* Close button */
  .close-menu {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: white;
    font-size: 1.5rem;
    background: none;
    border: none;
    z-index: 1100;
  }
}

.navlogo{
    height: 150px;
    margin-top: 80px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
  color: white !important;
  position: relative;
}

.hover-effect::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #fff;
  transition: width 0.3s ease;
}

.hover-effect:hover::after {
  width: 100%;
}

.apply-btn {
  color: white;
  background-color: var(--accent-color);
  border: none;
  border-radius: 30px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.apply-btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}




/*--------------------------------------------------------------
# Faq Section
--------------------------------------------------------------*/
.search-container {
  margin-bottom: 30px;
  position: relative;
}

.search-container i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #7f8c8d;
}

.search-container input {
  padding-left: 45px;
  border-radius: 50px;
  border: 1px solid #ddd;
}

.btn-accent {
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  transition: background-color 0.3s ease;
}

.btn-accent:hover {
  background-color: #2980b9;
}

.form-control {
  border-radius: 5px;
  border: 1px solid #ddd;
  padding: 12px 15px;
}

.input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.no-results {
  text-align: center;
  padding: 20px;
  color: #7f8c8d;
  display: none;
}

.highlight {
  background-color: #fff9c4;
  padding: 2px 4px;
  border-radius: 3px;
}

.contact-info {
  color: #34495e;
}

.contact-info a {
  color: var(--accent-color);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* --- Updated FAQ Styles --- */
.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 20px 15px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
}

.faq-item:hover {
  background-color: #f9f9f9;
}

.faq-item h3 {
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  padding-right: 30px !important;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: 0.1s;
  padding-top: 0;
  opacity: 0;
}

.faq-item.active .faq-content {
  max-height: 1000px;
  padding-top: 10px;
  opacity: 1;
}

.faq-toggle {
  position: absolute;
  right: 20px;
  top: 24px;
  font-size: 24px !important;
  color: #555;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
}

.faq-toggle::before {
  content: "+";
  font-weight: bold;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle::before {
  content: "–";
}


/* Events Start */
.event .tab-class .nav-item a.active {
    background: var(--accent-color) !important;
}

.event .event-img .event-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(212, 167, 98, 0.7);
    border-radius: 8px;
    transition: 0.5s;
    opacity: 0;
    z-index: 1;
}

.event .event-img:hover .event-overlay {
    opacity: 1;
}
/* Events End */

.wow,
.animated {
    animation-duration: 2s !important;
}


.border-accent {
  border-color: var(--accent-color) !important;
}




/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
@media (max-width: 640px) {
  .contact {
    background-position: center 50px;
    background-size: contain;
  }
}

.contact:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 30%);
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
}

.contact .info-item+.info-item {
  margin-top: 40px;
}

.contact .info-item i {
  background: var(--accent-color);
  color: var(--contrast-color);
  font-size: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 56% 44% 0% 100% / 65% 68% 32% 35% ;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.contact .info-item h3 {
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .php-email-form {
  height: 100%;
}






/*some added*/
.faq-item {
  padding: 20px;
  border-bottom: 1px solid #ddd;
}

.faq-icon {
  font-size: 28px;
  color: var(--accent-color, #2ecc71); /* Modern emerald green or your chosen accent */
}

.faq-item h3 {
  font-weight: 300; /* Light weight */
  font-size: 1.25rem;
  margin: 10px 0;
}

.faq-toggle {
  font-size: 16px;
  color: #666;
}





/*--------------------------------------------------------------
# Chef bar
--------------------------------------------------------------*/
.chef-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: 0.3s;
}

.chef-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;  
  object-position: top;
  border-radius: 119px 22px 119px 10px;
  -webkit-border-radius: 119px 22px 119px 10px;
  -moz-border-radius: 119px 22px 119px 10px;

  display: block;
}

.chef-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-align: center;
  padding: 20px;
  transition: 0.4s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.chef-card:hover .chef-overlay {
  bottom: 0;
}

.chef-overlay h5 {
  margin-bottom: 5px;
}

.chef-overlay span {
  font-size: 14px;
  color: #ddd;
}

.social-icons {
  margin-top: 10px;
}

.social-icons a {
  color: #f3f3f3;
  margin: 0 6px;
  font-size: 14px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #d4af37;
}


/*--------------------------------------------------------------
# stats-box
--------------------------------------------------------------*/
.state_icon {
  opacity: 0.6;
}




/*--------------------------------------------------------------
# Why Choose Us
--------------------------------------------------------------*/
.swiper-button-next,
.swiper-button-prev {
  color: var(--primary-color);
  font-size: 20px; /* Controls icon size */
  width: 40px;
  height: 40px;
  font-weight: bold;
}

/* Optional: Center the arrows vertically */
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px; /* Ensures arrow symbols are also resized */
}


.swiper-slide {
  display: flex;
  height: auto; 
}

.swiper-slide > div {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}




/*--------------------------------------------------------------
# Gallery
--------------------------------------------------------------*/
.gallery-item-wrapper {
  height: 320px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.gallery-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item-wrapper:hover .gallery-img {
  transform: scale(1.05);
}

.gallerySwiper {
  padding: 10px 0 30px;
}

.gallerySwiper .swiper-slide {
  height: auto;
  display: flex;
}

.gallerySwiper .swiper-button-next,
.gallerySwiper .swiper-button-prev {
  color: #0d6efd;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.gallerySwiper .swiper-button-next::after,
.gallerySwiper .swiper-button-prev::after {
  font-size: 20px;
  font-weight: bold;
}




/*--------------------------------------------------------------
# swiper-pagination
--------------------------------------------------------------*/
.swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.swiper-pagination .swiper-pagination-bullet {
  background-color: color-mix(in srgb, #212529, transparent 85%);
  border: 0;
  width: 12px;
  height: 12px;
  opacity: 1;
}

.swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
  opacity: 1;
}
/*------swiper-pagination end*/




/*--------------------------------------------------------------
# new alerts
--------------------------------------------------------------*/
.news-alerts {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
.news-card {
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  border-left: 4px solid #008080;
}
.university-badge {
  font-family: 'Georgia', serif;
  letter-spacing: 0.5px;
}
.date-badge {
  background-color: rgba(0,128,128,0.1);
  color: #008080;
}




/*--------------------------------------------------------------
# Announcement
--------------------------------------------------------------*/
.announcement-bar {
  background-color: antiquewhite;
  color: #000;
  position: relative;
  top: 0;
  width: 100%;
  padding: 5px 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  overflow: hidden;
  height: 30px;
  display: flex;
  align-items: center;
}


.announcement-text {
  white-space: nowrap;
  display: inline-block;
  animation: scroll-right-to-left 20s linear infinite;
  animation-delay: 2s; /* Start after 2 seconds */
  animation-play-state: running;
}

.announcement-bar:hover .announcement-text,
.announcement-bar:active .announcement-text {
  animation-play-state: paused;
}

@keyframes scroll-right-to-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}









