/* ============================================================
   OUR COMMUNITY PAGE — styles.css
   ============================================================ */

/* ---- HERO ---- */
.oc-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.oc-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}

.oc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(176deg, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}

.oc-hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 90px;
  max-width: 700px;
  color: #fff;
}

.oc-hero-content h1 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 20px;
  color: #fff;
}

.oc-hero-content p {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  color: #fff;
  max-width: 540px;
}

/* ---- SHARED CONTAINER ---- */
.oc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

/* ---- ALUMNI INTRO ---- */
.oc-alumni-intro {
  padding: 80px 0 60px;
}

.oc-alumni-intro .oc-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
}

.oc-alumni-intro-left h2 {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-dark, #1a1a1a);
  margin-bottom: 24px;
}

.oc-alumni-intro-left p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text, #2d2d2d);
}

.oc-champions-box {
  background-color: #fef1ec;
  border-radius: 24px;
  padding: 36px 40px;
  text-align: center;
}

.oc-champions-box p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text, #2d2d2d);
  margin-bottom: 0;
}

.oc-champions-box p:first-child {
  margin-bottom: 16px;
}

.oc-champions-box strong {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

/* ---- FILTER SECTION ---- */
.oc-filter-section {
  padding: 0 0 80px;
}

/* Filter Bar */
.oc-filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.oc-filter-select-wrap {
  position: relative;
  flex: 0 0 300px;
}

.oc-filter-select-wrap select {
  width: 100%;
  appearance: none;
  background: #edeff2;
  border: none;
  border-radius: 50px;
  padding: 16px 44px 16px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #2d2d2d;
  cursor: pointer;
  outline: none;
}

.oc-filter-select-wrap select:focus {
  box-shadow: 0 0 0 2px #7EBB55;
}

.oc-select-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #555;
  pointer-events: none;
}

.oc-search-wrap {
  flex: 1;
  min-width: 200px;
}

.oc-search-wrap input {
  width: 100%;
  background: #edeff2;
  border: none;
  border-radius: 50px;
  padding: 16px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #2d2d2d;
  outline: none;
  box-sizing: border-box;
}

.oc-search-wrap input:focus {
  box-shadow: 0 0 0 2px #7EBB55;
}

.oc-search-wrap input::placeholder {
  color: #999;
}

.oc-reset-btn {
  background: none;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  cursor: pointer;
  padding: 0 16px;
  white-space: nowrap;
  transition: color 0.2s;
}

.oc-reset-btn:hover {
  color: #7EBB55;
}

/* ---- MEMBERS GRID ---- */
.oc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* ---- MEMBER CARD ---- */
/*
  Layout: square image top + name text below
  On hover: image area gets a colored overlay showing description + "Learn More »"
  Hover colors cycle by position in 4-col grid:
    col 1 = green #7EBB55, col 2 = teal #41BED0, col 3 = orange #F78A3C, col 4 = green #7EBB55
    (pattern matches screenshots: orange, teal, green repeat)
*/

.oc-card {
  display: block;
  text-decoration: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  background: #f5f5f2;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.oc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* Image area - square aspect ratio */
.oc-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #edeff2;
}

.oc-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 24px;
  box-sizing: border-box;
  transition: opacity 0.3s ease;
  display: block;
}

/* Hover overlay */
.oc-card-hover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.oc-card-hover-overlay .oc-card-desc {
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
  font-weight: 400;
  margin-bottom: 16px;
  flex: 1;
  overflow: hidden;
}

.oc-card-hover-overlay .oc-learn-more {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  display: block;
}

.oc-card:hover .oc-card-hover-overlay {
  opacity: 1;
}

.oc-card:hover .oc-card-img img {
  opacity: 0;
}

