/* =========================
   About Us Page Styles - Refined with Card Design
==========================*/

.about-content-section {
  padding: 80px 0;
  background: #f8fafc;
}

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

/* Introduction Section - Card Design */
.about-intro {
  text-align: center;
  margin-bottom: 80px;
  padding: 60px 50px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.about-intro h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 30px;
  line-height: 1.2;
}

.intro-description {
  font-size: 1.125rem;
  color: #4a5568;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

/* Statistics */
.stats-container {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 40px;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 8px;
  display: block;
}

.stat-label {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 500;
}

/* Main Sections - Harvard Style */
.main-sections {
  margin-bottom: 80px;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.section-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  position: relative;
  padding: 60px 40px;
  background: #ffffff;
  border-radius: 20px;
}

.section-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.section-content h3 {
  font-size: 5rem;
  font-weight: 400;
  color: #1a202c;
  margin-bottom: 0;
  margin-top: 0;
  line-height: 1.1;
  font-family: "Georgia", "Times New Roman", serif;
  letter-spacing: -0.02em;
}

.section-content p {
  font-size: 1.125rem;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 30px;
  font-weight: 400;
  margin-top: 0;
}

/* Learn More Button - Harvard Style */
.learn-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: transparent;
  color: #222;
  text-decoration: none;
  border: none;
  font-weight: 500;
  font-size: 1.25rem;
  box-shadow: none;
  transition: color 0.2s;
  padding: 0;
}


.btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.learn-more-btn:hover .btn-icon {
  background: #374151;
}

.btn-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.learn-more-btn .btn-text {
  position: relative;
  background-image: linear-gradient(#222, #222);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: left bottom;
  transition: background-size 0.3s cubic-bezier(0.4,0,0.2,1);
}

.learn-more-btn:hover .btn-text {
  background-size: 100% 1px;
}

/* Section Dividers  */
.section-divider {
  position: absolute;
  bottom: 0;
  left: 40px;
  right: 40px;
  height: 4px;
  background: #000000;
  border-radius: 0;
}

/* Specific Layout Adjustments */
.section-row:nth-child(1) {
  /* Mission and History - Title left, content right */
}

.section-row:nth-child(2) {
  /* Leadership and Staff - Content left, title right */
}

.section-row:nth-child(2) .left-content {
  order: 1;
}

.section-row:nth-child(2) .right-content {
  order: 2;
  text-align: left;
}

.section-row:nth-child(3) {
  /* Campus and Facilities - Title left, content right */
}

/* Right content alignment for sections with titles on right */
.section-row:nth-child(2) .right-content h3 {
  text-align: left;
  margin-bottom: 0;
}

/* Remove Learn More from right side title-only sections */
.section-row:nth-child(2) .right-content .learn-more-btn {
  display: none;
}

/* Core Values Section - Card Design */
.core-values-section {
  background: #ffffff;
  border-radius: 20px;
  padding: 60px 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.values-header {
  text-align: center;
  margin-bottom: 50px;
}

.values-header h3 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 15px;
}

.values-header p {
  font-size: 1.125rem;
  color: #6b7280;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.value-card {
  text-align: center;
  padding: 30px 20px;
  background: #f8fafc;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.2);
}

.value-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  transition: transform 0.3s ease;
}

.value-card:hover .value-icon {
  transform: scale(1.1);
}

.value-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.value-icon.honor {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.value-icon.excellence {
  background: linear-gradient(135deg, #10b981, #047857);
}

.value-icon.service {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.value-icon.knowledge {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.value-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 15px;
}

.value-card p {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

/* Animation States */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animation will now work properly */

/* Responsive Design */
@media (max-width: 1024px) {
  .about-intro {
    padding: 50px 40px;
  }

  .stats-container {
    gap: 50px;
  }

  .section-row {
    gap: 60px;
    padding: 50px 30px;
  }

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

  .section-divider {
    left: 30px;
    right: 30px;
  }

  .core-values-section {
    padding: 50px 40px;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* -------------------------
   Scroll Animation Base
---------------------------*/
.animate-on-scroll {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Fade‑up for intro & core values */
.about-intro,
.core-values-section {
  transform: translateY(30px);
}
.animate-visible.about-intro,
.animate-visible.core-values-section {
  opacity: 1;
  transform: translateY(0);
}

/* Slide from left/right for middle cards */
.section-content.left-content {
  transform: translateX(-100px);
}
.section-content.right-content {
  transform: translateX(100px);
}
.section-row.animate-visible .left-content,
.section-row.animate-visible .right-content {
  opacity: 1;
  transform: translateX(0);
}

/* if you want to stagger via delay attribute: */
[data-delay] {
  transition-delay: calc(0.2s + var(--delay, 0ms));
}
[data-delay="0"]   { --delay: 0ms; }
[data-delay="200"] { --delay: 200ms; }
[data-delay="400"] { --delay: 400ms; }
[data-delay="600"] { --delay: 600ms; }
[data-delay="800"] { --delay: 800ms; }

@media (max-width: 768px) {
  .about-content-section {
    padding: 60px 0;
  }

  .container {
    padding: 0 15px;
  }

  .about-intro {
    padding: 40px 25px;
    margin-bottom: 60px;
  }

  .about-intro h2 {
    font-size: 2rem;
  }

  .intro-description {
    font-size: 1rem;
  }

  .stats-container {
    flex-direction: column;
    gap: 30px;
  }

  .section-row {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
    padding: 40px 20px;
  }

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

  .section-divider {
    left: 20px;
    right: 20px;
  }

  .core-values-section {
    padding: 40px 25px;
  }

  .values-header h3 {
    font-size: 1.75rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 480px) {
  .about-intro {
    padding: 30px 20px;
  }

  .about-intro h2 {
    font-size: 1.75rem;
  }

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

  .learn-more-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .core-values-section {
    padding: 30px 20px;
  }

  .values-header h3 {
    font-size: 1.5rem;
  }

  .value-card {
    padding: 25px 15px;
  }
}
