/* =========================
   BASE STYLES
========================= */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; 
}
body {
  background: var(--bs-primary);
  position: relative;
  font-family: "Open Sans", sans-serif;
}

body:before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/icons/pattern-1.png') repeat center center fixed;
  background-size: 80%;
  z-index: -1;
  opacity: 0.04;
}

::selection {
  color: var(--bs-dark);
  background: #f8f2e6;
}

/* =========================
   TYPOGRAPHY
========================= */
h1,
.display-3,
.display-5 {
  letter-spacing: 0.6px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Noto Sans', 'serif', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--bs-dark);
}

h2 span {
  color: var(--bs-secondary);
}

p.lead {
  line-height: 1.75;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  transition: all 0.28s ease-in-out;
  background: transparent;
  padding: 0;
}

.navbar .navbar-brand {
  color: var(--color-accent);
  font-family: 'Noto Sans';
  font-size: 16px;
  font-weight: 700;
}

.navbar .navbar-brand img {
  height: 76px;
  border-radius: 5px;
}

.navbar .nav-link {
  padding: 0.6rem 0.9rem;
  font-weight: 500;
  color: var(--color-accent);
}

/* Navbar transparent at top */
body:not(.notOnTop) .navbar {
  background-color: transparent !important;
}

body:not(.notOnTop) .navbar .navbar-toggler {
  background: var(--bs-light);
}

@media (min-width: 992px) {

  body:not(.notOnTop) .navbar .navbar-brand,
  body:not(.notOnTop) .navbar .nav-link {
    color: var(--bs-light);
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    background-color: var(--bs-light);
  }
}

/* Navbar after scroll */
.notOnTop .navbar {
  background-color: #f8f2e6;
  box-shadow: 0px 0px 28px -14px rgba(0, 0, 0, .5);
}

body:not(.notOnTop) .navbar .nav-link.active,
.navbar .nav-link.active {
  color: var(--bs-secondary);
}

/* Fixed scrolled navbar */
.navbar.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: rgba(7, 7, 7, 0.85) !important;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.45);
}

/* =========================
   HERO SECTION
========================= */
.hero {
  background-size: cover;
  background-position: center center;
  height: 100vh;
  display: flex;
  justify-content: center;
  color: white;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(94, 160, 138, 0.18), rgba(139, 123, 218, 0.06)),
    linear-gradient(180deg, rgba(6, 8, 12, 0.5), rgba(6, 8, 12, 0.55));
  z-index: 0;
}

.hero-inner {
  padding: 60px 20px;
  position: relative;
  z-index: 2;
}

.hero img {
  max-width: 360px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Circle button style */
.btn-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bs-secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease-in-out;
}

.btn-circle:hover {
  background: color-mix(in srgb, var(--bs-secondary) 80%, black 20%);
  color: #fff;
}

/* Jump / bounce animation */
@keyframes jump {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-12px);
  }

  60% {
    transform: translateY(-6px);
  }
}

.animate-jump {
  animation: jump 2s infinite;
}

/* =========================
   About SECTION
========================= */
#about img {
  max-height: 545px;
}
/* =========================
   SECTIONS & CARDS
========================= */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.card,
.program-card {
  border: 1px solid #fff;
  background: #FFFFFF;
  border-radius: 30px;
}

.card {
  border-radius: 16px;
  margin-bottom: 15px;
  padding: 15px;
}

.card-title {
  color: var(--bs-dark);
}

.card-img-top {
  max-height: 180px;
  object-fit: cover;
}

.card i {
  width: 40px;
  min-width: 40px;
  height: 40px;
  background-color: var(--bs-secondary);
  color: var(--bs-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  border: 1px solid #4156491A;
}

/* =========================
   PROGRAMS SECTION
========================= */
.program-card {
  position: relative;
  margin-bottom: 0px;
  padding: 30px 25px;
  height: 100%;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bs-secondary);
  border-radius: 500px 500px 0 0;
  width: 100%;
  height: 0;
  transition: all 0.4s ease-in-out;
  z-index: 0;
}

.program-card:hover:before {
  border-radius: 0;
  height: 100%;
}

.program-card .card-body,
.program-card .icon-box {
  z-index: 1;
}

.program-card:hover * {
  color: #fff;
}

.icon-box {
  margin-bottom: 80px;
}

.icon-box img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
}

/* =========================
   CONTACT FORM
========================= */
.contact-form {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

#contact .form-control {
  padding: .5rem .75rem;
}

#contact .form-control:focus {
    border-color: #deb365 !important;
    box-shadow: 0 0 0 0.2rem rgba(222, 179, 101, 0.25);
}

.google-map {
  height: 240px;
  overflow: hidden;
}

/* =========================
   BUTTONS
========================= */
.btn-outline-light {
  border-width: 2px;
  border-radius: 8px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.9);
}

.btn-success,
.btn-outline-secondary {
  border-radius: 8px;
  padding: 10px 18px;
}

.btn-success {
  background-color: var(--bs-secondary);
  border-color: var(--bs-secondary);
  color: #ffffff;
}

.btn-success:hover,
.btn-success:focus {
  filter: brightness(0.92);
  outline: 3px solid color-mix(in srgb, var(--bs-secondary) 70%, black 30%);
  outline-offset: 2px;
}

/* =========================
   TESTIMONIALS
========================= */
.testimonial-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

[class*="carousel-control-"] span {
  background-color: var(--bs-secondary) !important;
  background-size: 65%;
  height: 2.5rem;
  min-width: 2.5rem;
}

/* Arrows outside for desktop */
@media (min-width: 992px) {
  .carousel-control-prev {
    left: -60px;
  }

  .carousel-control-next {
    right: -60px;
  }
}

/* Arrows inside for mobile */
@media (max-width: 991px) {

  .carousel-control-prev,
  .carousel-control-next {
    top: auto;
    bottom: -36px;
    left: 42%;
    width: auto;
    right: 0;
    transform: translateX(-42%);
  }

  .carousel-control-next {
    right: 42%;
    transform: translateX(42%);
  }
}

/* =========================
   FOOTER
========================= */
.site-footer {
  padding: 48px 20px;
  margin-top: 50px;
  background: var(--bs-secondary);
}

.contact-details a {
  background-color: transparent;
}

.social-icons a {
  background-color: var(--bs-secondary);
  color: #fff;
  font-size: 20px;
  line-height: 1.75;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  display: block;
  text-align: center;
  border: 1px solid #4156491A;
  transition: .5s;
}

.social-icons a:hover {
  opacity: .9;
}

.list-group-item {
  color: var(--bs-secondary);
}

@media (max-width: 575px) {
  .list-group-item {
    font-size: 14px;
  }

  .card i {
    margin-right: 0;
  }
}

/* =========================
   BACK TO TOP BUTTON
========================= */
#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  display: none;
  opacity: 0.6;
  background: var(--bs-secondary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 16px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease-in-out;
}

#backToTop:hover {
  opacity: 1;
}