/* Hover colors: cycle by position mod 4 */
/* col 1: orange */
.oc-card:nth-child(4n+1) .oc-card-hover-overlay { background: #F78A3C; }
/* col 2: teal */
.oc-card:nth-child(4n+2) .oc-card-hover-overlay { background: #41BED0; }
/* col 3: green */
.oc-card:nth-child(4n+3) .oc-card-hover-overlay { background: #7EBB55; }
/* col 4: orange */
.oc-card:nth-child(4n+0) .oc-card-hover-overlay { background: #F78A3C; }

/* Name area */
.oc-card-name {
  padding: 20px 20px 24px;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  background: #fff;
}

/* No results */
.oc-no-results {
  text-align: center;
  font-size: 18px;
  color: #888;
  padding: 40px 0;
  grid-column: 1 / -1;
}

/* Hidden card */
.oc-card.hidden {
  display: none;
}

/* ---- HEC SECTION ---- */
.oc-hec {
  background: #f5f5f2;
  padding: 80px 0;
}

.oc-hec-heading {
  margin-bottom: 56px;
}

.oc-hec-heading h2 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  color: #1a1a1a;
  max-width: 600px;
}

.oc-hec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.oc-hec-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.oc-hec-num {
  font-size: 32px;
  font-weight: 700;
  color: #7EBB55;
  line-height: 1;
  border-top: 3px solid #7EBB55;
  padding-top: 12px;
  margin-bottom: 4px;
}

.oc-hec-item h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.oc-hec-item p {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  margin: 0;
}

/* ---- PHOTO STRIP ---- */
.oc-photo-strip {
  padding: 60px 0;
}

.oc-photo-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.oc-photo-strip-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* ---- MENTORS SECTION ---- */
.oc-mentors {
  padding: 80px 0;
  background: #fff;
}

.oc-mentors-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.oc-mentors-text h2 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.oc-mentors-text p {
  font-size: 16px;
  line-height: 1.7;
  color: #2d2d2d;
  margin-bottom: 16px;
}

.oc-mentors-btn {
  display: inline-block;
  margin-top: 16px;
  font-size: 18px;
  padding: 16px 36px;
  text-decoration: none;
}

.oc-mentors-img {
  display: flex;
  justify-content: center;
  align-items: center;
}

.oc-mentors-img img {
  max-width: 100%;
  height: auto;
}

/* ---- JOIN CTA ---- */
.oc-join-cta {
  background: #1C395C;
  padding: 80px 0;
  color: #fff;
}

.oc-join-inner {
  max-width: 700px;
}

.oc-join-cta h3 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.oc-highlighted {
  position: relative;
  display: inline-block;
}

.oc-join-cta p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  margin-bottom: 32px;
}

.oc-join-cta .btn-green {
  display: inline-block;
  text-decoration: none;
  font-size: 18px;
  padding: 16px 36px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .oc-hero-content {
    padding: 48px 48px;
  }

  .oc-container {
    padding: 0 40px;
  }

  .oc-alumni-intro .oc-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .oc-alumni-intro-left h2 {
    font-size: 38px;
  }

  .oc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .oc-hec-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .oc-photo-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .oc-mentors-inner {
    grid-template-columns: 1fr;
  }

  .oc-mentors-img {
    display: none;
  }

  .oc-hec-heading h2 {
    font-size: 34px;
  }
}

@media (max-width: 767px) {
  .oc-hero {
    min-height: 50vh;
  }

  .oc-hero-content {
    padding: 32px 24px;
  }

  .oc-hero-content h1 {
    font-size: 35px;
  }

  .oc-hero-content p {
    font-size: 16px;
  }

  .oc-container {
    padding: 0 20px;
  }

  .oc-alumni-intro {
    padding: 48px 0 40px;
  }

  .oc-alumni-intro-left h2 {
    font-size: 30px;
  }

  .oc-champions-box {
    padding: 24px;
  }

  .oc-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .oc-filter-select-wrap {
    flex: unset;
    width: 100%;
  }

  .oc-reset-btn {
    text-align: left;
    padding: 0;
  }

  .oc-grid {
    grid-template-columns: 1fr;
  }

  .oc-hec-grid {
    grid-template-columns: 1fr;
  }

  .oc-hec-heading h2 {
    font-size: 28px;
  }

  .oc-photo-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .oc-mentors {
    padding: 48px 0;
  }

  .oc-mentors-text h2 {
    font-size: 30px;
  }

  .oc-join-cta h3 {
    font-size: 28px;
  }

  .oc-filter-section {
    padding-bottom: 48px;
  }
}