/* Layout Styles for G⭑Nest Pre School */

/* Hero Section */
.hero {
  min-height: 100vh;
  background: rgb(127, 221, 233);
  display: flex;
  align-items: center;
  position: relative;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.hero-title {
  font-size: var(--font-size-4xl);
  font-family: "Bookman Old Style", serif;
  margin-bottom: var(--space-2);
  color: #0c4749;
  text-align: center;
  display: inline-block;
  transform-style: preserve-3d;
  animation: swing3D 3s ease-in-out infinite;
  perspective: 1000px;
}

.hero-title span {
  display: inline-block;
  transform-origin: center;
}

/* 3D swing keyframes */
@keyframes swing3D {
  0% {
    transform: rotateY(0deg);
  }
  25% {
    transform: rotateY(15deg) translateZ(10px);
  }
  50% {
    transform: rotateY(0deg);
  }
  75% {
    transform: rotateY(-15deg) translateZ(10px);
  }
  100% {
    transform: rotateY(0deg);
  }
}

.hero-subtitle {
  font-size: var(--font-size-2xl);
  font-family:"Sitka Text Semibold", serif;
  margin-bottom: var(--space-2);
  color: #8a0303;
  animation: swing3D 3s ease-in-out infinite;
  text-align: end;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
}
/* About Section */
.about {
  font-family: "Baskerville Old Face", serif;
  background-color: #dafaa7;
  margin-bottom: 0%;
}
.abouttext1{
  font-size: 1.2rem;
  font-family: "Baskerville Old Face", serif;
  margin-bottom: var(--space-2);
  color: #161616;
}
.abouttext2{
  font-size: 1.2rem;
  font-family: "Baskerville Old Face", serif;
  margin-bottom: var(--space-2);
  color: #161616;
}
.abouttext3{
  font-size: 1.2rem;
  font-family: "Baskerville Old Face", serif;
  margin-bottom: var(--space-2);
  color: #161616;
}
.abouttext4{
  font-size: 1.2rem;
  font-family: "Baskerville Old Face", serif;
  margin-bottom: var(--space-5);
  color: #161616;
}
.about-content {
  display: flex;
  gap: var(--space-1);
  align-items: center;
}

.about-text {
  flex: 1;
  text-align: justify;
}

.about-image {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-left: 70px;
  box-shadow: 20px 15px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
  width: 100%;
}

.about-features {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-4);
}
.feature {
  text-align: center;
  padding: var(--space-3);
  background-color: rgb(248, 174, 155);
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 15px rgba(226, 6, 6, 0.05);
}
.feature h3 {
  font-size: var(--font-size-lg);
  font-family: "Baskerville Old Face", serif;
  color: #1b1b1b;
  margin-bottom: 0;
}

.emoji-scroll {
  display: inline-block;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  15% {
    transform: translateY(-5px) rotate(5deg);
  }
  30% {
    transform: translateY(0) rotate(-5deg);
  }
  45% {
    transform: translateY(-3px) rotate(3deg);
  }
  60% {
    transform: translateY(0) rotate(-3deg);
  }
  75% {
    transform: translateY(-1px) rotate(1deg);
  }
}
/* {vision section} */
.vision {
  padding: 80px 0;
  background-color: #cbbdee;
  top: 10%;
}

.vision-mission-container {
  display: flex;
  justify-content: space-between;  
  font-family: "Baskerville Old Face",bold, serif;
  gap: 80px;
  max-width: 1300px;
  margin: 0 auto;
  text-align: justify;
}

.vision-box, .mission-box {
  flex: 1;
  padding: 30px;
  border-radius: 20px;
  background-color: rgb(121, 245, 193);
  box-shadow: 18px 18px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.vision-box:hover, .mission-box:hover {
  transform: translateY(-10px);
}

.vision-box h3, .mission-box h3 {
  font-size: 1.8rem;
  font-family: "Baskerville Old Face", serif;
  color: #960ff0;
  margin-bottom: 20px;
}

.vision-box p, .mission-box p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #363636;
}

.vision-box {
  border-left: 5px solid #f77f50;
}

.mission-box {
  border-right: 5px solid #ff0000;
}

/* Responsive design */
@media (max-width: 768px) {
  .vision-mission-container {
    flex-direction: column;
  }
  
  .vision-box, .mission-box {
    width: 100%;
  }
}
/* Programs Section */
.programs {
  background-color: rgb(243, 189, 189);
  color: #1d3dee;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
}

.program-card {
  background-color: blanchedalmond;
  font-family: "Bookman Old Style", serif;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  color: #000000;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.program-card h3 {
  color: rgb(167, 10, 10);
  font-family: "Baskerville Old Face", serif;
  margin-bottom: var(--space-1);
}

.program-card p:first-of-type {
  font-weight: 800;
  color: rgb(0, 0, 0);
  margin-bottom: var(--space-2);
}

/* {co-scholastic} */
.co-scholastic {
  background-color: #5ed4c0;
  padding: 4rem 1rem;
}

.section-title1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  font-weight: bold;
}

.co-scholastic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 2rem;
  padding: 1.5rem;
  border-radius: 10px;
  opacity: 1;
  transform: none;
}

