﻿/* ================= ROOT COLORS ================= */
:root {
  --primary: #1e3a8a;
  --secondary: #1f3a2e;
  --accent: #d4af37;
  --light: #f7faf7;
  --text: #1f2a24;
}


/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
}

section {
  padding: 5px 0;
}

h1, h2, h3 {
  margin-bottom: 15px;
}

p {
  margin-bottom: 10px;
}


.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}



/* ================= CONTAINER ================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ================= HEADER ================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
background:
linear-gradient(
135deg,
#041b12 0%,
#0b2e1d 18%,
#14532d 38%,
#0a2518 58%,
#166534 82%,
#03140d 100%
);


}



.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo img {
  height: 80px;
}

/* NAV */
.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
}

.nav-links li {
  position: relative;
}

.nav-links a,
.dropdown-toggle {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  cursor: pointer;
}

.nav-links a:hover,
.dropdown-toggle:hover {
  color: var(--accent);
}

/* ACTIVE LINK */
.nav-links a.active {
  border-bottom: 2px solid var(--accent);
}

/* DROPDOWN */
.dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  background: #808080;
  width: 240px;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
  z-index: 999;
}

.dropdown-menu li {
  border-bottom: 1px solid #f1f1f1;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu a {
  display: block;
  padding: 12px 15px;
  font-size: 0.95rem;
  transition: 0.25s;
  color: #FFB703 !important;
  font-weight: 500;
  
  letter-spacing: 0.2px;
}

.dropdown-menu a:hover {
  background: var(--primary);
  color: white;
  padding-left: 20px;
}


/* SHOW WITH ANIMATION */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* SEARCH */
.search-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.search-bar {
  position: absolute;
  top: 100%;
  right: 20px;
  width: 300px;
  background: white;
  padding: 10px;
  border-radius: 8px;
  display: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  z-index: 999;
}

.search-bar.active {
  display: block;
}

.search-bar input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  outline: none;
}

.search-bar input:focus {
  border-color: var(--accent);
}


/* MOBILE MENU */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

/* ================= HERO SLIDER ================= */
.hero-slider {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.overlay {
  background: rgba(0,0,0,0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #f3efe3;
  text-align: center;
}

/* ================= INTRO ================= */
.intro {
  padding: 60px 0;
  text-align: center;
  background: #2a4636;
  color: white;
}

.btn-group {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.cta-btn, .secondary-btn {
  padding: 12px 25px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.cta-btn {
  background: var(--accent);
  color: black;
}

.secondary-btn {
  border: 2px solid var(--accent);
  color: black;
}

.cta-btn:hover {
  background: #b8962e;
}

.secondary-btn:hover {
  background: #b8962e;
  color: white;
}

/* ================= FEATURES ================= */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 30px;
  padding: 60px 5%;
}

.feature {
  display: flex;
  gap: 15px;
  background: white;
  padding: 25px;
  border-radius: 10px;
  transition: 0.3s;
}

.feature-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-img {
  width: 80px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;        /* 🔥 CRITICAL: crops overflow */
  flex-shrink: 0;          /* prevents shrinking in flex */
}

.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* 🔥 makes image fill box properly */
  display: block;          /* removes inline spacing issues */
}

/* ================= LEVELS ================= */
.levels {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 10px;
  margin: 10px 0;
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  color: white;
  font-size: 2rem;
  font-weight: bold;
  z-index: 2;
}


.level:hover {
  transform: scale(1.05);
}

.level:hover::before {
  background: rgba(0,0,0,0.2);
}


.level {
  height: 250px;
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.4s ease;
}

/* DARK OVERLAY for readability */
.level::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}

/* INDIVIDUAL IMAGES */
.level.creche {
  background-image: url('images/creche.webp');
}

.level.playgroup {
  background-image: url('images/pppp.webp');
}

.level.preparatory {
  background-image: url('images/preparatory.webp');
}

.level.foundation {
  background-image: url('images/found.webp');
}

.level.basic {
  background-image: url('images/basic.webp');
}

/* ================= COUNTER ================= */
.counter {
  display: flex;
 text-align: center;
  justify-content: center;
  gap: 25px;
  padding: 80px 20px;
  background: linear-gradient(20deg, var(--secondary));
  flex-wrap: wrap;
  align-items: stretch; 
}


.counter-box {
  background: #b8962e;
  color: var(--secondary);
  width: 260px; 
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  transition: 0.35s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  margin: 0 auto;
  backdrop-filter: blur(10px);
}

.counter-box i {
  font-size: 2.5rem;
  color: #f3efe3;
  margin-bottom: 15px;
  transition: 0.3s ease;
}

.counter-box:hover i {
  transform: scale(1.1);
  text-shadow: 0 5px 15px rgba(212, 175, 55, 0.5);
}

.counter-box h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--secondary);
}

.counter-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.counter-box p {
  font-size: 1.2rem;
  color: #f3efe3;
}

.counter-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: #32cd32;
}

/* ================= TESTIMONIAL ================= */
.testimonials {
  padding: 80px 20px;
}

.testimonial-box {
  display: flex;
  align-items: center;
  gap: 20px;
}

.testimonial-img {
  width: 120px;
  border-radius: 50%;
}

/* ================= FOOTER ================= */

.footer{
background:
linear-gradient(
135deg,
#041b12 0%,
#0b2e1d 18%,
#14532d 38%,
#0a2518 58%,
#166534 82%,
#03140d 100%
);

color:white;
padding:40px;
position:relative;
overflow:hidden;
}


.footer::before{
content:"";
position:absolute;
top:-120px;
right:-80px;
width:420px;
height:420px;
background:radial-gradient(
circle,
rgba(74,222,128,0.14),
transparent 72%
);
pointer-events:none;
}

.footer::after{
content:"";
position:absolute;
bottom:-100px;
left:-80px;
width:350px;
height:350px;
background:radial-gradient(
circle,
rgba(34,197,94,0.09),
transparent 72%
);
pointer-events:none;
}


.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.footer-columns p {
  line-height: 1.6;
}

.footer-columns a {
  display: block;
  color: white;
  margin-bottom: 5px;
  text-decoration: none;
}

.footer-columns a:hover {
  color: var(--accent);
}

.footer-columns h3 {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.footer-columns h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-top: 5px;
}

.footer iframe {
  width: 100%;
  height: 150px;
  border: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margiin-top:20px;
  border-top:1px solid rgba(255,255,255,.2);
}

.footer-bottom a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.footer-bottom a:hover {
  text-decoration: underline;
  color:white;
}

.footer-top {
  margin-bottom: 20px;
}

.footer-logo {
  max-width: 250px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.social-icons{
    display:flex;
    gap:18px;
    align-items:center;
}

.social-icons a{
    font-size:22px;
    text-decoration:none;
    display:inline-flex;
}
/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--secondary);
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .levels {
    grid-template-columns: 1fr;
  }

  .counter {
    
    align-items: center;

    justify-content: center;  
}

.counter h2 {
  font-size: 2.2rem;
  font-weight: 700;
}

  .search-bar {
    right: 10px;
    width: 90%;
  }

  .footer-columns {
    
  grid-template-columns: 1fr;
  
}
  .testimonial-box {
    flex-direction: column;
    text-align: center;
  }
}
