/* Layout Fixes for Giggle and Grow TX */

/* Fix 1: Logo visibility - prevent top of logo from being cut off */
.navbar-fixed {
  height: 120px !important; /* Increased from 110px to give more space */
  padding-top: 20px !important;
  padding-bottom: 20px !important;
  overflow: visible !important; /* Ensure logo isn't clipped */
}

.nav-container {
  height: 100% !important;
  overflow: visible !important;
}

.navbar-logo-large {
  max-height: none !important; /* Remove height restriction for larger size */
  width: 60vw !important; /* 60% of viewport width */
  height: auto !important; /* Auto height to maintain proportions */
  object-fit: contain !important;
  position: relative !important; /* Keep logo positioned within navbar */
  z-index: 999 !important; /* Keep reasonable z-index */
}

.brand {
  overflow: visible !important;
  z-index: 999 !important;
}

/* Hero Section - Match Section 3 styling */
.section:first-of-type {
  padding-top: 130px !important; /* Adjusted for new header height */
}

.hero-content-wrapper {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
}

.hero-text-content {
  flex: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 113, 98, 0.1);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-badge-icon {
  width: 16px;
  height: 16px;
}

/* CLEAN PROFESSIONAL HEADER */
.modern-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 3px solid #ff6b35;
  box-shadow: 0 2px 15px rgba(16, 42, 67, 0.1);
  height: 100px;
}

.header-container {
  max-width: 100%;
  width: 100%;
  height: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
}

/* Desktop: Header top row behaves as flex container */
.header-top-row {
  display: contents;
}

/* Logo Section - Far Left */
.logo-section {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  z-index: 3;
}

