/* Import shared variables and navbar/footer styles */
@import url("about.css");

/* ==============================
   Hero Section
============================== */
.team-hero {
    height: 48vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("../static/uploads/about_hero.webp") center/cover no-repeat;
    position: relative;
    overflow: hidden;
    background-size: auto; /* keeps original image size */
}

.team-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.25));
}

.team-hero .hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 1rem 1.25rem;
}

.team-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
}

.team-hero p {
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* ==============================
   Team Grid
============================== */
.team {
    padding: 3rem 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    justify-items: center;
}

.team-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    text-align: center;
    padding: 1.5rem 1.25rem;
    max-width: 320px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.1);
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.team-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--primary-dark);
}

.team-card .role {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.team-card .bio {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ==============================
   Military Support Section
============================== */
.military-support {
  padding: 3.5rem 2rem;
  background: #f5f7fa;
}

.support-split {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

/* --- Default (desktop) --- */
.support-gallery {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr; /* two large columns */
  grid-auto-rows: minmax(250px, 1fr);
  gap: 1.25rem;
}

.support-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.support-item:hover img {
  transform: scale(1.04);
}

/* Keeps the collage shape */
.support-item:nth-child(1) {
  grid-row: 1 / span 2;
}

/* --- Tablet & Mobile --- */
@media (max-width: 900px) {
  .support-split {
    flex-direction: column;
  }

  .support-gallery {
    grid-template-columns: repeat(2, 1fr); /* stay 2-column layout */
    grid-auto-rows: minmax(160px, 1fr); /* smaller but still proportionate */
    gap: 0.75rem;
  }

  .support-item:nth-child(1) {
    grid-row: auto; /* remove forced tall image */
  }
}

/* --- Small mobile (portrait) --- */
@media (max-width: 600px) {
  .support-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(120px, 1fr);
    gap: 0.5rem;
  }
}

.support-text {
  flex: 1;
  max-width: 600px;
}

.support-text h2 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-size: 1.8rem;
  position: relative;
}

.support-text h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--secondary);
  margin-top: 0.5rem;
}

.support-text p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.support-text blockquote {
  margin: 1.5rem 0 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--secondary);
  color: var(--text-gray);
  font-style: italic;
  line-height: 1.5;
}

.student-support {
  padding: 3.5rem 2rem;
}
