body {
  font-family: 'Tajawal', sans-serif;
  margin: 0;
  background-color: #ffffff;
  color: #222;
  text-align: center;
    padding: 0;
}
.wrapper {
  max-width: 1200px;   
  margin: 0 auto;      
  padding: 0 20px;     
  box-sizing: border-box;
}

/* Apply English font to any element with lang="en" */
[lang="en"] {
    color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
}

/* Headings Arabic Style */
h1, h2, h3 {
  color: #f5a623;
  font-family: 'Tajawal', sans-serif;
  font-weight: 200; 
}

/* Arabic text */
:lang(ar) {
  font-family: 'Tajawal', sans-serif;
  font-weight: 200; 
  font-size: 1.3em; 
  line-height: 1.6;
}

:lang(ar) h1 {
  font-size: 2em;
  font-weight: 200;
}

:lang(ar) h2 {
  font-size: 2em;
  font-weight: 200;
}

:lang(ar) h3 {
  font-size: 1.8em;
  font-weight: 200;
}


header .hero {
  background-color: #f2ac1f;
  color: white;
  padding: 1px 8px!important;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  
}

.here-we-grow {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  word-spacing: 6px !important;
  letter-spacing: 4px !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
}

/* Nursery title */
.nursery-title {
  text-align: center;
  font-family: 'Tajawal', sans-serif;
  font-weight: 200; 
  font-size: 48px; 
  margin: 30px auto;
  line-height: 1.3;
}
/* Logo */
.nursery-logo img {
  max-width: 500px;
  height: auto;
  display: block;
  margin: 0 auto;

}

/* Message container */
.message-container {
  color: #f5a623;
  text-align: center;
  max-width: 600px;
  padding: 20px;
  margin: auto;
}



.message-container p {
  color: #333;
  font-size: 40px;       
  line-height: 1.8;      
  font-weight: 200;
}

/* Services */
.services-container {
  direction: rtl;
  text-align: center;
  font-family: 'Tajawal', sans-serif;
  padding: 50px 20px;
  max-width: 900px;
  margin: auto;
}

.services-container h1 {
  color: #f5a623;
  font-size: 42px;
  font-weight: 300;
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 30px;
}
#about p,
.vision p {
  color: #333;
  font-size: 40px;
  line-height: 1.8;
  font-weight: 200;
  max-width: 600px;
  margin: 0 auto 25px;
  text-align: center;
}


.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
   justify-content: center;
    border-radius: 50px;
  padding: 20px;
  min-height: 150px;
  text-align: center;
}

.service-item h2 {
  background-color: #f5a623;
  color: white;
  font-size: 24px;
  font-weight: 300;
  padding: 15px;
  border-radius: 30px;
  margin-bottom: 10px;
  width: 220px;
  height: 40px; 
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-item p {
  color: #333;
  font-size: 16px;
  margin: 0;
}

/* Curriculum */
.curriculum-title {
  text-align: center;
  margin: 50px 0 30px;
}

.curriculum-title h2 {
  color: #f5a623;
  font-size: 40px;
  font-weight: 300;
  margin: 0;
}

.curriculum-section {
  padding: 0 20px 60px;
  display: flex;
  justify-content: center;
}

.curriculum-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 20px;
  max-width: 1000px;
  width: 100%;
}

.curriculum-items span {
  background-color: #ffe4b5;
  color: #333;
  padding: 12px 20px;
  text-align: center;
  border-radius: 30px;
  font-size: 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s;
}

.curriculum-items span:hover {
  background-color: #f5a623;
  color: white;
}

/* Navigation */
nav {
  background-color: #4C853B;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav ul li {
  margin: 10px;
}

nav a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  font-weight: bold;
}

/* Sections */
section {
  padding: 40px 20px;
  background-color: white;
  margin-bottom: 10px;
}

section h2 {
  color: #f29e1f;
  font-size: 32px;
}

footer {
  background-color: #4C853B;
  color: white;
  padding: 15px;
}

/* Section header image */
.section-header {
  background-image: url('image/section-header.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 250px;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.gallery-container img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
}

.facilities-section {
  text-align: center;
  padding: 0px;
}

.facilities-section img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}


.banner {
    background-color: #f4ad3d; 
    text-align: center;
    padding: 20px 10px;
}

.banner h1 {
    color: white;
    margin: 0 0 15px;
    font-size: 28px;
}