.logo-link {
  display: block;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

.modern-logo {
  height: 90px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Animated Logo Enhancements */
.animated-logo {
  transition: all 0.3s ease;
  animation: logoGlow 3s ease-in-out infinite;
}

.animated-logo:hover {
  transform: scale(1.1);
  animation: logoBounce 0.6s ease-in-out;
}

@keyframes logoGlow {
  0%, 100% { 
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  }
  50% { 
    filter: drop-shadow(0 4px 8px rgba(255, 107, 53, 0.4)) drop-shadow(0 0 15px rgba(255, 107, 53, 0.2));
  }
}

@keyframes logoBounce {
  0%, 100% { transform: scale(1.1); }
  25% { transform: scale(1.15) rotate(2deg); }
  50% { transform: scale(1.1) rotate(-1deg); }
  75% { transform: scale(1.15) rotate(1deg); }
}

/* Text Bar Section - Center Left */
.text-bar-section {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-right: auto;
}

.text-bar-wrapper {
  background: linear-gradient(135deg, #102a43 0%, #253b70 100%);
  border-radius: 25px;
  padding: 10px 25px;
  box-shadow: 0 6px 20px rgba(16, 42, 67, 0.2);
  border: 2px solid rgba(255, 107, 53, 0.3);
  position: relative;
  overflow: hidden;
  width: auto;
  max-width: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

.text-bar-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.brand-text-line-1 {
  font-family: 'Nunito', 'Fredoka One', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-text-line-2 {
  font-family: 'Nunito', 'Fredoka One', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #ff6b35;
  line-height: 1.1;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Playful Vector Graphics */
.vector-graphics {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
  animation: float 4s ease-in-out infinite;
}

.bubble-1 {
  width: 12px;
  height: 12px;
  background: #ff6b35;
  top: 15px;
  right: 20px;
  animation-delay: 0s;
}

.bubble-2 {
  width: 8px;
  height: 8px;
  background: #a855f7;
  top: 35px;
  left: 25px;
  animation-delay: 1.5s;
}

.bubble-3 {
  width: 6px;
  height: 6px;
  background: #ffffff;
  bottom: 20px;
  right: 30px;
  animation-delay: 3s;
}

.swirl {
  position: absolute;
  opacity: 0.3;
  animation: rotate 10s linear infinite;
}

.swirl-1 {
  width: 16px;
  height: 16px;
  border: 2px solid #ff6b35;
  border-radius: 50%;
  border-top: 2px solid transparent;
  top: 12px;
  left: 15px;
}

.swirl-2 {
  width: 12px;
  height: 12px;
  border: 2px solid #a855f7;
  border-radius: 50%;
  border-left: 2px solid transparent;
  bottom: 15px;
  left: 40px;
}

.star-accent {
  position: absolute;
  opacity: 0.5;
  animation: sparkle 3s ease-in-out infinite;
}

.star-1 {
  width: 8px;
  height: 8px;
  background: #ffffff;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  top: 25px;
  left: 50px;
}

.star-2 {
  width: 6px;
  height: 6px;
  background: #ff6b35;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  bottom: 18px;
  left: 20px;
  animation-delay: 1.5s;
}

/* Navigation Section - Right */
.header-nav {
  flex: 1;
  display: flex !important;
  justify-content: flex-end;
  align-items: center;
  z-index: 1000;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
}

.nav-buttons-wrapper {
  display: flex !important;
  gap: 15px;
  align-items: center;
  z-index: 1000;
  visibility: visible !important;
  opacity: 1 !important;
}

.nav-button {
  background: linear-gradient(135deg, #102a43 0%, #253b70 100%);
  border-radius: 25px;
  padding: 15px 25px;
  box-shadow: 0 8px 25px rgba(16, 42, 67, 0.2);
  border: 2px solid rgba(255, 107, 53, 0.3);
  position: relative;
  overflow: hidden;
  min-height: 50px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 16px;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  color: white !important;
  z-index: 1000;
  visibility: visible !important;
  opacity: 1 !important;
}

.nav-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.nav-button:hover::before {
  left: 100%;
}

.nav-button.staff-portal {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  border: 2px solid rgba(16, 42, 67, 0.3);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
}

.nav-button.staff-portal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
  background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
}

.nav-button.parent-portal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 42, 67, 0.3);
  background: linear-gradient(135deg, #253b70 0%, #102a43 100%);
}

/* Add vector graphics to nav buttons */
.nav-button {
  position: relative;
}

.nav-button .nav-vector-graphics {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.nav-button .nav-bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  animation: float 4s ease-in-out infinite;
}

.nav-button .nav-bubble-1 {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.6);
  top: 8px;
  right: 12px;
  animation-delay: 0s;
}

.nav-button .nav-bubble-2 {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  bottom: 8px;
  left: 10px;
  animation-delay: 2s;
}

.nav-button .nav-star {
  position: absolute;
  opacity: 0.4;
  animation: sparkle 3s ease-in-out infinite;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.6);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  top: 50%;
  left: 8px;
  animation-delay: 1s;
}

.nav-button span {
  position: relative;
  z-index: 2;
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .header-container {
    padding: 0 30px;
    gap: 30px;
  }
  
  .text-bar-wrapper {
    padding: 8px 20px;
    min-height: 55px;
    max-width: 300px;
  }
  
  .modern-logo {
    height: 80px;
  }
  
  .animated-logo {
    animation: logoGlow 4s ease-in-out infinite;
  }
  
  .brand-text-line-1 {
    font-size: 22px;
  }
  
  .brand-text-line-2 {
    font-size: 16px;
  }
  
  .nav-button {
    padding: 12px 20px;
    font-size: 13px;
    min-height: 45px;
  }
}

@media (max-width: 768px) {
  .modern-header {
    height: auto;
    min-height: 140px;
  }
  
  .header-container {
    flex-direction: column;
    padding: 15px 20px;
    gap: 15px;
  }
  
  .header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    order: 1;
  }
  
  .logo-section {
    order: 1;
  }
  
  .text-bar-section {
    order: 2;
    flex: none;
  }
  
  .header-nav {
    order: 3;
    flex: none;
    justify-content: center;
  }
  
  .text-bar-wrapper {
    max-width: 250px;
    padding: 8px 15px;
    min-height: 50px;
  }
  
  .modern-logo {
    height: 70px;
  }
  
  .animated-logo {
    animation: logoGlow 5s ease-in-out infinite;
  }
  
  .animated-logo:hover {
    transform: scale(1.05);
  }
  
  .brand-text-line-1 {
    font-size: 20px;
  }
  
  .brand-text-line-2 {
    font-size: 14px;
  }
  
  .nav-button {
    padding: 10px 20px;
    font-size: 12px;
    min-height: 40px;
  }
  
  .section:first-of-type {
    padding-top: 170px !important;
  }
}

@media (max-width: 480px) {
  .text-bar-wrapper {
    max-width: 300px;
    padding: 10px 15px;
    gap: 10px;
    flex-direction: column;
    min-height: 50px;
  }
  
  .modern-logo {
    height: 35px;
  }
  
  .brand-text-line-1 {
    font-size: 20px;
  }
  
  .brand-text-line-2 {
    font-size: 16px;
  }
  
  .nav-buttons-wrapper {
    flex-direction: column;
    gap: 10px;
  }
  
  .nav-button {
    padding: 8px 16px;
    font-size: 11px;
    min-width: 120px;
  }
  
  .modern-header {
    min-height: 160px;
  }
  
  .section:first-of-type {
    padding-top: 190px !important;
  }
}

/* Mobile Optimization - Sticky logo/title with scrollable buttons */
@media (max-width: 600px) {
  /* Hide desktop header on mobile */
  .desktop-header {
    display: none !important;
  }
  
  /* Show mobile sections */
  .mobile-sticky-header {
    display: block;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .mobile-portal-buttons {
    display: block;
    background: transparent;
    padding: 16px 0;
  }
  
  .sticky-header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 15px 10px 15px;
    gap: 0;
    text-align: center;
  }
  
  .header-container {
    flex-direction: column;
    padding: 2px 15px 4px 15px;
    gap: 0;
    margin-bottom: 0;
  }
  
  /* First layer: Logo centered above title */
  .header-top-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    order: 1;
    position: relative;
    min-height: auto;
    margin-bottom: 0;
  }
  
  .logo-section {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    order: 1;
    margin-bottom: -5px;
    width: 100%;
  }
  
  .modern-logo {
    height: 120px !important;
    width: auto;
    display: block !important;
  }
  
  .text-bar-section {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
    order: 2;
    text-align: center;
    width: 100%;
  }
  
  /* Second layer: Portal Buttons - Side by Side */
  .header-nav {
    order: 3;
    flex: none;
    justify-content: center;
    width: 100%;
  }
  
  .nav-buttons-wrapper {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
    margin-bottom: 0;
    padding-bottom: 6px;
  }
  
  .text-bar-wrapper {
    max-width: 200px;
    padding: 6px 12px;
    min-height: 40px;
    border-radius: 20px;
    text-align: center;
    margin: 0 auto;
  }
  
  .brand-text-line-1 {
    font-size: 16px;
    margin-bottom: 1px;
  }
  
  .brand-text-line-2 {
    font-size: 12px;
  }
  
  .nav-button {
    padding: 8px 16px;
    font-size: 12px;
    min-width: 100px;
    border-radius: 15px;
    text-align: center;
  }
  
  .bubble-1, .bubble-2, .bubble-3 {
    width: 8px;
    height: 8px;
  }
  
  .section:first-of-type {
    padding-top: 16px !important;
  }
  
  /* Additional mobile hero section optimization */
  .hero-section {
    margin-top: 36px !important;
    padding-top: 8px !important;
  }
  
  /* Mobile sticky header centering fixes - FORCE CENTER ALL ELEMENTS */
  @media (max-width: 768px) {
    .mobile-sticky-header {
      display: block !important;
      position: sticky !important;
      top: 0 !important;
      z-index: 100 !important;
      background: rgba(255, 255, 255, 0.95) !important;
      backdrop-filter: none !important;
      border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
      text-align: center !important;
      width: 100% !important;
    }
    
    .mobile-sticky-header .sticky-header-container {
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      text-align: center !important;
      width: 100% !important;
      padding: 10px 0 !important;
      margin: 0 auto !important;
    }
    
    .mobile-sticky-header .logo-section {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      width: 100% !important;
      text-align: center !important;
      margin: 0 auto !important;
    }
    
    .mobile-sticky-header .modern-logo {
      display: block !important;
      margin: 0 auto !important;
      height: 60px !important;
      width: auto !important;
    }
    
    .mobile-sticky-header .text-bar-section {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      width: 100% !important;
      text-align: center !important;
      margin: 0 auto !important;
    }
    
    .mobile-sticky-header .text-bar-wrapper {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      text-align: center !important;
      margin: 0 auto !important;
      width: auto !important;
    }
    
    .mobile-sticky-header .text-bar-content {
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      text-align: center !important;
      margin: 0 auto !important;
    }
    
    .mobile-sticky-header .brand-text-line-1,
    .mobile-sticky-header .brand-text-line-2 {
      text-align: center !important;
      margin: 0 auto !important;
      display: block !important;
    }
    
    /* Center portal buttons with equal spacing for mobile */
    .mobile-portal-buttons {
      display: block !important;
      width: 100% !important;
      padding: 16px 0 !important;
      text-align: center !important;
    }
    
    .mobile-portal-buttons .header-nav {
      display: block !important;
      width: 100% !important;
      text-align: center !important;
    }
    
    .mobile-portal-buttons .nav-buttons-wrapper {
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
      width: 100% !important;
      gap: 20px !important;
      padding: 0 20px !important;
      text-align: center !important;
      margin: 0 auto !important;
    }
    
    .mobile-portal-buttons .nav-button {
      margin: 0 !important;
      flex: 0 0 auto !important;
      min-width: 120px !important;
    }
  }
  
  /* Mobile-specific layout adjustments */
  .header-top-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 0;
  }
  
  .logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -10px;
  }
  
  .modern-logo {
    height: 120px !important;
    width: auto;
    display: block !important;
  }
  
  .text-bar-section {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
  }
  
  .text-bar-wrapper {
    max-width: 200px;
    padding: 6px 12px;
    min-height: 40px;
    border-radius: 20px;
    text-align: center;
    margin: 0 auto;
  }
  
  .nav-buttons-wrapper {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
    margin-bottom: 0;
    padding-bottom: 6px;
  }
  
  /* Push animated background graphics behind content on mobile */
  .vector-graphics,
  .nav-vector-graphics,
  .bubble,
  .bubble-1,
  .bubble-2,
  .bubble-3,
  .swirl,
  .swirl-1,
  .swirl-2,
  .star-accent,
  .star-1,
  .star-2,
  .nav-bubble,
  .nav-bubble-1,
  .nav-bubble-2,
  .nav-star {
    z-index: -1 !important;
  }
  
  /* Ensure text and images stay on top */
  .text-bar-content,
  .brand-text-line-1,
  .brand-text-line-2,
  .nav-button span,
  .modern-logo,
  .section-content,
  .hero-content,
  .section,
  .hero-section,
  .hero-text,
  .hero-title,
  .hero-subtitle,
  .hero-description,
  .hero-badge,
  .hero-buttons,
  .hero-button,
  .hero-image,
  .hero-container,
  .hero-wrapper,
  p,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  img,
  button,
  a {
    z-index: 2 !important;
    position: relative;
  }
}

