/* --- GLOBAL STYLES FOR ALL PAGES --- */
/* Brand Variables & Reset */
:root {
  --brand-blue: #1f51ff;
  --brand-green: #39ff14;
  --brand-yellow: #fff01f;
  --text-dark: #1a1a1a;
  --white: #ffffff;
  --header-height: 90px;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  padding-top: var(--header-height);
  font-size: 16px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  overflow-wrap: anywhere;
}

.container {
  padding-top: 3rem !important;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

h2 {
  position: relative;
  z-index: 10;
}

/* FORCE HIDE CHECKBOX */
input#menu-toggle, 
.menu-checkbox {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
}

/* --- 2. Fixed Horizontal Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height, 80px);
  z-index: 2000;
  background: linear-gradient(315deg, rgba(31, 81, 255, 0.9), rgba(57, 255, 20, 0.8), rgba(255, 240, 31, 0.8));
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
}

.navbar-hub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  /* Modern Layout & Spacing */
  max-inline-size: 1500px;
  inline-size: 100%;
  margin-inline: auto;
  
  /* Fluid padding: scales smoothly between mobile (1rem) and desktop (3rem) */
  padding-inline: clamp(1rem, 4vw, 3rem);
  padding-block: 1rem;
  
  /* Flexible gap that scales down automatically on small mobile screens */
  gap: min(20px, 4vw); 
}


.brand-logo {
  display: flex;
  align-items: center;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--text-dark, #1a1a1a);
  text-decoration: none;
  z-index: 2101;
  white-space: nowrap;
  line-height: 1.2;
}

.brand-logo .logo-img {
  height: 50px;
  width: auto;
  margin-right: 12px;
  border-radius: 5px;
}

/* Mobile adjustments for brand logo */
@media (max-width: 768px) {
  .brand-logo {
    font-size: 1rem;
  }
  
  .brand-logo .logo-img {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .navbar-hub {
    padding: 0 12px;
    gap: 10px;
  }

  .brand-logo {
    font-size: 0.8rem;
    margin-right: auto;
    line-height: 1.1;
  }
  
  .brand-logo .logo-img {
    height: 32px;
    margin-right: 8px;
  }
}

/* --- 3. Desktop Menu --- */
.horizontal-menu {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.horizontal-menu a {
  text-decoration: none;
  color: var(--text-dark, #1a1a1a);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: 0.3s ease;
  padding: 8px 12px;
  border-radius: 4px;
}

.horizontal-menu a:hover, 
.horizontal-menu a.active {
  color: #fff;
  border-bottom: 2px solid #fff;
  background-color: rgba(0, 0, 0, 0.1);
}

/* Tablet menu adjustments */
@media (max-width: 1200px) {
  .horizontal-menu {
    gap: 12px;
  }
  
  .horizontal-menu a {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
}

/* --- 4. Hamburger Icon --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 2105;
  padding: 4px;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: #1a1a1a;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* TABLET & MOBILE RESPONSIVE */
@media (max-width: 1024px) {
  .hamburger { 
    display: flex;
  }
  
  .brand-logo { 
    font-size: 1.1rem;
  }
  
  .horizontal-menu {
    position: fixed;
    top: var(--header-height, 80px);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height, 80px));
    background: #fff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    transition: 0.5s ease-in-out;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 2050;
    padding: 0;
    margin: 0;
    overflow-y: auto;
  }

  .horizontal-menu li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .dropdown {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
  }

  .dropbtn {
    width: 100% !important;
    text-align: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 15px 20px !important;
    border-bottom: 1px solid #eee;
  }

  .dropdown-content {
    position: static !important;
    width: 100% !important;
    text-align: center !important;
    background: #f9f9f9 !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: none !important;
  }

  .dropdown-content a {
    width: 100% !important;
    text-align: center !important;
    padding: 12px 20px !important;
    color: #333 !important;
  }

  .horizontal-menu a {
    color: var(--text-dark) !important;
    width: 100%;
    text-align: center;
    padding: 15px 20px !important;
    font-size: 0.95rem;
    display: block;
  }

  .horizontal-menu a:hover,
  .horizontal-menu a.active {
    color: var(--brand-blue) !important;
    border-bottom: none !important;
    font-weight: bold;
    background-color: #f0f0f0;
  }

  #menu-toggle:checked ~ .horizontal-menu {
    right: 0;
  }

  #menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }
  #menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }
  #menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }
}

/* SMALL MOBILE PHONES */
@media (max-width: 480px) {
  .hamburger {
    width: 26px;
    height: 22px;
  }
  
  .hamburger span {
    height: 2.5px;
  }
  
  .horizontal-menu {
    width: 100% !important;
  }
  
  .horizontal-menu a {
    padding: 12px 15px !important;
    font-size: 0.85rem;
  }
  
  .dropbtn {
    padding: 12px 15px !important;
  }
}

/* DROPDOWN MENU (Global) */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  display: inline-block;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  cursor: pointer;
  padding: 10px 15px;
  user-select: none;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 249, 249, 0.98));
  backdrop-filter: blur(10px);
  list-style: none;
  padding: 10px 0;
  min-width: 200px;
  display: none;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.dropdown-content a {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.dropdown-content a:hover {
  background: rgba(31, 81, 255, 0.1);
  color: #1f51ff;
  font-weight: 600;
}

.dropdown-content a.active {
  background: rgba(31, 81, 255, 0.12);
  color: #1f51ff;
  font-weight: 700;
}

.dropdown-content.show {
  display: block;
}

@media (max-width: 900px) {
  .dropdown-content {
    position: static;
    width: 100%;
    box-shadow: none;
    background: #f9f9f9;
    padding: 0;
    border-radius: 0;
    display: none;
  }
  .dropdown-content.show {
    display: block !important;
  }
  .dropdown-content a {
    padding-left: 30px;
  }
}



/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float i {
    font-size: 22px;
}

.whatsapp-float:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

/* Tablet view – adjust spacing */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
        font-size: 14px;
        z-index: 1200;
    }
    
    .whatsapp-float i {
        font-size: 20px;
    }
}

