body {
  margin: 0;
  padding-top: 250px;   /* prevents content from going under navbar */
  font-family: Arial, sans-serif;
  color: rgb(254, 254, 254);
  background-image: url(std.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow-y: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
}


.navbar {
  display: flex;
  justify-content: space-between; /* spreads left and right */
  align-items: center;
  padding: 15px 40px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 6px rgba(0,0,0,0.9);
  position:fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: top 0.3s ease-in-out;
  
}

.navbar.hide {
  top: -250px; /* hides the navbar upward */
}

.nav-left h2 {
  margin: 0;
  color: #468ac7; /* Matches your logo’s blue */
  font-size: 20px;
}

.nav-right {
  list-style: none;
  display: flex;
  gap: 30px; /* spacing between items */
  margin: 0;
  padding: 0;
}

.nav-right li a {
  text-decoration: none;
  color: #468ac7;
  font-size: 27px;
  display: inline-block;   /* allows transform */
  transition: transform 0.2s ease, color 0.2s ease; 
  font-weight:bolder;
  
}

.nav-right li a:hover {
  color: #369af1; /* highlight color from logo */
  cursor: pointer;
  transform:scale(1.2);
}
.content {
    flex: 1; /* pushes footer to bottom */
    transition: filter 0.3s ease;
}
.content.blur {
    filter: blur(10px);
}

p {
  color: #04501c;
  max-width: 850px;
  margin: 40px 0 40px 40px; /* top | right | bottom | left */
  padding: 20px;
  background: transparent;
  border-radius: 10px;
  font-size: 20px;
  line-height: 1.6;
}
ul {
  color: #468ac7;
  max-width: 850px;
  margin: 40px 0 40px 40px; /* top | right | bottom | left */
  padding: 20px;
  background: transparent;
  border-radius: 10px;
  font-size: 20px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  margin-left:17%;
  margin-bottom: 20px;
}

.btn-primary,
.btn-secondary,
.btn-grd,
.btn-unu {
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s;
}
.btn-unu {
  background: #6e4f92;
  color: white;
  padding: 15px 35px;
}
.btn-unu:hover {
  background: #58a770;
}
.btn-grd {
  background: #58a770;
  color: white;
  padding: 15px 35px;
}
.btn-grd:hover {
  background: #fab14a;
}

.btn-primary {
  background: #fab14a;
  color: white;
}

.btn-primary:hover {
  background: #58a770;
}

.btn-secondary {
  background:#fab14a;
  color: white;
}

.btn-secondary:hover {
  background: #6e4f92;
}


hr {
  border: 0;
  height: 2px;
  background: #70c189;
  margin: 70px ;
  max-width: 1100px;
}
h1{
  color: #6fc186;
  max-width: 850px;
  margin: 40px auto;
  padding: 20px;
  background: transparent;
  border-radius: 10px;
  line-height: 1.6
}
h3{
  color: #70c189;
}
p1{
  color: #70c189;
  font-size: 16px;
}
.info-text {
  color: #70c189;
  font-size: 16px;
}
.side-slot {
  min-height: 450px;
  border-radius: 18px;
  background: transparent;
}

.courses-layout {
  display: grid;
  grid-template-columns: 3fr 1fr; /* 75% left, 25% right */
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px;
}

.box-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 30px;

  /* ⬇️ CRITICAL */
  max-width: 100%;
}

.info-box {
  background: rgba(255, 255, 255, 0.3);
  color: #468ac7;
  padding: 20px;
  border-radius: 15px;
  font-size: 18px;
  font-weight: 500;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: 0.2s ease-in-out;
  height: 200px;
  text-align: center;
}

.info-box:hover {
  transform:scale(1.07,1.07);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}
.info-box p{
  color: #70c189;
  font-size: 16px;
}

@media (max-width: 1100px) {
  .courses-layout {
    grid-template-columns: 1fr;
  }

  .side-slot {
    display: none; /* or move below */
  }

  .box-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .box-container {
    grid-template-columns: 1fr;
  }
}


.accordion {
  width: 55%;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  overflow: hidden;
}

