/* ==========================================================================
   GLOBAL STYLES & RESETS
   ========================================================================== */

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden !important;
}

body {
  margin: 0;
  padding-top: 170px;
  font-family: 'Poppins', sans-serif;
  background-color: #F5F7F8;
  max-width: 100%;
  overflow-x: hidden !important;
}

.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1050;
  padding: 0 1rem;
  background: transparent;
  transition: all 0.4s ease;
}

.navbar.sticky {
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.navbar-brand img {
  height: 160px;
  transition: height 0.4s ease;
}

.navbar.sticky .navbar-brand img {
  height: 130px;
}

.navbar-nav {
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  font-family: 'Jost', sans-serif;
  font-size: 18px;
  font-weight: 600;
  padding: 6px 12px;
  color: #333 !important;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #2e3192 !important;
}

.btn-login {
  background-color: #2e3192;
  color: white;
  padding: 6px 14px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.3s ease;
}

.btn-login:hover {
  background-color: #1f236e;
  color: #ffc107;
}

/* Offcanvas Menu */
.offcanvas {
  z-index: 1055;
}

.offcanvas.offcanvas-end {
  height: 100vh;
}

.offcanvas-header {
  border-bottom: 1px solid #ddd;
}

.offcanvas-body {
  overflow-y: auto;
  max-height: calc(100vh - 56px);
}

.offcanvas-body .nav-link {
  display: block;
  padding: 10px 0;
  font-weight: 500;
}

.offcanvas-body .btn-login {
  width: 100%;
  margin-top: 20px;
}

/* ==========================================================================
   COMMON SECTION STYLES
   ========================================================================== */

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: bold;
  color: #2e3192;
}

.section-subtext {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  font-family: 'Poppins', sans-serif;
}

/* ==========================================================================
   WHO WE ARE SECTION
   ========================================================================== */

.who-we-are-section {
  background-color: #f5f7f8;
  padding: 100px 20px;
}

.about-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.about-image:hover {
  transform: scale(1.03);
}

/* ==========================================================================
   VISION & MISSION CAROUSEL
   ========================================================================== */

#vision-mission-carousel {
  width: 100%;
  overflow: hidden;
}

#vision-mission-carousel .carousel-item {
  min-height: 90vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.vision-slide {
  background-image: url('/static/Image/vision.jpg');
}

.mission-slide {
  background-image: url('/static/Image/mission.jpg');
}

.vision-mission-slide {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

#vision-mission-carousel .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  overflow: visible;
}

.vision-mission-slide .container {
  padding-bottom: 60px;
  margin-top: 0;
  max-width: 100%;
  overflow: visible;
}

.vision-mission-slide .row {
  overflow: visible;
  padding: 20px 0;
}

.vision-mission-slide .card {
  background-color: rgba(255, 255, 255, 0.88);
  color: #2e3192;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 300px;
  margin: 20px auto;
  transition: all 0.4s ease;
}

.vision-mission-slide .card:hover {
  background-color: #2e3192;
  color: #fff;
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.vision-mission-slide .card h3,
.vision-mission-slide .card h5,
.vision-mission-slide .card p {
  transition: color 0.3s ease;
}

.vision-mission-slide .card:hover h3,
.vision-mission-slide .card:hover h5,
.vision-mission-slide .card:hover p {
  color: #ffffff;
}

.vision-mission-slide .card img {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  transition: transform 0.4s ease;
}

.vision-mission-slide .card:hover img {
  transform: scale(1.2) rotate(5deg);
}

/* ==========================================================================
   CORE VALUES SECTION
   ========================================================================== */

.core-values-section {
  background-color: #f9fafe;
  padding: 80px 0;
  overflow: visible;
}

.core-values-section .row {
  overflow: visible;
}

.core-values-section .col-md-3,
.core-values-section .col-sm-6 {
  padding: 20px 15px;
}

.value-card {
  background-color: #fff;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 30px 15px;
  height: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-8px);
  border-color: #2e3192;
  background-color: #2e3192;
  color: #fff;
}

.icon-wrapper {
  font-size: 36px;
  color: #2e3192;
  transition: color 0.3s ease;
}

.value-card:hover i,
.value-card:hover h5,
.value-card:hover .icon-wrapper {
  color: #ffc107;
}

.value-card h5 {
  font-size: 1.25rem;
  color: #2e3192;
  transition: color 0.3s ease;
}

.value-card p {
  font-size: 1rem;
  color: #555;
  transition: color 0.3s ease;
}

/* ==========================================================================
   OUR JOURNEY SECTION
   ========================================================================== */

.journey-section {
  position: relative;
  background: url('/static/Image/bg.png') center/cover no-repeat;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  padding: 80px 0;
}

.journey-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 127, 60%);
  z-index: 0;
}

.journey-section .container {
  position: relative;
  z-index: 1;
}

