/* Import elegant fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* CSS Custom Properties for consistent theming */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --gold-accent: #f39c12;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --background-light: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Desktop nav */
nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Nav links row on desktop */
.nav-links {
  display: flex;
  gap: 1.5rem;
}


  .thumbnail {
    max-width: 200px;
    margin: 10px;
    cursor: pointer;
    border-radius: 6px;
    transition: transform 0.2s;
  }
  .thumbnail:hover {
    transform: scale(1.05);
  }

  .message { padding: 10px; margin-top: 10px; display: none; border-radius: 5px; position: fixed; top: 20px; left: 50%;}
  .success { background: #d4edda; color: #155724; }
  .error { background: #f8d7da; color: #721c24; }
/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  overflow-x: hidden;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Page entrance animation */
body {
  animation: fadeInUp 0.8s ease-out;
}

img {
  width: 300px;
  height: 300px;
  float: center;
  margin: 10px;
  border-radius: 50%;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navigation Styles */
.nav-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(52, 152, 219, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
  animation: slideDown 0.6s ease-out;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
  flex-wrap: wrap;
  flex-direction:row;
  gap: 25px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Logo/Brand area (optional) */
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--primary-color);
}

/* Navigation Links */
.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--secondary-color), var(--gold-accent));
  transition: var(--transition);
  z-index: -1;
}

.nav-links a:hover::before {
  left: 0;
}

.nav-links a:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  flex-direction: column;
  gap: 4px;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  transition: var(--transition);
  border-radius: 2px;
}

/* Hamburger Animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Main content container */
body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--primary-color);
  margin: 3rem 0 2rem;
  text-align: center;
  position: relative;
  animation: titleReveal 1s ease-out 0.3s both;
}

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--gold-accent));
  border-radius: 2px;
  animation: lineExpand 0.8s ease-out 1s both;
}

@keyframes lineExpand {
  from {
    width: 0;
  }
  to {
    width: 80px;
  }
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--primary-color);
  margin: 2.5rem 0 1.5rem;
  position: relative;
  animation: slideInLeft 0.8s ease-out;
}

h2::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 100%;
  background: var(--secondary-color);
  border-radius: 2px;
}

h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 2rem 0 1rem;
  position: relative;
}

/* Paragraph styles */
p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-align: justify;
  animation: fadeInUp 0.8s ease-out;
  transition: var(--transition);
}

p:hover {
  transform: translateX(5px);
}

/* List styles */
ul {
  margin: 1.5rem 0;
  animation: staggerIn 1s ease-out;
}

/* ul li {
  list-style: none;
  position: relative;
  padding: 1rem 0 1rem 2rem;
  margin: 0.5rem 0;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  animation: slideInUp 0.6s ease-out;
  animation-fill-mode: both;
} */

ul li {
  list-style: none;
  position: relative;
  padding: 1rem 1rem 1rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}


ul li:nth-child(1) { animation-delay: 0.1s; }
ul li:nth-child(2) { animation-delay: 0.2s; }
ul li:nth-child(3) { animation-delay: 0.3s; }
ul li:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ul li::before {
  content: '✨';
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  animation: sparkle 2s infinite;
} */

ul li::before {
  content: '✨';
  font-size: 1.2rem;
  flex-shrink: 0;
  animation: sparkle 2s infinite;
}



@keyframes sparkle {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.2); }
}

ul li:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
}

/* Form styles */
form {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin: 2rem 0;
  animation: scaleIn 0.8s ease-out;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

input, textarea, select {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  transform: translateY(-2px);
}

/* Button styles */
button {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--gold-accent) 100%);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gold-accent) 0%, var(--accent-color) 100%);
  transition: var(--transition);
}

button:hover::before {
  left: 0;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

button span {
  position: relative;
  z-index: 1;
}

/* Link styles */
a {
  color: var(--secondary-color);
  text-decoration: none;
  position: relative;
  transition: var(--transition);
  font-weight: 500;
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: var(--transition);
}

a:hover::after {
  width: 100%;
}

a:hover {
  color: var(--primary-color);
  transform: translateY(-1px);
}

/* Footer styles */
footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 3rem 2rem;
  margin-top: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  opacity: 0.9;
}

footer p {
  position: relative;
  z-index: 1;
  margin: 0;
}