/* Very small mobile screens - Enhanced */
@media (max-width: 400px) {
  /* Hide desktop header on very small mobile */
  .desktop-header {
    display: none !important;
  }
  
  /* Show mobile sections */
  .mobile-sticky-header {
    display: block;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .mobile-portal-buttons {
    display: block;
    background: transparent;
    padding: 14px 0;
  }
  
  .sticky-header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px 10px 4px 10px;
    gap: 0;
  }
  
  .header-container {
    padding: 2px 10px 4px 10px;
    gap: 0;
    margin-bottom: 0;
  }
  
  .header-top-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    order: 1;
    position: relative;
    min-height: auto;
    margin-bottom: 0;
  }
  
  .logo-section {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    order: 1;
    margin-bottom: -8px;
  }
  
  .modern-logo {
    height: 100px !important;
    width: auto;
    display: block !important;
  }
  
  .text-bar-section {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
    order: 2;
    text-align: center;
    width: 100%;
  }
  
  .text-bar-wrapper {
    max-width: 160px;
    padding: 4px 8px;
    min-height: 35px;
    border-radius: 18px;
    text-align: center;
    margin: 0 auto;
  }
  

  
  .brand-text-line-1 {
    font-size: 14px;
  }
  
  .brand-text-line-2 {
    font-size: 10px;
  }
  
  .nav-button {
    padding: 7px 14px;
    font-size: 11px;
    min-width: 80px;
    border-radius: 12px;
    text-align: center;
  }
  
  .nav-buttons-wrapper {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: 14px;
    margin-bottom: 0;
    padding-bottom: 5px;
  }
  
  .section:first-of-type {
    padding-top: 16px !important;
  }
  
  /* Additional very small mobile hero section optimization */
  .hero-section {
    margin-top: 36px !important;
    padding-top: 6px !important;
  }
}
  
  /* Push animated background graphics behind content on very small mobile */
  .vector-graphics,
  .nav-vector-graphics,
  .bubble,
  .bubble-1,
  .bubble-2,
  .bubble-3,
  .swirl,
  .swirl-1,
  .swirl-2,
  .star-accent,
  .star-1,
  .star-2,
  .nav-bubble,
  .nav-bubble-1,
  .nav-bubble-2,
  .nav-star {
    z-index: -1 !important;
  }
  
  /* Ensure text and images stay on top */
  .text-bar-content,
  .brand-text-line-1,
  .brand-text-line-2,
  .nav-button span,
  .modern-logo,
  .section-content,
  .hero-content,
  .section,
  .hero-section,
  .hero-text,
  .hero-title,
  .hero-subtitle,
  .hero-description,
  .hero-badge,
  .hero-buttons,
  .hero-button,
  .hero-image,
  .hero-container,
  .hero-wrapper,
  p,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  img,
  button,
  a {
    z-index: 2 !important;
    position: relative;
  }
}

