/* ================================================================
   Bagong Bayani Foundation, Inc. — HOME PAGE (web/index.blade.php)
   Loaded from index.blade.php @section('css').
   Site-wide theme, nav, footer, buttons and design tokens
   (--bbfi-*, --bbfi-navy, --bbfi-surface, etc.) live in bbfi-shared.css.
   ================================================================ */

:root { --bbfi-copy: #1A1A1A; }

html { scroll-behavior: smooth; }
.bbfi-home { background: #fff; overflow-x: hidden; }
.bbfi-home h1, .bbfi-home h2, .bbfi-home h3,
.bbfi-home h4, .bbfi-home h5 { margin: 0; }
.bbfi-home p { margin: 0; }
.bbfi-home .container { max-width: 1200px; }

@keyframes bbfiHeroFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bbfiHeroRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bbfiMarquee  { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ================================================================
   SECTION: SHARED TYPE   (buttons: .btn-bbfi-* live in bbfi-shared.css)
   ================================================================ */
.bbfi-home .eyebrow {
  font-family: var(--bbfi-mono);
  font-size: .71rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bbfi-green);
  display: inline-block;
}
.bbfi-home .section-title {
  font-family: var(--bbfi-serif);
  font-weight: 700;
  color: var(--bbfi-navy);
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-wrap: balance;
}

/* ================================================================
   SECTION: HERO  (#home)
   ================================================================ */
.hero {
  position: relative; width: 100%; height: 690px;
  overflow: hidden; background: var(--bbfi-surface);
}
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease; }
.hero__slide.is-active { opacity: 1; visibility: visible; animation: bbfiHeroFade .7s ease both; }
/* object-position keeps the subjects framed as the box gets shorter on small screens */
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
/* CMS 'yt_embed_link_url' slides render as an iframe with this same class — object-fit on
   iframe is a modern-browser-only "cover" approximation, and pointer-events:none keeps the
   video from swallowing clicks meant for the copy/buttons layered above it. */
iframe.hero__media { border: 0; pointer-events: none; }
/* An uploaded (non-YouTube) video file renders as a native <video> with this same class —
   pointer-events:none for the same reason as the iframe above. */
video.hero__media { pointer-events: none; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(97deg, rgba(255,255,255,.98) 0%, #FAF9F5BF, #FAF9F5B1, rgba(255,255,255,.14) 78%, rgba(255,255,255,0) 100%);
}
.hero__rule {
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--bbfi-green) 0%, var(--bbfi-green-light) 42%, var(--bbfi-gold) 100%);
}
.hero__stage { position: relative; z-index: 3; height: 100%; display: flex; align-items: center; }
.hero__copy { max-width: 620px; display: none; }
.hero__copy.is-active { display: block; animation: bbfiHeroRise .8s cubic-bezier(.16,1,.3,1) both; }
.hero__kicker {
  font-family: var(--bbfi-mono); font-size: clamp(.6rem, 1.7vw, .71rem); font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--bbfi-green);
  display: inline-block; border-left: 2px solid var(--bbfi-green);
  padding-left: 12px; margin-bottom: clamp(12px, 3vw, 24px);
}
.hero__title {
  font-family: var(--bbfi-serif); color: var(--bbfi-navy); font-weight: 700;
  line-height: 1.04; letter-spacing: -0.022em; margin-bottom: clamp(12px, 2.5vw, 22px);
  text-wrap: balance; font-size: clamp(2.1rem, 7vw, 5.4rem);
}
.hero__copy--2 .hero__title { font-size: clamp(1.85rem, 6vw, 4.2rem); line-height: 1.08; letter-spacing: -0.02em; }
.hero__title em { font-style: italic; color: var(--bbfi-green); }
.hero__text {
  font-size: clamp(1.08rem, 3vw, 1.3rem); color: var(--bbfi-copy); font-weight: 500; line-height: 1.65;
  max-width: 528px; margin-bottom: clamp(44px, 7vw, 68px); text-wrap: pretty;
}
.hero__controls { position: absolute; z-index: 4; bottom: 34px; left: 0; right: 0; }
.hero__dot {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--bbfi-mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--bbfi-navy); font-weight: 600;
}
.hero__dot span { width: 34px; height: 3px; border-radius: 2px; background: #C6CFC7; display: block; transition: background .25s ease; }
.hero__dot.is-active span { background: var(--bbfi-green); }
.hero__arrow {
  width: 48px; height: 48px; border-radius: 3px;
  border: 1px solid #C6CFC7; background: rgba(255,255,255,.9);
  color: var(--bbfi-navy); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.hero__arrow:hover { background: var(--bbfi-navy); color: #fff; border-color: var(--bbfi-navy); }

/* ================================================================
   SECTION: ABOUT SUMMARY  (#about-summary)
   ================================================================ */
.about { background: linear-gradient(160deg, #F3F6F3 0%, #EEF3EF 100%); }
.about__figure { border-radius: 3px; overflow: hidden; box-shadow: 0 30px 60px rgba(14,22,56,.12); }
.about__figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.about h2 { font-size: 3.15rem; line-height: 1.08; }
.about p { font-size: 1.04rem; line-height: 1.85; color: #1A1A1A; text-wrap: pretty; }
.about p strong { color: var(--bbfi-navy); }

/* ================================================================
   SECTION: THE BAGONG BAYANI AWARDS  (#awards)
   ================================================================ */
.awards h2 { font-size: 2.85rem; }
.awards__lead { color: #1A1A1A; font-size: 1rem; line-height: 1.75; text-wrap: pretty; }
.rule-head { display: flex; align-items: center; gap: 14px; }
.rule-head__label {
  font-family: var(--bbfi-mono); font-size: 1.2rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--bbfi-navy);
}
.rule-head__line { flex: 1; height: 1px; background: #E1E7E2; }
.rule-head__link {
  font-family: var(--bbfi-mono); font-size: .9rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--bbfi-green); font-weight: 700; text-decoration: none;
}
.rule-head__link:hover { color: var(--bbfi-green-dark); }

.cat {
  display: flex; align-items: center; gap: 14px; height: 100%;
  border: 1px solid var(--bbfi-line); border-radius: 5px; background: #fff;
  padding: 16px 18px; transition: all .25s ease; text-decoration: none; color: inherit;
}
.cat:hover { border-color: var(--bbfi-green); box-shadow: 0 12px 26px rgba(14,22,56,.08); transform: translateY(-3px); }
.cat i {
  font-size: 14px; color: var(--bbfi-green); width: 34px; height: 34px; flex: none;
  border-radius: 50%; background: #EFF5F0; display: flex; align-items: center; justify-content: center;
}
.cat h4 { font-family: var(--bbfi-serif); font-weight: 700; color: var(--bbfi-navy); font-size: 1.14rem; line-height: 1.25; text-wrap: balance; }

/* ================================================================
   SECTION: AWARDEES  (#awardees)
   ================================================================ */
.awardee {
  border: 1px solid var(--bbfi-line); border-radius: 6px; background: #F8FAF8;
  padding: 26px 28px; display: flex; align-items: flex-start; gap: 18px; height: 100%;
  transition: all .25s ease;
}
.awardee:hover { border-color: var(--bbfi-green); box-shadow: 0 18px 36px rgba(14,22,56,.08); transform: translateY(-3px); }
.awardee > i {
  font-size: 15px; color: var(--bbfi-green); width: 40px; height: 40px; flex: none;
  border-radius: 50%; background: #EFF5F0; display: flex; align-items: center; justify-content: center;
}
.awardee h3 { font-family: var(--bbfi-serif); font-weight: 700; color: var(--bbfi-navy); font-size: 1.5rem; }
.awardee p { margin: 8px 0 12px; font-size: .95rem; line-height: 1.65; color: #1A1A1A; }
.awardee a { font-family: var(--bbfi-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--bbfi-navy); font-weight: 600; text-decoration: none; }
.awardee a:hover { color: var(--bbfi-green); }

/* ================================================================
   SECTION: HOMAGE / TRIBUTE  (#homage)
   ================================================================ */
.homage {
  border-radius: 8px;
  background: radial-gradient(ellipse at top left, #1B2757 65%, var(--bbfi-navy-deep) 100%);
  padding: 48px 52px;
}
.homage img {
  width: 210px; height: 210px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--bbfi-green-light); box-shadow: 0 0 0 8px rgba(76,168,104,.15); display: block;
}
.homage__label {
  display: block; font-family: var(--bbfi-mono); font-size: 1.2rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--bbfi-green-light); margin-bottom: 14px;
}
.homage__quote {
  font-family: var(--bbfi-serif); font-style: italic; font-weight: 600;
  font-size: 1.95rem; color: #fff; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance;
}
.homage__name { font-family: var(--bbfi-serif); font-weight: 700; font-size: 1.18rem; color: var(--bbfi-green-light); }
.homage__role { font-family: var(--bbfi-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }

/* ================================================================
   SECTION: SPONSORS & PARTNERS  (#sponsors)
   ================================================================ */
.sponsors { background: linear-gradient(160deg, #F3F6F3 0%, #EEF3EF 100%); }
.sponsors h2 { font-size: 2.5rem; }
.sponsors__all {
  font-family: var(--bbfi-mono); font-size: .75rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--bbfi-navy); font-weight: 600;
  padding-bottom: 6px; border-bottom: 1px solid #C6CFC7; text-decoration: none;
  transition: all .2s ease;
}
.sponsors__all:hover { color: var(--bbfi-green); border-color: var(--bbfi-green); }
.marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
}
.marquee__track { display: flex; width: max-content; animation: bbfiMarquee 32s linear infinite; }
.marquee__track:hover { animation-play-state: paused; }
.marquee__group { display: flex; gap: 20px; padding-right: 20px; }
.sponsor {
  flex: 0 0 auto; width: 232px; height: 108px; background: #fff;
  border: 1px solid var(--bbfi-line); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; padding: 18px 24px;
  transition: all .25s ease; text-decoration: none; color: inherit;
}
.sponsor:hover { border-color: var(--bbfi-green); box-shadow: 0 12px 26px rgba(47,122,69,.14); }
.sponsor img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ================================================================
   SECTION: NEWS & ANNOUNCEMENTS  (#news)
   ================================================================ */
.news h2 { font-size: 2.7rem; }
.news__item {
  border-bottom: 1px solid var(--bbfi-line); padding: 20px 14px; margin: 0 -14px;
  border-radius: 6px; display: flex; gap: 26px; align-items: baseline;
  color: inherit; text-decoration: none; transition: background .2s ease;
}
.news__item:last-child { border-bottom: 0; }
.news__item:hover { background: #F8FAF8; }
.news__date { font-family: var(--bbfi-mono); font-size: .75rem; letter-spacing: .08em; color: var(--bbfi-green); min-width: 84px; text-transform: uppercase; }
.news__item h5 { font-family: var(--bbfi-serif); font-weight: 700; color: var(--bbfi-navy); font-size: 1.24rem; margin-bottom: 6px; }
.news__item p { font-size: .92rem; line-height: 1.6; }
.news__item > i { margin-left: auto; color: #667085; font-size: .9rem; flex-shrink: 0; }

/* ================================================================
   SECTION: RESPONSIVE  (home page only)
   ================================================================ */
@media (max-width: 991.98px) {
  .about h2 { font-size: 2.6rem; }
  .homage { text-align: center; padding: 40px 28px; }
  .homage img { margin: 0 auto; }

  /* Hero keeps the overlaid layout; only the fixed height steps down. */
  .hero { height: 600px; }
  .hero__stage { align-items: flex-start; padding-top: 56px; }
  .hero__copy { max-width: 100%; }
  .hero__scrim {
    background: linear-gradient(180deg, rgba(250,249,245,.95) 0%, rgba(250,249,245,.72) 46%, rgba(255,255,255,.10) 100%);
  }
}

@media (max-width: 767.98px) {
  .hero { height: 520px; }
  .hero__stage { padding-top: 44px; }
  .hero__copy .btn { padding: 12px 20px; font-size: .82rem; }
  .hero__dot { font-size: .62rem; }
  .hero__dot span { width: 26px; }
  .hero__arrow { width: 42px; height: 42px; }
  .sponsor { width: 200px; height: 96px; }
}

@media (max-width: 575.98px) {
  .hero { height: 480px; }
  .hero__stage { padding-top: 36px; }
  .hero__copy .d-flex { gap: .5rem !important; }
  .hero__copy .btn { padding: 11px 18px; font-size: .8rem; }
  .hero__controls { bottom: 20px; }

  /* Section CTAs: match the hero's compact button sizing on phones */
  .about .btn, .news .btn, .homage .btn { padding: 12px 20px; font-size: .82rem; }
}
