/* ==============================
   Variables
============================== */
:root {
    --black: #000;
    --primary-dark: #345944;
    --primary-light: #B0BFB5;
    --secondary: #D13532;
    --secondary-dark: #982624;
    --text-gray: #798C85;
    --white: #FEFEFE;
    --muted: #6b766f;
    --container: 1100px;
    --border-radius: 10px;
    --transition: 0.3s ease;
}

/* ==============================
   Reset / Base Styles
============================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--black);
    background: #f1f1f1;
    line-height: 1.6;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* ==============================
   Header & Navigation
============================== */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: var(--white);
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 100;
}

.logo {
    height: 90px;
    width: auto;
    object-fit: contain;
}
/* ==============================
   Navbar 
============================== */
nav#navbar {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

nav#navbar a,
nav#navbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;             /* unified height */
    padding: 0 1rem;          /* horizontal padding */
    font-size: 1rem;          /* unified font size */
    font-weight: 600;         /* unified weight */
    border-radius: 12px;      /* unified border radius */
    transition: background 0.3s ease, color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

nav#navbar a {
    color: var(--black);
    background: transparent;
}

nav#navbar a.active {
    border-bottom: 3px solid var(--primary-dark);
    color: var(--primary-dark);
}

nav#navbar button {
    background: var(--secondary);
    color: var(--white);
    border: none;
}

nav#navbar button:hover {
    background: var(--secondary-dark);
}

/* Hamburger for mobile */
#hamburger {
    display: none;
    width: 34px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

#hamburger span {
    display: block;
    height: 4px;
    background: var(--black);
    border-radius: 3px;
}

/* Responsive navbar toggle */
@media (max-width: 900px) {
    #hamburger { display: flex; }

    nav#navbar {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        background: var(--white);
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }

    nav#navbar.active { display: flex; }
    nav#navbar a,
    nav#navbar button { width: 100%; padding: 0.7rem 1rem; border-radius: 6px; }
}

/* Hamburger for mobile */
#hamburger {
    display: none;
    width: 34px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}
#hamburger span {
    display: block;
    height: 4px;
    background: var(--black);
    border-radius: 3px;
}

/* ==============================
   Container Helper
============================== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 2rem;
}

/* ==============================
   Hero Section
============================== */
.about-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 */
}

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

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

.about-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0.6px;
    margin-bottom: 0.5rem;
}

.about-hero p {
    font-weight: 600;
    max-width: 900px;
    margin: 0.5rem auto 0;
    color: rgba(255, 255, 255, 0.9);
}

/* ==============================
   Leadership Section
============================== */
.leadership {
    background: var(--white);
    padding: 2.5rem 0;
}

.leadership h2 {
    color: var(--primary-dark);
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.leadership p {
    max-width: 900px;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

/* Leadership Cards Grid */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: start;
}

.leader-card {
    background: #fafafa;
    border-radius: var(--border-radius);
    padding: 0.75rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    transition: var(--transition);
}

.leader-card:hover {
    transform: translateY(-3px);
}

.leader-card img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.leader-info h3 {
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.leader-info p {
    margin: 0;
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ==============================
   Split Sections (Team / Experience)
============================== */
.spacer { height: 28px; }

.split-section .container {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.split-section {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem;
}

.split-section .split-text { flex: 1; }
.split-section .split-image { flex: 1; }

.split-section .split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.split-section .split-image img:hover {
    transform: scale(1.02);
}

.split-section .split-image {
  min-width: 300px; /* prevents excessive shrinking */
}

.split-section h2 {
    color: var(--primary-dark);
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

.split-section p {
    color: var(--muted);
    line-height: 1.6;
}


/* Add left padding only when text is on the left side */
.split-section:not(.reverse) .split-text {
  padding-left: 1rem;
}
@media (max-width: 900px) {
  .split-section .container {
    flex-direction: column;
  }

  .split-section .split-text,
  .split-section.reverse .split-text {
    order: 0;
    padding-left: 0;
    text-align: left; /* or center if you prefer */
  }

  .split-section .split-image,
  .split-section.reverse .split-image {
    order: 1;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    margin: 1rem auto 0;
  }

  .split-section .split-image img,
  .split-section.reverse .split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* ==============================
   Community Work Section
============================== */
.community {
    padding: 2.5rem 0;
}

.community-split {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.community-text {
    flex: 1;
}

.community-text h2 {
    color: var(--primary-dark);
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.community-text p {
    max-width: 500px;
    color: var(--muted);
    line-height: 1.6;
}

/* Collage grid on the right */
.community-gallery {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
    align-items: stretch;
}

.community-gallery .gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
}

.community-gallery img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    border-radius: var(--border-radius);
}

/* Positioning for collage */
.community-gallery .gallery-item:nth-child(1) {
    grid-row: 1 / span 2;
    grid-column: 1;
}

.community-gallery .gallery-item:nth-child(2) {
    grid-row: 1;
    grid-column: 2;
}

.community-gallery .gallery-item:nth-child(3) {
    grid-row: 2;
    grid-column: 2;
}

.community-text blockquote {
  margin: 1.5rem 0; /* flush with text */
  padding: 0.5rem 1rem;
  border-left: 3px solid var(--primary-dark);
  background: none;
  font-style: italic;
  color: var(--text-gray);
  line-height: 1.5;
}

.community-text blockquote p {
  margin: 0 0 0.5rem 0;
}

.community-text blockquote footer {
  font-size: 0.9rem;
  font-style: normal;
  text-align: right;
  margin-top: 0.25rem; /* small spacing from the quote text */
}

/* Responsive: stack */
@media (max-width: 900px) {
    .community-split {
        flex-direction: column;
    }
    .community-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .community-gallery .gallery-item:nth-child(1),
    .community-gallery .gallery-item:nth-child(2),
    .community-gallery .gallery-item:nth-child(3) {
        grid-column: auto;
        grid-row: auto;
    }
}



/* ==============================
   Footer
============================== */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 2rem 1rem;
    text-align: center;
}

footer .socials {
    margin-top: 0.75rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

footer .socials a {
    color: var(--white);
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary-dark);
    transition: var(--transition);
}

footer .socials a:hover {
    color: var(--secondary);
    background: rgba(255,255,255,0.06);
}

/* ==============================
   Responsive
============================== */
@media (max-width: 900px) {
    .leadership-grid { grid-template-columns: 1fr; }
    .split-section, .split-section.reverse { flex-direction: column; }
    #hamburger { display: flex; }
    nav#navbar {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        background: var(--white);
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }
    nav#navbar.active { display: flex; }
    nav#navbar a { width: 100%; padding: 0.7rem 1rem; border-radius: 6px; }
}
