/*--------------------------------------------------------------
# Story Page Specific Styles
--------------------------------------------------------------*/
.story-page .hero .historical-stats {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.story-page .hero .historical-stats .stat-item {
  text-align: center;
  padding: 25px 20px;
  background: rgba(236, 236, 236, 0.08);
  border-radius: 20px;
  border: 2px solid rgba(236, 236, 236, 0.1);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 120px;
}

.story-page .hero .historical-stats .stat-item:hover {
  transform: translateY(-8px);
  background: rgba(236, 236, 236, 0.12);
  border-color: var(--accent-color);
  box-shadow: 0 15px 40px rgba(236, 236, 236, 0.1);
}

.story-page .hero .historical-stats .stat-number {
  font-size: 42px;
  font-weight: 900;
  color: var(--accent-color);
  margin-bottom: 8px;
  line-height: 1;
  display: block;
}

.story-page .hero .historical-stats .stat-label {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/*--------------------------------------------------------------
# Historical Gallery
--------------------------------------------------------------*/
.historical-gallery {
  position: relative;
}

.historical-gallery .main-image {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

.historical-gallery .main-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  transition: transform 0.3s ease;
  margin-right: 1rem;
}

.historical-gallery .main-image:hover img {
  transform: scale(1.05);
}

.historical-gallery .image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: white;
  padding: 30px 25px 20px;
  text-align: center;
}

.historical-gallery .image-caption h5 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
}

.historical-gallery .image-caption p {
  margin-bottom: 0;
  opacity: 0.9;
  font-size: 14px;
}

.historical-gallery .gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.historical-gallery .thumb-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 0.5rem;
}

.historical-gallery .thumb-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.historical-gallery .thumb-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.historical-gallery .thumb-item span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 15px 10px 8px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

/*--------------------------------------------------------------
# Date Badge
--------------------------------------------------------------*/
.date-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(
    135deg,
    var(--accent-color),
    color-mix(in srgb, var(--accent-color), black 20%)
  );
  color: var(--contrast-color);
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(236, 236, 236, 0.3);
}

.date-badge i {
  font-size: 16px;
}

/*--------------------------------------------------------------
# Story Content
--------------------------------------------------------------*/
.story-content h3 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--heading-color);
}

.story-content .lead {
  font-size: 20px;
  font-weight: 500;
  color: var(--accent-color);
  margin-bottom: 25px;
  line-height: 1.6;
}

.story-content p {
  font-size: 16px;
  line-height: 1.8;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 25px;
}

/*--------------------------------------------------------------
# Quote Section
--------------------------------------------------------------*/
.quote-section {
  margin: 40px 0;
}

.quote-section blockquote {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--surface-color),
    color-mix(in srgb, var(--surface-color), var(--accent-color) 5%)
  );
  padding: 40px;
  border-radius: 20px;
  border-left: 5px solid var(--accent-color);
  margin: 0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.quote-section .quote-icon {
  font-size: 48px;
  color: var(--accent-color);
  opacity: 0.3;
  position: absolute;
  top: 15px;
  left: 25px;
}

.quote-section blockquote p {
  font-size: 18px;
  font-style: italic;
  color: var(--heading-color);
  margin-bottom: 20px;
  padding-left: 30px;
  line-height: 1.6;
}

.quote-section cite {
  font-size: 14px;
  color: var(--accent-color);
  font-weight: 600;
  padding-left: 30px;
}

/*--------------------------------------------------------------
# Story Image Container
--------------------------------------------------------------*/
.story-image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.story-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.story-image-container:hover img {
  transform: scale(1.05);
}

.story-image-container .image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 30px 25px 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.story-image-container:hover .image-overlay {
  transform: translateY(0);
}

.story-image-container .overlay-content h5 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: white;
}

.story-image-container .overlay-content p {
  margin-bottom: 0;
  opacity: 0.9;
  font-size: 14px;
}

/*--------------------------------------------------------------
# Timeline Section
--------------------------------------------------------------*/
.timeline-section {
  margin-top: 60px;
}

.timeline-section h3 {
  font-size: 36px;
  font-weight: 700;
  color: var(--heading-color);
  position: relative;
}

.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    to bottom,
    var(--accent-color),
    color-mix(in srgb, var(--accent-color), transparent 50%)
  );
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 40px;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 40px;
  text-align: left;
}

.timeline-marker {
  position: absolute;
  top: 20px;
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(236, 236, 236, 0.3);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-marker {
  right: -30px;
}

.timeline-item:nth-child(even) .timeline-marker {
  left: -30px;
}

.timeline-marker i {
  font-size: 24px;
  color: var(--contrast-color);
}

.timeline-content {
  background: var(--surface-color);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border: 2px solid color-mix(in srgb, var(--accent-color), transparent 90%);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  border-color: var(--accent-color);
  transform: translateY(-5px);
}

.timeline-date {
  background: var(--accent-color);
  color: var(--contrast-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 15px;
}

.timeline-content h4 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--heading-color);
}

