/* css/about.css */
/* ====================================
   ABOUT PAGE SPECIFIC STYLES
   Fully Responsive - Updated for All Devices
   ==================================== */

:root {
  --primary-color: #003E7E;
  --primary-dark: #002B57;
  --primary-light: #0A5BB5;
  --secondary-color: #E31E24;
  --secondary-dark: #B9151A;
  --secondary-light: #FF4A4F;
  --dark-color: #0F172A;
  --dark-alt: #1E293B;
  --gray-dark: #334155;
  --gray-medium: #64748B;
  --gray-light: #CBD5E1;
  --light-color: #F8FAFC;
  --white-color: #FFFFFF;
  --success-color: #16A34A;
  --warning-color: #F59E0B;
  --danger-color: #DC2626;
  --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 12px 40px rgba(0, 0, 0, 0.15);
  --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --font-primary: 'Inter', 'Segoe UI', sans-serif;
  --font-heading: 'Inter', 'Segoe UI', sans-serif;
  --max-width: 1280px;
  --section-padding: clamp(60px, 10vw, 100px) 0;
  --container-padding: 0 24px;
}

/* ---------- HERO SECTION (Fully Responsive) ---------- */
.about-hero {
  position: relative;
  height: 100vh; /* Fallback */
  height: 100dvh; /* Use dynamic viewport height for mobile */
  min-height: 600px;
  max-height: 1080px;
  overflow: hidden;
  z-index: 1;
  margin-top: 0;
}

.about-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.about-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 8s ease;
  animation: kenburns 20s infinite alternate;
}

@keyframes kenburns {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.hero-particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.about-hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1200px;
  color: var(--white-color);
  z-index: 3;
  text-align: center;
  padding-top: env(safe-area-inset-top); /* For notched phones */
}

/* Responsive Hero Content */
@media (max-width: 768px) {
  .about-hero-content {
    width: 95%;
    top: 55%; /* Slightly lower to avoid header */
  }
}
@media (max-width: 480px) {
  .about-hero-content {
    top: 50%;
    width: 92%;
  }
}

.breadcrumb {
  margin-bottom: clamp(15px, 3vh, 25px);
  margin-top: clamp(10px, 4vh, 50px);
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: white;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}
.breadcrumb a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}
.breadcrumb a:hover { color: var(--white-color); }
.breadcrumb span {
  color: rgba(255,255,255,0.8);
  margin: 0 4px;
}
.breadcrumb .current {
  color: var(--secondary-color);
  font-weight: 500;
  white-space: nowrap;
}

.hero-title {
  font-size: clamp(2rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: clamp(15px, 3vh, 25px);
  color: var(--white-color);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  margin-bottom: clamp(25px, 5vh, 40px);
  opacity: 0.95;
  color: var(--white-color);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 5px rgba(0,0,0,0.3);
  padding: 0 10px;
}

/* Responsive Hero Stats */
.hero-stats {
  display: flex;
  gap: clamp(15px, 3vw, 30px);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
}
.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  padding: clamp(12px, 2vw, 15px) clamp(15px, 3vw, 25px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 120px;
  flex: 1 0 auto;
  max-width: 180px;
}
@media (max-width: 640px) {
  .hero-stat-item {
    min-width: 100px;
    padding: 10px 12px;
  }
  .hero-stats {
    gap: 10px;
  }
}
@media (max-width: 480px) {
  .hero-stat-item {
    min-width: calc(50% - 10px);
    max-width: none;
    flex: 1 1 40%;
  }
}

.hero-stat-value {
  font-size: clamp(1.5rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--secondary-color);
  line-height: 1.2;
}
.hero-stat-label {
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.9);
  text-align: center;
}

/* ---------- General Section Styles ---------- */
.section {
  padding: var(--section-padding);
  position: relative;
  z-index: 2;
  background-color: var(--white-color);
}
.section-light { background-color: var(--light-color); }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--container-padding);
}
@media (min-width: 768px) {
  .container { padding: 0 30px; }
}

.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 8vw, 60px);
}
.section-subtitle {
  display: inline-block;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary-color);
  margin-bottom: 10px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 15px;
}
.section-header h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
}
.section-header p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--gray-medium);
  max-width: 700px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ---------- Content Block (Fully Responsive) ---------- */
