/* ================================
   Fazl Academy - Main Stylesheet
   Version: 1.0 | Bootstrap 5.3.3
   ================================ */

/* ---------- Global Styles ---------- */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* Headings */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: #f6ac42;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
}
a:hover {
  color: #f7bd37;
}

/* ---------- Navbar ---------- */
.navbar {
  transition: all 0.3s ease;
  background: #4fb7b8 !important;
  height: 70px;
}

#nav{
    background: #4fb7b8 !important;
  height: 70px;
}
.navbar-brand {
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}
.navbar-collapse {
    
    background: #4fb7b8 !important;
}
a.nav-link {
    color: white;
    font-weight: bold;
    /*border-bottom: 1px solid #36a9aa;*/
    padding-bottom: 19px;
    margin-top: 7px;
    margin-bottom: 6px;
    padding-left: 15px;
}
.navbar-dark .navbar-nav .nav-link {
  color: #ccc;
  font-weight: 500;
  margin: 0 4px;
  transition: 0.3s;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #f7bd37;
}

/* Space for fixed-top navbar */
@media (max-width: 991px) {
  body {
    padding-top: 70px;
    padding-bottom: 70px;
  }
}
@media (min-width: 992px) {
  body {
    padding-top: 70px;
  }
}

/* ---------- Hero Slider ---------- */
.carousel-item img {
  height: auto;
  object-fit: cover;
}
.carousel-caption {
  bottom: 25%;
}
.carousel-caption h2 {
  color: #fff;
  text-shadow: 1px 1px 5px #000;
  font-weight: 700;
}
.carousel-caption p {
  color: #f1f1f1;
  font-size: 1.1rem;
}

/* ---------- Section Headings ---------- */
section h2 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Cards ---------- */
.card {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
card img {
    height: 100%;
    object-fit: cover;
}
.card-title {
  color: #222;
  font-weight: 600;
}
.card-text {
  color: #666;
  font-size: 0.95rem;
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-warning {
  background-color: #f7bd37;
  border: none;
}
.btn-warning:hover {
  background-color: #e5ac20;
}

/* ---------- Banners ---------- */
section .img-fluid {
  border-radius: 10px;
  transition: transform 0.3s ease;
}
section .img-fluid:hover {
  transform: scale(1.02);
}

/* ---------- Footer ---------- */
footer {
  font-size: 14px;
  background-color: #111;
  color: #eee;
  letter-spacing: 0.3px;
}
footer small {
  color: #aaa;
}

/* ---------- Mobile Bottom Shortcut Bar ---------- */
.mobile-shortcuts {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 70px;
    width: 100%;
    background: #4fb7b8 !important;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.4);
    z-index: 1050;
}

.mobile-shortcuts a {
  color: #ccc;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  flex: 1;
}
.mobile-shortcuts i {
  display: block;
  font-size: 18px;
}
.mobile-shortcuts a.active,
.mobile-shortcuts a:hover {
  color: #f7bd37;
}

/* ---------- Back to Top Button ---------- */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #2d71b8;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  display: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  z-index: 1051;
}
.back-to-top:hover {
  background: #153f67;
}

.carousel {
    position: relative;
 
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 767px) {
  .carousel-item img {
    height: auto;
  }
  .card img {
    height: auto;
  }
  .carousel-caption {
    bottom: 15%;
  }
  

}

/* ✅ Add extra space under slider only on mobile */
@media (max-width: 576px) {
  #heroCarousel {
    padding-bottom: 60px !important;
  }
}


/* ✅ Smart Notification Bar */
.smartbar {
  background-color: #d1e7dd;
  color: black !important
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.4s ease-in-out;
  z-index: 1080;
  width: 100%;
  overflow: hidden;
  padding: 5px;
}

.smartbar a {
  color: #fff;
  background: #4fb892;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease;
  white-space: nowrap; /* prevents button text wrap */
}

.smartbar a:hover {
  background: #f6ac42;
}

.smartbar .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.smartbar .btn-close:hover {
  opacity: 1;
}

.smartbar.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

/* ✅ Mobile Optimization */
@media (max-width: 576px) {
  .smartbar {
    font-size: 0.9rem;
    padding: 6px 0;
  }
  .smartbar .container {
    flex-direction: column;
    text-align: center;
  }
  .smartbar a {
    margin-top: 4px;
    font-size: 0.85rem;
  }
  .smartbar span {
    display: block;
    white-space: normal; /* allow text wrap */
  }
}

/* Footer Social Links */
.social-link {
  color: #fff;
  transition: all 0.3s ease;
}
.social-link:hover {
  color: #4fb7b8 !important;
  transform: translateY(-3px);
}

/* Newsletter input styling */
footer .form-control {
  border-radius: 30px;
  border: none;
  padding: 10px 15px;
}
footer .btn-warning {
  border-radius: 30px;
  padding: 10px 20px;
  color: #000;
}




/* Responsive Fix */
@media (max-width: 768px) {
  footer form {
    flex-direction: column;
  }
  footer .form-control {
    width: 100% !important;
    margin-bottom: 10px;
  }
  footer .btn-warning {
    width: 100%;
  }
}






@media (min-width: 992px) {
  .col-lg-2-4 {
    flex: 0 0 auto;
    width: 20%;
  }
}

.card {
  transition: all 0.3s ease-in-out;
  border-radius: 6px;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ✅ Course Image Wrapper (Square for Desktop) */
.course-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* square ratio */
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}

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

/* ✅ For Mobile: make sure full photo fits */
@media (max-width: 767px) {
  .course-img-wrapper {
    padding-top: 100%; /* still square */
  }

  .course-img {
    object-fit: contain; /* ✅ show full image */
    background: #fff;
  }
}








/* ✅ Course Type Badge hover animation */
.badge {
  transition: transform 0.3s ease-in-out;
}
.badge:hover {
  transform: scale(1.05);
}











@media (max-width: 991px) {
  #heroCarousel {
    height: 280px !important;
  }
  #heroCarousel img {
    object-fit: cover;
  }
}




.mobile-nav {
  background: #f6ac42;
  z-index: 1050;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}

.mobile-nav a {
  color: #fff !important;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.mobile-nav a.active {
  color: #ffe45e !important; /* light yellow highlight for active page */
}

