/* ============================================================================
   OUR STORY PAGE COMPONENT

   Styles for the Our Story page including narrative sections, history timeline,
   team cards, values grid, and CTA.
   ============================================================================ */


/* ===== Story Narrative Section ===== */

.story-section {
  padding: var(--spacing-xl) 0;
}

.story-section .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.story-narrative {
  background: rgba(30, 58, 138, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-lg);
}

.story-narrative h2 {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.story-narrative .mission-statement {
  color: var(--sky-blue);
  font-size: 1.1rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-sm);
  border-left: 3px solid var(--sky-blue);
}

.story-narrative p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-sm);
}

.story-narrative p:last-child {
  margin-bottom: 0;
}

.story-narrative .tagline {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: var(--spacing-md);
}


/* ===== History Timeline Section ===== */

.history-section {
  padding: var(--spacing-xl) 0;
}

.history-section .section-title {
  text-align: center;
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
}

.history-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
}

/* Horizontal connecting line */
.history-timeline::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15%;
  right: 15%;
  height: 4px;
  background: rgba(96, 165, 250, 0.2);
  border-radius: 2px;
  z-index: 0;
}

.history-card {
  text-align: center;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}

.history-card:nth-child(1) { animation-delay: 0.1s; }
.history-card:nth-child(2) { animation-delay: 0.3s; }
.history-card:nth-child(3) { animation-delay: 0.5s; }

.history-card .year-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #1a2d5a;
  color: var(--sky-blue);
  border: 1px solid rgba(96, 165, 250, 0.3);
  margin-bottom: var(--spacing-sm);
  position: relative;
  z-index: 2;
}

.history-card .image-container {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--spacing-sm);
  background: rgba(30, 58, 138, 0.3);
  border: 1px solid rgba(96, 165, 250, 0.1);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.history-card:hover .image-container {
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.history-card .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.history-card .card-title {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.history-card .card-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}


/* ===== Team Section ===== */

.team-section {
  padding: var(--spacing-xl) 0;
}

.team-section .section-title {
  text-align: center;
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.team-section .section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  max-width: 600px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.team-card {
  text-align: center;
  padding: var(--spacing-md);
  background: rgba(30, 58, 138, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(96, 165, 250, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: var(--shadow-glow);
}

.team-card .team-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.1);
  border: 2px solid rgba(96, 165, 250, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-sm);
  font-size: 2rem;
  color: var(--sky-blue);
}

.team-card .team-name {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card .team-role {
  color: var(--sky-blue);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-xs);
}

.team-card .team-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}


/* ===== Values Section ===== */

.values-section {
  padding: var(--spacing-xl) 0;
}

.values-section .section-title {
  text-align: center;
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.value-card {
  padding: var(--spacing-md);
  background: rgba(30, 58, 138, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(96, 165, 250, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: var(--shadow-glow);
}

.value-card .value-icon {
  font-size: 2rem;
  color: var(--sky-blue);
  margin-bottom: var(--spacing-sm);
}

.value-card .value-title {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.value-card .value-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}


/* ===== CTA Section ===== */

.story-cta-section {
  padding: var(--spacing-xl) 0 var(--spacing-xxl);
  text-align: center;
}

.story-cta-section h2 {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.story-cta-section p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.story-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--sky-blue) 100%);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

.story-cta-btn:hover {
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(96, 165, 250, 0.5);
}

/* Social links in CTA section */
.story-social {
  margin-top: var(--spacing-lg);
}

.story-social p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
}

.story-social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.story-social-links a {
  color: var(--text-secondary);
  font-size: 1.5rem;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.story-social-links a:hover {
  color: var(--sky-blue);
  transform: translateY(-2px);
}


/* ===== Responsive: Tablet ===== */

@media screen and (max-width: 768px) {
  .story-narrative {
    padding: 30px 20px;
  }

  .history-timeline {
    grid-template-columns: 1fr;
    max-width: 400px;
    gap: var(--spacing-lg);
  }

  /* Switch to vertical connecting line */
  .history-timeline::before {
    top: 28px;
    bottom: 28px;
    left: 50%;
    right: auto;
    width: 4px;
    height: auto;
    transform: translateX(-50%);
  }

  .history-card .image-container {
    height: 180px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
}


/* ===== Animation Keyframes (shared with roadmap) ===== */

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===== Light Mode Overrides ===== */

[data-theme="light"] .story-narrative {
  background: linear-gradient(
    145deg,
    rgba(241, 245, 249, 0.95),
    rgba(226, 232, 240, 0.9)
  );
  border-color: var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .story-narrative .mission-statement {
  color: #1d4ed8;
  border-left-color: #1d4ed8;
}

[data-theme="light"] .story-narrative .tagline {
  color: var(--text-primary);
}

[data-theme="light"] .history-timeline::before {
  background: rgba(37, 99, 235, 0.2);
}

[data-theme="light"] .history-card .year-badge {
  background: #eef2f7;
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.3);
}

[data-theme="light"] .history-card .image-container {
  background: rgba(241, 245, 249, 0.9);
  border-color: var(--border-color);
}

[data-theme="light"] .history-card .card-title {
  color: var(--text-primary);
}

[data-theme="light"] .team-card {
  background: linear-gradient(
    145deg,
    rgba(241, 245, 249, 0.95),
    rgba(226, 232, 240, 0.9)
  );
  border-color: var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .team-card:hover {
  border-color: var(--sky-blue);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .team-card .team-icon {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
}

[data-theme="light"] .team-card .team-name {
  color: var(--text-primary);
}

[data-theme="light"] .team-card .team-role {
  color: #1d4ed8;
}

[data-theme="light"] .value-card {
  background: linear-gradient(
    145deg,
    rgba(241, 245, 249, 0.95),
    rgba(226, 232, 240, 0.9)
  );
  border-color: var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .value-card:hover {
  border-color: var(--sky-blue);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .value-card .value-title {
  color: var(--text-primary);
}

[data-theme="light"] .story-cta-section h2 {
  color: var(--text-primary);
}
