/* public/css/main.css */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --primary: #70b443;
  --primary-hover: #5ba32e;
  --primary-rgb: 112, 180, 67;
  --primary-light: #f1f8ed;

  --secondary: #00b0ff;
  --secondary-hover: #0091ea;
  --secondary-rgb: 0, 176, 255;
  --secondary-light: #e1f5fe;

  --accent: #ff9100;
  --accent-light: #fff3e0;

  --dark: #0f1c2c;
  --dark-light: #1c2e46;
  --light: #f7fafc;
  --white: #ffffff;

  --gray-dark: #37474f;
  --gray-medium: #78909c;
  --gray-light: #eceff1;

  --success: #2e7d32;
  --danger: #d32f2f;
  --warning: #f57c00;

  /* Typography */
  --font-heading: 'Nunito', sans-serif;
  --font-body: 'Outfit', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 28, 44, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 28, 44, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 28, 44, 0.12);
  --shadow-glow: 0 0 20px rgba(112, 180, 67, 0.3);

  /* Borders & Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button,
input,
textarea,
select {
  font-family: inherit;
}

/* Utility Layouts */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(112, 180, 67, 0.3);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 176, 255, 0.3);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--white);
  color: var(--primary);
}

.btn-white:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.btn-dark {
  background-color: var(--dark);
  color: var(--white);
}

.btn-dark:hover {
  background-color: var(--dark-light);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Page Header Title Section */
.page-banner {
  background: linear-gradient(135deg, #f1f8ed 0%, #e1f5fe 100%);
  padding: 80px 0 60px 0;
  text-align: center;
  border-bottom: 1px solid rgba(112, 180, 67, 0.1);
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 200px;
  height: 200px;
  background-color: rgba(112, 180, 67, 0.05);
  border-radius: 50%;
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 250px;
  height: 250px;
  background-color: rgba(0, 176, 255, 0.05);
  border-radius: 50%;
}

.page-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--dark) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-banner p {
  color: var(--gray-medium);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Glassmorphism card utility */
.card-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 30px;
  transition: all var(--transition-normal);
}

.card-glass:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(112, 180, 67, 0.2);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  background-color: #fcfdfe;
  transition: all var(--transition-fast);
  color: var(--dark);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(112, 180, 67, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Section Title Styling */
.section-title-wrapper {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  margin: 10px auto 0 auto;
}

.section-subtitle {
  color: var(--gray-medium);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Responsive grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .section-padding {
    padding: 50px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .page-banner {
    padding: 60px 0 40px 0;
  }

  .page-banner h1 {
    font-size: 2rem;
  }
}

/* Floating Animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.anim-float {
  animation: float 4s ease-in-out infinite;
}

/* Pulse animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(112, 180, 67, 0.4);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(112, 180, 67, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(112, 180, 67, 0);
  }
}

.anim-pulse {
  animation: pulse 2s infinite;
}

/* Alerts Utility */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  border: 1px solid transparent;
}

.alert-danger {
  background-color: #ffebee;
  color: var(--danger);
  border-color: rgba(211, 47, 47, 0.2);
}

.alert-success {
  background-color: #e8f5e9;
  color: var(--success);
  border-color: rgba(46, 125, 50, 0.2);
}

/* Header navbar styles */
.top-bar {
  background-color: var(--primary);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info {
  display: flex;
  gap: 20px;
}

.contact-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-links {
  display: flex;
  gap: 15px;
  align-items: center;
}

.social-links a {
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition-fast);
}

.social-links a:hover {
  color: var(--white);
  transform: scale(1.15);
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-light);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity var(--transition-fast);
}

.logo:hover {
  opacity: 0.9;
}

.logo-img {
  height: auto;
  max-height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.logo-circle {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(112, 180, 67, 0.3);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--dark);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.brand-tag {
  font-size: 0.75rem;
  color: var(--gray-medium);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

.desktop-nav a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark-light);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  display: inline-block;
}

.desktop-nav a:hover {
  color: var(--primary);
  background-color: rgba(112, 180, 67, 0.05);
}

.desktop-nav a.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-apply {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 102;
}

.burger-menu span {
  width: 100%;
  height: 3px;
  background-color: var(--dark);
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
}

.burger-menu.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background-color: var(--primary);
}

.burger-menu.open span:nth-child(2) {
  opacity: 0;
}

