* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}


/* Base styles */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fdf6f0;
  color: #333;
}

/* ===== NAVBAR STYLES ===== */
.navbar {
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 14px 20px;
  position: relative;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo span {
  font-size: 36px;
  font-family: 'Great Vibes', cursive;
  color: #3b82f6;
  font-weight: 400;
  letter-spacing: 1px;
}

/* Navigation */
nav {
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  color: #444;
  padding: 6px 12px;
  border-radius: 4px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffd700;
}

.contact-btn {
  background-color: #ff7f50;
  color: #fff;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.contact-btn:hover {
  background-color: #e65c2a;
}

/* ===== BURGER MENU STYLES ===== */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 35px;
  height: 35px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 7px 5px;
  z-index: 1002;
  position: relative;
}

.burger-line {
  width: 100%;
  height: 3px;
  background-color: #3b82f6;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.burger-menu.open .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.open .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu.open .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== MOBILE STYLES ===== */
@media screen and (max-width: 768px) {
  .navbar {
    padding: 5px 15px;
  }
  
  .burger-menu {
    display: flex;
    position: absolute;
    top: 20px;
    right: 15px;
  }
  
  .container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .logo {
    margin-bottom: 10px;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: 1001;
    padding: 60px 20px 20px;
    margin: 0;
    gap: 0;
    opacity: 0;
  }
  
  .nav-links.open {
    transform: translateX(0);
    opacity: 1;
  }
  
  .nav-links li {
    width: 100%;
    text-align: center;
    margin: 10px 0;
  }
  
  .nav-links a {
    display: block;
    padding: 15px 0;
    color: #333 !important;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    width: 100%;
  }
  
  .nav-links li:last-child a {
    border-bottom: none;
  }
  
  .contact-btn {
    background-color: #ff7f50;
    color: #fff !important;
    padding: 12px 24px;
    margin-top: 20px;
    width: 200px;
    text-align: center;
  }
  
  /* Overlay for mobile menu */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }
  
  .nav-overlay.active {
    display: block;
  }
  
  body.menu-open {
    overflow: hidden;
  }
}

/* ===== DESKTOP STYLES ===== */
@media screen and (min-width: 769px) {
  .burger-menu {
    display: none !important;
  }
  
  .nav-links {
    display: flex !important;
    position: static !important;
    height: auto !important;
    width: auto !important;
    background: transparent !important;
    flex-direction: row !important;
    transform: none !important;
    opacity: 1 !important;
    padding: 0 !important;
  }
}


