/* About Page Specific Styles */

.hero-small {
    padding-top: calc(var(--top-header-h) + var(--header-h) + 2rem);
    padding-bottom: 4rem;
    min-height: auto;
}

.bg-light {
    background-color: var(--color-bg-alt, #f9f9f9);
}

.italic {
    font-style: italic;
}

.text-sm {
    font-size: 0.875rem;
}

.opacity-70 {
    opacity: 0.7;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-5 {
    margin-top: 1.25rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

.ml-4 {
    margin-left: 1rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.text-green {
    color: var(--color-accent-green, #10b981);
}

.about-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
}

/* Green card: light text so it’s readable on dark green */
.about-card.bg-green {
    background: var(--color-deuraligreen, #1B5E20);
    color: #fff;
}

.about-card.bg-green .why-us-title,
.about-card.bg-green .section-text,
.about-card.bg-green strong,
.about-card.bg-green .text-sm {
    color: #fff;
}

.about-card.bg-green .opacity-70 {
    opacity: 0.85;
    color: rgba(255, 255, 255, 0.9);
}

.about-card.bg-green .testimonial-quote-icon {
    color: rgba(255, 255, 255, 0.4);
}

.mobile-app-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.app-btn img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.app-btn:hover img {
    transform: translateY(-2px);
}

.why-us-list {
    list-style: none;
    padding: 0;
}

.why-us-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

/* Enhancements */
.principles-grid,
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.principle-card,
.value-card {
    background: var(--bg-elevated);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all var(--duration-normal) var(--ease-out-quart);
    height: 100%;
}

.principle-card:hover,
.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.principle-icon,
.value-icon {
    width: 48px;
    height: 48px;
    background: rgba(27, 94, 32, 0.08);
    color: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
}

.principle-title,
.value-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
    color: var(--text);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-2xl) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: var(--space-lg) var(--space-2xl);
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: var(--bg-elevated);
    border: 2px solid var(--accent);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item-left {
    left: 0;
    text-align: right;
}

.timeline-item-right {
    left: 50%;
    text-align: left;
}

.timeline-item-right::after {
    left: -10px;
}

.timeline-date {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

/* ===== Team — Premium Redesign ===== */
.team-section-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* Key positions: larger cards in 4-col grid */
.team-grid-featured {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

/* Regular members: compact 5-col grid */
.team-grid-members {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
}

/* Staff: 4-col grid */
.team-grid-staff {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.team-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
  cursor: default;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(27, 94, 32, 0.15);
}

/* Chairman card — accent border glow */
.team-card-chairman {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 0 0 2px var(--accent);
}

.team-card-chairman:hover {
  box-shadow: 0 20px 50px rgba(27, 94, 32, 0.18), 0 0 0 2px var(--accent);
}

.team-img-wrapper {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--bg-subtle);
  overflow: hidden;
}

.team-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.team-card:hover .team-img-wrapper img {
  transform: scale(1.08);
}

/* Gradient overlay for name/role on the photo */
.team-img-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.25) 55%, transparent 100%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.team-card:hover .team-img-wrapper::after {
  opacity: 0.9;
}

/* Info sits on top of the gradient */
.team-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md) var(--space-lg);
  z-index: 1;
  transform: translateY(0);
  transition: transform 0.4s var(--ease-out-expo);
}

.team-card:hover .team-info {
  transform: translateY(-4px);
}

.team-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
}

.team-role {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Chairman's role badge — gold accent */
.team-card-chairman .team-role {
  color: var(--accent-warm);
  font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .team-grid-featured {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid-members {
    grid-template-columns: repeat(3, 1fr);
  }
  .team-grid-staff {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .team-grid-featured,
  .team-grid-staff {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  .team-grid-members {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  .team-info {
    padding: var(--space-sm) var(--space-md);
  }
  .team-name {
    font-size: 0.875rem;
  }
  .team-role {
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
    .hero-small {
        padding-block: 4rem 3rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .app-store-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .app-btn.ml-4 {
        margin-left: 0;
    }
}