.content-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 6vw, 60px);
  align-items: center;
}
@media (min-width: 992px) {
  .content-block { grid-template-columns: 1fr 1fr; }
}
.content-block.reverse {
  direction: ltr;
}
@media (min-width: 992px) {
  .content-block.reverse { direction: rtl; }
  .content-block.reverse .content-text { direction: ltr; }
}

.content-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-medium);
  height: 100%;
  min-height: 300px;
}
@media (max-width: 768px) {
  .content-image { min-height: 250px; }
}
.img-placeholder {
  width: 100%;
  height: 100%;
}
.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.img-placeholder:hover img { transform: scale(1.05); }

.content-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}
.content-text .lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 500;
  color: var(--gray-dark);
  margin-bottom: 20px;
}
.content-text p {
  margin-bottom: 20px;
  color: var(--gray-dark);
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.6;
}

.about-features {
  display: flex;
  gap: clamp(15px, 3vw, 25px);
  flex-wrap: wrap;
  margin-top: 30px;
}
.about-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: clamp(0.85rem, 2vw, 1rem);
}
.about-feature svg {
  width: 20px;
  height: 20px;
  stroke: var(--secondary-color);
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .about-feature svg { width: 24px; height: 24px; }
}

/* ---------- Icon Cards (Responsive) ---------- */
.icon-card {
  background: var(--white-color);
  padding: clamp(30px, 5vw, 40px) clamp(20px, 4vw, 30px);
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.icon-card:hover { transform: translateY(-10px) scale(1.02); }
.icon {
  width: clamp(60px, 10vw, 70px);
  height: clamp(60px, 10vw, 70px);
  background: var(--light-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--primary-color);
  transition: all 0.4s ease;
}
.icon-card:hover .icon {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: rotateY(180deg) scale(1.1);
}
.icon-card h4 {
  font-size: clamp(1.2rem, 3vw, 1.3rem);
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}
.icon-card p {
  color: var(--gray-medium);
  line-height: 1.6;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

/* ---------- Grid Utilities ---------- */
.grid-2, .grid-3, .values-grid, .impact-grid, .team-grid {
  display: grid;
  gap: clamp(20px, 4vw, 30px);
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.values-grid { grid-template-columns: 1fr; }
.impact-grid { grid-template-columns: 1fr; }
.team-grid { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-3, .values-grid, .impact-grid, .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .values-grid { grid-template-columns: repeat(4, 1fr); }
  .impact-grid { grid-template-columns: repeat(4, 1fr); }
  .team-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Value Cards ---------- */
.value-card {
  background: var(--white-color);
  padding: clamp(20px, 4vw, 30px) clamp(15px, 3vw, 20px);
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid transparent;
}
.value-card:hover { transform: translateY(-8px) scale(1.02); }
.value-icon {
  margin-bottom: 20px;
  color: var(--secondary-color);
  transition: all 0.4s ease;
}
.value-card:hover .value-icon {
  transform: scale(1.2) rotate(5deg);
  color: var(--primary-color);
}
.value-card h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.2rem);
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
}
.value-card p {
  font-size: clamp(0.85rem, 2vw, 0.9rem);
  color: var(--gray-medium);
  line-height: 1.5;
}

/* ---------- Tengiz Stats ---------- */
.stats-mini-grid {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin: 25px 0;
}
.stat-mini-item {
  background: var(--light-color);
  padding: clamp(12px, 3vw, 15px) clamp(8px, 2vw, 10px);
  border-radius: 8px;
  flex: 1 1 auto;
  min-width: 100px;
  text-align: center;
}
.stat-mini-value {
  display: block;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 800;
  color: var(--primary-color);
}
.stat-mini-label {
  font-size: clamp(0.65rem, 1.5vw, 0.8rem);
  color: var(--gray-medium);
}
.field-characteristics {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.characteristic {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  flex-wrap: wrap;
}

/* ---------- Timeline (Responsive) ---------- */
.timeline-wrapper { position: relative; margin: 0 auto; padding: 20px 0; }
.timeline-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}
@media (min-width: 768px) { .timeline-controls { justify-content: flex-end; } }
.timeline-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white-color);
  border: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}