.timeline-content p {
  margin-bottom: 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  line-height: 1.6;
}

/*--------------------------------------------------------------
# Transformation Cards
--------------------------------------------------------------*/
.transformation-card {
  background: var(--surface-color);
  border-radius: 25px;
  padding: 40px 30px;
  text-align: center;
  border: 2px solid color-mix(in srgb, var(--accent-color), transparent 90%);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.transformation-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.transformation-card.highlight {
  background: linear-gradient(
    135deg,
    var(--surface-color),
    color-mix(in srgb, var(--surface-color), var(--accent-color) 8%)
  );
  border-color: var(--accent-color);
}

.transformation-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(236, 236, 236, 0.05),
    transparent
  );
  transition: left 0.6s ease;
}

.transformation-card:hover::before {
  left: 100%;
}

.transformation-card .card-icon {
  width: 80px;
  height: 80px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: all 0.3s ease;
}

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

.transformation-card .card-icon i {
  font-size: 36px;
  color: var(--contrast-color);
}

.transformation-card h4 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--heading-color);
}

.transformation-card p {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  line-height: 1.6;
  margin-bottom: 25px;
}

.transformation-card .card-image {
  border-radius: 15px;
  overflow: hidden;
  margin-top: auto;
}

.transformation-card .card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/*--------------------------------------------------------------
# Impact Section
--------------------------------------------------------------*/
.impact-section {
  margin-top: 80px;
  padding: 60px 0;
  background: linear-gradient(
    135deg,
    var(--surface-color),
    color-mix(in srgb, var(--surface-color), var(--accent-color) 3%)
  );
  border-radius: 30px;
  border: 2px solid color-mix(in srgb, var(--accent-color), transparent 90%);
}

.impact-section h3 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--heading-color);
}

.impact-section .lead {
  font-size: 20px;
  color: var(--accent-color);
  margin-bottom: 40px;
  font-weight: 500;
}

.impact-stats {
  margin-bottom: 40px;
}

.impact-stat {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 25px;
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.impact-stat:hover {
  transform: translateX(10px);
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.impact-stat .stat-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.impact-stat .stat-icon i {
  font-size: 28px;
  color: var(--contrast-color);
}

.impact-stat .stat-content h5 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--heading-color);
}

.impact-stat .stat-content p {
  margin-bottom: 0;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

/*--------------------------------------------------------------
# Testimonial Card Historical
--------------------------------------------------------------*/
.testimonial-card.historical {
  background: linear-gradient(
    135deg,
    var(--surface-color),
    color-mix(in srgb, var(--surface-color), var(--accent-color) 5%)
  );
  border-radius: 25px;
  padding: 40px;
  border: 2px solid color-mix(in srgb, var(--accent-color), transparent 90%);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.testimonial-card.historical:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-color);
}

.testimonial-info h5 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--heading-color);
}

.testimonial-info span {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 14px;
  display: block;
  margin-bottom: 10px;
}

.years-badge {
  background: var(--accent-color);
  color: var(--contrast-color);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.testimonial-content p {
  font-size: 16px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
  margin-bottom: 0;
  font-style: italic;
}

/*--------------------------------------------------------------
# Evolution Timeline
--------------------------------------------------------------*/
.evolution-timeline {
  margin-top: 40px;
}

.decade-section {
  margin-bottom: 80px;
  position: relative;
}

.decade-section.current {
  background: linear-gradient(
    135deg,
    var(--surface-color),
    color-mix(in srgb, var(--surface-color), var(--accent-color) 5%)
  );
  padding: 60px;
  border-radius: 30px;
  border: 3px solid var(--accent-color);
}

.decade-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.decade-header h3 {
  font-size: 36px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.decade-years {
  background: var(--accent-color);
  color: var(--contrast-color);
  padding: 10px 25px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.decade-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
}

.decade-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.decade-section:hover .decade-image img {
  transform: scale(1.05);
}

.decade-content h4 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--heading-color);
}

.decade-achievements {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.decade-achievements li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  padding: 15px;
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.decade-achievements li:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  transform: translateX(5px);
}

.decade-achievements li i {
  color: var(--accent-color);
  font-size: 18px;
  flex-shrink: 0;
}

.decade-content p {
  font-size: 16px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

/*--------------------------------------------------------------
# Legacy Cards
--------------------------------------------------------------*/
.legacy-intro {
  margin-bottom: 60px;
}

.legacy-intro .lead {
  font-size: 20px;
  line-height: 1.8;
  color: color-mix(in srgb, var(--default-color), transparent 10%);
}

.legacy-grid {
  margin-bottom: 80px;
}

.legacy-card {
  background: var(--surface-color);
  border-radius: 25px;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--accent-color), transparent 90%);
  transition: all 0.3s ease;
  height: 100%;
}