.co-img img {
  width: 300px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.co-text {
  flex: 1;
  font-size: 1.2rem;
  line-height: 1.7;
  font-family: "Baskerville Old Face", serif;
  color: #1e1f20;
  text-align: justify;
}

/* Color variants */
.type1 {
  background-color: #98dbfa;
  border-left: 6px solid #150bac;
}

.type2 {
  background-color: #f5f4c7;
  border-left: 6px solid #753104;
}

.type3 {
  background-color: #9be79b;
  border-left: 6px solid #006103;
}



/* Responsive */
@media (max-width: 768px) {
  .co-scholastic-row {
    flex-direction: column;
    text-align: center;
  }

  .co-img img {
    width: 100%;
    max-width: 350px;
    margin-bottom: 1rem;
  }
}
/* {Developmental Domains} */
.development {
    padding: 60px 20px;
    background: #e7acd5;
    position: relative;
    overflow: hidden;
  }
  
  .development .container {
    max-width: 1300px;
    margin: auto;
    position: relative;
    z-index: 1;
  }
  .section-title {
    font-size: 2.5rem;
    color: #362072;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  }
  .development-text {
    font-size: 1.4em;
    font-family: "Baskerville Old Face", serif;
    margin-bottom: 30px;
    color: #2b2b2b;
    line-height: 1.6;
  }
    .development-list {
    list-style: none;
    font-family: "Baskerville Old Face", serif;
    padding-left: 0;
    font-size: 1.2em;
    margin: 0 auto 40px auto;
    max-width: 800px;
    background: rgb(178, 224, 201);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  }
  .development-list li {
    margin: 15px 0;
    padding: 12px 20px;
    border-radius: 8px;
    background-color: rgba(240, 224, 255, 0.8);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
  }
  .development-list li strong {
    color: #3a4a6d;
    margin-right: 10px;
    min-width: 180px; 
  }
  .development-list li span:not(.emoji) {
    color: #666;
    font-size: 0.95em;
  }
 
/* Gallery Section */
.gallery {
  background-color: var(--primary-light);
  padding: var(--space-6) 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-3);
}

.gallery-item {
  height: 250px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 4px solid #000000;
  box-sizing: border-box; 
  border-radius: 20px;    
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}    
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  background: linear-gradient(to top, rgba(5,5,5,5), transparent);
  color: rgb(255, 253, 253);
  padding: 1.7rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}  
.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* {Pedagogy} */
.pedagogy {
  background-color: #9af79e;
  padding: 4rem 1rem;
}

.pedagogy-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.pedagogy-text {
  max-width: 600px;
  font-family: "Bookman Old Style", serif;
  font-size: 1.2rem;
  color: #444;
  line-height: 1.8;
}

.pedagogy-image img {
  width: 100%;
  height: 400px;
  max-width: 700px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Responsive: Image left, Text right */
@media (min-width: 768px) {
  .pedagogy-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .pedagogy-image {
    flex: 1;
    padding-right: 2rem;
  }

  .pedagogy-text {
    flex: 1;
  }
}


/* Testimonials Section */
.testimonials {
  background-color:rgb(152, 231, 241);

}

.testimonial-slider {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 250px;
  margin: 0 auto;
  
}

.testimonial {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  animation: slideFade 25s infinite;
  padding: 20px;
  box-sizing: border-box;
  background-color: rgb(223, 223, 139);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  font-family: "Bookman Old Style", serif;
}

.testimonial:nth-child(1) { animation-delay: 0s; }
.testimonial:nth-child(2) { animation-delay: 5s; }
.testimonial:nth-child(3) { animation-delay: 10s; }
.testimonial:nth-child(4) { animation-delay: 15s; }
.testimonial:nth-child(5) { animation-delay: 20s; }

@keyframes slideFade {
  0% { opacity: 0; transform: translateX(100%); }
  5% { opacity: 1; transform: translateX(0); }
  20% { opacity: 1; transform: translateX(0); }
  25% { opacity: 0; transform: translateX(-100%); }
  100% { opacity: 0; transform: translateX(-100%); }
}

.quote {
  font-size: var(--font-size-lg);
  font-style: italic;
  margin-bottom: var(--space-4);
  position: relative;
  height: 100px;
}

.quote::before,
.quote::after {
  content: '"';
  color: var(--primary);
  font-size: var(--font-size-3xl);
  position: absolute;
}

.quote::before {
  left: -15px;
  top: -10px;
}

.quote::after {
  right: -15px;
  bottom: -10px;
}

.author {
  font-weight: 700;
  color: var(--primary);
}

/* Contact Section */
.contact {
  background-color: rgb(202, 159, 224);
  font-family: "Bookman Old Style", serif;
  color: #000000;
}

.contact-content {
  display: flex;
  gap: var(--space-5);
}

.contact-info, 
.contact-form {
  flex: 1;
  background-color: rgb(228, 157, 157);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.contact-info h3,
.contact-form h3 {
  color: rgb(86, 0, 136);
  font-family: "Bookman Old Style", serif;
  margin-bottom: var(--space-3);
}

.social-icons {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon.facebook {
  background-color: #3b5998;
}

.social-icon.instagram {
  background-color: #e1306c;
}

.social-icon.twitter {
  background-color: #1da1f2;
}
.child-age{
  width: 40px;
}
/* Program Icons */
.program-icon.toddler {
  background-color: var(--accent-yellow);
}

.program-icon.preschool {
  background-color: var(--accent-green);
}

.program-icon.prek {
  background-color: var(--primary);
}

.program-icon.after {
  background-color: var(--accent-purple);
}