.timeline-arrow:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}
.timeline-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 5px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.timeline-item {
  flex: 0 0 260px;
  background: var(--white-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-light);
  border-left: 4px solid var(--secondary-color);
}
@media (min-width: 768px) { .timeline-item { flex: 0 0 280px; padding: 25px; } }
.timeline-year {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

/* ---------- Community & Global Presence (Fully Responsive) ---------- */
.presence-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
@media (min-width: 992px) { .presence-grid { grid-template-columns: 1fr 1.5fr; gap: 50px; } }

.presence-stats { display: flex; flex-direction: column; gap: 20px; }
.stat-card-large {
  background: var(--white-color);
  padding: clamp(20px, 4vw, 30px);
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  display: flex;
  align-items: center;
  gap: clamp(15px, 3vw, 25px);
  transition: all 0.4s ease;
}
@media (max-width: 480px) {
  .stat-card-large { flex-direction: column; text-align: center; }
  .stat-content { align-items: center; }
}
.stat-icon {
  width: clamp(60px, 10vw, 70px);
  height: clamp(60px, 10vw, 70px);
  background: var(--light-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  flex-shrink: 0;
}
.stat-number { font-size: clamp(1.8rem, 5vw, 2.2rem); font-weight: 800; color: var(--primary-color); }
.stat-label { font-size: clamp(0.9rem, 2vw, 1rem); color: var(--gray-medium); }

.presence-locations { display: flex; flex-direction: column; gap: 20px; }
.location-card {
  background: var(--white-color);
  border-radius: 12px;
  padding: clamp(20px, 4vw, 25px);
  box-shadow: var(--shadow-light);
  display: flex;
  gap: 20px;
  transition: all 0.4s ease;
}
@media (max-width: 768px) {
  .location-card { flex-direction: column; align-items: center; text-align: center; }
  .location-impact { align-items: center; }
  .location-projects { justify-content: center; }
}
.location-flag {
  width: clamp(60px, 12vw, 80px);
  height: clamp(60px, 12vw, 80px);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--white-color);
}
.location-info h4 { font-size: clamp(1.2rem, 3vw, 1.3rem); color: var(--primary-color); }
.location-role { font-size: clamp(0.85rem, 2vw, 0.9rem); color: var(--secondary-color); }

/* Impact Stories Carousel */
.stories-carousel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}
@media (min-width: 768px) { .stories-carousel { grid-template-columns: repeat(3, 1fr); } }
.story-card {
  background: var(--white-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all 0.4s ease;
}
.story-image { height: 200px; overflow: hidden; }
.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.story-card:hover .story-image img { transform: scale(1.1); }
.story-content { padding: 25px; }
.story-content h4 { font-size: clamp(1.1rem, 2.5vw, 1.2rem); color: var(--primary-color); }

/* ---------- CTA Section ---------- */
.cta-section {
  padding: clamp(60px, 12vw, 120px) 0;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  color: var(--white-color);
  text-align: center;
}
@media (min-width: 768px) { .cta-section { background-attachment: fixed; } }
.cta-section h2 {
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 700;
  margin-bottom: clamp(15px, 3vh, 20px);
}
.cta-section p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: clamp(25px, 5vh, 40px);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .cta-buttons { flex-direction: column; align-items: center; gap: 15px; }
  .cta-buttons .btn, .cta-buttons .cc-btn { width: 100%; max-width: 280px; }
}
.cc-btn-outlinee{
   background: transparent;
  color: black;
  border: 2px solid var(--secondary-color);
  padding: clamp(12px, 2vw, 15px) clamp(24px, 4vw, 30px);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.cc-btn-outlinee:hover {
  background: var(--white-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}


/* ---------- Buttons & Utilities ---------- */
.btn {
  padding: clamp(12px, 2vw, 15px) clamp(24px, 4vw, 30px);
  font-size: clamp(0.9rem, 2vw, 1rem);
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
}
.btn-primary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: none;
}
.btn-primary:hover {
  background: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-2px);
}
.btn-secondary {
  background: var(--secondary-color);
  color: var(--white-color);
}
.btn-outline-dark {
  background: transparent;
  color: var(--white-color);
  border: 2px solid var(--white-color);
}
.btn-outline-dark:hover {
  background: var(--white-color);
  color: var(--primary-color);
}
.cc-btn-outline {
  background: transparent;
  color: var(--white-color);
  border: 2px solid var(--white-color);
  padding: clamp(12px, 2vw, 15px) clamp(24px, 4vw, 30px);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.cc-btn-outline:hover {
  background: var(--white-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}
.text-center { text-align: center;
  margin-top: 20px;
  gap: 15px;
 }
/* Fix for button container - add this to your about.css file */

/* Button container responsive spacing */
.text-center[data-animate="fade-up"] {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Mobile styles - stack buttons vertically */
@media (max-width: 640px) {
  .text-center[data-animate="fade-up"] {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 20px;
  }
  
  .text-center[data-animate="fade-up"] .btn,
  .text-center[data-animate="fade-up"] .cc-btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    text-align: center;
    display: block;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .text-center[data-animate="fade-up"] {
    gap: 12px;
    padding: 0 15px;
  }
  
  .text-center[data-animate="fade-up"] .btn,
  .text-center[data-animate="fade-up"] .cc-btn {
    max-width: 100%;
    font-size: 0.95rem;
    padding: 14px 20px;
  }
}

/* Fix for the button classes you're using */
.cc-btn-outlinee {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 15px 30px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.cc-btn-outlinee:hover {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
}

.bt {
  /* Keep your existing bt class or add default styles */
  background-color: transparent;
}
/* ---------- Animations ---------- */
[data-animate] {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translate(0) scale(1);
}
[data-animate="fade-up"] { transform: translateY(30px); }
[data-animate="slide-left"] { transform: translateX(-30px); }
[data-animate="slide-right"] { transform: translateX(30px); }
[data-animate="scale-in"] { transform: scale(0.9); }
@media (min-width: 768px) {
  [data-animate="slide-left"] { transform: translateX(-50px); }
  [data-animate="slide-right"] { transform: translateX(50px); }
}

/* ---------- Misc ---------- */
.site-header.scrolled {
  background: rgba(0, 30, 60, 0.95);
  backdrop-filter: blur(10px);
}

/* High-resolution screens */
@media (min-width: 1920px) {
  .about-hero { max-height: 1000px; }
}/* ========== IPHONE / IOS FIXES ========== */

/* Fix for timeline container on iOS */
.timeline-container {
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.timeline-item {
  scroll-snap-align: start;
  -webkit-transform: translateZ(0); /* Force hardware acceleration */
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Ensure timeline items are visible on iPhone */
@media (max-width: 768px) {
  .timeline-wrapper {
    width: 100%;
    overflow: hidden;
  }
  
  .timeline-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 20px 15px;
    margin: 0 -15px;
    width: calc(100% + 30px);
  }
  
  .timeline-item {
    flex: 0 0 260px;
    min-width: 260px;
    margin-right: 15px;
    opacity: 1 !important; /* Force visibility */
    visibility: visible !important;
  }
  
  /* Fix for small iPhones (SE, 5, etc) */
  @media (max-width: 375px) {
    .timeline-item {
      flex: 0 0 240px;
      min-width: 240px;
    }
  }
}

/* Force timeline items to be visible even if JS fails */
.timeline-item {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Fix for section visibility on iPhone */
.section {
  display: block;
  width: 100%;
  overflow: hidden;
}
.timeline-section {
  min-height: 400px;
}
/* Ensure container doesn't hide content */
.container {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

/* Fix for flexbox gap on older iOS */
@supports not (gap: 20px) {
  .timeline-container {
    margin-right: -20px;
  }
  .timeline-item {
    margin-right: 20px;
  }
}/* ========== TIMELINE ARROW FIXES ========== */

/* Ensure arrows are visible and clickable */
.timeline-arrow {
  width: 44px;
  height: 44px;
  background: var(--white-color);
  border: 2px solid var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.timeline-arrow svg {
  width: 24px;
  height: 24px;
  stroke: var(--secondary-color);
  stroke-width: 2;
  fill: none;
}

.timeline-arrow:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
}

.timeline-arrow:hover svg {
  stroke: white;
}

.timeline-arrow.left svg {
  transform: rotate(180deg);
}

/* Fix for iOS click events */
.timeline-arrow {
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  touch-action: manipulation;
}

/* Ensure timeline container doesn't block arrows */
.timeline-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
}

.timeline-controls {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-bottom: 20px;
  z-index: 5;
  position: relative;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .timeline-controls {
    justify-content: center;
    margin-bottom: 15px;
  }
  
  .timeline-arrow {
    width: 40px;
    height: 40px;
  }
  
  .timeline-arrow svg {
    width: 20px;
    height: 20px;
  }
}

/* Fix for pointer-events none on disabled state */
.timeline-arrow[style*="opacity: 0.5"] {
  pointer-events: none;
  opacity: 0.5 !important;
  cursor: default;
}

/* Ensure timeline items are visible */
.timeline-item {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Remove animation conflict */
.timeline-item[data-animate] {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.timeline-item[data-animate].visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}