/* DAYCARE GALLERY STYLES */
.daycare-gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.gallery-row {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
}

.gallery-row.single-item {
  justify-content: center;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  flex-shrink: 1;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item.large-item {
  flex: 0 0 500px;
  width: 500px;
  height: 500px;
  min-height: 500px;
  max-width: 500px;
}

.gallery-item.medium-item {
  flex: 0 0 500px;
  width: 500px;
  height: 500px;
  min-height: 500px;
  max-width: 500px;
}

.gallery-item.centered {
  flex: 0 0 500px;
  width: 500px;
  height: 500px;
  min-height: 500px;
  max-width: 500px;
}

.gallery-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  max-width: 100%;
  display: block;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
  font-family: 'Nunito', sans-serif;
}

.gallery-description {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.9;
}

/* Responsive Gallery */
@media (max-width: 1024px) {
  .daycare-gallery-grid {
    padding: 0 15px;
  }
  
  .gallery-item.large-item {
    flex: 1 1 45%;
    max-width: 500px;
  }
  
  .gallery-item.medium-item {
    flex: 1 1 40%;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .daycare-gallery-grid {
    padding: 0 10px;
    gap: 15px;
  }
  
  .gallery-row {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  
  .gallery-item.large-item,
  .gallery-item.medium-item {
    flex: 1 1 auto;
    min-height: 200px;
    max-width: 100%;
    width: 100%;
  }
  
  .gallery-item.centered {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .daycare-gallery-grid {
    padding: 0 5px;
    gap: 12px;
  }
  
  .gallery-item.large-item,
  .gallery-item.medium-item {
    min-height: 180px;
  }
}

/* Hide mobile sections on desktop/tablet */
@media (min-width: 601px) {
  .mobile-sticky-header {
    display: none !important;
  }
  
  .mobile-portal-buttons {
    display: none !important;
  }
  
  .desktop-header {
    display: block !important;
  }
}
  .gallery-item.large-item,
  .gallery-item.medium-item {
    flex: none;
    min-height: 200px;
  }
  
  .gallery-item.centered {
    max-width: none;
  }
  
  .daycare-gallery-grid {
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .gallery-item {
    min-height: 180px;
  }
  
  .gallery-overlay {
    padding: 15px;
  }
  
  .gallery-title {
    font-size: 16px;
  }
  
  .gallery-description {
    font-size: 12px;
  }
}

.modern-nav-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  min-width: 140px;
  height: 48px;
  border: 2px solid transparent;
}

.button-text {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.button-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Parent Portal Button - Navy Blue */
.parent-portal-button {
  background: linear-gradient(135deg, #102a43 0%, #1a365d 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 42, 67, 0.25);
}

.parent-portal-button:hover {
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 42, 67, 0.35);
}

.parent-portal-button .button-underline {
  background: rgba(255, 255, 255, 0.3);
}

.parent-portal-button:hover .button-underline {
  transform: scaleX(1);
}

/* Staff Portal Button - Orange */
.staff-portal-button {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25);
}

.staff-portal-button:hover {
  background: linear-gradient(135deg, #ff8c42 0%, #ffa726 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.35);
}

.staff-portal-button .button-underline {
  background: rgba(255, 255, 255, 0.3);
}

.staff-portal-button:hover .button-underline {
  transform: scaleX(1);
}

/* Mobile Menu Button */
.mobile-menu-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 4px;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background-color: #102a43;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.mobile-menu-button:hover .hamburger-line {
  background-color: #ff6b35;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    height: 70px;
  }
  
  .modern-logo {
    height: 50px;
    max-width: 70%;
  }
  
  .nav-buttons-wrapper {
    display: none;
  }
  
  .mobile-menu-button {
    display: flex;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 15px;
  }
  
  .header-content {
    height: 65px;
  }
  
  .modern-logo {
    height: 40px;
    max-width: 65%;
  }
}

/* Scrolled state */
.modern-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* HERO SECTION REDESIGN - CONSISTENT & PLAYFUL */

/* Add padding to first section to account for fixed header */
.section:first-of-type {
  padding-top: 160px !important;
}

/* Hero section typography consistency */
.hero-main-heading {
  font-family: Mplusrounded1c, sans-serif !important;
  font-size: 2.8rem !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  margin-bottom: 0 !important;
  text-align: center !important;
}

/* Hero section specific styling */
.hero-section-redesigned {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* Hero children image container */
.hero-children-image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.hero-children-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  transition: transform 0.3s ease;
  opacity: 1 !important;
  max-height: 500px;
  object-fit: cover;
  visibility: visible !important;
}

.hero-children-image:hover {
  transform: scale(1.02);
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 107, 53, 0.1), rgba(16, 42, 67, 0.1));
  border-radius: 20px;
  pointer-events: none;
  z-index: 1;
}