.journey-section h2 {
  font-family: 'Playfair Display', serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.timeline-step {
  position: relative;
  padding-left: 60px;
}

.timeline-step .year {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffc107;
}

.timeline-step h5 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.timeline-step p {
  color: #f1f1f1;
  font-size: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   TEAM SPOTLIGHT SECTION
   ========================================================================== */

.team-spotlight {
  background: linear-gradient(145deg, #ffffff, #f5f7fb);
  padding: 80px 0;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #2e3192;
  position: relative;
}

.team-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.team-avatar:hover {
  transform: scale(1.08);
}

.team-float {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ==========================================================================
   SUCCESS STORIES SECTION
   ========================================================================== */

#success-stories {
  padding: 80px 0;
}

#success-stories .carousel-item {
  transition: transform 1s ease-in-out;
}

#success-stories img:hover {
  transform: scale(1.05);
  border: 3px solid #2e3192;
  transition: 0.4s ease;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer.footer {
  margin-top: auto;
}

.footer-logo {
      height: 100px;
    margin-right: 10px;
    margin-left: -23px;

}

footer a.text-light:hover i {
  color: #ffc107;
  text-decoration: underline;
}

footer .social-icons a:hover i {
  color: #ffc107;
  transform: scale(1.2) translateZ(0);
  transition: all 0.3s ease;
}

/* ==========================================================================
   RESPONSIVE DESIGN - TABLET (991px and below)
   ========================================================================== */

@media (max-width: 991px) {
  .navbar-nav {
    gap: 15px;
  }

  .nav-link {
    font-size: 16px;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN - MOBILE (768px and below)
   ========================================================================== */

@media (max-width: 768px) {
  body {
    padding-top: 120px;
  }

  /* Navigation */
  .navbar-brand img {
    height: 100px;
  }

  .navbar.sticky .navbar-brand img {
    height: 130px;
  }

  .nav-link {
    font-size: 16px;
    padding: 4px 10px;
  }

  /* Sections */
  .who-we-are-section {
    padding: 60px 10px;
    text-align: center;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .section-subtext {
    font-size: 1rem;
  }

  .about-image {
    margin-top: 30px;
  }

  /* Vision & Mission */
  #vision-mission-carousel .carousel-item {
    min-height: 100vh;
  }

  .vision-mission-slide {
    min-height: 100vh;
    padding: 0;
  }

  #vision-mission-carousel .overlay {
    padding: 50px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .vision-mission-slide .container {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 40px;
    max-width: 100%;
    width: 100%;
  }

  .vision-mission-slide h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .vision-mission-slide .fs-5 {
    font-size: 0.95rem !important;
    margin-bottom: 25px;
    padding: 0 10px;
  }

  .vision-mission-slide .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    gap: 15px !important;
    padding: 20px 0 !important;
    margin: 0 !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    justify-content: flex-start !important;
  }

  .vision-mission-slide .col-md-3 {
    flex: 0 0 75% !important;
    max-width: 75% !important;
    min-width: 75% !important;
    width: 75% !important;
    padding: 0 8px !important;
    scroll-snap-align: center;
  }

  .vision-mission-slide .card {
    padding: 20px 12px;
    margin: 10px auto;
    width: 100% !important;
    height: auto;
    min-height: 200px;
  }

  .vision-mission-slide .g-4 {
    gap: 0 !important;
  }

  .vision-mission-slide .card h5 {
    font-size: 1rem;
    margin-top: 10px;
  }

  .vision-mission-slide .card img {
    width: 40px;
    height: 40px;
  }

  /* Scrollbar styling */
  .vision-mission-slide .row::-webkit-scrollbar {
    height: 6px;
  }

  .vision-mission-slide .row::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
  }

  .vision-mission-slide .row::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
  }

  .vision-mission-slide .row::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8);
  }

  /* Core Values */
  .value-card {
    margin-bottom: 30px;
  }

  /* Journey Timeline */
  .timeline-step {
    padding-left: 30px;
  }

  .timeline-step .year {
    font-size: 1.2rem;
  }

  /* Team */
  .section-heading {
    font-size: 2rem;
  }

  /* Footer */
  .footer-logo {
    height: 100px;
    margin-right: 0;
    margin-left: 0;
  }

  footer .col-md-4 {
    text-align: center;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN - SMALL MOBILE (576px and below)
   ========================================================================== */

@media (max-width: 576px) {
  body {
    padding-top: 100px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  /* Vision & Mission */
  .vision-mission-slide h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }

  .vision-mission-slide .fs-5 {
    font-size: 0.85rem !important;
    margin-bottom: 20px;
    padding: 0 5px;
  }

  .vision-mission-slide .col-md-3 {
    flex: 0 0 85% !important;
    max-width: 85% !important;
    min-width: 85% !important;
    width: 85% !important;
  }

  .vision-mission-slide .card {
    padding: 18px 10px;
    min-height: 180px;
  }

  .vision-mission-slide .card h5 {
    font-size: 0.95rem;
    margin-top: 8px;
  }

  .vision-mission-slide .card img {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
  }

  #vision-mission-carousel {
    max-width: 100%;
    overflow: hidden;
  }

  .vision-mission-slide .container {
    overflow: visible;
  }

  .vision-mission-slide .row {
    scroll-padding: 0 20px;
  }
}.carousel-control-prev,
.carousel-control-next {
  display: none;
}