.burger-menu.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background-color: var(--primary);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background-color: var(--white);
  z-index: 101;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 80px 24px 30px 24px;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 28, 44, 0.4);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-light);
}

.mobile-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

@media (max-width: 992px) {
  .top-bar {
    display: none;
  }
}

@media (max-width: 850px) {
  .desktop-nav {
    display: none;
  }

  .burger-menu {
    display: flex;
  }
}

/* Footer Container */
.footer {
  background-color: var(--dark);
  color: #a0aec0;
  padding: 80px 0 0 0;
  border-top: 5px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 24px;
  position: relative;
}

.footer-col h3::after {
  content: '';
  display: block;
  width: 35px;
  height: 3px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
  margin-top: 8px;
}

.brand-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity var(--transition-fast);
}

.footer-logo:hover {
  opacity: 0.9;
}

.footer-logo .logo-circle {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(112, 180, 67, 0.2);
}

.footer-logo .brand-name {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.1;
}

.footer-logo .brand-tag {
  color: #a0aec0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.brand-desc {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-socials a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(112, 180, 67, 0.4);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #a0aec0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a i {
  font-size: 0.8rem;
  color: var(--primary);
  transition: transform var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-links a:hover i {
  transform: translateX(4px);
}

.footer-contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-contact-details li {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
}

.footer-contact-details li i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 3px;
}

.footer-contact-details li span {
  line-height: 1.5;
}

.sub-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 0;
  margin-top: 40px;
  background-color: rgba(0, 0, 0, 0.2);
}

.sub-footer-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sub-footer p {
  font-size: 0.9rem;
  color: #718096;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 576px) {
  .footer {
    padding: 60px 0 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-col h3 {
    margin-bottom: 16px;
  }
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  height: 620px;
  width: 100%;
  overflow: hidden;
  background-color: var(--dark);
}

.carousel-inner {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-item {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2;
}

.hero-content {
  color: var(--white);
  max-width: 800px;
  z-index: 10;
  position: relative;
  padding-left: 20px;
}

.hero-title {
  color: var(--white);
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.9);
  font-family: var(--font-heading);
}

.hero-subtitle {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffcc00;
  margin-bottom: 15px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8), 0 1px 3px rgba(0,0,0,0.9);
  font-family: var(--font-heading);
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.carousel-control:hover {
  background-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(112, 180, 67, 0.4);
}

.carousel-control.prev {
  left: 30px;
}

.carousel-control.next {
  right: 30px;
}

.carousel-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
  align-items: center;
}

.carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-normal);
  padding: 0;
}

.carousel-indicators button.active {
  width: 28px;
  height: 8px;
  border-radius: 4px;
  background-color: var(--primary);
}

/* Stats Bar */
.stats-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--white);
  padding: 30px 0;
  position: relative;
  z-index: 5;
  box-shadow: var(--shadow-md);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-icon {
  font-size: 2rem;
  opacity: 0.9;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

/* Welcome Section */
.welcome-grid {
  align-items: center;
}

.welcome-img-wrapper {
  position: relative;
  padding-right: 20px;
  width: 100%;
}

.welcome-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 8px solid var(--white);
  display: block;
}

.badge-float {
  position: absolute;
  bottom: 30px;
  left: -20px;
  background-color: var(--accent);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(255, 145, 0, 0.4);
}

.welcome-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-tag {
  display: inline-block;
  align-self: flex-start;
  background-color: var(--primary-light);
  color: rgb(38, 188, 38);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
}

.welcome-content h2 {
  font-size: 2.2rem;
  line-height: 1.25;
}

.welcome-content .desc {
  color: var(--gray-dark);
}

/* Programs section home */
.programs-section {
  background-color: var(--white);
}

.programs-grid {
  margin-top: 40px;
}

.program-card {
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.program-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 24px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all var(--transition-normal);
}

.program-card:hover .program-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.program-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.age-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.program-card .desc {
  color: var(--gray-dark);
  font-size: 0.95rem;
}

.c-prenursery {
  background-color: #faf5ff;
}

.c-prenursery .program-icon-wrapper {
  background-color: #f3e5f5;
  color: #9c27b0;
}

.c-prenursery .age-badge {
  background-color: #f3e5f5;
  color: #9c27b0;
}

.c-prenursery:hover {
  border-color: rgba(156, 39, 176, 0.2);
}