/* Enhanced Decorative Elements */
.hero-decorative-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
}

/* Playful Bubbles */
.hero-bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  animation: float 6s ease-in-out infinite;
}

.hero-bubble-1 {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.hero-bubble-2 {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #253b70, #1a365d);
  top: 25%;
  right: 15%;
  animation-delay: 1s;
}

.hero-bubble-3 {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ff8c42, #ffa726);
  bottom: 30%;
  left: 5%;
  animation-delay: 2s;
}

.hero-bubble-4 {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #1a365d, #2c5282);
  bottom: 15%;
  right: 10%;
  animation-delay: 3s;
}

.hero-bubble-5 {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff6b35, #ff7162);
  top: 50%;
  left: 2%;
  animation-delay: 4s;
}

.hero-bubble-6 {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #2c5282, #253b70);
  top: 40%;
  right: 5%;
  animation-delay: 5s;
}

/* Playful Stars */
.hero-star {
  position: absolute;
  width: 0;
  height: 0;
  animation: sparkle 4s ease-in-out infinite;
}

.hero-star::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 15px solid #ff6b35;
  top: -8px;
  left: -10px;
}

.hero-star::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 15px solid #ff6b35;
  top: 3px;
  left: -10px;
}

.hero-star-1 {
  top: 20%;
  left: 20%;
  animation-delay: 0.5s;
}