.links {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.links a {
    color: black;
    text-decoration: underline;
    font-size: 18px;
}

.links a:hover {
    color: #333;
}


/* تحسين التوافق مع الموبايل */
@media screen and (max-width: 768px) {
  /* Keep logo smaller */
  .nursery-logo img {
    max-width: 85%;
  }

  /* Narrow the main content width */
  section, .message-container, .vision, #about {
    max-width: 92%;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
  }

  /* Headings styling */
  #about h2,
  .message-container h1,
  .vision h2 {
    font-size: 24px;
    font-weight: bold;
    color: #f5a623;
    margin-top: 25px;
    margin-bottom: 15px;
  }

  /* Body text styling */
  
  .message-container p
   {
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 25px;
  }
    /* من نحن + الرؤية نفس تنسيق الرسالة الكبير */
  #about p,
  .vision p {
    font-size: 20px;      /* أكبر من الرسالة */
    line-height: 1.8;
    text-align: center;
    margin-bottom: 20px;
  }

  /* Services grid: keep 2 columns */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .service-item h2 {
    width: auto;
    height: auto;
    font-size: 18px;
    padding: 10px;
  }

  .service-item p {
    font-size: 14px;
  }

  /* Curriculum stays 3 columns but with smaller gaps */
  .curriculum-items {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .curriculum-title h2 {
    font-size: 26px;
  }

  /* Gallery stays 3 columns but scales better */
  .gallery-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .gallery-container img {
    height: auto;
  }

  /* Navigation stack on tablet */
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin: 5px 0;
  }

  /* Map responsive */
  iframe {
    width: 100% !important;
    height: auto;
  }

  /* Banner links wrap on tablet */
  .links {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  section#branches,
  section#contact {
    max-width: 92%;
    margin: 0 auto 20px;
    padding: 20px 15px;
    text-align: center;
  }

  section#branches h2,
  section#contact h2 {
    font-size: 24px;
    font-weight: bold;
    color: #f5a623;
    margin-bottom: 15px;
    margin-top: 10px;
  }

  section#branches li {
    font-size: 16px;
    line-height: 1.4;
    margin: 8px 0;
  }

  section#contact p {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 15px;
  }
   section h2,
  .service-item h2 {
    font-size: 20px; /* slightly larger than body */
    font-weight: bold;
    color: white;
  }

  section p,
  .service-item p {
    font-size: 14px;
    line-height: 1.4; /* tighter spacing */
    text-align: center;
  }

  /* Keep equal size for orange boxes on mobile */
  .service-item h2 {
    width: 180px;
    height: 60px;
  }

}

/* تحسين التوافق أكثر للشاشات الصغيرة جدا */
@media screen and (max-width: 480px) {
  
  /* Keep 3 columns but smaller gap */
  
  .curriculum-items,
  .gallery-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    
  }

  /* Center and narrow content for readability */
  section, .message-container, .vision, #about {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 10px;
    text-align: center;
  }
 

  /* Headings styling */
  #about h2,
  .message-container h1,
  .vision h2 {
    font-size: 22px;
    font-weight: bold;
    color: #f5a623;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  /* Body text styling */
  #about p,
  .message-container p,
  .vision p {
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 20px;
  }

  /* Gallery images smaller */
  .gallery-container img {
    max-height: 120px;
    object-fit: cover;
  }

  /* Responsive iframe */
  iframe {
    width: 100% !important;
    height: auto;
  }

  /* Banner links wrap */
  .links {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }
    section#branches,
  section#contact {
    max-width: 90%;
    padding: 15px 10px;
  }

  section#branches h2,
  section#contact h2 {
    font-size: 22px;
    margin-bottom: 12px;
  }

  section#branches li {
    font-size: 15px;
    line-height: 1.3;
  }

  section#contact p {
    font-size: 14px;
    line-height: 1.3;
  }
    section h2,
  .service-item h2 {
    font-size: 18px;
  }

  section p,
  .service-item p {
    font-size: 13px;
    line-height: 1.4;
  }

  .service-item h2 {
    width: 160px;
    height: 55px;
  }

  
}
/* تقليل المسافة بين اللوجو وقسم من نحن */
.nursery-logo {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#about {
  margin-top: 0 !important;
  padding-top: 10px !important; /* لو عايز مسافة بسيطة */
}

#about h2 {
  margin-top: 5px !important;
}
