/* Base styles (desktop and larger screens) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  background-color: #fff;
  color: #333;
}

/* Buttons styling */
.btn {
    background-color: #fff;
    color: rgb(27, 27, 27);
    padding: 12px 3rem;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
    color: #fff;
}

.btn:active {
    background-color: #004085;
 }

a {
    text-decoration: none;
    color: inherit;
}

header {
    background-color: #060e5a;
    color: white;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
header h1 {
  max-width: 50%;
  font-size: 1rem;
  margin: 0;
  line-height: 1.2;
}
.nav-container {
    position: relative;
    display: flex;
    align-items: center;
}

.hamburger {
    display: none;
}
nav.menu {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    box-shadow: none;
    padding: 0;
    min-width: auto;
    gap: 20px;
}

nav.menu a {
    color: #f5f5f5;
    text-decoration: none;
}

/* HERO */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2em 1em;
    background: url('./images/hero-img.jpeg') no-repeat center/cover;
    color: white;
    text-align: center;
    position: relative;
    height: 93vh;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(6, 14, 90, 0.6);
    z-index: 0;
}

.hero-txt {
    position: relative;
    z-index: 1;
    max-width: 70vw;
}

.hero-txt h2 {
  width: 80%;
  margin: auto;
    font-size: 3rem;
    margin-bottom: 0.5em;
}

.hero-txt p {
    width: 80%;
    margin: auto;
    font-size: 1.3rem;
    margin-bottom: 1.2em;
    line-height: 1.4;
    text-align: center;
}

.hero-txt > div {
    display: flex;
    gap: 3em;
    justify-content: center;
    flex-wrap: wrap;
}

    /* CORE VALUES */
#core-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 3em 0;
}

#core-values h2 {
    font-size: 2rem;
    /* margin-bottom: 0.6em; */
}

#core-values p {
    /* margin-bottom: 2em; */
    font-size: 1.1rem;
    color: #555;
}

.core-values-list {
    display: flex;
    justify-content: center;
    gap: 1.5em;
    flex-wrap: wrap;
    margin: 0 auto;
}

.core-values-items {
    background-color: #f00606;
    border-radius: 50px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 25px;
    min-width: 220px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    font-weight: 600;
    font-size: 1rem;
}

.core-values-items img.icon {
      width: 32px;
    height: 32px;
}

/* ---------- Programs ---------- */

#programs {
  background: #f4f4f4;
  padding: 3rem 5rem;
  text-align: center;
}

#programs h2 {
  font-size: 2rem;
  margin-bottom: 1em;
}

.slider-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
  width: 100%;
  margin: 0 auto;
}

.slider-wrapper button.arrow {
  display: none; 
}

.program-list {
  display: flex;
  flex-wrap: wrap; 
  gap: 2em;
  width: 100%;
  overflow: visible;
  scroll-behavior: auto;
  padding-bottom: 0;
  justify-content: center;
}

.program-item {
  flex: 0 0 30%; /* 3 items per row on large screens */
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.377);
  overflow: hidden;
  cursor: grab;
  user-select: none;
  a{
    text-decoration: none;
  }
}

.program-item:active {
  cursor: grabbing;
}

.img-holder {
  width: 100%;
  height: 200px;
  background-position: center;
  background-size: cover;
}

.program1 {
  background-image: url('./images/nursery.jpg');
}
.program2 {
  background-image: url('./images/kindergarten.jpg');
}
.program3 {
  background-image: url('./images/elementary.jpg');
}

.program-item p {
  padding: 1em;
  font-weight: 700;
  font-size: 1.1rem;
  color: #222;
}

/* Overview */
.overview {
    width: 100%;
    margin: 0 auto;
    padding: 2em 5em 2em ;
    display: flex;
    flex-wrap: wrap;
    color: #222;
    background: #fff;
}

    .overlap-imgs {
      flex: 1 1 300px;
      position: relative;
      height: 400px;
      margin-top: 90px;
      min-width: 280px;
    }
    .overlap-imgs div:first-child,
    .overlap-imgs div:last-child {
      position: absolute;
      width: 70%;
      height: 250px;
      border-radius: 20px;
      background-position: center;
      background-size: cover;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .overlap-imgs div:first-child {
      z-index: 0;
      background-image: url('./images/overview1.jpg');
      left: 40%;
      top: 30px;
      opacity: 0.8;
    }
    .overlap-imgs div:last-child {
      z-index: 1;
      background-image: url('./images/overview2.jpg');
      left: 60%;
      box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    }
    .overview-txt {
        padding-top: 4rem;
        padding-right: 5rem;
        flex: 1 1 400px;
        font-size: 1.2rem;
        line-height: 1.2;
        color: #252222;
        text-align: justify;
    }
    .overview-txt h2 {
      font-size: 2rem;
      margin-bottom: 1rem;
      color: #060e5a;
    }
.overview-txt h2:nth-of-type(2) {
  padding-top: 2rem;
}
    .overview-txt p + p {
      margin-top: 1em;
    }

.enroll-now {
      text-align: center;
      background-color: #cc0000;
      margin-top: 0;
      color: #fff;
      padding: 4rem 0;
      p{
        margin: 10px 0 30px 0;
      }
      a{
        text-decoration: none;
        background-color: #060e5a;
        color: #fff;
      }
}


    /* FOOTER */

.container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 1em;
}

