/* =========================================
   ABOUT PAGE SPECIFIC STYLES (RESPONSIVE)
   ========================================= */

/* --- 1. Hero Section --- */
.about-hero {
  position: relative;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: white;
  padding: 5rem 1.5rem; /* Reduced side padding for mobile */
  text-align: center;
  margin-bottom: 4rem;
  overflow: hidden;
}

.about-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive Font Size */
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.about-hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.95;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- 2. General Section Styling --- */
.about-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.about-section {
  margin-bottom: 5rem;
}

.about-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

/* --- 3. Values Grid (Auto-Responsive) --- */
.values-grid {
  display: grid;
  /* Auto-fit makes it responsive without media queries */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 2rem;
  margin: 2rem 0;
}

.value-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, border-color 0.3s ease;
  height: 100%; /* Ensures equal height */
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-light);
  box-shadow: var(--shadow-md);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  background: rgba(16, 185, 129, 0.1); 
  width: 60px; height: 60px;
  line-height: 60px;
  text-align: center;
  border-radius: 12px;
}

/* --- 4. Team Grid (Auto-Responsive) --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.team-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.team-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* --- 5. TIMELINE (Fully Responsive Logic) --- */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* Mobile & Tablet Layout (Default) */
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 20px; /* Line stays on the left */
  width: 3px;
  background: #E2E8F0;
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 55px; /* Push content away from the line */
}

.timeline-year {
  /* Mobile: Date sits nicely above the content */
  display: inline-block;
  background: var(--brand);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 10px rgba(10, 29, 86, 0.15);
  /* Ensure it doesn't overlap the line */
  position: relative;
  z-index: 2;
}

.timeline-content {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

/* Timeline Dot (Visual Anchor) */
.timeline-item::after {
  content: '';
  position: absolute;
  left: 21.5px; /* Center on the 3px line */
  top: 12px; /* Align with the Date bubble */
  width: 14px; height: 14px;
  background: white;
  border: 3px solid var(--brand);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

/* --- 6. DESKTOP ONLY OVERRIDES --- */
@media (min-width: 850px) {
  
  /* Center the Vertical Line */
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  /* Reset Item Widths */
  .timeline-item {
    width: 50%;
    margin-bottom: 0;
    padding-bottom: 4rem; /* Space between rows */
  }

  /* Adjust Dot Position for Center Line */
  .timeline-item::after {
    left: 50%; 
    top: 24px; /* Align with content box top */
  }

  /* --- Left Side Items (Odd) --- */
  .timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-left: 0;
    padding-right: 50px; /* Space for the line */
  }

  /* Move Date to the RIGHT side of the line */
  .timeline-item:nth-child(odd) .timeline-year {
    position: absolute;
    top: 24px;
    right: -160px; /* Push date to opposite side */
    width: 110px;
    text-align: left;
    background: transparent;
    color: var(--accent); /* Change style for desktop elegance */
    padding: 0;
    box-shadow: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* --- Right Side Items (Even) --- */
  .timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
    padding-left: 50px; /* Space for the line */
  }

  /* Move Date to the LEFT side of the line */
  .timeline-item:nth-child(even) .timeline-year {
    position: absolute;
    top: 24px;
    left: -160px; /* Push date to opposite side */
    width: 110px;
    text-align: right;
    background: transparent;
    color: var(--accent);
    padding: 0;
    box-shadow: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
}