.about-image {
  flex: 1 1 30%;
  max-width: 200px;
  min-height: auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-section {
  padding: 60px 30px;
  background-color: #fdf6f0;
  max-width: 1100px;
  margin: 0 auto;
}

.about-section h2 {
  font-size: 32px;
  margin-bottom: 40px;
  text-align: center;
  color: #333;
}

.about-section .highlight {
  color: #3b82f6;
  font-weight: bold;
}

.about-box {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 40px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.about-image {
  flex: 0 0 160px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image img {
  width: 200px;        /* set equal width */
  height: 200px;       /* set equal height */
  object-fit: cover;   /* crop to fill the circle */
  border-radius: 50%;  /* makes it a perfect circle */
  display: block;      /* prevents inline spacing issues */
}

.about-text {
  flex: 1;
  padding: 30px;
  font-size: 15px;
  color: #444;
  line-height: 1.6;
}

.about-text h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #3b82f6;
}



.highlight-block {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.highlight-text {
  flex: 1;
  min-width: 250px;
}

.highlight-image img {
  width: 100%;
  max-width: 350px;
  border-radius: 10px;
  object-fit: cover;
}

/* PAGE BACKGROUND */
.about-wrapper {
  padding: 60px 30px;
  background: #fdf6f0;
}

/* MAIN CARD */
.about-box {
  max-width: 1100px;
  margin: auto;
  background: #fff;
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Mission text */
.about-text {
  max-width: 700px;
  margin: 0 auto 30px;
  text-align: left;
}

.about-text h3 {
  font-size: 26px;
  margin-bottom: 16px;
  color: #222;
}

.about-text p {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 14px;
}

/* Gallery directly under text */
.about-hover-gallery {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hover-block {
  text-align: center;
  width: 120px; /* keeps images small and neat */
}

.hover-block img {
  width: 100%;
  height: 100px;       /* small fixed height */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 6px;
  transition: transform 0.3s ease;
}

.hover-block img:hover {
  transform: scale(1.08);
}

.hover-block h4 {
  font-size: 13px;
  color: #333;
  margin: 0;
}

/* Responsive */
@media (max-width: 600px) {
  .hover-block {
    width: 45%; /* two per row on mobile */
  }

  .hover-block img {
    height: 120px;
  }
}

.why-choose {
  padding: 60px 30px;
  background-color: #fdf6f0;
  text-align: center;
}

.why-choose h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #333;
}

.why-choose .highlight {
  color: #3b82f6;
  font-weight: bold;
}

.why-choose .intro {
  font-size: 16px;
  margin-bottom: 40px;
  color: #555;
}

/* Grid layout */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

/* Individual feature box */
.feature-box {
  background-color: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.feature-box .icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature-box h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #3b82f6;
}

.feature-box p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.curricula-section {
  padding: 60px 30px;
  background-color: #fdf6f0;
  text-align: center;
}

.curricula-section h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #333;
}

.curricula-section .highlight {
  color: #3b82f6;
  font-weight: bold;
}

/* Grid layout */
.curricula-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

/* Individual curriculum box */
.curriculum-box {
  background-color: #fff;
  border-radius: 16px;
  padding: 24px;
  width: 250px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.curriculum-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.curriculum-box .icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.curriculum-box h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #3b82f6;
}

.curriculum-box p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.subjects-section {
  padding: 60px 30px;
  background-color: #fdf6f0;
  text-align: center;
}

.subjects-section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #333;
}

.subjects-section .highlight {
  color: #3b82f6;
  font-weight: bold;
}

.subjects-section .intro {
  font-size: 16px;
  margin-bottom: 40px;
  color: #555;
}

/* Grid layout */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  justify-content: center;
}

/* Individual subject box */
.subject-box {
  background-color: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subject-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.subject-box .icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.subject-box p {
  font-size: 15px;
  color: #3b82f6;
  font-weight: 500;
}

.subjects-grid,
.curricula-grid,
.features-grid {
  gap: 16px; /* was 20px or 24px */
}

/* Responsive layout for boxed sections */
@media (max-width: 768px) {
  .about-box {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .about-text {
    padding-right: 0;
  }

  .about-image {
    margin-top: 20px;
    max-width: 100%;
  }

  .about-image img {
    border-radius: 12px;
  }

  .features-grid,
  .curricula-grid,
  .subjects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-box,
  .curriculum-box,
  .subject-box {
    width: 100%;
    padding: 16px;
  }

  .about-section,
  .subjects-section,
  .curricula-section,
  .why-choose {
    padding: 40px 20px;
  }

  .about-section h2,
  .subjects-section h2,
  .curricula-section h2,
  .why-choose h2 {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .about-text h3,
  .feature-box h3,
  .curriculum-box h3,
  .subject-box p {
    font-size: 16px;
  }

  .about-text p,
  .feature-box p,
  .curriculum-box p {
    font-size: 14px;
    line-height: 1.4;
  }
}
.about-image {
  flex: 1 1 30%;
  max-width: 200px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}


@media (max-width: 768px) {
  .about-box {
    flex-direction: column;
    align-items: center;
  }

  .about-image {
    max-width: 100%;
    padding: 0 0 20px;
  }

  .about-image img {
    border-radius: 0 0 16px 16px;
  }
}

/* Header Layout */
.header {
  padding: 60px 40px;
  background-color: #fdf6f0;
}

.header-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  gap: 40px;
}

.header-text {
  flex: 1 1 50%;
}

.header-image {
  flex: 1 1 40%;
  text-align: center;
}

.header-image img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%; /* Use 0% for full image */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.logo-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.logo-inline img {
  height: 60px;
  width: auto;
}

.logo-inline span {
  font-size: 36px;
  font-family: 'Great Vibes', cursive;
  color: #3b82f6;
}

.header-text p {
  font-size: 18px;
  color: #444;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .header-image img {
    width: 200px;
    height: 200px;
  }
}


/* --- UNIVERSAL MOBILE RESPONSIVENESS (768px and below) --- */
@media screen and (max-width: 768px) {
  
  /* 1. Header & Logo: Perfectly Centered & Logo Increased */
  .navbar .container,
  .header-content,
  .logo-inline {
    flex-direction: column;
 
    text-align: center;
    gap: 15px;
  }

  /* INCREASED LOGO SIZE HERE */
  .logo img {
    height: 70px !important; /* Increased from 50px */
    width: auto;
  }

  .logo-inline img {
    height: 85px !important; /* Increased from 60px */
    width: auto;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    padding: 10px 0;
    gap: 12px;
  }

  /* 2. About the Founder: The "Neat" Rectangular Card */
  .about-box {
    flex-direction: column; 
    padding: 45px 25px; 
    margin: 0 auto 80px auto; 
    
    width: 92%; 
    max-width: 380px; 
    border-radius: 40px; 
    
    background: #ffffff;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.07); 
    border: none;
  }

  .about-image {
    width: 100%;
    padding: 0 0 25px 0;
  }

  .about-image img {
    width: 220px !important;  
    height: 280px !important; 
    object-fit: cover;        
    
    border-radius: 30px;      
    border: 8px solid #fff;   
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    margin: 0 auto;
    display: block;
  }

  .about-text {
    padding: 0;
    text-align: center;
  }

  .about-text h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #222;
  }

  .about-text p {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
  }

  /* 3. Grid Cleanup (Features, Subjects, Curricula) */
  .features-grid,
  .curricula-grid,
  .subjects-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
  }

  .feature-box,
  .curriculum-box,
  .subject-box {
    width: 100% !important;
    max-width: 100%;
    margin: 0;
    border-radius: 20px; 
  }

  /* 4. Footer & Spacing Fixes */
  section, 
  .about-wrapper {
    padding: 40px 15px;
  }

  .subjects-section, 
  .about-section {
    margin-bottom: 80px; 
  }

  .header-text h1 {
    font-size: 1.8rem;
  }
}

/* Gallery Adjustment for very small phones */
@media (max-width: 480px) {
  .hover-block {
    width: 45%; 
  }
}