.c-nursery {
  background-color: #f0faff;
}

.c-nursery .program-icon-wrapper {
  background-color: #e1f5fe;
  color: #0288d1;
}

.c-nursery .age-badge {
  background-color: #e1f5fe;
  color: #0288d1;
}

.c-nursery:hover {
  border-color: rgba(2, 136, 209, 0.2);
}

.c-lkg {
  background-color: #f4faf4;
}

.c-lkg .program-icon-wrapper {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.c-lkg .age-badge {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.c-lkg:hover {
  border-color: rgba(46, 125, 50, 0.2);
}

.c-ukg {
  background-color: #fffaf0;
}

.c-ukg .program-icon-wrapper {
  background-color: #fff3e0;
  color: #ef6c00;
}

.c-ukg .age-badge {
  background-color: #fff3e0;
  color: #ef6c00;
}

.c-ukg:hover {
  border-color: rgba(239, 108, 0, 0.2);
}

/* Choose Us */
.choose-grid {
  align-items: center;
}

.choose-content h2 {
  font-size: 2.2rem;
  margin-bottom: 24px;
}

.choose-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.choose-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gray-dark);
}

.check-icon {
  font-size: 1.3rem;
  color: var(--primary);
  margin-top: 2px;
}

.choose-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 8px solid var(--white);
}

/* Learning play */
.learning-play {
  background-color: #f0f7ed;
}

.learning-grid {
  margin-top: 40px;
}

.learning-card {
  text-align: center;
}

.learning-icon {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.learning-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.learning-card p {
  color: var(--gray-dark);
  font-size: 0.95rem;
}

/* Testimonials */
.testimonials-section {
  background-color: var(--white);
}

.testimonials-grid {
  margin-top: 40px;
}

/* Reviews button scroll */
.testimonials-scroll-track {
  /* no animation — button-driven scroll */
}

.testimonials-scroll-wrapper:hover .testimonials-scroll-track {
  /* no animation */
}

.testimonial-card {
  background-color: var(--light);
  padding: 40px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--gray-light);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 5rem;
  font-family: Georgia, serif;
  color: rgba(112, 180, 67, 0.08);
  line-height: 1;
}

.stars {
  color: #ffb300;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.feedback {
  font-style: italic;
  color: var(--gray-dark);
  margin-bottom: 24px;
  line-height: 1.6;
}

.parent-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.parent-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-heading);
}

.parent-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.parent-info span {
  font-size: 0.8rem;
  color: var(--gray-medium);
}

/* Admissions CTA banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(0, 176, 255, 0.9), rgba(0, 129, 203, 0.95)),
    url('https://images.unsplash.com/photo-1516627145497-ae6968895b74?auto=format&fit=crop&q=80&w=1200');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--white);
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 35px;
  opacity: 0.9;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

@media (max-width: 992px) {
  .hero-carousel {
    height: 500px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 10px;
  }

  .welcome-grid,
  .choose-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .welcome-img-wrapper {
    order: 2;
    padding-right: 0;
  }

  .welcome-img {
    height: 280px;
  }

  .choose-img-wrapper {
    order: 2;
  }
}

@media (max-width: 768px) {
  .hero-carousel {
    height: 400px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel-control {
    display: none;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .btn-white,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
  }
}

/* Gallery Photo View styling */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-light);
  background-color: var(--white);
  color: var(--dark-light);
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab-btn:hover,
.filter-tab-btn.active {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(112, 180, 67, 0.25);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  transition: all var(--transition-normal);
  aspect-ratio: 4/3;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(112, 180, 67, 0.2);
}

.gallery-card .img-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(15, 28, 44, 0.1), rgba(15, 28, 44, 0.85));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: var(--white);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-card:hover .overlay {
  opacity: 1;
}

.gallery-card .overlay i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.img-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 2px;
}

.img-category {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-transform: uppercase;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 28, 44, 0.95);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1010;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 1010;
}

.lightbox-nav:hover {
  background-color: var(--primary);
}

.lightbox-nav.prev {
  left: 25px;
}

.lightbox-nav.next {
  right: 25px;
}

.lightbox-content {
  max-width: 900px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1005;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 15px;
  color: white;
  text-align: center;
}

