/*
Theme Name: FTC India 2026
Theme URI: https://www.firstindia.org.in/
Author: FTC India
Author URI: https://www.firstindia.org.in/
Description: A responsive classic WordPress theme built on Bootstrap 5 and designed to work hand-in-hand with the Kadence Blocks editor. Includes a faithful section-by-section homepage (hero, news, programs, partnership, impact stats, core values, purpose/vision/mission, sponsors and CTA), a brand colour palette wired into the block editor via theme.json, block patterns and a Kadence Blocks plugin recommendation.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ftcindia2026
Tags: blog, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, block-styles, wide-blocks, translation-ready, two-columns, right-sidebar
*/

/* ==========================================================================
   FIRST India — Theme Styles (single stylesheet)
   Organised section-by-section to map cleanly onto WordPress template parts.
   Built on top of Bootstrap 5 (enqueued in functions.php, so this file is
   enqueued AFTER Bootstrap and wins on conflicts).

   This is the theme's one and only stylesheet: the brand / Bootstrap layer
   comes first, followed by the WordPress-specific glue (alignment, captions,
   accessibility, comments, widgets, wrapper spacing).
   ========================================================================== */

/* ==========================================================================
   BRAND LAYER
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens / brand palette
   -------------------------------------------------------------------------- */
:root {
  --fa-red:        #ed1c24;
  --fa-red-dark:   #c41019;
  --fa-blue:       #0066b3;
  --fa-blue-dark:  #004e89;
  --fa-navy:       #16223a;
  --fa-indigo:     #394075;
  --fa-orange:     #c55031;
  --fa-dark:       #231f20;
  --fa-grey:       #5b6473;
  --fa-light:      #f5f6f8;
  --fa-border:     #e6e8ec;

  /* program accents */
  --fll: #ed1c24;
  --ftc: #0066b3;
  --frc: #394075;

  --fa-font: 'Raleway', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fa-radius: 14px;
  --fa-shadow: 0 10px 30px rgba(22, 34, 58, .10);
  --fa-shadow-lg: 0 20px 50px rgba(22, 34, 58, .16);
  --fa-header-h: 80px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
body {
  font-family: var(--fa-font);
  color: var(--fa-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3 {
  font-family: var(--fa-font);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--fa-navy);
}

p { line-height: 1.7; }

a { text-decoration: none; }

.section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section-tight { padding: clamp(1.75rem, 3.5vw, 3rem) 0; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fa-red);
  margin-bottom: .75rem;
}
.eyebrow.is-light { color: #ffd2d4; }

.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.12; }
.section-lead  { font-size: 1.1rem; color: var(--fa-grey); max-width: 46rem; }

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.btn { font-weight: 700; border-radius: 999px; padding: .7rem 1.6rem; transition: all .18s ease; }
.btn-lg { padding: .85rem 2rem; font-size: 1.02rem; }

.btn-fa-red    { background: var(--fa-red); border-color: var(--fa-red); color: #fff; }
.btn-fa-red:hover, .btn-fa-red:focus { background: var(--fa-red-dark); border-color: var(--fa-red-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(237,28,36,.35); }

.btn-fa-blue   { background: var(--fa-blue); border-color: var(--fa-blue); color: #fff; }
.btn-fa-blue:hover, .btn-fa-blue:focus { background: var(--fa-blue-dark); border-color: var(--fa-blue-dark); color: #fff; transform: translateY(-2px); }

.btn-fa-navy   { background: var(--fa-navy); border-color: var(--fa-navy); color: #fff; }
.btn-fa-navy:hover, .btn-fa-navy:focus { background: #0d1526; border-color: #0d1526; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22,34,58,.35); }

.btn-fa-outline-light { border: 2px solid rgba(255,255,255,.85); color: #fff; background: transparent; }
.btn-fa-outline-light:hover { background: #fff; color: var(--fa-navy); transform: translateY(-2px); }

.btn-fa-outline { border: 2px solid var(--fa-navy); color: var(--fa-navy); background: transparent; }
.btn-fa-outline:hover { background: var(--fa-navy); color: #fff; transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   4. Top utility bar
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--fa-navy);
  color: rgba(255,255,255,.85);
  font-size: .85rem;
}
.topbar a { color: rgba(255,255,255,.85); transition: color .15s; }
.topbar a:hover { color: #fff; }
.topbar .topbar-social a { font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   5. Navbar / header
   -------------------------------------------------------------------------- */
.site-header {
  background: #fff;
  box-shadow: 0 2px 16px rgba(22,34,58,.07);
}
.navbar-brand { display: flex; align-items: center; gap: .65rem; }
.navbar-brand img { height: 46px; width: auto; }
.brand-text { line-height: 1; }
.brand-text strong { display: block; font-weight: 800; font-size: 1.2rem; color: var(--fa-navy); letter-spacing: .02em; }
.brand-text span { font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--fa-red); }

.navbar .nav-link {
  font-weight: 700;
  color: var(--fa-navy) !important;
  padding: .5rem 1rem !important;
  font-size: .98rem;
}
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--fa-red) !important; }
.navbar .dropdown-menu {
  border: 0;
  border-radius: 12px;
  box-shadow: var(--fa-shadow);
  padding: .5rem;
  margin-top: .4rem;
}
.navbar .dropdown-item { font-weight: 600; border-radius: 8px; padding: .55rem .85rem; }
.navbar .dropdown-item:hover { background: var(--fa-light); color: var(--fa-red); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--fa-navy);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  /* Image + gradient overlay combined into the bottom layer. The overlay is
     baked in here so it ONLY tints the fallback image — when the hero video
     plays it sits above this layer with no overlay. --fa-hero-bg is set from
     PHP (functions.php); the relative URL is the fallback. This layer shows
     whenever the video is loading, fails, or is skipped (mobile / reduced
     motion), keeping the heading readable in those cases. */
  background:
    linear-gradient(115deg, rgba(22,34,58,.93) 0%, rgba(22,34,58,.72) 45%, rgba(196,16,25,.45) 100%),
    var(--fa-hero-bg, url('assets/img/hero-crowd.jpg')) center/cover no-repeat;
  transform: scale(1.02);
}
/* MP4 background, layered above the image. Nothing sits on top of it, so the
   video plays clean with no overlay. */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  border: 0;
  pointer-events: none;
}
.hero .hero-inner { position: relative; z-index: 2; padding: clamp(5rem, 12vw, 9rem) 0; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: 1.08;
  max-width: 16ch;
}
.hero .hero-lead { font-size: 1.18rem; color: rgba(255,255,255,.9); max-width: 40rem; }
.hero .hero-highlight { color: #ff8a8f; }

/* Keep the hero text legible over the un-overlaid video without darkening it. */
.hero .eyebrow,
.hero h1,
.hero .hero-lead,
.hero .hero-inner .btn { text-shadow: 0 3px 12px rgba(22, 34, 58, .6); }

/* Skip the heavy background video (fall back to the hero image, overlay and
   all) when the user prefers reduced motion or is on a small/mobile screen. */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
@media (max-width: 767.98px) {
  .hero-video { display: none; }
}

/* --------------------------------------------------------------------------
   7. Announcement / news banner
   -------------------------------------------------------------------------- */
.announce {
  background: var(--fa-red);
  color: #fff;
  border-radius: var(--fa-radius);
  box-shadow: none;
  overflow: hidden;
}
.announce .badge-date {
  background: rgba(255,255,255,.2);
  color: #fff;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 999px;
  padding: .35rem .9rem;
  font-size: .8rem;
}
.announce h3 { color: #fff; }
.announce .btn-light { font-weight: 700; border-radius: 999px; color: var(--fa-red); }

/* News carousel — arrows sit outside the card, dots below it */
.announce-carousel {
  position: relative;
  padding: 0 56px 0;   /* room for side arrows + bottom dots */
}
/* Vertical breathing room so the card's drop shadow isn't clipped by
   carousel-inner's overflow:hidden (horizontal padding would let the
   next slide peek in during the transition, so keep it top/bottom only) */
.announce-carousel .carousel-inner {
  padding: 10px 0 30px;
}
.announce-carousel .carousel-control-prev,
.announce-carousel .carousel-control-next {
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  opacity: 1;
}
.announce-carousel .carousel-control-prev { left: 0; }
.announce-carousel .carousel-control-next { right: 0; }
/* Dark chevrons (default Bootstrap icons are white, invisible on white bg) */
.announce-carousel .carousel-control-prev-icon,
.announce-carousel .carousel-control-next-icon {
  width: 26px;
  height: 26px;
  filter: invert(1) grayscale(1);
  transition: opacity .15s ease;
}
.announce-carousel .carousel-control-prev:hover .carousel-control-prev-icon,
.announce-carousel .carousel-control-next:hover .carousel-control-next-icon {
  opacity: .6;
}
/* Indicator dots below the card */
.announce-carousel .carousel-indicators {
  bottom: 0;
  margin: 0;
}
.announce-carousel .carousel-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background-color: var(--fa-dark);
  opacity: .25;
  transition: opacity .15s ease;
}
.announce-carousel .carousel-indicators .active {
  opacity: 1;
}

@media (max-width: 575.98px) {
  .announce-carousel { padding: 0 0 44px; }
  .announce-carousel .carousel-control-prev,
  .announce-carousel .carousel-control-next { display: none; }
}

/* --------------------------------------------------------------------------
   8. Program cards
   -------------------------------------------------------------------------- */
.program-card {
  background: #fff;
  border-radius: var(--fa-radius);
  overflow: hidden;
  box-shadow: var(--fa-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--fa-shadow-lg); }
.program-card .program-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.program-card .program-media img { width: 100%; height: 100%; object-fit: cover; }
.program-card .program-logo {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.program-card .program-logo::before { content: ""; position: absolute; inset: 0; opacity: .82; }
.program-card .program-logo img { position: relative; z-index: 2; max-height: 64px; width: auto; max-width: 80%; }
.program-card.is-fll .program-logo::before { background: var(--fll); }
.program-card.is-ftc .program-logo::before { background: var(--ftc); }
.program-card.is-frc .program-logo::before { background: var(--frc); }
.program-card .program-body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.program-card .program-meta { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fa-grey); margin-bottom: .5rem; }
.program-card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
/* Sub-heading sits under the title in the card's accent colour */
.program-card .program-subheading { font-size: 1rem; font-weight: 700; margin: -.35rem 0 .7rem; color: var(--fa-grey); }
.program-card.is-fll .program-subheading { color: var(--fll); }
.program-card.is-ftc .program-subheading { color: var(--ftc); }
.program-card.is-frc .program-subheading { color: var(--frc); }
.program-card p { color: var(--fa-grey); flex: 1; }
.program-subheading { color: #c41019 !important; }
.program-card .btn { align-self: flex-start; margin-top: .75rem; }
/* "Learn More" button picks up the card's accent colour */
.program-card.is-fll .btn { color: var(--fll); border-color: var(--fll); }
.program-card.is-fll .btn:hover, .program-card.is-fll .btn:focus { background: var(--fll); border-color: var(--fll); color: #fff; }
.program-card.is-ftc .btn { color: var(--ftc); border-color: var(--ftc); }
.program-card.is-ftc .btn:hover, .program-card.is-ftc .btn:focus { background: var(--ftc); border-color: var(--ftc); color: #fff; }
.program-card.is-frc .btn { color: var(--frc); border-color: var(--frc); }
.program-card.is-frc .btn:hover, .program-card.is-frc .btn:focus { background: var(--frc); border-color: var(--frc); color: #fff; }

/* Program page header — full-width navy→red brand gradient band */
.program-page-hero {
  /* Navy (matching the top bar) dominates the left; red holds the right
     ~20%, with a smooth blend between. Slanted axis (115deg) for movement. */
  background: linear-gradient(115deg,
    var(--fa-navy) 0%,
    var(--fa-navy) 55%,
    var(--fa-red) 80%,
    var(--fa-red) 100%);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 3rem) 0;
}
.program-page-hero .program-page-title {
  color: #fff;
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 2rem);
  line-height: 1.1;
}
/* No top padding on the content area that follows the program-page band */
.program-page-hero + .content-area { padding-top: 0; }

/* --------------------------------------------------------------------------
   9. About / partnership
   -------------------------------------------------------------------------- */
.about-img-wrap { position: relative; }
.about-img-wrap img { width: 100%; height: auto; }
.about-img-wrap::before {
  content: "";
  position: absolute; left: -6%; top: 8%;
  width: 70%; height: 84%;
  background: var(--fa-light);
  border-radius: 24px;
  z-index: 0;
}
.about-img-wrap img { position: relative; z-index: 1; }

.checklist { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: .65rem; font-weight: 600; color: var(--fa-dark); }
.checklist li i { color: var(--fa-red); font-size: 1.2rem; line-height: 1.5; }

/* --------------------------------------------------------------------------
   10. Stats band
   -------------------------------------------------------------------------- */
.stats { background: var(--fa-navy); color: #fff; }
.stat-num { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; color: #fff; line-height: 1; }
.stat-label { color: rgba(255,255,255,.75); font-weight: 600; margin-top: .4rem; }

/* --------------------------------------------------------------------------
   11. Core values 
   -------------------------------------------------------------------------- */
.values { background: var(--fa-light); }

/* Illustrated value cards (artwork supplied as self-contained images).
   The value name is baked into the artwork; the description is overlaid
   as white text in the empty space below it, so it reads as part of the card. */
.values-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
  margin-top: .5rem;
}
.value-tile {
  position: relative;
  margin: 0;
  transition: transform .25s ease;
}
.value-tile img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  filter: drop-shadow(0 10px 22px rgba(22, 34, 58, .16));
  transition: filter .25s ease;
}
.value-tile:hover { transform: translateY(-8px) scale(1.02); }
.value-tile:hover img { filter: drop-shadow(0 20px 36px rgba(22, 34, 58, .26)); }
.value-tile figcaption {
  position: absolute;
  left: 0; right: 0;
  bottom: 6%;
  padding: 0 14px;
  color: var(--fa-dark);
  font-size: .8rem;
  line-height: 1.38;
  text-align: center;
}
@media (max-width: 991.98px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .value-tile figcaption { font-size: .92rem; }
}
@media (max-width: 575.98px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .value-tile figcaption { font-size: .82rem; }
}

/* --------------------------------------------------------------------------
   11b. Purpose / Vision / Mission — image cards that reveal their
        statement on hover (or focus, for keyboard users)
   -------------------------------------------------------------------------- */
.pvm { background: var(--fa-light); }

.pvm-card {
  position: relative;
  border-radius: var(--fa-radius);
  overflow: hidden;
  height: 340px;
  box-shadow: var(--fa-shadow);
  outline: none;
}
.pvm-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
/* Dark gradient for text clarity — hidden by default, fades in on hover */
.pvm-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(22, 34, 58, .94) 0%,
    rgba(22, 34, 58, .65) 45%,
    rgba(22, 34, 58, .15) 100%);
  opacity: 0;
  transition: opacity .35s ease;
}
.pvm-card:hover::after,
.pvm-card:focus-within::after { opacity: 1; }
.pvm-card:hover img,
.pvm-card:focus-within img { transform: scale(1.06); }

.pvm-content {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem;
  color: #fff;
  /* Keeps the always-visible label + title legible on the clean photo */
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}
.pvm-label {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--fa-red);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .02em;
  padding: .4rem .9rem;
  border-radius: 999px;
  margin-bottom: .8rem;
}
.pvm-card h3 {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}
.pvm-statement {
  margin: .6rem 0 0;
  color: rgba(255, 255, 255, .92);
  font-size: .98rem;
  line-height: 1.55;
  /* Hidden until hover/focus, then slides up and fades in */
  max-height: 0;
  opacity: 0;
  transform: translateY(8px);
  overflow: hidden;
  transition: max-height .45s ease, opacity .3s ease, transform .45s ease;
}
.pvm-card:hover .pvm-statement,
.pvm-card:focus-within .pvm-statement {
  max-height: 220px;
  opacity: 1;
  transform: translateY(0);
}

/* Touch / small screens have no hover — show statements (and the overlay
   they need for contrast) by default */
@media (hover: none), (max-width: 767.98px) {
  .pvm-statement { max-height: 220px; opacity: 1; transform: none; }
  .pvm-card::after { opacity: 1; }
}

/* --------------------------------------------------------------------------
   11c. Our Impact — handwritten-style metric numbers over short blurbs
   -------------------------------------------------------------------------- */
.impact { background: #fff; }
.impact-head { margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.impact-title {
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.12;
}
.impact-intro {
  margin: 0;
  color: var(--fa-grey);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 52rem;
}
.impact-stat {
  background: var(--fa-light);
  border-radius: var(--fa-radius);
  padding: 1.5rem;
  margin: 1.5rem 2rem;
  text-align: center;
  box-shadow: var(--fa-shadow);
  transition: transform .2s ease, box-shadow .2s ease;

}.impact-num {
  font-family: 'Caveat', var(--fa-font);
  font-weight: 700;
  font-size: clamp(2.8rem, 6vw, 3.9rem);
  line-height: 1;
  margin-bottom: .35rem;
}
.impact-desc {
  margin: 0;
  color: var(--fa-grey);
  font-size: .95rem;
  line-height: 1.6;
}
.impact-desc strong { color: var(--fa-dark); font-weight: 700; }
.impact-desc em { font-style: italic; }

/* --------------------------------------------------------------------------
   12. Sponsors
   -------------------------------------------------------------------------- */
.sponsor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; align-items: center; }
@media (min-width: 576px) { .sponsor-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .sponsor-grid { grid-template-columns: repeat(5, 1fr); } }
.sponsor-item {
  background: #fff;
  border: 1px solid var(--fa-border);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 3 / 2;
}
.sponsor-item img { max-width: 100%; max-height: 145px; object-fit: contain; }

/* --------------------------------------------------------------------------
   13. CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  color: #fff;
  background: linear-gradient(120deg, var(--fa-red) 0%, var(--fa-red-dark) 100%);
  overflow: hidden;
}
.cta h2 { color: #fff; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--fa-navy); color: rgba(255,255,255,.7); }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255,255,255,.7); transition: color .15s; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-logo { height: 84px; width: auto; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; font-size: 1.05rem;
  transition: background .15s, transform .15s;
}
.footer-social a:hover { background: var(--fa-red); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }

/* --------------------------------------------------------------------------
   15. Utilities / responsive tweaks
   -------------------------------------------------------------------------- */
.text-fa-red { color: var(--fa-red) !important; }
.bg-light-soft { background: var(--fa-light); }

@media (max-width: 991.98px) {
  .navbar .dropdown-menu { box-shadow: none; padding-left: .5rem; }
  .about-img-wrap::before { display: none; }
}

/* ==========================================================================
   WORDPRESS GLUE
   ========================================================================== */

/* --------------------------------------------------------------------------
   WordPress core: alignment helpers for block & classic content
   -------------------------------------------------------------------------- */
.entry-content > * {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Wide & full-width blocks inside the constrained content column */
.entry-content .alignwide {
  margin-left: -80px;
  margin-right: -80px;
  max-width: calc(100% + 160px);
}

.entry-content .alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
}

@media (max-width: 991.98px) {
  .entry-content .alignwide {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }
}

/* --------------------------------------------------------------------------
   WordPress core: captions & galleries
   -------------------------------------------------------------------------- */
.wp-caption {
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.wp-caption img {
  display: block;
  max-width: 100%;
  height: auto;
}

.wp-caption-text,
.wp-element-caption {
  font-size: 0.85rem;
  color: var(--fa-grey, #5b6473);
  padding-top: 0.5rem;
  text-align: center;
}

.sticky .entry-title::after {
  content: "\F445"; /* bootstrap-icons pin */
}

/* --------------------------------------------------------------------------
   WordPress core: accessibility
   -------------------------------------------------------------------------- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #fff;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #16223a;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100000;
}

/* --------------------------------------------------------------------------
   WordPress core: post & page layout (blog / single / archive)
   -------------------------------------------------------------------------- */
.entry-header {
  margin-bottom: 1.5rem;
}

.entry-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.entry-title a {
  color: inherit;
}

.entry-title a:hover {
  color: var(--fa-red, #ed1c24);
}

.entry-meta {
  font-size: 0.85rem;
  color: var(--fa-grey, #5b6473);
  margin-bottom: 0.75rem;
}

.entry-meta a {
  color: var(--fa-grey, #5b6473);
  font-weight: 600;
}

.entry-meta a:hover {
  color: var(--fa-red, #ed1c24);
}

.post-thumbnail {
  display: block;
  margin-bottom: 1.5rem;
  border-radius: var(--fa-radius, 14px);
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.posts-navigation,
.post-navigation,
.pagination {
  margin: 2.5rem 0;
}

.page-links {
  margin-top: 1.5rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   WordPress core: widgets / sidebar
   -------------------------------------------------------------------------- */
.widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--fa-border, #e6e8ec);
}

.widget a {
  color: var(--fa-dark, #231f20);
}

.widget a:hover {
  color: var(--fa-red, #ed1c24);
}

/* --------------------------------------------------------------------------
   WordPress core: comments
   -------------------------------------------------------------------------- */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-list .children {
  list-style: none;
  margin-left: 1.5rem;
}

.comment-body {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--fa-border, #e6e8ec);
}

.comment-author .avatar {
  border-radius: 50%;
  margin-right: 0.65rem;
  vertical-align: middle;
}

.comment-metadata {
  font-size: 0.8rem;
  color: var(--fa-grey, #5b6473);
}

/* --------------------------------------------------------------------------
   WordPress core: blog wrapper spacing
   -------------------------------------------------------------------------- */
.content-area {
  /* Tighter gap below the sticky header; keep generous room before the footer. */
  padding: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.no-results,
.error-404 {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  text-align: center;
}

/* Back-to-top: flex-centre the icon when visible; the JS toggles .d-none
   (display:none !important) to hide/show it on scroll. */
#backToTop {
  display: flex;
}

/* --------------------------------------------------------------------------
   Program page 
   -------------------------------------------------------------------------- */

.programmenu ul li {
  background: var(--fa-navy) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: .75rem 1.5rem !important;
  border-radius: 8px !important;
}
.programmenu ul li:hover {
  background: var(--fa-red) !important;
}
.programmenu ul li.current-menu-item {
  background: var(--fa-red) !important;
}
.bioglowbox {
  margin-top: 10rem;
}

/* --------------------------------------------------------------------------
   Ribbon / sticker banners (.ftc-ribbon)
   Tilted "tape" badge — white text on a slanted, brand-coloured ribbon.
   Insert the "Ribbon banner" block pattern, or drop a Custom HTML block with:
     <span class="ftc-ribbon ftc-ribbon--red">Registrations now open!</span>
   Swap --red for any colour variant below. Caveat is loaded site-wide.
   -------------------------------------------------------------------------- */
.ftc-ribbon {
  --ribbon-bg: var(--fa-red);
  --ribbon-text: #fff;
  --ribbon-tilt: -7deg;

  display: inline-block;
  position: relative;
  padding: 12px 28px;
  background: var(--ribbon-bg);
  color: var(--ribbon-text);
  font-family: 'Caveat', var(--fa-font);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  line-height: 1.1;
  white-space: nowrap;
  letter-spacing: .5px;
  text-decoration: none;
  transform: rotate(var(--ribbon-tilt));
  box-shadow: var(--fa-shadow);
}

/* colour variants (mapped to the brand palette) */
.ftc-ribbon--red    { --ribbon-bg: var(--fa-red); }
.ftc-ribbon--blue   { --ribbon-bg: var(--fa-blue); }
.ftc-ribbon--orange { --ribbon-bg: var(--fa-orange); }
.ftc-ribbon--indigo { --ribbon-bg: var(--fa-indigo); }
.ftc-ribbon--navy   { --ribbon-bg: var(--fa-navy); }
.ftc-ribbon--green  { --ribbon-bg: #37a24a; }
.ftc-ribbon--purple { --ribbon-bg: #7b3fb0; }
.ftc-ribbon--teal   { --ribbon-bg: #159a93; }
.ftc-ribbon--yellow { --ribbon-bg: #f4c20d; --ribbon-text: var(--fa-dark); }

/* tilt helpers */
.ftc-ribbon--flat      { --ribbon-tilt: 0deg; }
.ftc-ribbon--tilt-up   { --ribbon-tilt: -7deg; }
.ftc-ribbon--tilt-down { --ribbon-tilt: 7deg; }

/* optional: pin to a corner of a position:relative section / column */
.ftc-ribbon--corner {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 5;
}
