/* ============================================= */
/*                  GLOBAL ROOT                  */
/* ============================================= */
:root {
  --bg-dark: #000000;

  /* TEXT */
  --text-primary: #FFFFFF;
  --text-secondary: #E0E0E0;
  --text-light: #dbdbdbc9;

  /* BUTTON */
  --button-text-color: #FFFFFF;
  --button-gradient: linear-gradient(135deg, #ff6551 0%, #ffb4a4 100%);

  /* FOUNDERS BG COLOR */
  --gradient-section: linear-gradient(135deg, #0f0f0f 0%, #2a2a2a 100%);
  /* CARD BG COLOR */
  --gradient-card: linear-gradient(135deg, rgba(42, 42, 42, 0.8) 0%, rgba(74, 74, 74, 0.568) 100%);

  /* CARD INNER TEXT */
  --card-increment-text-color: linear-gradient(135deg, #003e7c, #003366, #0059b3, #66b2ff);
  /* CARD HOVER SHADOW */
  --accent-warm: #ff7b6a9c;

  /* QUOTE TEXT COLOR */
  --quote-color: rgb(255, 74, 74);

  /* CARD BORDER */
  --shadow-modern: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 30, 0, 0.1);

  /* HOME IMAGE SLIDER – responsive helpers only */
  --maxw: 1400px;
  --carousel-control-size: clamp(2rem, 5vw, 3rem);
  --carousel-indicator-width: clamp(25px, 6vw, 40px);
  --carousel-indicator-height: clamp(2px, 0.5vw, 4px);

  /* LINEAR GRADIENT COLORS */
  --first-linear-gradient: radial-gradient(circle, rgba(42, 56, 255, 0.17) 0%, transparent 70%);
  --second-linear-gradient: radial-gradient(circle at 50% 50%, rgba(1, 1, 51, 0.25) 20%, rgba(0, 0, 0, 0.1) 50%, #000000 100%), linear-gradient(180deg, #0a0a0a 0%, #010133 100%);
  --third-linear-gradient: radial-gradient(circle at 50% 20%, rgba(0, 17, 255, 0.158) 0%, transparent 80%);
  --fourth-linear-gradient: radial-gradient(125% 125% at 50% 10%, #000000 40%, #010133 100%);

  --linear-gradient-1: radial-gradient(circle at 50% 50%, rgba(0, 51, 102, 0.3) 0%, rgba(0, 0, 0, 0.9) 100%);
  --linear-gradient-2: radial-gradient(circle, rgba(0, 17, 255, 0.250) 0%, transparent 70%);
  --linear-gradient-3: radial-gradient(circle at 50% 10%, rgba(0, 17, 255, 0.25) 0%, transparent 70%);

  /* Accent for caption border */
  --accent-red: #E41937;
}

/* ============================================= */
/*                BASIC RESET & TYPOGRAPHY       */
/* ============================================= */
* {
  box-sizing: border-box;
}

::selection {
  background: #d67063;
  color: white;
}

body {
  margin: 0;
  padding: 0;
  line-height: 1.5;
  scroll-behavior: smooth;
  color: var(--text-primary);
  background-color: var(--bg-dark);
}

/* CONTAINER & TYPOGRAPHY */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1rem;
}

h1 {
  font-size: 3.5rem;
  line-height: 1;
  margin: 0 0 1rem 0;
}

h2 {
  font-size: 2.5rem;
  margin: 0 0 .75rem 0;
  letter-spacing: 3px;
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 .5rem 0;
  letter-spacing: 2px;
}

p {
  font-size: 1.1rem;
  margin: 0 0 .5rem 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color .3s ease;
}

b {
  letter-spacing: 1px;
}

/* ============================================= */
/*                IMAGE SLIDER                  */
/* ============================================= */
.slider {
  position: relative;
  width: 100%;
  margin-top: 90px;
  overflow: hidden;
  user-select: none;
  height: 85vh;
  transition: height .3s ease;
}

/* Laptop & Desktop → 100vh */
@media (min-width: 1024px) {
  .slider {
    height: 90vh;
  }
}

/* Slides container */
.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Individual slide */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(100%);
  transition: transform .6s cubic-bezier(.77, 0, .175, 1), opacity .6s ease-in-out;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  will-change: transform, opacity;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.slide.exiting {
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Caption box */
.slide-content {
  position: absolute;
  bottom: clamp(30px, 8vw, 80px);
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 900px);
  z-index: 10;
  text-align: left;
}

.caption-box {
  background: rgba(0, 0, 0, .7);
  border-left: 6px solid var(--accent-red);
  padding: clamp(15px, 3vw, 30px) clamp(20px, 4vw, 40px);
  border-radius: 10px;
  backdrop-filter: blur(2px);
  opacity: 0;
  transform: translateX(120%) scale(.95);
  overflow: hidden;
  position: relative;
  transition: opacity .3s ease;
}

.caption-box::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, .2), transparent);
  transform: skewX(-25deg);
  animation: boxShine 7s infinite linear;
}