.lightbox-caption h4 {
  color: white;
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.lightbox-caption p {
  font-size: 0.85rem;
  color: #a0aec0;
}

/* Timeline Journey */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--gray-light);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-badge {
  position: absolute;
  width: 50px;
  height: 50px;
  right: -25px;
  top: 15px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-heading);
  z-index: 5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.timeline-item.right .timeline-badge {
  left: -25px;
}

.timeline-content-card {
  padding: 24px;
}

.timeline-content-card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: var(--dark);
}

.timeline-content-card p {
  font-size: 0.95rem;
  color: var(--gray-dark);
}

@media (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 20px;
  }

  .timeline-item.left {
    left: 0;
  }

  .timeline-item.right {
    left: 0;
  }

  .timeline-badge {
    left: 6px !important;
    right: auto !important;
  }
}

/* Horizontal Blog Card Layout */
.blog-container {
  max-width: 900px;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.blog-card-horizontal {
  display: flex;
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  transition: all var(--transition-normal);
}

.blog-card-horizontal:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(112, 180, 67, 0.2);
}

.blog-card-image {
  flex: 0 0 320px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform var(--transition-slow);
}

.blog-card-horizontal:hover .blog-card-image {
  transform: scale(1.02);
}

.blog-card-content {
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--gray-medium);
}

.blog-badge {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.badge-tips {
  background-color: #f1f8ed;
  color: var(--primary);
}

.badge-admissions {
  background-color: #e1f5fe;
  color: #0288d1;
}

.badge-news {
  background-color: #fff3e0;
  color: #ef6c00;
}

.blog-date,
.blog-read-time {
  font-weight: 500;
}

.blog-divider {
  opacity: 0.5;
}

.blog-title {
  font-size: 1.6rem;
  line-height: 1.3;
}

.blog-title a {
  color: var(--dark);
}

.blog-title a:hover {
  color: var(--primary);
}

.blog-excerpt {
  color: var(--gray-dark);
  font-size: 0.95rem;
  line-height: 1.6;
}

.blog-read-more-link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
}

.blog-read-more-link i {
  transition: transform var(--transition-fast);
}

.blog-read-more-link:hover {
  color: var(--primary-hover);
}

.blog-read-more-link:hover i {
  transform: translateX(5px);
}

.no-blogs-card {
  text-align: center;
  padding: 60px 40px;
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px dashed var(--gray-medium);
  color: var(--gray-medium);
  max-width: 500px;
  margin: 0 auto;
}

.no-blogs-card i {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--gray-light);
}

.no-blogs-card h3 {
  margin-bottom: 8px;
  color: var(--dark);
}

@media (max-width: 768px) {
  .blog-card-horizontal {
    flex-direction: column;
  }

  .blog-card-image {
    height: 220px;
    flex: none;
    width: 100%;
  }

  .blog-card-content {
    padding: 24px;
  }

  .blog-title {
    font-size: 1.35rem;
  }
}

/* Dashboard styles */
.dashboard-body-theme {
  background-color: #f0f4f8 !important;
  color: var(--dark);
}

.dashboard-wrapper {
  min-height: 100vh;
  padding-bottom: 50px;
}

.dashboard-header {
  background-color: var(--dark);
  color: var(--white);
  padding: 15px 0;
  border-bottom: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.db-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.db-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.db-branding h2 {
  color: var(--white);
  font-size: 1.15rem;
  line-height: 1.1;
}

.db-branding p {
  font-size: 0.75rem;
  color: #a0aec0;
  font-weight: 600;
}

.db-user-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-logout {
  padding: 6px 14px;
  font-size: 0.8rem;
  background-color: var(--danger);
  border: 1px solid var(--danger);
  color: var(--white);
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  transition: all var(--transition-fast);
}

.btn-logout:hover {
  background-color: #b71c1c;
  border-color: #b71c1c;
  transform: translateY(-2px);
}

.db-main-container {
  margin-top: 40px;
  position: relative;
}

.db-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
}

.db-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background-color: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  color: var(--dark-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.sidebar-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  transform: translateX(4px);
}

.sidebar-btn.active {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(112, 180, 67, 0.2);
}

.badge-unread-msg {
  position: absolute;
  right: 15px;
  background-color: var(--danger);
  color: var(--white);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.db-content {
  background-color: var(--white);
  padding: 35px;
  min-height: 500px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--gray-light);
  padding-bottom: 15px;
}