/* Success stories emoji animation */
h3:contains('🌟') {
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
  }
  to {
    text-shadow: 0 0 20px rgba(52, 152, 219, 0.8);
  }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem 2rem 2rem;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links a {
    width: 100%;
    padding: 1rem;
    margin: 0.25rem 0;
    background: var(--white);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    animation: slideInMobile 0.3s ease-out;
    animation-fill-mode: both;
  }
  
  .nav-links.active a:nth-child(1) { animation-delay: 0.1s; }
  .nav-links.active a:nth-child(2) { animation-delay: 0.15s; }
  .nav-links.active a:nth-child(3) { animation-delay: 0.2s; }
  .nav-links.active a:nth-child(4) { animation-delay: 0.25s; }
  .nav-links.active a:nth-child(5) { animation-delay: 0.3s; }
  .nav-links.active a:nth-child(6) { animation-delay: 0.35s; }
  
  @keyframes slideInMobile {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  body {
    padding: 0 1rem;
  }
  
  form {
    padding: 2rem 1.5rem;
  }
  
  h1 {
    margin: 2rem 0 1.5rem;
  }
  
  h2::before {
    left: -10px;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 1rem;
  }
  
  .nav-links {
    padding: 1rem;
  }
  
  ul li {
    padding: 0.75rem 0 0.75rem 1.5rem;
    margin: 0.25rem 0;
  }
  
  form {
    padding: 1.5rem 1rem;
  }
  
  input, textarea, select {
    padding: 0.75rem;
  }
  
  button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* Loading animation for page transitions */
.page-transition {
  animation: pageSlide 0.6s ease-out;
}

@keyframes pageSlide {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Highlight animation for important sections */
.highlight {
  background: linear-gradient(120deg, transparent 0%, rgba(52, 152, 219, 0.1) 50%, transparent 100%);
  animation: highlightSweep 3s ease-in-out infinite;
}

@keyframes highlightSweep {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

@media (max-width: 768px) {
  body {
    padding: 0 1rem;
    max-width: 100%;
  }

  p {
    text-align: left;
    font-size: 1rem;
    line-height: 1.5;
  }

  img {
    width: 100%;
    height: auto;
  }
}
@media (max-width: 768px) {
  p {
    text-align: left !important;
    word-spacing: normal !important;
  }
}
/* ---------- MOBILE EMERGENCY FIX (paste at the END of your stylesheet) ---------- */
@media (max-width: 900px) {
  /* make main containers truly full width on mobile */
  html, body, main, section, article, .container, .content, .stories, .story {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  /* force readable text flow */
  p, li, span, a, .text, .story-text, .content p {
    display: block !important;
    text-align: left !important;
    word-spacing: normal !important;
    letter-spacing: normal !important;
    hyphens: auto !important;
    text-justify: auto !important;
    white-space: normal !important;
    max-width: 100% !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.5 !important;
    font-size: 1rem !important;
  }

  /* protect images from overflowing and pushing layout */
  img, .thumbnail, .story-image {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* if any parent is accidentally turned into a flex row, force column */
  .row, .flex, .flex-row, .story-row, .card-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
  }

  /* remove text justification added somewhere else */
  * {
    -webkit-text-size-adjust: 100% !important;
  }
}
/* ---------- end emergency fix ---------- */

p {
  white-space: normal !important;
}
p {
  text-align: left !important;
  text-justify: auto !important;
}
p {
  white-space: normal !important;
  text-align: left !important;
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
}


@media (max-width: 768px) {
  p {
    text-align: left !important;
    line-height: 1.4 !important;
    margin-bottom: 1rem !important;
  }
}
@media (max-width: 768px) {
  p {
    text-align: left !important;
    line-height: 1.45 !important;
    font-size: 1rem !important;
    white-space: normal !important;
    word-spacing: normal !important;
    letter-spacing: normal !important;
    margin-bottom: 1rem !important;
  }

  body {
    padding: 0 1rem !important;
  }

  img {
    width: 100% !important;
    height: auto !important;
  }
}
p {
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  white-space: normal !important;
}

@media (max-width: 480px) {
  ul li {
    padding: 0.75rem 0.75rem;
    align-items: flex-start; /* better for multi-line text */
  }

  ul li::before {
    font-size: 1rem;
    margin-top: 0.15rem;
  }
}

@media (max-width: 480px) {
  ul li:hover {
    transform: none;
  }
}
@media (max-width: 480px) {
  ul {
    padding-left: 0;
  }

  ul li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem;
    padding: 0.75rem 1rem !important;
  }

  ul li::before {
    position: static !important;
    transform: none !important;
    margin-top: 0.15rem;
    font-size: 1rem;
  }
}

ul li {
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 480px) {
  ul li {
    font-size: 0.95rem;
    line-height: 1.4;
  }
}

ul li {
  list-style: none;
  display: flex;
  align-items: center;   /* desktop center */
  gap: 0.75rem;
  padding: 1rem 1rem;
}

ul li::before {
  content: '✨';
  font-size: 1.2rem;
  flex-shrink: 0;
}

ul {
  padding: 0;
  margin: 1.5rem 0;
}

ul li {
  list-style: none;
  display: inline-flex;          /* 🔑 key fix */
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  width: 100%;
}

ul li::before {
  content: '✨';
  flex-shrink: 0;
  font-size: 1.2rem;
  line-height: 1;
}
