*{margin:0;padding:0;box-sizing:border-box}

body{
    font-family:'Fredoka',sans-serif;
    background:#f9fbff;
    color:#333;
}

/* HEADER */

   header{
    background: linear-gradient(
        135deg,
        #ff7043,
        #ffb74d,
        #81c784,
        #64b5f6,
        #9575cd
    );
    padding:32px 16px;   /* reduced height */
}

/* content width increased to ~85% */
.logo{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:34px;

    max-width:85%;
    margin:0 auto;
}

/* LOGO – still dominant */
.logo img{
    width:135px;
    height:135px;
    border-radius:50%;
    background:#fff;
    padding:12px;

    box-shadow:
        0 14px 32px rgba(0,0,0,0.35),
        0 0 0 7px rgba(255,255,255,0.45);

    flex-shrink:0;
}

/* SCHOOL NAME – wide & bold */
header h1{
    font-family:'Baloo 2', sans-serif;
    font-size:74px;
    font-weight:900;
    color:#111;
    letter-spacing:1px;
    line-height:1.1;
    margin:0;

    text-shadow:
        0 2px 0 rgba(255,255,255,0.4),
        0 6px 16px rgba(0,0,0,0.25);
}

/* TABLET */
@media (max-width:1024px){
    .logo{
        max-width:92%;
        gap:28px;
    }

    .logo img{
        width:115px;
        height:115px;
    }

    header h1{
        font-size:60px;
    }
}

/* MOBILE */
@media (max-width:768px){
    header{
        padding:24px 14px; /* even tighter on mobile */
    }

    .logo{
        flex-direction:column;
        max-width:100%;
        gap:16px;
        text-align:center;
    }

    .logo img{
        width:95px;
        height:95px;
    }

    header h1{
        font-size:46px;
    }
}


/* HERO */
.hero {
  padding: 90px 20px;
  background: linear-gradient(135deg, #fff8ee, #ffe3c4);
  text-align: center;
}

.hero-box {
  max-width: 900px;
  margin: auto;
  padding: 55px 60px;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* 🌟 Admission Open */
/* 🌟 Admission Open (text colored, emojis untouched) */
.admission-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: 1px;
  animation: floatIn 1.4s ease-out;
}

/* Color only the TEXT, not emojis */
.admission-title span {
  color: #d84315;
}

/* Entrance animation */
@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🔥 Limited Seats */
/* LIMITED SEATS - animated box only, no text shadow */
.limited-seats {
  display: inline-block;
  padding: 12px 28px;
  font-size: 18px;
  font-weight: 700;          /* bold */
  color: #fff;
  background: linear-gradient(135deg, #e53935, #ff7043);
  border-radius: 50px;
  margin: 16px 0 24px 0;     /* spacing from title and programs */
  text-align: center;

  /* gentle bounce and box glow */
  animation: pulseGlow 2s infinite alternate, gentleBounce 2.5s infinite alternate;
}

/* Box glow animation only */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 8px rgba(255,100,80,0.5); }
  50% { box-shadow: 0 0 18px rgba(255,100,80,0.9); }
  100% { box-shadow: 0 0 8px rgba(255,100,80,0.5); }
}

/* Gentle bounce */
@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Programs / Classes text under Admission Open */
.programs {
  font-size: 22px;
  font-weight: 700;        /* bold */
  color: #2e2e2e;          /* dark grey */
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-align: center;
  margin-top: 8px;
  line-height: 1.4;        /* better spacing for mobile */
}

/* HERO TITLE */
.admission-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 16px;
  text-align: center;
  animation: floatIn 1.4s ease-out;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  .admission-title {
    font-size: 40px;
  }
  .programs {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .admission-title {
    font-size: 32px;
  }
  .limited-seats {
    font-size: 16px;
    padding: 10px 22px;
  }
  .programs {
    font-size: 18px;
    line-height: 1.3;
  }
}

@media (max-width: 480px) {
  .admission-title {
    font-size: 28px;
  }
  .limited-seats {
    font-size: 14px;
    padding: 8px 18px;
  }
  .programs {
    font-size: 16px;
    line-height: 1.25;
  }
}


/* SECTION */
section{
    max-width:1100px;
    margin:auto;
    padding:70px 20px;
}

section h2{
    text-align:center;
    font-family:'Baloo 2';
    font-size:42px;
}

.subtitle{
    text-align:center;
    font-size:20px;
    margin:15px 0 40px;
    color:#555;
}

/* SLIDER */

/* CARD STYLE SLIDER */
.slider {
  overflow: hidden;
}

.slides {
  display: flex;
  gap: 25px;
  transition: transform 0.6s ease;
}

.slides img {
  min-width: 260px;
  height: 320px;
  border-radius: 25px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* MOBILE */
@media (max-width: 600px) {
  .slides img {
    min-width: 220px;
    height: 260px;
  }
}






/* ARROWS */
.arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(255,255,255,.8);
    padding:10px 15px;
    font-size:26px;
    cursor:pointer;
    border-radius:50%;
}

.prev{left:15px}
.next{right:15px}

/* TEXT */
.section-text{
    margin-top:25px;
    font-size:18px;
    text-align:center;
    max-width:800px;
    margin-left:auto;
    margin-right:auto;
}

/* FLOATING BUTTONS */
.floating-buttons{
    position:fixed;
    right:20px;
    bottom:20px;
    display:flex;
    flex-direction:column;
    gap:15px;
}

.float-btn{
    padding:14px 18px;
    border-radius:50px;
    color:white;
    text-decoration:none;
    font-weight:600;
    font-size:18px;
}