/* Caption text */
.caption-box h2 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 10px;
  background: var(--button-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
  opacity: 0;
}

.caption-box h3 {
  font-size: clamp(1rem, 3.5vw, 1.35rem);
  font-weight: 500;
  margin-top: 8px;
  background: linear-gradient(50deg, #00f7ff, #003cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
}

/* Caption animations */
.slide.active .caption-box {
  animation: boxSlideIn 1.4s cubic-bezier(.77, 0, .175, 1) forwards;
}

.slide.active .caption-box h2 {
  animation: textFadeIn 1.1s ease forwards;
  animation-delay: 1.2s;
}

.slide.active .caption-box h3 {
  animation: textSlideUp 1.3s ease forwards;
  animation-delay: 1.6s;
}

/* Keyframes */
@keyframes boxSlideIn {
  0% {
    opacity: 0;
    transform: translateX(120%) scale(.95);
    filter: blur(4px);
  }

  60% {
    opacity: 1;
    transform: translateX(-3%) scale(1.02);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes boxShine {
  0% {
    left: -60%
  }

  100% {
    left: 120%
  }
}

@keyframes textFadeIn {
  0% {
    opacity: 0;
    transform: translateY(25px) scale(.95);
  }

  60% {
    opacity: 1;
    transform: translateY(-3px) scale(1.03);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes textSlideUp {
  0% {
    opacity: 0;
    transform: translateY(35px);
    filter: blur(3px);
  }

  70% {
    opacity: 1;
    transform: translateY(-4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dots */
.dots {
  position: absolute;
  bottom: clamp(15px, 4vw, 30px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(6px, 1.5vw, 12px);
  z-index: 10;
}

.dot {
  width: var(--carousel-indicator-width);
  height: var(--carousel-indicator-height);
  background: #fff;
  border-radius: 2px;
  cursor: pointer;
  transition: all .3s ease;
}

.dot.active {
  background: linear-gradient(50deg, #003cff, #0084ff);
  transform: scale(1.2);
}


/* ========== NAV BUTTONS ========== */
.nav-controls {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  gap: 20px;
  z-index: 10;
}

.nav-btn {
  position: relative;
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  transform: scale(1.1);
}

.nav-btn img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 50%;
}

.nav-btn:hover img {
  opacity: 1;
}

/* Progress bar */
.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: clamp(2px, .5vw, 3px);
  background: #fff;
  width: 0%;
  z-index: 9;
}

.progress-bar.animate {
  animation: progress linear forwards;
}

@keyframes progress {
  from {
    width: 0%
  }

  to {
    width: 100%
  }
}

/* Hide nav arrows on very small screens */
@media (max-width:600px) {
  .nav-controls {
    display: none;
  }

  .slide-content {
    bottom: 100px;
  }

  .dots {
    gap: 8px;
  }
}

@media (max-width:450px) {
  .slide-content {
    bottom: 80px;
  }

  .caption-box {
    padding: 12px 16px;
  }

  .caption-box h2 {
    font-size: 1.3rem;
  }

  .caption-box h3 {
    font-size: .9rem;
  }
}

/* ============================================= */
/*                SECOND PAGE (Welcome)          */
/* ============================================= */
.second-page {
  padding: 4rem 0;
  background-image: var(--first-linear-gradient);
}

.welcome-to-st-col {
  margin: 0 auto;
  text-align: center;
}

.Where-learning-blossoms {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.Where-learning-blossoms h2 {
  text-align: center;
  padding: 5px;
  color: var(--text-secondary);
  border-left: 1px solid hotpink;
}

.Where-learning-blossoms .main-text {
  min-height: 93px;
  width: 100%;
}

.Where-learning-blossoms .heart-text {
  text-wrap: nowrap;
  color: var(--quote-color);
}

/* Text scroll animation */
.Where-learning-blossoms span {
  color: hsl(0 0% 100%/.2);
  background-clip: text;
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-image: linear-gradient(90deg, white, white);
  animation: scroll-reveal linear forwards;
  animation-timeline: view(y);
}

.Where-learning-blossoms p span {
  animation-range-start: cover 30vh;
  animation-range-end: cover 70vh;
}

@keyframes scroll-reveal {
  to {
    background-size: 100% 100%
  }
}

.Where-learning-blossoms a {
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  background-image: var(--button-gradient);
  color: var(--button-text-color);
  transition: transform .3s ease, box-shadow .3s ease;
}

.Where-learning-blossoms a:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 rgba(0, 0, 0, 1), 0 0 20px var(--accent-warm);
}

/* ============================================= */
/*                THIRD PAGE (Facts)             */
/* ============================================= */
.inner-fact-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 15px;
  text-align: center;
}

.count {
  backdrop-filter: blur(16px);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-modern);
  padding: 30px 20px;
  border-radius: 20px;
  background: var(--gradient-card);
  border: 1px solid rgba(255, 185, 176, .212);
  transition: .4s cubic-bezier(.25, .46, .45, .94);
}

.count:hover {
  transform: translateY(-5px) rotateX(1deg);
  background: rgba(255, 255, 255, .199);
  box-shadow: 0 0 40px #003e7c;
}

.count h2 {
  font-size: 2rem;
  margin: 10px 0;
  background: var(--card-increment-text-color);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.count h3 {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.fact-image {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  filter: invert(80%);
}

.fact-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============================================= */
/*                FOURTH PAGE (Beliefs)          */
/* ============================================= */
.fourth-page {
  width: 100%;
  padding: 4rem 0;
  position: relative;
  min-height: 80vh;
  background-image: var(--second-linear-gradient);
  background-blend-mode: overlay;
}

.tree-and-study-image {
  max-width: 100%;
  height: 350px;
}

.tree-and-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.our-beliefs {
  position: absolute;
  top: 120px;
  right: 35%;
  padding: 5px;
}

.mission-vision-and-value-container {
  max-width: 100%;
  padding: 69px 0;
  margin-inline: auto;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.value-cards {
  max-width: 410px;
  display: flex;
  gap: 10px;
  background: #f6f6f662;
  padding: 20px 30px 40px 10px;
  border-radius: 10px;
  transition: all .3s ease;
  align-items: start;
}

.value-cards:hover {
  transform: scale(1.01);
  box-shadow: 0 0 40px #003e7c;
}

.image-section {
  flex: 0 0 40px;
  width: 40px;
}

.image-section img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.value-cards b {
  font-weight: 600;
  color: var(--text-primary);
}

.value-cards p {
  color: var(--text-light);
  text-wrap: wrap;
  white-space: initial;
}

.content-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ============================================= */
/*                FIFTH PAGE (Why)               */
/* ============================================= */
.fifth-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.why-this-school {
  max-width: 1250px;
}

.why-this-school h1 {
  text-align: center;
  padding: 40px 0 20px 0;
}

.why-this-school p {
  text-align: center;
  color: var(--text-secondary);
}

.why-this-school-card-container {
  max-width: 1250px;
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 20px;
  padding: 40px 0;
}

.why-card {
  max-width: 400px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: .9;
  transition: opacity .3s ease;
}

.why-card:hover {
  opacity: 1;
}

.why-card p {
  opacity: .7;
}

.why-section-image {
  height: 50px;
  width: 50px;
}

.why-section-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============================================= */
/*                SIXTH PAGE (Achievements)      */
/* ============================================= */
.sixth-page {
  height: 850px;
  background-image: var(--third-linear-gradient);
}

.achievement {
  max-width: 100%;
  margin-inline: auto;
  padding: 20px 0 50px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.achievement h1 {
  text-align: center;
  word-wrap: break-word;
  font-weight: 400;
}

.achievement p {
  text-align: center;
}

/* SECOND IMAGE SLIDER */
.second-slider {
  position: relative;
  max-width: 100%;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.second-slide {
  position: absolute;
  width: 100%;
  max-width: 34%;
  height: 100%;
  border-radius: 10px;
  transition: transform .6s ease, opacity .6s ease;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  text-align: center;
}

.second-slider-image-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.second-slider-image-container img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.second-slider-image-inner-text {
  width: 100%;
  height: 50px;
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  background-image: linear-gradient(135deg, rgba(42, 42, 42, .8)0%, rgba(74, 74, 74, .6)100%);
  z-index: 2;
  padding: .5rem;
}

.second-slider-image-inner-text h3 {
  margin: 0;
  font-size: .97rem;
  font-weight: 500;
  letter-spacing: .3px;
  text-align: center;
  width: 100%;
  padding: 0 .25rem;
  color: var(--text-primary);
}

.second-slide.center {
  overflow: hidden;
  margin-top: 0;
}

.second-slide.left {
  z-index: 2;
  transform: translate(-152%, -50%) scale(.9);
}

.second-slide.right {
  z-index: 2;
  transform: translate(52%, -50%) scale(.9);
}

.second-slide.leave-left {
  transform: translate(-300%, -50%) scale(.7);
  opacity: 0;
  z-index: 1;
}

.second-slide.leave-right {
  transform: translate(200%, -50%) scale(.7);
  opacity: 0;
  z-index: 1;
}

.second-slide.enter-left {
  transform: translate(-160%, -50%) scale(.8);
  opacity: .8;
  z-index: 2;
}

.second-slide.enter-right {
  transform: translate(60%, -50%) scale(.8);
  opacity: .8;
  z-index: 2;
}

/* ============================================= */
/*                SEVENTH PAGE (Founders)        */
/* ============================================= */
.seventh-page {
  width: 100%;
  background-image: var(--gradient-section);
}

.top-border,
.bottom-border {
  width: 100%;
  height: 70px;
}

.top-border img,
.bottom-border img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founders {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  padding: 70px 15px;
}

.founder-left {
  max-width: 550px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
  padding-inline: .5rem;
}

.founder-left a {
  padding: 12px 20px;
  background-image: var(--button-gradient);
  color: var(--button-text-color);
  border-radius: 5px;
  text-decoration: none;
  transition: all .3s ease-in-out;
}

.founder-left a:hover {
  transform: scale(1.04);
  box-shadow: 0 0 0 rgba(0, 0, 0, 1), 0 0 20px var(--accent-warm);
}

.founder-right {
  display: flex;
  flex-direction: row;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: end;
}

.right-first,
.right-second {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  flex: 1 1 220px;
  max-width: 250px;
  text-align: center;
}

.right-first p,
.right-second p {
  opacity: .9;
  margin-top: -5px;
  font-size: .95rem;
}

.right-first-image,
.right-second-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 5px;
}

.right-first-image img,
.right-second-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease-in-out;
}

.right-first-image img:hover,
.right-second-image img:hover {
  transform: scale(1.04);
}

@media (max-width:1030px) {

  .right-first,
  .right-second {
    flex: 1 1 45%
  }
}

@media (min-width:885px) {
  .founders {
    flex-direction: row;

    flex-wrap: wrap;
    justify-content: space-between;

    align-items: flex-start;
    gap: 40px;
  }

  .founder-left {
    flex: 1 1 400px;
  }

  .founder-right {
    flex: 1 1 400px;
    flex-wrap: wrap;
  }
}

@media (max-width:600px) {
  .founders {
    padding: 40px 15px;
  }

  .founder-right {
    gap: 15px;
  }
}

/* ============================================= */
/*                FAQ SECTION                    */
/* ============================================= */
.frequently-asked-questions {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 10px;
  gap: 70px;
  background-image: var(--fourth-linear-gradient);
}

.faq-heading-section {
  display: flex;
  align-items: center;
}

.faq-card {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 15px;
  padding: 30px;
  background: #504b4bab;
  box-shadow: 0 0 15px rgba(0, 0, 0, .1);
  transition: box-shadow .3s ease;
}

.faq-card:hover {
  box-shadow: 0 0 20px rgba(253, 188, 180, .2);
}

.faq-item {
  border-bottom: .1px solid #ddd;
  padding: 15px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color .3s ease;
}

.faq-question img {
  width: 30px;
  height: 30px;
  transition: transform .3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding-top: 0;
}

.faq-answer p {
  opacity: .5;
  margin: 0;
}

.faq-item.active .faq-answer {
  padding-top: 10px;
}

/* ============================================= */
/*                FOOTER                         */
/* ============================================= */
footer {
  width: 100%;
  background: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  border-top: 1px solid rgba(155, 150, 150, .425);
}

.footer-container {
  max-width: 1500px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 80px;
  padding: 40px 0;
  border-bottom: 1px solid rgb(155, 150, 150);
  color: var(--text-light);
}

.about-us,
.contact-us {
  max-width: 390px;
}

.quick-links,
.follow-us,
.contact-us {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.about-us h3,
.quick-links h3,
.follow-us h3,
.contact-us h3 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.about-us h3 span,
.quick-links h3 span,
.follow-us h3 span,
.contact-us h3 span {
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

.about-us h3 span::after,
.quick-links h3 span::after,
.follow-us h3 span::after,
.contact-us h3 span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(135deg, #00468b, #0059b3, #66b2ff);
}

.quick-links div,
.follow-us div,
.contact-us div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-links div a:hover,
.follow-us div a:hover{
  text-decoration: underline;
}

.copy-right {
  padding: 10px 0;
  color: var(--text-light);
  text-align: center;
}

.copy-right a {
  color: rgb(0, 140, 255);
}

.up-arrow-container {
  width: 60px;
  height: 60px;
  background: #e0d7d7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  align-self: center;
  transition: all .5s ease-in-out;
  box-shadow: 0 0 30px rgba(255, 255, 255, .466);
}

.up-arrow-container img {
  width: 50%;
  height: 50%;
}

.up-arrow-container:hover {
  transform: scale(1.1);
}

/* ============================================= */
/*                RESPONSIVE TWEAKS              */
/* ============================================= */
@media (max-width:1050px) {
  .our-beliefs {
    top: 20px;
    right: 35%;
    left: 1rem;
  }

  .tree-and-study-image {
    height: auto;
  }

  .inner-fact-summary {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 40px 10px;
  }

  .count h2 {
    font-size: 1.8rem;
  }

  .count h3 {
    font-size: 1rem;
  }

  .fact-image {
    width: 70px;
    height: 70px;
  }
}

@media (max-width:845px) {
  body {
    line-height: 1.4;
  }

  .container {
    padding: 1rem .8rem;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  p {
    font-size: 1rem;
  }

  .social-icons {
    position: absolute;
    top: 40%;
  }

  .nav-controls {
    display: none;
  }

  .inner-fact-summary {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 30px 10px;
  }

  .count {
    padding: 20px 15px;
  }

  .count h2 {
    font-size: 1.5rem;
  }

  .count h3 {
    font-size: .9rem;
  }

  .fact-image {
    width: 60px;
    height: 60px;
  }

  .frequently-asked-questions {
    padding: 30px 10px;
    gap: 60px;
  }

  .footer-container {
    padding: 20px 0;
    gap: 50px;
  }
}

@media (max-width:700px) {
  .slider {
    margin-top: 70px;
  }

  .nav-btn {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .dots {
    bottom: 20px;
  }

  .welcome-to-st-col {
    padding: 10px 5px;
  }

  .Where-learning-blossoms {
    max-width: 100%;
  }

  .Where-learning-blossoms h1,
  .Where-learning-blossoms p {
    padding: 0 10px;
  }

  .Where-learning-blossoms button {
    padding: 10px 20px;
  }

  .our-beliefs {
    top: 1px;
    right: 31%;
    left: 1rem;
  }

  .why-this-school-card-container {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    gap: 10px;
    padding: 30px 0;
  }

  .frequently-asked-questions {
    padding: 20px 10px;
    gap: 20px;
  }

  .faq-card {
    padding: 15px;
  }

  .up-arrow-container {
    width: 50px;
    height: 50px;
  }

  .second-slide {
    max-width: 100%;
  }

  .second-slide.center {
    transform: translate(-50%, -50%) scale(1);
  }

  .sixth-page {
    padding-inline: 1rem;
  }
}

@media (max-width:500px) {
  body {
    line-height: 1.3;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  p {
    font-size: 1rem;
  }

  .our-beliefs {
    top: 16px;
    right: 35%;
    left: 10px;
    padding: 0 10px;
  }

  .mission-vision-and-value-container {
    padding: 20px 10px;
  }

  .value-cards {
    padding: 10px;
  }

  .content-section {
    gap: 5px;
  }

  .image-section {
    flex: 0 0 30px;
    width: 30px;
  }

  .faq-question img {
    width: 25px;
    height: 25px;
  }

  .faq-item {
    padding: 10px 0;
  }

  .footer-container {
    gap: 30px;
  }
}

@media (max-width:450px) {
  .slide-content {
    bottom: 80px;
  }

  .caption-box {
    padding: 12px 16px;
  }

  .caption-box h2 {
    font-size: 1.3rem;
  }

  .caption-box h3 {
    font-size: .9rem;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .main-text .heart-text {
    padding: 0 4px;
  }

  .our-beliefs {
    left: .4rem;
  }

  .why-this-school-card-container {
    grid-template-columns: repeat(1, minmax(100px, 1fr));
    gap: 5px;
  }

  .why-section-image {
    width: 40px;
    height: 40px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  p,
  li {
    font-size: 1rem;
  }

  .achievement {
    padding: 0;
  }
}

@media (max-width:360px) {
  .sixth-page {
    height: 660px;
  }

  .second-slider {
    margin-top: 50px;
    height: 350px;
  }
}