.legacy-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.legacy-card .card-header {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    color-mix(in srgb, var(--accent-color), black 15%)
  );
  color: var(--contrast-color);
  padding: 30px;
  text-align: center;
}

.legacy-card .card-header i {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
}

.legacy-card .card-header h4 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--contrast-color);
}

.legacy-card .card-content {
  padding: 40px 30px;
}

.legacy-card .card-content p {
  font-size: 16px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 25px;
}

.legacy-card .card-image {
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 25px;
}

.legacy-card .card-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.legacy-card .card-stats {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin-top: 25px;
}

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

.legacy-card .card-stats .number {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-color);
  display: block;
  margin-bottom: 5px;
}

.legacy-card .card-stats .label {
  font-size: 12px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tradition-list {
  margin-top: 20px;
}

.tradition-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px;
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tradition-item:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  transform: translateX(5px);
}

.tradition-item i {
  color: var(--accent-color);
  font-size: 14px;
}

.tradition-item span {
  font-size: 14px;
  font-weight: 500;
  color: var(--default-color);
}

.encounter-stats {
  margin-top: 20px;
}

.encounter-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  padding: 15px;
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.encounter-stat:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  transform: translateX(5px);
}

.encounter-stat i {
  color: var(--accent-color);
  font-size: 18px;
  flex-shrink: 0;
}

.encounter-stat span {
  font-size: 14px;
  font-weight: 500;
  color: var(--default-color);
}

/*--------------------------------------------------------------
# Legacy Testimonials
--------------------------------------------------------------*/
.legacy-testimonials {
  margin-top: 80px;
  padding: 60px 0;
  background: linear-gradient(
    135deg,
    var(--surface-color),
    color-mix(in srgb, var(--surface-color), var(--accent-color) 3%)
  );
  border-radius: 30px;
}

.legacy-testimonials h3 {
  font-size: 36px;
  font-weight: 700;
  color: var(--heading-color);
}

/*--------------------------------------------------------------
# Future Vision
--------------------------------------------------------------*/
.future-content h3 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--heading-color);
}

.future-content .lead {
  font-size: 20px;
  color: var(--accent-color);
  margin-bottom: 40px;
  font-weight: 500;
  line-height: 1.6;
}

.future-goals {
  margin-bottom: 40px;
}

.goal-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
  padding: 30px;
  background: var(--surface-color);
  border-radius: 20px;
  border: 2px solid color-mix(in srgb, var(--accent-color), transparent 90%);
  transition: all 0.3s ease;
}

.goal-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.goal-icon {
  width: 70px;
  height: 70px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.goal-icon i {
  font-size: 32px;
  color: var(--contrast-color);
}

.goal-content h5 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--heading-color);
}

.goal-content p {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  line-height: 1.6;
  margin-bottom: 0;
}

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

.cta-future .btn {
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
}

.btn.btn-primary.btn-lg {
  background: var(--accent-color);
  color: var(--contrast-color);
  border: none;
  box-shadow: 0 8px 25px rgba(236, 236, 236, 0.3);
  transition: all 0.3s ease;
}

.btn.btn-outline.btn-lg {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  box-shadow: none;
  transition: all 0.3s ease;
}

/*--------------------------------------------------------------
# Future Visual
--------------------------------------------------------------*/
.future-visual {
  position: relative;
}

.future-image-stack {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
}

.main-future-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.future-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.future-stat {
  text-align: center;
  color: white;
}

.future-stat .stat-number {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 8px;
  display: block;
}

.future-stat .stat-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

/*--------------------------------------------------------------
# Heritage CTA
--------------------------------------------------------------*/
.heritage-cta-content {
  padding: 80px 0;
}

.heritage-cta-content h2 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 30px;
  color: var(--heading-color);
}