.whatsapp{background:#25D366}
.call{background:#ff6b6b}

/* FOOTER */
footer{
    background:#222;
    color:white;
    text-align:center;
    padding:25px;
}

footer span{color:#ff6b6b}

/* MOBILE */
@media(max-width:600px){
    .slides img{height:220px}
    header h1{font-size:38px}
    .hero h2{font-size:36px}
}
/* CONTACT SECTION */
#contact{
    background:linear-gradient(135deg,#fff7e6,#f0f9ff);
    border-radius:30px;
}

.contact-box{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
    margin-top:40px;
}

.contact-item{
    background:white;
    padding:30px 20px;
    border-radius:25px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,.12);
    transition:.3s;
}

.contact-item:hover{
    transform:translateY(-6px);
}

.contact-item h3{
    font-family:'Baloo 2';
    font-size:24px;
    margin-bottom:12px;
    color:#ff6b6b;
}

.contact-item p{
    font-size:18px;
}

.contact-item a{
    color:#0077cc;
    font-weight:600;
    text-decoration:none;
}
/* MICRO ANIMATIONS */
section{
    animation: fadeUp .8s ease both;
}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(40px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* BUTTON PULSE */
.float-btn{
    transition:.3s ease;
}
.float-btn:hover{
    transform:scale(1.08);
}

/* SLIDER IMAGE HOVER */
.slides img{
    transition:transform .6s ease;
}
.slider:hover .slides img{
    transform:scale(1.04);
}

/* ARROW HOVER */
.arrow:hover{
    background:white;
    transform:translateY(-50%) scale(1.15);
}
/* CURRICULUM SECTION */
.curriculum {
  max-width: 1200px;
  margin: 80px auto;
  padding: 20px 20px;
}

.curriculum-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.curriculum-text {
  flex: 1;
}

.curriculum-text h2 {
  font-family: 'Baloo 2';
  font-size: 42px;
  margin-bottom: 20px;
}

.curriculum-text p {
  font-size: 18px;
  line-height: 1.6;
  color: #444;
}

.curriculum-image {
  flex: 1;
  text-align: right;
}

.curriculum-image img {
  max-width: 100%;
  height: auto;
}

/* MOBILE */
@media (max-width: 768px) {
  .curriculum-container {
    flex-direction: column;
    text-align: center;
  }

  .curriculum-image {
    text-align: center;
  }
}
/* CONTACT HEADER LOGO (INSIDE) */
/* CONTACT LOGO INSIDE – NO LAYOUT CHANGE */
#contact {
  position: relative; /* anchor for logo */
}

.contact-logo-inside {
  position: absolute;
  top: 20px;
  left: 20px;

  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #fff;
  padding: 8px;

  box-shadow:
    0 10px 25px rgba(0,0,0,0.2),
    0 0 0 4px rgba(255,255,255,0.6);

  z-index: 2;
}
@media (max-width: 768px) {
  .contact-logo-inside {
    width: 70px;
    height: 70px;
    top: 15px;
    left: 15px;
  }
}
/* LEARNING BACKGROUND WRAPPER */
.learning-bg {
  position: relative;
  background: url("school/images.jpg") center / 500px repeat;
}

/* Soft overlay to keep it clean */
.learning-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(2px);
  z-index: 0;
}

/* Keep content above background */
.learning-bg section {
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .learning-bg {
    background: none;
  }
}
/* Wrapper */
/* Wrapper */
.safety-wrapper {
  padding: 60px 20px;
  background: #ffffff;
}

/* Heading */
.safety-heading {
  text-align: center;
  font-size: 40px; /* increased size */
  font-weight: 700; /* bolder for impact */
  margin-bottom: 12px;
  letter-spacing: 1px; /* subtle stylish effect */
}

.safety-sub {
  text-align: center;
  color: #666;
  margin-bottom: 50px; /* slightly more spacing */
  font-size: 18px; /* slightly bigger for readability */
}

/* Cards container */
.safety-section {
  display: flex;
  justify-content: center;
  gap: 80px; /* more separation between cards */
  flex-wrap: wrap; /* wrap on smaller screens */
}

/* Flip Card */
.flip-card {
  width: 320px; /* wider cards */
  height: 360px; /* taller cards */
  perspective: 1000px;
}

.flip-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

/* Front & Back */
.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  backface-visibility: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  padding: 20px;
  text-align: center;
}

/* Front */
/* Front */
.flip-front {
  background: #f7f7f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* center content vertically */
}

.flip-front img {
  width: 90%; /* images now cover most of card width */
  height: auto; /* maintain aspect ratio */
  max-height: 60%; /* don't exceed 60% of card height */
  margin-bottom: 16px;
}

.flip-front h3 {
  font-size: 22px;
  font-weight: 600;
}


/* Back */
.flip-back {
  background: #0066cc;
  color: #fff;
  transform: rotateY(180deg);
}

.flip-back h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

/* Mobile */
@media (max-width: 1024px) {
  .safety-heading {
    font-size: 36px;
  }
  .safety-sub {
    font-size: 16px;
    margin-bottom: 40px;
  }
  .safety-section {
    gap: 60px;
  }
  .flip-card {
    width: 280px;
    height: 320px;
  }
  .flip-front img {
    width: 150px;
  }
}

@media (max-width: 768px) {
  .safety-section {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .flip-card {
    width: 260px;
    height: 300px;
  }
  .flip-front img {
    width: 140px;
  }
  .safety-heading {
    font-size: 32px;
  }
  .safety-sub {
    font-size: 14px;
  }
}
