:root {
  --primary-color: #3f51b5;
  --secondary-color: #ff5722;
  --dark-color: #212121;
  --light-color: #f5f5f5;
}

body,html {
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}
@font-face {
  font-family: "MyCustomFont";
  src: url("../fonts/Bord.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
.naft-dafont {
  font-family: MyCustomFont;
  word-spacing: -8px;
}

/* Navbar default style */

.navbar {
  transition: all 0.3s ease;
  padding: 15px 0;
   z-index: 1040; 
     margin-top: 40px; 
  background-color: transparent;
}

/* Navbar style when scrolled */
.navbar.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Navbar brand logo */
.navbar-brand img {
  height: 40px;
  transition: all 0.3s ease;
}

/* Navbar brand logo on scroll */
.navbar.scrolled .navbar-brand img {
  height: 35px;
}

/* Navbar links flex-wrap to avoid overflow */
.navbar-nav {
  flex-wrap: wrap;
  padding-left: 0;
  padding-right: 0;
}

/* Prevent horizontal scroll on all screens */


/* Mobile adjustments */
@media (max-width: 991px) {
  /* lg and below */
  .navbar-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 576px) {
  /* sm and below */
  .navbar {
    padding: 8px 0;
  }
  .navbar-brand img {
    height: 30px;
  }
  .navbar.scrolled .navbar-brand img {
    height: 28px;
  }
  .navbar-nav .nav-link {
    font-size: 0.85rem;
    padding: 0.35rem 0.5rem;
  }
}

.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../images/skill.avif");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 150px 0;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #303f9f;
  border-color: #303f9f;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.icon-box {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(63, 81, 181, 0.1);
  border-radius: 50%;
  margin: 0 auto 20px;
}
/* program tab */
#prevBtntab{
  position: absolute;
  top:0;
  left:-40px;
   width: 40px;
  height: 40px;
  font-size: 20px;
  color:#000;
  background-color: var(--light-color);
}
#nextBtntab{
  position: absolute;
  top:10%;
  right:-40px;
  width: 40px;
  height: 40px;
  color:#000;
  font-size: 20px;
  background-color: var(--light-color);
}
/* programs */
.card-img-top {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.testimonial-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 80px;
  position: absolute;
  top: 10px;
  left: 20px;
  color: rgba(0, 0, 0, 0.05);
  font-family: serif;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

.section-title {
  position: relative;
  display: block;
  text-align: center;
  margin-bottom: 40px;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 25%;
}
@media (max-width: 576px) {
  .section-title::after {
    width: 60%; /* make underline slightly wider on small screens */
    left: 20%;
  }
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}
.float-call {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 120px; /* WhatsApp ke upar space */
  right: 20px;
  background-color: #e11546;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 24px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s infinite, pulse 2s infinite;
  cursor: pointer;
}
.float-call:hover {
  background-color: #c10f3b;
}

/* WhatsApp Button */
.float-whatsapp {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 50px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 24px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s infinite, pulse 2s infinite;
  cursor: pointer;
}
.float-whatsapp:hover {
  background-color: #1ebe5b;
}
#programTabs {
  -ms-overflow-style: none; /* IE/Edge */
  scrollbar-width: none; /* Firefox */
}
#programTabs::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

@media (max-width: 576px) {
  #prevBtn,
  #nextBtn {
    width: 30px;
    height: 30px;
  }
  #programTabs .nav-link {
    font-size: 0.85rem;
    padding: 0.35rem 0.5rem;
  }
}
.scroll-row {
  scroll-behavior: smooth;
}
/* Chrome, Edge, Safari */
.scroll-row::-webkit-scrollbar {
  height: 8px; /* horizontal scrollbar height */
  background-color: #f1f1f1; /* track background */
}

.scroll-row::-webkit-scrollbar-track {
  background-color: #f1f1f1; /* track color */
  border-radius: 4px;
}

.scroll-row::-webkit-scrollbar-thumb {
  background-color: red; /* thumb color */
  border-radius: 4px;
  transition: background 0.3s ease;
}

.scroll-row::-webkit-scrollbar-thumb:hover {
  background-color: #303f9f; /* hover effect */
}

/* Mobile: stacked cards */
@media (max-width: 991px) {
  .scroll-row {
    flex-wrap: wrap !important;
    overflow: visible !important;
  }

  .scroll-row .card {
    flex: 0 0 100%;
  }

  .scroll-btn {
    display: none; /* Hide desktop buttons on mobile */
  }
}
.tab-pane {
  min-height: 420px; /* uniform height for all tabs */
}
/* Notice Bar */
.notice-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: red;
  color: white;
  padding: 8px 0;
  z-index: 1050; /* Navbar ke upar rahe */
  overflow: hidden;
  font-weight: bold;
 
}
/* notice board */
  /* Full-screen background image */
  .notice-image {
  width: 100%;             /* full width */
  max-width: 626px;        /* desktop max */
  height: auto;
  aspect-ratio: 1 / 1;     /* square shape maintained */
  margin: 0 auto;
  background-image: url('/images/Notice.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;           /* spacing for small screens */
}

.notice-board {
      width: 90%;
      max-width: 500px;
      height: 300px;
      margin-top:100px;
      background: #fff;
      border: 3px solid #1e3a8a;
      border-radius: 15px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.3);
      overflow: hidden;
      padding: 10px;
      text-align: center;
      position: relative;
    }

    .notice-board h4 {
      margin: 0 0 10px;
      padding: 8px;
      background: #1e3a8a;
      color: #fff;
      border-radius: 10px;
      font-size: 18px;
    }

    .scroll-container {
      height: 240px;
      overflow: hidden;
      position: relative;
    }

    .notice-list {
      position: absolute;
      width: 100%;
    }

    .notice-list p {
      margin: 8px 0;
      font-size: 14px;
      color: #333;
      font-weight: bold;
    }


/* 🔹 Mobile specific adjustments */
@media (max-width: 768px) {
  .notice-board {
    width: 80%;
    height: 190px;
    margin-top: 60px;
  }
 
    .notice-list {
      position: absolute;
      width: 100%;
    }
  .scroll-container {
    max-height: 160px;
    overflow: hidden;
      position: relative;
  }
    .notice-list {
      position: absolute;
      width: 100%;
    }
  .notice-board h4 {
    font-size: 16px;
  }
  .notice-list p {
    font-size: 13px;
  }
}

footer {
  background-color: var(--dark-color);
  color: white;
  padding: 50px 0 20px;
}
