:root {
  --primary-color: #2a5eec;
  --primary-dark: #1550f3;
  --secondary-color: #ffd700;
  --light-bg: #f8fafc;
  --light-card: #ffffff;
  --light-border: #e2e8f0;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --accent: #06b6d4;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}



/* Hero Slider Styles */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Slider Navigation */
.hero-slider-nav {
  position: absolute;
  bottom: 100px;
  right: 50px;
  z-index: 3;
  display: flex;
  gap: 15px;
}

.hero-slider-nav button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.hero-slider-nav button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Slider Indicators */
.hero-slider-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 12px;
}

.hero-slider-indicators .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-slider-indicators .indicator.active {
  background: white;
  width: 30px;
  border-radius: 6px;
}

.hero-slider-indicators .indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-slider-nav {
    bottom: 80px;
    right: 20px;
  }
  
  .hero-slider-nav button {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  
  .hero-slider-indicators {
    bottom: 30px;
  }
}

/* Navigation */
nav {
  background: var(--primary-color);
  padding: 1rem 5%;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

/* login link */
.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 500;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
}

.nav-login i {
  font-size: 0.9rem;
}

.nav-login:hover {
  background: #f5f5f5;
  color: #e63946;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffd700;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ffd700;
}

.nav-cta {
  background: #ffd700;
  color: var(--primary-color);
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s;
}

.nav-cta:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: scale(1.05);
}

/* Floating Action Button */
.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #ffd700;
  color: var(--primary-color);
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 5px 25px rgba(255, 215, 0, 0.5);
  z-index: 999;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  animation: pulse 2s infinite;
}

.floating-btn:hover {
  background: var(--primary-color);
  color: #ffd700;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.7);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 5px 25px rgba(255, 215, 0, 0.5);
  }
  50% {
    box-shadow: 0 5px 35px rgba(255, 215, 0, 0.8);
  }
}

.btn-icon {
  font-size: 1.2rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #003d82 100%);
  color: white;
  padding: 120px 5% 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,215,0,0.1)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-highlight {
  color: #ffd700;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 15px 35px;
  font-size: 1.1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
}

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

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

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

/* Mission Section */
.mission {
  padding: 80px 5%;
  background: white;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section-header .highlight {
  color: #ffd700;
}

.section-header p {
  font-size: 1.2rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

/* Programs Grid */
.programs {
  padding: 80px 5%;
  background: #f8f9fa;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 40px;
}

.program-card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  border-top: 4px solid #ffd700;
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.program-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), #003d82);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.program-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.program-card p {
  color: #666;
  line-height: 1.8;
}

/* Impact Stats */
.impact {
  padding: 80px 5%;
  background: var(--primary-color);
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 40px;
}

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

.stat-number {
  font-size: 3.5rem;
  font-weight: bold;
  color: #ffd700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* CTA Section */
.cta-section {
  padding: 80px 5%;
  background: linear-gradient(135deg, #ffd700, var(--secondary-color));
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: white;
  padding: 60px 5% 30px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  color: #ffd700;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  line-height: 2;
  display: block;
}

.footer-section a:hover {
  color: #ffd700;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .nav-cta {
    padding: 8px 20px;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

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

  .cta-buttons {
    flex-direction: column;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .floating-btn {
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

.sidebar {
  background: var(--light-card);
  border-right: 1px solid var(--light-border);
  height: 100vh;
  position: fixed;
  width: 260px;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.sidebar-header {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--light-border);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0;          /* kill default margins */
  padding: 0;
  font-weight: 600;
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px; /* reduce gap here */
}

.logo-wrapper {
  width: 42px;
  height: 42px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  width: 26px;
  height: auto;
}

.logo {

}


.nav-link {
  color: var(--text-muted);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  margin: 0.25rem 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.08);
  border-left: 3px solid var(--primary-color);
  transform: translateX(5px);
}

.nav-link.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.1), transparent);
  color: var(--primary-color);
  font-weight: 500;
}

.main-content {
  margin-left: 260px;
  padding: 2rem;
  min-height: 100vh;
}

.topbar {
  background: var(--light-card);
  border-radius: 1rem;
  padding: 1rem 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--light-border);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.welcome-text {
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-area {
  background: var(--light-card);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--light-border);
  box-shadow: var(--shadow);
  min-height: 60vh;
}

.icon {
  width: 20px;
  height: 20px;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }
}

.mobile-toggle {
  display: none;
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
}

.btn-primary {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--primary-color);
}

/* Make CKEditor scrollable inside modals */
.ck-editor__editable_inline {
  min-height: 200px; /* adjust as you wish */
  max-height: 400px; /* limit modal growth */
  overflow-y: auto; /* enable internal scrolling */
  padding: 10px;
}