.heritage-cta-content .lead {
  font-size: 22px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--default-color), transparent 10%);
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.heritage-quote {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.heritage-quote blockquote {
  background: linear-gradient(
    135deg,
    var(--surface-color),
    color-mix(in srgb, var(--surface-color), var(--accent-color) 8%)
  );
  padding: 50px;
  border-radius: 30px;
  border: 3px solid var(--accent-color);
  margin: 0;
  position: relative;
}

.heritage-quote blockquote p {
  font-size: 20px;
  font-style: italic;
  line-height: 1.7;
  color: var(--heading-color);
  margin-bottom: 25px;
}

.heritage-quote cite {
  font-size: 16px;
  color: var(--accent-color);
  font-weight: 600;
}

/*--------------------------------------------------------------
# Mobile Responsiveness
--------------------------------------------------------------*/
@media (max-width: 992px) {
  .story-page .hero .historical-stats {
    justify-content: center;
  }

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

  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 80px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .timeline-item .timeline-marker {
    left: 4px !important;
    right: auto !important;
  }

  .decade-header h3 {
    font-size: 28px;
  }

  .legacy-card .card-stats {
    flex-direction: column;
    gap: 15px;
  }

  .future-content h3 {
    font-size: 28px;
  }

  .overlay-stats {
    flex-direction: column;
    gap: 20px;
  }

  .heritage-cta-content h2 {
    font-size: 36px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .story-page .hero .historical-stats {
    flex-direction: column;
    gap: 20px;
  }

  .story-page .hero .historical-stats .stat-item {
    min-width: auto;
  }

  .historical-gallery .main-image img {
    height: 300px;
  }

  .historical-gallery .gallery-thumbnails {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .historical-gallery .thumb-item img {
    height: 100px;
  }

  .story-content h3 {
    font-size: 26px;
  }

  .timeline-content {
    padding: 20px;
  }

  .transformation-card {
    padding: 30px 20px;
  }

  .impact-section {
    padding: 40px 20px;
  }

  .impact-stat {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 20px;
  }

  .testimonial-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .decade-image img {
    height: 250px;
  }

  .decade-content h4 {
    font-size: 22px;
  }

  .legacy-card .card-content {
    padding: 30px 20px;
  }

  .goal-item {
    flex-direction: column;
    text-align: center;
    padding: 25px 20px;
  }

  .future-stat .stat-number {
    font-size: 36px;
  }

  .heritage-cta-content {
    padding: 60px 20px;
  }

  .heritage-cta-content h2 {
    font-size: 28px;
  }

  .heritage-cta-content .lead {
    font-size: 18px;
  }

  .heritage-quote blockquote {
    padding: 30px 20px;
  }

  .heritage-quote blockquote p {
    font-size: 18px;
  }
}

@media (max-width: 576px) {
  .story-page .hero .historical-stats .stat-number {
    font-size: 32px;
  }

  .date-badge {
    padding: 10px 15px;
    font-size: 12px;
  }

  .quote-section blockquote {
    padding: 25px 20px;
  }

  .quote-section blockquote p {
    font-size: 16px;
    padding-left: 15px;
  }

  .timeline-item {
    padding-left: 60px !important;
  }

  .timeline-marker {
    width: 50px;
    height: 50px;
  }

  .timeline-marker i {
    font-size: 20px;
  }

  .decade-header h3 {
    font-size: 24px;
  }

  .legacy-card .card-header {
    padding: 25px 20px;
  }

  .legacy-card .card-header h4 {
    font-size: 20px;
  }

  .main-future-img {
    height: 300px;
  }

  .future-stat .stat-number {
    font-size: 28px;
  }

  .heritage-quote blockquote p {
    font-size: 16px;
  }
}

/*--------------------------------------------------------------
# Story Images Stack
--------------------------------------------------------------*/
.story-images-stack {
  position: relative;
}

.story-images-stack .story-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.story-images-stack .story-image-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.story-images-stack .story-image-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.story-images-stack .story-image-container:hover img {
  transform: scale(1.05);
}

.story-images-stack .story-image-container .image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    transparent 100%
  );
  padding: 30px 20px 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.story-images-stack .story-image-container:hover .image-overlay {
  opacity: 1;
}

.story-images-stack .overlay-content h5 {
  color: var(--contrast-color);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.story-images-stack .overlay-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Story Section Adjustments
--------------------------------------------------------------*/
.story-section {
  position: relative;
}

.story-section .story-content h3 {
  color: var(--heading-color);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
}

.story-section .story-content .lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--default-color);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.story-section .story-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 1.2rem;
  text-align: justify;
}

/*--------------------------------------------------------------
# Responsive Adjustments
--------------------------------------------------------------*/
@media (max-width: 991px) {
  .story-section .story-content {
    margin-bottom: 2rem;
  }

  .story-images-stack .story-image-container {
    margin-bottom: 1.5rem !important;
  }

  .story-section .story-content h3 {
    font-size: 1.75rem;
  }

  .story-section .story-content .lead {
    font-size: 1.05rem;
  }
}

@media (max-width: 768px) {
  .story-section .story-content h3 {
    font-size: 1.5rem;
  }

  .story-section .story-content .lead {
    font-size: 1rem;
  }

  .story-section .story-content p {
    font-size: 0.95rem;
  }

  .story-images-stack .overlay-content h5 {
    font-size: 1rem;
  }

  .story-images-stack .overlay-content p {
    font-size: 0.85rem;
  }
}