/* Mobile view – icon only */
@media (max-width: 576px) {
    .whatsapp-float span {
        display: none;
    }

    .whatsapp-float {
        padding: 14px;
        border-radius: 50%;
        bottom: 15px;
        right: 15px;
        z-index: 1200;
    }
    
    .whatsapp-float i {
        font-size: 24px;
        margin: 0;
    }
}

/* BACK TO TOP BUTTON */
#backToTop {
  position: fixed;
  right: 24px;
  bottom: 90px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), #3b82f6);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(31, 81, 255, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1100;
}

#backToTop.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#backToTop:hover {
  transform: translateY(-2px);
}

@media (max-width: 576px) {
  #backToTop {
    right: 16px;
    bottom: 80px;
    width: 42px;
    height: 42px;
    z-index: 1200;
  }
}

/* Restore your original Footer Gradient and Colors */
.site-footer {
    background: linear-gradient(135deg, rgba(31, 81, 255, 0.7), rgba(57, 255, 20, 0.5), rgba(255, 240, 31, 0.6));
    color: #1f2933;
    font-size: 14px;
    text-align: center;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: block;
    padding: 20px 0;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 3rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    padding: 0 20px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    text-align: left;
}

.footer-section.last-section {
    border-right: none;
}

/* Keep your original bold weights */
.footer-title {
    font-weight: 900;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #1f2933;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform 0.2s, color 0.2s;
}

.footer-links a:hover {
    color: #1f51ff;
    text-decoration: underline;
    transform: translateX(5px);
}

.footer-social a {
    font-size: 20px;
    color: #1f2933;
    margin: 0 10px;
    transition: transform 0.3s;
}

/* --- Centering Social Icons Below the Grid --- */
.footer-social-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-social {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-social a {
    font-size: 24px;
    color: #1f2933;
    transition: transform 0.3s, opacity 0.3s;
}

.footer-social a:hover {
    transform: translateY(-5px);
    opacity: 0.7;
}

/* FOOTER RESPONSIVE */
@media (max-width: 1024px) {
    .footer-grid {
        padding: 2rem 20px;
    }
    
    .footer-section {
        flex: 1 1 calc(50% - 20px);
        min-width: 150px;
        padding: 0 10px;
    }
    
    .footer-title {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 15px 0;
    }
    
    .footer-grid {
        padding: 2rem 15px;
        flex-direction: column;
    }
    
    .footer-section {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 15px 0;
        text-align: center;
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .footer-section:last-child {
        border-bottom: none;
    }
    
    .footer-social-wrapper {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .footer-social a {
        font-size: 20px;
        margin: 0 8px;
    }
    
    .footer-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        padding: 1.5rem 10px;
    }
    
    .footer-section {
        padding: 12px 0;
    }
    
    .footer-title {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .footer-text,
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .footer-social a {
        font-size: 18px;
        margin: 0 6px;
    }
}


/* --- COMPONENT HUB GRID LAYOUTS --- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 2rem auto;
}

.hub-card {
  background: #ffffff;
  padding: 1.6rem;
  border-radius: 14px;
  text-decoration: none !important;
  color: #1a1a1a !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border-bottom: 3px solid var(--brand-blue, #1f51ff);
  text-align: center;
  transition: all 0.3s ease;
}

/* Stories Layout Grid */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 4rem;
}

.story-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

/* Reusable Hover Translation Utility */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

/* Mobile Breakpoint Overrides */
@media (max-width: 768px) {
  body {
    padding-top: 80px;
    font-size: 15px;
  }

  .container {
    padding-top: 4rem !important;
  }

  .daily-life-grid, 
  .hub-grid, 
  .stories-grid,
  .impact-stats,
  .staff-grid,
  .mission-vision,
  .values-section,
  .program-grid,
  .placement-grid,
  .age-groups,
  .case-studies,
  .testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .page-header-banner h1, 
  .hero-text-box h1,
  .page-header h1 {
    font-size: 1.8rem !important;
  }

  .page-header,
  .page-header-banner {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

