/* 🌿 Out-of-School Services Section */
.os-service-card {
  border-radius: 12px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.os-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.os-service-card h4 {
  font-weight: 700;
}

.os-service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.os-service-card .btn {
  font-weight: 600;
  border-radius: 8px;
  transition: 0.3s;
}

.os-service-card .btn:hover {
  background-color: #198754;
  color: #fff;
}







/* 🌿 Parent Hero Section - showing full image without cropping */
.parent-hero {
  position: relative;
  min-height: 90vh;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.4)),
    url('/images/family_Nanny_a.JPG') center top / contain no-repeat;
  background-color: #e9f5ef; /* fallback light green background */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  padding: 60px 20px;
}

/* Container to keep text visible and centered */
.parent-hero .container {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

/* Typography */
.parent-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.parent-hero p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Buttons */
.parent-hero .btn {
  font-weight: 600;
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  transition: all 0.3s ease;
}

.parent-hero .btn:hover {
  transform: translateY(-2px);
}














/* Typography */
.parent-hero h1 {
  font-size: 2.3rem;
  font-weight: 700;
}

.parent-hero p {
  font-size: 1.15rem;
  margin-bottom: 1.8rem;
}

/* Buttons */
.parent-hero .btn {
  font-weight: 600;
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  transition: all 0.3s ease;
}

.parent-hero .btn:hover {
  transform: translateY(-2px);
}

/* Overlay for better text visibility */
.parent-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.parent-hero-section .container {
  position: relative;
  z-index: 2;
}

.parent-hero-section .btn {
  font-weight: 600;
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  transition: all 0.3s ease;
}

.parent-hero-section .btn:hover {
  transform: translateY(-2px);
}



.advertise-hero {
  position: relative;
  background: url('/images/Nanny_V.png') center/cover no-repeat;
  min-height: 400px;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.advertise-hero .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.btn-advertise {
  background: linear-gradient(135deg, #ffc107, #ffdd57);
  color: #212529;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-advertise:hover {
  background: linear-gradient(135deg, #ffcd39, #ffe082);
  transform: translateY(-2px);
  color: #000;
}






.vacancy-section {
  background: linear-gradient(135deg, #fffaf3, #f0fff4);
  border-top: 3px solid #ffd966;
  border-bottom: 3px solid #b3e6b3;
}

.vacancy-section h2 {
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.vacancy-section p {
  line-height: 1.7;
  max-width: 600px;
}

.vacancy-img {
  max-height: 400px;
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.vacancy-img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-advertise {
  background: linear-gradient(135deg, #ffc107, #ffdd57);
  color: #212529;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-advertise:hover {
  background: linear-gradient(135deg, #ffcd39, #ffe082);
  transform: translateY(-2px);
  color: #000;
}




.vacancy-promo-section {
  background: linear-gradient(135deg, #fffaf3, #f0fff4);
  border-top: 3px solid #ffd966;
  border-bottom: 3px solid #b3e6b3;
  padding: 60px 20px;
}

.vacancy-promo-section h2 {
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.vacancy-promo-section p {
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.7;
}

.vacancy-promo-section strong {
  color: #0d6efd;
}

.btn-advertise {
  background: linear-gradient(135deg, #ffc107, #ffdd57);
  color: #212529;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-advertise:hover {
  background: linear-gradient(135deg, #ffcd39, #ffe082);
  transform: translateY(-2px);
  color: #000;
}







picture img {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.8s ease;
}

picture img.loaded {
  opacity: 1;
  transform: translateY(0);
}




/* 🌸 About Section */
.about-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Section background for better contrast */
.bg-light {
  background: linear-gradient(135deg, #fffdf8, #f8fff8);
}

@@media (max-width: 768px) {
  .about-img {
    margin-bottom: 1.5rem;
  }
}





.hero-section {
  background: url('/images/Happy_F1.avif') center center/cover no-repeat;
  min-height: 80vh;
}




/* 🌼 HERO SECTION STYLE */
.hero-section {
  position: relative;
  background: url('/images/family_Nanny_a.JPG') center center/contain no-repeat;
  background-color: #fffdf8; /* fallback for white space */
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Gentle overlay for readability */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.4)
  );
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

/* Headline styling */
.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Buttons */
.hero-section .btn-primary {
  background-color: #198754;
  border: none;
  transition: all 0.3s ease;
}
.hero-section .btn-primary:hover {
  background-color: #157347;
  transform: translateY(-2px);
}

.hero-section .btn-outline-light {
  color: #fff;
  border: 2px solid #fff;
  transition: all 0.3s ease;
}
.hero-section .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* 📱 Responsive Adjustments */
@@media (max-width: 768px) {
  .hero-section {
    min-height: 65vh;
    padding: 3rem 1rem;
  }
  .hero-section h1 {
    font-size: 1.8rem;
  }
  .hero-section p {
    font-size: 1rem;
  }
}



body {
  background: linear-gradient(135deg, #fffbea, #fff0d6, #eaffea);
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  color: #333;
}