footer {
    background: #060e5a;
    color: white;
    padding: 2em 1em;
    font-size: 1em;
  }
.footer{
    display: flex;
    flex-direction: column;
    width: 100%;
}
  
.footer-left h1 {
    padding: 0;
    font-size: 1.3em;
    /* h4{
      padding-top: 1em;
      font-size: 1em;
    }
    p{
      padding-top: 1em;
    }
    div{
      display: flex;
      border-radius: 50px;
      border: 1px solid #fff;
      width: 100%;
      padding: 5px;
      margin-top: 1em;
    }
    button:hover{
      background-color: #cc0000;
      color: #fff;
    } */
}

  .footer-right {
    padding: 0;
    flex: 1;
  }
  .middle{
    padding: 20px 0;
    display: flex;
    gap: 100px;
    h2{
      font-size: 1.1em;
    }
  }
  .footer-link{
    display: flex;
    flex-direction: column;

    a{
      text-decoration: none;
      padding: .5em 0;
      color: #fff;
    }
  }
  .top-menu{
    a{
      display: none;
    }
  }

  /* SCROLL ANIMATION */
    .show-on-scroll {
      opacity: 0;
      transform: translateY(50px);
      transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    .show-on-scroll.is-visible {
      opacity: 1;
      transform: translateY(0);
    }


/* Responsive for phones and tablets */
/* Up to 900px width — same layout for phones and tablets */
@media (max-width: 900px) {
    header {
        padding: 1rem;
    }
    header h1 {
        max-width: 70%;
        font-size: .8rem;
    }

    .nav-container {
        flex-direction: row;
        gap: 1rem;
    }

    .hamburger {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        color: #ececec;
        background-color: transparent;
        border: none;
        position: relative;
        z-index: 1001; 
    }

    nav.menu {
        display: none;
        flex-direction: column;
        background-color: #ffffffee;
        position: absolute;
        top: 100%;
        margin-top: 20px;
        right: -15px;
        padding: 1em 1.5em;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        width: 100vw;
    }
    nav.menu a{
        color: #222522;
    }

    nav.menu.show {
        display: flex;
    }

    .hero {
        flex-direction: column;
        background-position: center;
        
    }
    .hero-txt {
        max-width: 90vw;
        }
    .hero-txt h2 {
        font-size: 1.75rem;
        width: 100%;
    }

    .hero-txt p {
        font-size: 1.2rem;
        text-align: justify;
        width: 100%;
    }
    .hero-txt div{
      gap: 1rem;
    }
    .btn{
      padding: 1rem 1.2rem;
      /* width: 35%; */
    }

  /* Core values and programs sections stacked */
    #core-values{
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .core-values-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .core-values-items {
        font-size: 1.1rem;
    }

    #programs {
    padding: 3rem 1rem;
    h2{
        font-size: 1.5rem;
    }
    }

    .slider-wrapper {
        display: flex;
        overflow: visible;
        width: 100%;
        margin: 0 auto;
    }

    .slider-wrapper button.arrow {
        background: transparent;
        border: none;
        cursor: pointer;
        flex-shrink: 0;
        width: 6%;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
    }
    .slider-wrapper button.arrow img {
    width: 24px;
    height: 24px;
    }

    .program-list {
        width: 100%;
        display: flex;
        flex-direction: row; 
        gap: 1rem;
        flex-wrap: nowrap;
        overflow-x: auto;    
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem; 
        justify-content: flex-start; 
        scrollbar-width: none;  
        -ms-overflow-style: none; 
    }
    .program-list::-webkit-scrollbar {
    display: none;             
    }

    .program-item {
        flex: 0 0 100%;       
        width: 100%;  
        scroll-snap-align: start;     
        border-radius: none;
    }

    .img-holder {
    height: 300px;
    }
    .arrow {
        display: flex;
    }

    .overview {
        padding: 2em ;
    }
    .overview-txt {
        padding-top: 0;
        padding-right: 1rem;
        padding-bottom: 3rem;
    }

    .enroll-now {
        padding: 4rem 2rem;
    }

  /* Footer stacked vertically */
  .middle{
    h2{
      font-size: 1em;
    }
  }
}

/* Tablet-specific styles: between 600px and 900px */
@media (min-width: 600px) and (max-width: 900px) {
    header {
        padding-left: 3rem;
        padding-right: 3rem;
    }
    header h1 {
        font-size: 1.3rem;
    }

    .hamburger {
        font-size: 2.5rem;
    }
   
    nav.menu {
        right: -50px;
        padding-left: 2rem;
    }

    .hero-txt h2 {
        font-size: 2.8rem; 
        margin-bottom: 50px;
    }

    .hero-txt p {
      font-size: 1.8rem;
      text-align: justify;
    }

    .btn{
      padding: 1.5rem;
      font-size: 1.5rem;
      width: 40%;
      border-radius: 50px;
    }

  .hero-txt div{
    gap: 3rem;
  }

    .core-values-list {
        display: flex;
        flex-direction: row;
    }

    .core-values-items {
        font-size: 1.1rem;
    }
}
