/* 🌱 TRAIN A CHILD - HOME PAGE STYLES */

/* ============================================ */

/* HERO SECTION */

/* ============================================ */

.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  /*background: linear-gradient(135deg, rgba(27, 94, 32, 0.9) 0%, rgba(46, 125, 50, 0.8) 50%, rgba(76,175,80,0.67) 100%);*/
  overflow: hidden;
  background-color: rgba(46, 125, 50, 0.43);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?w=1200&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

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

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-content {
  color: white;
}

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

.text-gradient {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.hero-stats {
  display: flex;
  gap: 3rem;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #FFD700;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  color: #ffffff;
}

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

.hero-img {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  /*box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);*/
}

/* ============================================ */

/* SECTIONS COMMON STYLES */

/* ============================================ */

.section {
  padding: 5rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: var(--radius-full);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-footer {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================ */

/* HOW IT WORKS SECTION */

/* ============================================ */

.how-it-works {
  background: var(--background);
}

.how-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.how-card {
  background: var(--card-bg);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 5px 20px var(--shadow);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.how-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--shadow-hover);
}

.how-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.how-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.how-description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

/* ============================================ */

/* CHILDREN SECTION */

/* ============================================ */

.children-section {
  background: var(--card-bg);
}

.children-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.child-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.child-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-hover);
}

.child-image-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.child-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.child-card:hover .child-image {
  transform: scale(1.05);
}

.funding-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-solid);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.funding-badge.urgent {
  background: var(--danger);
}

.funding-badge.success {
  background: var(--success);
}

.child-info {
  padding: 1.5rem;
}

.child-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.child-details {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.child-details i {
  width: 20px;
  margin-right: 0.5rem;
  color: var(--primary-solid);
}

.funding-progress {
  margin-bottom: 1.5rem;
}

.progress {
  height: 8px;
  background: var(--accent);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 100%;
  background: var(--primary-color);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}

.progress-bar.urgent {
  background: var(--danger);
}

.progress-bar.success {
  background: var(--success);
}

.funding-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.child-info .btn {
  width: 100%;
  border-radius: var(--radius-full);
}

/* ============================================ */

/* STORY SECTION */

/* ============================================ */

.story-section {
  background: var(--background);
}

.story-content-wrapper {
  display: grid;
  grid-template-columns: 0.65fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

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

.story-img {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px var(--shadow);
}

.story-content {
  padding-right: 0;
}

.story-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.quote-box {
  background: var(--accent);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary-solid);
  margin-top: 1.5rem;
  position: relative;
}

.quote-icon {
  font-size: 1.5rem;
  color: var(--primary-solid);
  margin-bottom: 0.75rem;
  display: block;
}

.quote-text {
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0;
}

/* ============================================ */

/* VALUES SECTION */

/* ============================================ */

.values-section {
  background: var(--background);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.value-card {
  background: var(--card-bg);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 5px 20px var(--shadow);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-hover);
}

.value-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.value-icon.excellence {
  background: linear-gradient(135deg, #FFD700, #FFA500);
}

.value-icon.integrity {
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
}

.value-icon.innovation {
  background: linear-gradient(135deg, #2196F3, #0D47A1);
}

.value-icon.love {
  background: linear-gradient(135deg, #E91E63, #C2185B);
}

.value-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.value-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================ */

/* VISION SECTION */

/* ============================================ */

.vision-section {
  background: var(--card-bg);
}

.vision-box {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  border-radius: var(--radius-lg);
  padding: 4rem;
  /*color: white;*/
  text-align: center;
}

.vision-content {
  margin-bottom: 3rem;
}

.vision-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vision-text {
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.goal-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.goal-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.2rem;
}

.goal-item i {
  font-size: 2rem;
  color: #FFD700;
}

.goal-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
}

/* ============================================ */

/* CTA SECTION */

/* ============================================ */

.cta-section {
  background: linear-gradient(135deg, #1B5E20, #2E7D32);
  color: white;
  text-align: center;
  padding: 6rem 0;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

.cta-text {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  line-height: 1.6;
  color: white;
}

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

.cta-buttons .btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.cta-buttons .btn-light {
  background: var(--primary-color);
  color: white;
  border: none;
}

.cta-buttons .btn-outline-light {
  background: transparent;
  color: var(--primary-solid);
  border: 2px solid var(--primary-solid);
}

/* ============================================ */

/* MOBILE RESPONSIVE STYLES */

/* ============================================ */

/* Hero Section Mobile */

@media (max-width: 768px) {
  .hero-content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-image {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  .hero-stats {
    flex-direction: column;
    gap: 2rem;
  }
}

/* Sections Mobile */

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .section-subtitle {
    font-size: 1rem;
  }
}

/* How It Works Mobile */

@media (max-width: 768px) {
  .how-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .how-card {
    padding: 2rem 1.5rem;
  }
}

/* Children Grid Mobile */

@media (max-width: 768px) {
  .children-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Story Section Responsive - Stacked Layout */

@media (max-width: 1100px) {
  .story-content-wrapper {
    display: flex;
    flex-direction: column-reverse;
    gap: 2.5rem;
  }

  .story-image {
    width: 100%;
  }

  .story-img {
    width: 100%;
    max-width: 100%;
    height: 400px;
    object-fit: cover;
  }

  .story-content {
    padding-right: 0;
  }

  .story-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
  }

  .quote-box {
    padding: 1.5rem;
    margin-top: 1.5rem;
  }
}

/* Story Section Mobile */

@media (max-width: 768px) {
  .story-content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .story-content {
    padding-right: 0;
  }
}

/* Values Grid Mobile */

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Vision Box Mobile */

@media (max-width: 768px) {
  .vision-box {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .vision-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .vision-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .goal-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* CTA Mobile */

@media (max-width: 768px) {
  .cta-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .cta-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {

  .how-icon,
  .value-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .child-image-wrapper {
    height: 200px;
  }
}

/* Dark Mode Support */

[data-bs-theme="dark"] .child-card,
.dark-mode .child-card,
[data-bs-theme="dark"] .how-card,
.dark-mode .how-card,
[data-bs-theme="dark"] .value-card,
.dark-mode .value-card {
  background: var(--card-bg);
  border-color: var(--border-color);
}

[data-bs-theme="dark"] .children-section,
.dark-mode .children-section {
  background: var(--card-bg);
}

[data-bs-theme="dark"] .how-it-works,
.dark-mode .how-it-works,
[data-bs-theme="dark"] .story-section,
.dark-mode .story-section,
[data-bs-theme="dark"] .values-section,
.dark-mode .values-section {
  background: var(--background);
}