.accordion-question {
  width: 100%;
  padding: 18px;
  background: #6fc186;
  color: white;
  text-align: left;
  border: none;
  outline: none;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.accordion-question:hover {
  background: #6e4f92;
}

.accordion-answer {
  max-height: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(2px);
  transition: max-height 0.35s ease;
  padding: 0 18px;
}

.accordion-answer p {
  padding: 15px 0;
  font-size: 18px;
  color: #6fc186;
}

.accordion-answer li {
    color: #6fc186;
    margin-bottom: 5px;
    font-size: 18px;
}

.footer {
    background: rgba(53, 52, 52, 0.39);
    color: #0f0f0f;
    padding: 40px 10%;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    color: #6fc186;
    margin-top: 0;
    margin:0 0 10px 0;
}

.footer-section p {
    margin: 0 0 10px 0;
    color: #6fc186;
    line-height: 1.6;
}

.footer-section a {
    display: block;
    color: #6fc186;
    margin-bottom: 8px;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

/* Social Icons */
.footer-icons {
    display: flex;
    gap: 15px;
}

.footer-icons a {
    font-size: 24px;
    color: #369af1;
    transition: color 0.3s;
    display: inline-block;
}

.footer-icons a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #222;
    color: rgba(255, 255, 255, 0.07);
}

/* --- SLIDER CONTAINER --- */
.slider-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  width: 150%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  height: 800px;
}


/* --- VERTICAL STACK OF BOXES --- */
.slider-track {
  width: 60%;
  max-height: 520px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Hide default scrollbar (optional) */
.slider-track::-webkit-scrollbar {
    width: 10px;
}
.slider-track::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.4);
    border-radius: 10px;
}

/* --- Make inner boxes centered --- */
.slider-track .info-boxed {
  width: 900px;
  height: 190px;
  margin: 0px; /* let them align to the left */
  margin-left: 100px;
  padding: 18px 24px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.3);
  color: #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  /* fade out on the right side to transparent */
  -webkit-mask-image: linear-gradient(to left,
      transparent 0%,
      rgba(0, 0, 0, 0.25) 14%,
      rgba(0, 0, 0, 0.9) 40%,
      rgba(0, 0, 0, 1) 100%);
  mask-image: linear-gradient(to left,
      transparent 0%,
      rgba(0, 0, 0, 0.25) 14%,
      rgba(0, 0, 0, 0.9) 40%,
      rgba(0, 0, 0, 1) 100%);
  transform: translateX(120px); /* start offscreen to the right */
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.slider-track .info-boxed {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.slider-track .info-boxed.in-view {
  transform: translateX(0);
  opacity: 1;
}

/* FIXED HOVER — combine both operations */
.slider-track .info-boxed.in-view:hover {
  transform: translateX(0) scale(1.10);
  transition: 0.4s ease-in-out;
}

.info-boxed h3, .info-boxed p {
  color: #6e4f92;
  font-size: 18px;
  margin-left: 5%;
}

/* SLIDER ARROW BUTTON */
.slider-arrow {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: none;
    color: white;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s, background 0.3s;
}

.slider-arrow:hover {
    background: transparent;
    transform: translateX(-50%) scale(1.15);
}


/* IMAGE SLIDER */
.image-slider {
  width: 40%;
  max-width: 480px;
  height: 620px;
  position: sticky;
  top: 140px;
  overflow: visible;
}

/* ALL IMAGES */
.slider-image {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 85%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  opacity: 0;
  transform: scale(0.85);
  filter: brightness(0.45);
  transition: 
    opacity 0.8s ease,
    transform 0.8s ease,
    filter 0.8s ease;
  z-index: 1;
}

/* ACTIVE IMAGE */
.slider-image.active {
  opacity: 1;
  transform: scale(1.05);
  filter: brightness(1);
  z-index: 3;
}

/* NEXT / PREVIOUS PREVIEW */
.slider-image.next,
.slider-image.prev {
  opacity: 0.65;
  transform: scale(0.88);
  filter: brightness(0.55);
  z-index: 2;
}

/* OFFSET PREVIEW POSITIONS */
.slider-image.next {
  transform: translateX(35px) scale(0.88);
}

.slider-image.prev {
  transform: translateX(-35px) scale(0.88);
}

/* NAV BUTTONS */
.img-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: white;
  border: none;
  padding: 14px 18px;
  font-size: 26px;
  cursor: pointer;
  z-index: 5;
  border-radius: 50%;
}

.img-nav.left { left: -10px; }
.img-nav.right { right: -10px; }

/* DOTS */
.img-dots {
  position: absolute;
  bottom: -35px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.img-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #aaa;
  cursor: pointer;
}

.img-dots span.active {
  background: #6fc186;
}


.programs-title {
  color: #8869ad;
}