.tab-pane-header h3 {
  font-size: 1.4rem;
  color: var(--dark);
}

.banners-grid-admin {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.banner-admin-card {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  background-color: #fafbfc;
  gap: 20px;
}

.banner-admin-img {
  width: 140px;
  height: 80px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--gray-light);
  flex-shrink: 0;
}

.banner-admin-details {
  flex: 1;
}

.banner-admin-details h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.banner-admin-details .subtitle {
  font-size: 0.85rem;
  color: var(--gray-medium);
  margin-bottom: 6px;
}

.banner-admin-actions {
  display: flex;
  gap: 10px;
}

.gallery-grid-admin {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-admin-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--gray-light);
  background-color: #fafbfc;
  aspect-ratio: 4 / 3;
}

.gallery-admin-img {
  width: 100%;
  height: 70%;
  background-size: cover;
  background-position: center;
}

.gallery-admin-meta {
  padding: 8px;
  height: 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-badge {
  font-size: 0.7rem;
  background-color: var(--secondary-light);
  color: var(--secondary-hover);
  font-weight: 700;
  padding: 1px 8px;
  border-radius: var(--radius-full);
  align-self: flex-start;
  margin-bottom: 3px;
  text-transform: capitalize;
}

.gallery-admin-meta .title {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-delete-gallery-img {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(211, 47, 47, 0.9);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-delete-gallery-img:hover {
  background-color: var(--danger);
  transform: scale(1.1);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-light);
}

.admin-table th {
  background-color: #fafbfc;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--dark);
}

.table-thumb {
  width: 60px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--gray-light);
}

.table-bold-txt {
  font-weight: 700;
  color: var(--dark);
}

.table-badge-cat {
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.table-actions {
  display: flex;
  gap: 8px;
}

.row-unread {
  background-color: #f3f9f0;
  font-weight: 700;
}

.clickable-row {
  cursor: pointer;
  transition: background var(--transition-fast);
}

.clickable-row:hover {
  background-color: #f7fafc;
}

.row-unread:hover {
  background-color: #ebf5e7;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.status-dot.unread {
  background-color: var(--danger);
}

.status-dot.read {
  background-color: var(--gray-medium);
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 28, 44, 0.45);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 550px;
  background-color: var(--white);
  padding: 30px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.blog-modal {
  max-width: 750px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--gray-light);
  padding-bottom: 15px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-medium);
  cursor: pointer;
}

.modal-close-btn:hover {
  color: var(--danger);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.image-upload-preview {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--gray-light);
  margin-bottom: 10px;
  background-color: #fafbfc;
}

.image-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-thumb-preview {
  height: 180px;
}

.upload-control-row {
  display: flex;
  gap: 10px;
}

.upload-control-row input {
  flex: 1;
}

.file-btn-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.file-btn-wrapper input[type=file] {
  font-size: 100px;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  cursor: pointer;
}

.blog-textarea-body {
  min-height: 200px;
  font-family: monospace;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  border-top: 1px solid var(--gray-light);
  padding-top: 20px;
  margin-top: 10px;
}

.alert-floating {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease-out forwards;
}

@media (max-width: 992px) {
  .db-layout {
    grid-template-columns: 1fr;
  }

  .db-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .sidebar-btn {
    width: auto;
  }
}

@media (max-width: 768px) {
  .gallery-grid-admin {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-table {
    display: block;
    overflow-x: auto;
  }
}
/* =====================
   About Page - Story Section Styling
   ===================== */
.story-section .container.grid-2 {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr; /* Image gets less width */
  gap: 40px;
  align-items: center;
}
.story-img-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}
.story-img {
  max-width: 100%;
  height: auto;
  max-height: 400px; /* Adjust as needed */
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* About Page - Philosophy Section Styling */
.philosophy-section .container.grid-2 {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr; /* Image gets less width */
  gap: 40px;
  align-items: center;
}
.philosophy-img-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}
.philosophy-img {
  max-width: 100%;
  height: auto;
  max-height: 400px; /* Adjust as needed */
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .story-section .container.grid-2,
  .philosophy-section .container.grid-2 {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* =====================
   Gallery Page – Filter Tabs
   ===================== */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-tab-btn {
  padding: 10px 22px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--dark-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.filter-tab-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(112, 180, 67, 0.35);
}

/* =====================
   Gallery Page – Grid
   ===================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.gallery-card .img-container {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 aspect ratio */
  overflow: hidden;
  background: var(--gray-light);
}

.gallery-card .img-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover .img-container img {
  transform: scale(1.08);
}

.gallery-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent 40%, rgba(15, 28, 44, 0.75));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery-card:hover .overlay {
  opacity: 1;
}