.hero-star-2 {
  top: 60%;
  right: 20%;
  animation-delay: 2.5s;
}

.hero-star-3 {
  bottom: 20%;
  left: 25%;
  animation-delay: 4.5s;
}

/* Playful Triangles - REMOVED due to text blocking issues */

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
  }
  75% {
    transform: translateY(-30px) rotate(270deg);
  }
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.5) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(180deg);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-main-heading {
    font-size: 2.2rem !important;
  }
  
  .hero-bubble {
    transform: scale(0.7);
  }
  
  .hero-star::before,
  .hero-star::after {
    border-width: 8px 8px 12px 8px;
  }
  
  /* Triangle styles removed */
  
  .hero-children-image {
    max-height: 350px;
  }
}

@media (max-width: 480px) {
  .hero-main-heading {
    font-size: 1.8rem !important;
  }
  
  .hero-bubble {
    transform: scale(0.5);
  }
  
  .hero-children-image {
    max-height: 300px;
  }
}

/* Hero section animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes floatAnimation {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(2deg);
  }
  50% {
    transform: translateY(-10px) rotate(-2deg);
  }
  75% {
    transform: translateY(-5px) rotate(1deg);
  }
}

@keyframes rotateFloat {
  0% {
    transform: scale(0.8) translateY(0px) rotate(0deg) translateX(0px);
  }
  25% {
    transform: scale(0.85) translateY(-15px) rotate(15deg) translateX(10px);
  }
  50% {
    transform: scale(0.75) translateY(-25px) rotate(-10deg) translateX(-8px);
  }
  75% {
    transform: scale(0.9) translateY(-10px) rotate(20deg) translateX(6px);
  }
  100% {
    transform: scale(0.8) translateY(0px) rotate(0deg) translateX(0px);
  }
}

@keyframes circularFloat {
  0% {
    transform: scale(0.8) translateY(0px) rotate(0deg) translateX(0px);
  }
  25% {
    transform: scale(0.85) translateY(-20px) rotate(90deg) translateX(15px);
  }
  50% {
    transform: scale(0.75) translateY(-10px) rotate(180deg) translateX(0px);
  }
  75% {
    transform: scale(0.9) translateY(-25px) rotate(270deg) translateX(-15px);
  }
  100% {
    transform: scale(0.8) translateY(0px) rotate(360deg) translateX(0px);
  }
}

/* Apply animations to hero elements */
[data-w-id="hero-title-animation"] {
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

[data-w-id="hero-description-animation"] {
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

[data-w-id="hero-features-animation"] {
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

[data-w-id="hero-buttons-animation"] {
  animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

[data-w-id="hero-main-image-animation"] {
  animation: fadeInRight 0.8s ease-out 0.5s forwards;
}

[data-w-id="hero-card-1-animation"] {
  animation: fadeInLeft 0.8s ease-out 0.7s forwards;
}

[data-w-id="hero-card-2-animation"] {
  animation: fadeInLeft 0.8s ease-out 0.9s forwards;
}

[data-w-id="hero-card-3-animation"] {
  animation: fadeInLeft 0.8s ease-out 1.1s forwards;
}

/* Enhanced floating animation for hero cards */
.hero-floating-card {
  animation-fill-mode: both;
  animation-play-state: running;
  transform-origin: center center;
  will-change: transform;
}

.hero-floating-card.hero-card-1 {
  animation: circularFloat 6s ease-in-out infinite;
  animation-delay: 0s;
  animation-fill-mode: both;
}

.hero-floating-card.hero-card-2 {
  animation: rotateFloat 5s ease-in-out infinite;
  animation-delay: 2s;
  animation-fill-mode: both;
}

.hero-floating-card.hero-card-3 {
  animation: circularFloat 7s ease-in-out infinite;
  animation-delay: 4s;
  animation-fill-mode: both;
}

.hero-features {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-feature-icon {
  width: 24px;
  height: 24px;
}

.hero-feature-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
}

.hero-cta-buttons {
  display: flex;
  gap: 16px;
  margin-top: 60px;
}

/* Match Section 3 button styling */
.hero-primary-button {
  background: var(--primary);
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 113, 98, 0.3);
}

.hero-primary-button:hover {
  background: #e55a4b;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 113, 98, 0.4);
}

.hero-secondary-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border: 2px solid var(--text-color);
  border-radius: 50px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.hero-secondary-button:hover {
  background: var(--text-color);
  color: white;
  transform: translateY(-2px);
}

.hero-button-arrow {
  transition: transform 0.3s ease;
}

.hero-secondary-button:hover .hero-button-arrow {
  transform: translateX(4px);
}

.hero-image-content {
  flex: 1;
  position: relative;
  max-width: 500px;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.hero-main-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.hero-floating-card {
  position: absolute;
  background: white;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-card-1 {
  top: 20px;
  left: -20px;
  animation: float 3s ease-in-out infinite;
}

.hero-card-2 {
  top: 50%;
  right: -30px;
  animation: float 3s ease-in-out infinite 1s;
}

.hero-card-3 {
  bottom: 30px;
  left: -10px;
  animation: float 3s ease-in-out infinite 2s;
}

.hero-card-icon {
  width: 32px;
  height: 32px;
}

.hero-card-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  white-space: nowrap;
}

.hero-background-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: -1;
}

.hero-shape-1 {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, var(--primary), #ffa726);
  border-radius: 50%;
  opacity: 0.1;
}

.hero-shape-2 {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 150px;
  height: 150px;
  background: linear-gradient(45deg, var(--dark-blue), #4a90e2);
  border-radius: 50%;
  opacity: 0.1;
}

.hero-shape-3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: linear-gradient(45deg, #e0e7ff, #c7d2fe);
  border-radius: 50%;
  opacity: 0.3;
  z-index: -2;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Navbar Button Styling */
.navbar-button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-left: 12px;
  font-size: 14px;
}

.parent-portal-btn {
  background-color: #4a90e2;
  color: white;
  border: 2px solid #4a90e2;
}

.parent-portal-btn:hover {
  background-color: #357abd;
  border-color: #357abd;
  transform: translateY(-2px);
}

.staff-portal-btn {
  background-color: var(--primary);
  color: white;
  border: 2px solid var(--primary);
}

.staff-portal-btn:hover {
  background-color: #e55a4b;
  border-color: #e55a4b;
  transform: translateY(-2px);
}

.navbar-right-wrapper {
  display: flex;
  align-items: center;
}

/* Mobile responsiveness */
@keyframes textRotateFloat {
  0% {
    transform: rotate(0deg) translateX(0px);
  }
  25% {
    transform: rotate(15deg) translateX(3px);
  }
  50% {
    transform: rotate(-10deg) translateX(-2px);
  }
  75% {
    transform: rotate(20deg) translateX(2px);
  }
  100% {
    transform: rotate(0deg) translateX(0px);
  }
}

@keyframes textCircularRotate {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(90deg);
  }
  50% {
    transform: rotate(180deg);
  }
  75% {
    transform: rotate(270deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media screen and (max-width: 767px) {
  .navbar-fixed {
    height: 80px !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
  }
  
  .navbar-logo-large {
    max-height: 50px !important;
  }
  
  .hero-section-modern {
    padding-top: 100px !important;
    padding-bottom: 60px !important;
  }
  
  .hero-content-wrapper {
    flex-direction: column;
    gap: 40px;
  }
  
  .hero-main-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 16px;
  }
  
  .hero-cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-primary-button,
  .hero-secondary-button {
    text-align: center;
    justify-content: center;
  }
  
  .hero-floating-card {
    display: flex !important;
    transform: scale(0.8) !important;
    z-index: 1 !important;
    transform-origin: center center !important;
  }
  
  .hero-card-1 {
    top: 10px !important;
    left: -10px !important;
    animation: circularFloat 4s ease-in-out infinite !important;
    animation-delay: 0s !important;
    transform-origin: center center !important;
  }
  
  .hero-card-1 .hero-card-text {
    animation: textCircularRotate 4s ease-in-out infinite !important;
    animation-delay: 0s !important;
    transform-origin: center center !important;
  }
  
  .hero-card-2 {
    top: 40% !important;
    right: -20px !important;
    animation: rotateFloat 3s ease-in-out infinite !important;
    animation-delay: 0.5s !important;
    transform-origin: center center !important;
  }
  
  .hero-card-2 .hero-card-text {
    animation: textRotateFloat 3s ease-in-out infinite !important;
    animation-delay: 0.5s !important;
    transform-origin: center center !important;
  }
  
  .hero-card-3 {
    bottom: 20px !important;
    left: -5px !important;
    animation: circularFloat 4.5s ease-in-out infinite !important;
    animation-delay: 1s !important;
    transform-origin: center center !important;
  }
  
  .hero-card-3 .hero-card-text {
    animation: textCircularRotate 4.5s ease-in-out infinite !important;
    animation-delay: 1s !important;
    transform-origin: center center !important;
  }
  
  .force-animate {
    animation-play-state: running !important;
    will-change: transform !important;
  }
}

/* Orange background for matching cards */
.orange-bg {
  background: linear-gradient(135deg, #ff7162, #ff9478) !important;
}

.orange-bg .left-card-heading {
  color: white !important;
}

.orange-bg .white-paragraph {
  color: white !important;
}

/* Fix for last-card with orange background to maintain positioning */
.last-card.orange-bg {
  background: linear-gradient(135deg, #ff7162, #ff9478) !important;
}

.last-card.orange-bg .left-card-heading {
  color: white !important;
}

.last-card.orange-bg .white-paragraph {
  color: white !important;
}

/* Header Social Media Links */
.header-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
}

/* Instagram - Orange Background */
.header-social-link[aria-label="Instagram"] {
  background: linear-gradient(135deg, #ff7162, #ff9478);
}

/* Facebook - Navy Blue Background */
.header-social-link[aria-label="Facebook"] {
  background: linear-gradient(135deg, #253b70, #1a2c5a);
}

.header-social-link:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Mobile Social Links - Right Side */
.mobile-social-links {
  display: flex;
  gap: 8px;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 110;
}

/* Desktop Social Links - Left Side */
.desktop-social-links {
  display: none;
  gap: 8px;
  align-items: center;
  margin-right: 12px;
}

/* Desktop/tablet header styles */
@media screen and (min-width: 768px) {
  .mobile-social-links {
    display: none;
  }
  
  .desktop-social-links {
    display: flex;
  }
  
  .header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    gap: 12px;
  }
}

/* Mobile header adjustments */
@media screen and (max-width: 767px) {
  .sticky-header-container {
    position: relative;
  }
  
  .mobile-social-links .header-social-link {
    width: 35px;
    height: 35px;
  }
  
  .mobile-social-links svg {
    width: 18px;
    height: 18px;
  }
}

/* iPhone XE and smaller mobile device adjustments for parent login */
@media screen and (max-width: 480px) and (max-height: 667px) {
  /* Ensure nav-button is visible and properly sized for small screens */
  .nav-button.parent-portal {
    font-size: 12px !important;
    padding: 6px 12px !important;
    min-height: 36px !important;
  }
  
  /* Adjust parent portal card margins */
  .portal-card {
    max-width: 95% !important;
  }
}

/* Additional iPhone XE specific adjustments */
@media screen and (max-width: 375px) and (max-height: 667px) {
  .nav-button.parent-portal span {
    font-size: 11px !important;
  }
  
  /* Ensure proper spacing for very small screens */
  .portal-card {
    max-width: 90% !important;
    margin: 0 auto !important;
  }
}

@media screen and (max-width: 991px) {
  .navbar-fixed {
    height: 90px !important;
  }
  
  .navbar-logo-large {
    max-height: 60px !important;
  }
  
  .hero-section-modern {
    padding-top: 120px !important;
  }
  
  .hero-content-wrapper {
    gap: 40px;
  }
  
  .hero-main-title {
    font-size: 3rem;
  }
  
  .hero-features {
    gap: 24px;
  }
}