/* ══════════════════════════════════════════════════════════
   executive-committee.css  —  Executive Committee page
   All classes prefixed  ec-  — zero conflicts with
   style.css / home.css / about.css / contact.css /
   chairman.css / news-media.css
   Sections:
   1. Hero Banner
   2. Committee Section  (header + 4-col grid + cards)
══════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────
   KEYFRAMES  (ec- prefix)
─────────────────────────────────────────── */
@keyframes ec-fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ec-slideRight {
  from {
    opacity: 0;
    transform: translateX(-36px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes ec-slideLeft {
  from {
    opacity: 0;
    transform: translateX(36px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ──────────────────────────────────────────
   1. HERO BANNER
─────────────────────────────────────────── */
.ec-hero {
  background: #0d1b3e;
  padding: 68px 0 64px;
  position: relative;
  overflow: hidden;
}

/* diagonal stripe texture */
.ec-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  /* background: repeating-linear-gradient(-55deg, transparent, transparent 40px,
      rgba(255, 255, 255, .025) 40px, rgba(255, 255, 255, .025) 41px); */
  pointer-events: none;
}

/* red accent line on bottom */
.ec-hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e63946 0%, transparent 60%);
  z-index: 2;
}

.ec-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ec-hero-left {
  opacity: 0;
  animation: ec-slideRight .7s cubic-bezier(.4, 0, .2, 1) .05s forwards;
}

.ec-eyebrow {
  font-family: var(--font-family-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #e63946;
  margin-bottom: 16px;
}

.ec-eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: #e63946;
  border-radius: 2px;
  flex-shrink: 0;
}

.ec-hero-title {
  font-family: var(--font-family-secondary);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.ec-hero-title span {
  color: #e63946;
  display: block;
}

.ec-hero-right {
  opacity: 0;
  animation: ec-slideLeft .7s cubic-bezier(.4, 0, .2, 1) .2s forwards;
}

.ec-hero-desc {
  font-family: var(--font-family-primary);
  font-size: 14px;
  color: rgba(255, 255, 255, .65);
  line-height: 1.78;
  max-width: 420px;
}

/* ──────────────────────────────────────────
   2. COMMITTEE SECTION
─────────────────────────────────────────── */
/* =====================================================
   SECTION WRAPPER
===================================================== */
.ec-section {
  padding: 80px 0 100px;
  background: #f8f9fb;
}

.ec-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

/* =====================================================
   HEADING
===================================================== */
.ec-heading {
  text-align: center;
  margin-bottom: 56px;
}

.ec-heading h2 {
  font-family: var(--font-family-secondary);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.ec-heading p {
  font-family: var(--font-family-primary);
  font-size: 14px;
  color: #888;
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto;
}

/* =====================================================
   GRID
===================================================== */
.ec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* =====================================================
   CARD
===================================================== */
.ec-card {
  position: relative;
  border-radius:16px; /* only bottom corners rounded */
  overflow: hidden;
  background: var(--navy); /* keep navy bottom */
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transition: all .4s cubic-bezier(.4,0,.2,1);
}

/* Lift + red ring */
.ec-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 25px 50px rgba(0,0,0,.15),
    0 0 0 2px rgba(230,57,70,.25);
}

/* =====================================================
   PHOTO
===================================================== */
.ec-photo {
  width: 100%;
  height: 260px;
  overflow: hidden;
  position: relative;
  border-radius: 0; /* no rounding on the image wrapper */
}

.ec-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
  border-radius: 0; /* ensure square top edges */
}

/* zoom */
.ec-card:hover .ec-photo img {
  transform: scale(1.07);
}

/* shimmer */
.ec-photo::after {
  content: '';
  position: absolute;
  inset: 0;   /* ✅ better than top/left/width/height */
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255,255,255,.18) 50%,
    transparent 100%
  );
  transform: translateX(-100%) skewX(-20deg);
  transition: transform .6s ease;
  pointer-events: none;
  border-radius: 0; /* match square top edges */
}

.ec-card:hover .ec-photo::after {
  transform: translateX(200%) skewX(-20deg);
}

/* =====================================================
   NAMEPLATE
===================================================== */
.ec-nameplate {
  position: relative;
  margin: -35px auto 0;
  width: 80%;
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 12px 16px 10px;
  border-radius: 10px;
  z-index: 2;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transition: background .3s ease;
}

.ec-card:hover .ec-nameplate {
  background: var(--navy);
}

.ec-nameplate h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 3px;
}

.ec-nameplate span {
  font-size: 11px;
  opacity: .85;
}

/* =====================================================
   SOCIAL BAR
===================================================== */
.ec-socials {
  margin-top: auto;
  background: var(--navy);
  padding: 20px 12px 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.ec-si {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
  cursor: pointer;
}

.ec-card:hover .ec-si:nth-child(1) { background: #1877f2; }
.ec-card:hover .ec-si:nth-child(2) { background: #1da1f2; }
.ec-card:hover .ec-si:nth-child(3) { background: #e1306c; }
.ec-card:hover .ec-si:nth-child(4) { background: #0a66c2; }

.ec-si:hover {
  transform: translateY(-4px);
}

.ec-si svg {
  width: 13px;
  height: 13px;
  fill: #fff;
}

@media (max-width: 960px) {
  .ec-hero-inner { grid-template-columns: 1fr; gap: 24px; padding: 0 36px; }
  .ec-hero-desc  { max-width: 100%; }
  .ec-hero       { padding: 52px 0 48px; }
}

@media (max-width: 900px) {
  .ec-grid  { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .ec-inner { padding: 0 36px; }
}

@media (max-width: 640px) {
  .ec-hero-inner { padding: 0 20px; }
  .ec-hero-title { font-size: clamp(1.8rem, 7vw, 2.4rem); }

  .ec-section { padding: 52px 0 64px; }
  .ec-inner   { padding: 0 20px; }
  .ec-grid    { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (max-width: 380px) {
  .ec-grid { gap: 10px; }
}