.gallery-card .overlay i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  font-size: 1.8rem;
  color: var(--white);
  background: rgba(112, 180, 67, 0.85);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.gallery-card:hover .overlay i {
  transform: translate(-50%, -50%) scale(1);
}

.gallery-card .img-title {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}

.gallery-card .img-category {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  margin-top: 4px;
}

/* Show / hide animation for filter */
.gallery-card.show-item {
  animation: fadeInCard 0.4s ease forwards;
}

@keyframes fadeInCard {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* =====================
   Lightbox Modal
   ===================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 15, 25, 0.92);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInLightbox 0.3s ease;
}

@keyframes fadeInLightbox {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.lightbox-content {
  max-width: 85vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10000;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  text-align: center;
  margin-top: 16px;
  color: var(--white);
}

.lightbox-caption h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.lightbox-caption p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10001;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

/* =====================
   Gallery Responsive
   ===================== */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .filter-tabs {
    gap: 8px;
  }

  .filter-tab-btn {
    padding: 8px 16px;
    font-size: 0.82rem;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .lightbox-nav.prev { left: 10px; }
  .lightbox-nav.next { right: 10px; }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .filter-tab-btn {
    padding: 7px 12px;
    font-size: 0.78rem;
  }
}
/* =====================
   PAGE CONTENTS CMS — Two-Screen UI
   ===================== */

/* ---- Screen 1: Page cards grid (green button style) ---- */
.cms-pages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.cms-page-card {
  display: block;
  width: 100%;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--primary), #5a9e2f);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.18s ease;
  box-shadow: 0 2px 8px rgba(112, 180, 67, 0.25);
}

.cms-page-card:hover {
  background: linear-gradient(135deg, #5a9e2f, var(--primary));
  box-shadow: 0 5px 18px rgba(112, 180, 67, 0.4);
  transform: translateY(-2px);
}

.cms-page-card:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(112, 180, 67, 0.25);
}

/* ---- Screen 2: Detail Editor ---- */
.cms-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--gray-light);
}

.cms-detail-header h3 {
  font-size: 1.35rem;
  color: var(--dark);
}

.cms-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background-color: var(--white);
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark-light);
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
  margin-top: 4px;
}

.cms-back-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
}

/* ---- Section Dividers ---- */
.cms-section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 14px;
}

.cms-section-divider::before,
.cms-section-divider::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background-color: var(--gray-light);
}

.cms-section-divider span {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  font-family: var(--font-heading);
  white-space: nowrap;
}

.cms-text-section {
  margin-bottom: 8px;
}

/* ---- Field Rows ---- */
.cms-field-row {
  background-color: #f9fafb;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: border-color 0.15s ease;
}

.cms-field-row:hover {
  border-color: rgba(112, 180, 67, 0.35);
}

.cms-field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cms-field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 0 !important;
}

.cms-field-section-badge {
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: capitalize;
}

.cms-field-key-badge {
  font-size: 0.72rem;
  color: var(--gray-medium);
  font-family: monospace;
}

.cms-field-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.cms-field-input-row .form-control {
  flex: 1;
}

.cms-field-input-row .btn {
  flex-shrink: 0;
  padding: 0 16px;
  height: 42px;
  align-self: stretch;
}

.cms-field-input-row textarea.form-control {
  min-height: 90px;
}

/* ---- Inline Image Field ---- */
.cms-inline-img-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cms-inline-img-thumb {
  width: 120px;
  height: 80px;
  flex-shrink: 0;
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  overflow: hidden;
  background-color: #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive adjustments for Page Contents CMS */
@media (max-width: 1024px) {
  .cms-pages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cms-pages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cms-inline-img-row {
    flex-direction: column;
  }

  .cms-inline-img-thumb {
    width: 100%;
    height: 120px;
  }

  .cms-field-input-row {
    flex-wrap: wrap;
  }

  .cms-field-input-row .btn {
    width: 100%;
    height: auto;
    padding: 10px;
  }
}