/* Optional: adjust modal body to flex with CKEditor */
.modal-body {
  overflow-y: auto;
  max-height: 75vh; /* avoid overflow beyond viewport */
}

/* child registration form */
/* Child Registration Form Styles */

.form-header {
  text-align: center;
  padding: 2rem 0 3rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, #003d82 100%);
  color: white;
  margin: -2rem -2rem 2rem -2rem;
  border-radius: 1rem 1rem 0 0;
}

.form-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.form-header .highlight {
  color: var(--secondary-color);
}

.form-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.form-body {
  max-width: 1000px;
  margin: 0 auto;
}

/* Form Sections */
.section {
  background: white;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--light-border);
  box-shadow: var(--shadow);
}

.section-title {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--secondary-color);
}

/* Form Layout */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-row.single {
  grid-template-columns: 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.required {
  color: #e63946;
  font-weight: bold;
}

/* Form Controls */
.form-control {
  padding: 0.75rem 1rem;
  border: 2px solid var(--light-border);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--light-bg);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 3px rgba(42, 94, 236, 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

/* Radio and Checkbox Groups */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.radio-option,
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--light-bg);
  border: 2px solid var(--light-border);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.radio-option:hover,
.checkbox-option:hover {
  background: white;
  border-color: var(--primary-color);
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.radio-option label,
.checkbox-option label {
  cursor: pointer;
  margin: 0;
  font-weight: 500;
}

/* Vulnerability Grid */
.vulnerability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

/* Consent Box */
.consent-box {
  background: #fff9e6;
  border: 2px solid var(--secondary-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.consent-box .checkbox-option {
  background: white;
  border-color: var(--secondary-color);
}

/* Help Text */
.help-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-style: italic;
}

/* Error Messages */
.error-message {
  color: #e63946;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Submit Section */
.submit-section {
  text-align: center;
  padding: 2rem 0;
}

.btn-submit {
  background: linear-gradient(135deg, var(--primary-color), #003d82);
  color: white;
  border: none;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(42, 94, 236, 0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 94, 236, 0.4);
  background: linear-gradient(135deg, #003d82, var(--primary-color));
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .form-header {
    margin: -1rem -1rem 1.5rem -1rem;
    padding: 1.5rem 1rem 2rem;
  }

  .form-header h1 {
    font-size: 1.8rem;
  }

  .section {
    padding: 1.5rem;
  }

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

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .radio-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .vulnerability-grid {
    grid-template-columns: 1fr;
  }

  .btn-submit {
    width: 100%;
    padding: 0.875rem 2rem;
  }
}

/* Animation for form load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  animation: fadeInUp 0.5s ease-out;
}

.section:nth-child(2) {
  animation-delay: 0.1s;
}
.section:nth-child(3) {
  animation-delay: 0.2s;
}
.section:nth-child(4) {
  animation-delay: 0.3s;
}
.section:nth-child(5) {
  animation-delay: 0.4s;
}
.section:nth-child(6) {
  animation-delay: 0.5s;
}
.section:nth-child(7) {
  animation-delay: 0.6s;
}
.section:nth-child(8) {
  animation-delay: 0.7s;
}

/* white outline for places with contrast issues */

.section-header h2 {
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.9),
    0 0 6px rgba(255, 255, 255, 0.6);
}


.section-header p{
    text-shadow:
      -1px -1px 0 #fff,
       1px -1px 0 #fff,
      -1px  1px 0 #fff,
       1px  1px 0 #fff;
    
}

/* flash message stylign */

.flash-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1055; /* above modals backdrop */
  min-width: 300px;
}

.custom-alert {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

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

.custom-alert {
  animation: slideIn 0.3s ease-out;
}

.dropdown-toggle::after {
  display: none;
}



/* navigation styling */


/* Dropdown Menu Styling */
/* .dropdown-menu {
  max-height: 500px;
  overflow-y: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0;
}

.dropdown-item {
  padding: 0.6rem 1.5rem;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: var(--primary-color, #667eea);
  color: white;
  padding-left: 2rem;
}

.dropdown-item i {
  width: 20px;
  margin-right: 8px;
}

.dropdown-item.ps-4 {
  padding-left: 3rem;
  font-size: 0.9rem;
  color: #666;
}

.dropdown-item.ps-4:hover {
  padding-left: 3.5rem;
  color: white;
}

.dropdown-divider {
  margin: 0.5rem 0;
  border-color: rgba(0, 0, 0, 0.05);
} */

/* Mobile Responsive */
@media (max-width: 768px) {
  .dropdown-menu {
    max-height: 400px;
  }
}


.modal {
  z-index: 2000 !important;
}

.modal-backdrop {
  z-index: 1990 !important;
}
