/* ═══════════════════════════════════════════════════════════
   BUDGET CHALLENGE — HOMEPAGE 2026 SKIN STYLES

   Companion CSS for Homepage2026.ascx
   Derived from live leaderboard styling + v3 mockup design.

   This file handles LAYOUT and SECTION styling only.
   The existing Budget skin CSS (bootstrap.css, default_mod.css,
   init.css, start.css) handles header, nav, footer, and base
   Bootstrap styles.
   ═══════════════════════════════════════════════════════════ */

/* ─── BRAND VARIABLES ─── */
:root {
  --bc-blue: #4070B8;
  --bc-blue-dark: #2C5A94;
  --bc-green: #70B840;
  --bc-green-bright: #8BD44E;
  --bc-purple: #4C40B8;
  --bc-orange: #EC971F;
  --bc-gold: rgb(211, 175, 55);
  --bc-silver: rgb(192, 192, 192);
  --text-dark: rgb(65, 65, 65);
  --text-body: rgb(114, 113, 113);
  --text-light: #999999;
  --bg-white: #FFFFFF;
  --bg-stripe: #F9F9F9;
  --bg-light: #F5F7FA;
  --border-light: #E0E0E0;
  --border-card: #CCCCCC;
}

/* ─── MAIN CONTENT AREA ─── */
.bc-homepage-2026 {
  background: var(--bg-white);
  font-family: 'Open Sans', sans-serif;
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.6;
}

.bc-homepage-2026 .container {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* ─── SECTION WRAPPERS ─── */
/* These style the <section> wrappers around each pane */

.bc-section { padding: 0; }

/* Hero */
.bc-hero {
  background: var(--bg-white);
  padding: 50px 0 30px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

/* Premier Sponsor */
.bc-premier-sponsor {
  text-align: center;
  padding: 16px 0 24px;
  background: var(--bg-white);
}

/* Leaderboard */
.bc-leaderboard {
  padding: 30px 0 40px;
}

/* Blue Banner — full width, no container constraint on bg */
.bc-blue-banner {
  background: var(--bc-blue);
  color: #FFFFFF;
  text-align: center;
  padding: 28px 0;
}

/* Stats */
.bc-stats {
  padding: 0;
}

/* Reinventing Education */
.bc-reinventing {
  padding: 60px 0 50px;
}

/* Three Pillars */
.bc-pillars {
  padding: 50px 0;
}

/* Teacher CTA */
.bc-teacher-cta {
  text-align: center;
  padding: 50px 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* Sponsor CTA */
.bc-sponsor-cta {
  padding: 40px 0;
}

/* ─── HERO MODULE STYLES ─── */
.hp-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(112, 184, 64, 0.1);
  border: 1px solid rgba(112, 184, 64, 0.3);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--bc-green);
  margin-bottom: 20px;
}

.hp-live-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--bc-green);
  border-radius: 50%;
  animation: hp-pulse 2s infinite;
}

@keyframes hp-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(112,184,64,0.6); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(112,184,64,0); }
}

.hp-hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.hp-hero-title .accent { color: var(--bc-blue); }

.hp-hero-subtitle {
  font-size: 17px;
  color: var(--text-body);
  max-width: 720px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.6;
}

/* ─── PREMIER SPONSOR MODULE STYLES ─── */
.hp-sponsor-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--bc-gold);
  font-weight: 600;
  margin-bottom: 8px;
}

.hp-sponsor-logo {
  display: inline-block;
  padding: 12px 40px;
}

.hp-sponsor-logo img {
  height: 44px;
  width: auto;
}

.hp-sponsor-note {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 6px;
  font-style: italic;
}

/* ─── LEADERBOARD MODULE STYLES ─── */
/* Note: The leaderboard module (OWS) has its own styling.
   These styles supplement it for the homepage context.
   The existing table-striped and blue thead are already
   in the site's Bootstrap/default_mod CSS. */

.hp-leaderboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.hp-leaderboard-header h2 {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-dark);
}

/* Simulation sponsor bar */
.hp-sim-sponsor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  padding: 14px 24px;
  background: var(--bg-stripe);
  border-radius: 6px;
  border: 1px solid var(--border-light);
  width:100%;
}

.hp-sim-sponsor .sponsor-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  font-weight: 600;
}

.hp-sim-sponsor .sponsor-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.hp-sim-prizes {
  display: flex;
  gap: 16px;
}

.hp-sim-prizes .prize {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
}

.hp-sim-prizes .prize-icon img {max-height:100px;}

.hp-sim-prizes .prize-label { color: var(--text-light); }
.hp-sim-prizes .prize-value { color: var(--bc-green); font-weight: 700; }

/* Sim info block (inside each carousel slide) */
.hp-sim-info {
  text-align: center;
  margin-bottom: 16px;
}

.hp-sim-counter {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hp-sim-dates {
    font-size: 13px;
    color: var(--text-body);
    font-weight: 400;
}

.hp-sim-classes {
  font-size: 15px;
  color: var(--text-dark);
  font-weight:700;
  margin-top: 2px;
}

/* Leaderboard footer (inside each carousel slide) */
.hp-leaderboard-footer {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
}

.hp-leaderboard-footer a {
  color: var(--bc-blue);
}

/* ─── LEADERBOARD CAROUSEL OVERRIDES ─── */
/* Reset Bootstrap v3 carousel defaults for a text-content carousel */

#hp-sim-carousel {
  overflow: visible;
}

/* overflow: hidden is intentionally kept here — Bootstrap's BFC on carousel-inner
   is what holds the container height stable during slide transitions. The controls
   and indicators are siblings of carousel-inner, so nothing visible gets clipped. */

/* Each slide: column layout, padded to clear the abs-positioned controls */
.hp-sim-slide {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  padding: 0 60px;
}

/* Controls: override Bootstrap's full-height gradient overlay */
#hp-sim-carousel .carousel-control {
  width: 44px;
  height: 44px;
  top: 8px;
  margin-top: 0;
  bottom: auto;
  background: var(--bg-white);
  background-image: none;   /* remove Bootstrap's gradient */
  border: 1px solid var(--border-light);
  border-radius: 50%;
  color: var(--text-dark);
  font-size: 18px;
  line-height: 44px;
  text-align: center;
  text-shadow: none;
  opacity: 1;
  filter: none;
}

#hp-sim-carousel .carousel-control:hover,
#hp-sim-carousel .carousel-control:focus {
  background: var(--bg-stripe);
  background-image: none;
  color: var(--text-dark);
  opacity: 1;
}

#hp-sim-carousel .carousel-control.left  { left: 0; }
#hp-sim-carousel .carousel-control.right { right: 0; }

/* Indicators: pull out of Bootstrap's absolute-bottom positioning */
#hp-sim-carousel .carousel-indicators {
  position: static;
  bottom: auto;
  left: auto;
  width: auto;
  margin: 12px 0 0 0;
  padding: 0;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  gap: 6px;
  list-style: none;
}

#hp-sim-carousel .carousel-indicators li {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-light);
  border: none;
  margin: 0;
  text-indent: 0;
  cursor: pointer;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}

#hp-sim-carousel .carousel-indicators li.active {
  background: var(--bc-blue);
}

/* ─── BLUE BANNER MODULE STYLES ─── */
.hp-banner-text {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  color: #FFFFFF;
}

.hp-banner-text .reg {
  font-size: 14px;
  vertical-align: super;
}

/* ─── STATS MODULE STYLES ─── */
.hp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-light);
}

.hp-stat-item {
  background: var(--bg-white);
  padding: 28px 20px;
  text-align: center;
}

.hp-stat-number {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.hp-stat-number.blue { color: var(--bc-blue); }
.hp-stat-number.green { color: var(--bc-green); }
.hp-stat-number.gold { color: var(--bc-gold); }
.hp-stat-number.purple { color: var(--bc-purple); }

.hp-stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  font-weight: 600;
}

/* ─── REINVENTING MODULE STYLES ─── */
.hp-reinventing { text-align: center; }

.hp-section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--bc-blue);
  font-weight: 700;
  margin-bottom: 14px;
}

.hp-reinventing h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--text-dark);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hp-reinventing h2 .highlight { color: var(--bc-blue); }

.hp-reinventing .lead {
  font-size: 17px;
  color: var(--text-body);
  max-width: 720px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

/* Capability vs Literacy comparison */
.hp-capability-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 900px;
  margin: 0 auto 40px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
}

.hp-cap-side {
  padding: 32px 28px;
  text-align: left;
}

.hp-cap-side.old-way {
  background: var(--bg-stripe);
  border-right: 1px solid var(--border-light);
}

.hp-cap-side.new-way {
  background: var(--bg-white);
}

.hp-cap-side .side-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hp-cap-side.old-way .side-label { color: var(--text-light); }
.hp-cap-side.new-way .side-label { color: var(--bc-blue); }

.hp-cap-side h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hp-cap-side.old-way h3 { color: var(--text-light); }
.hp-cap-side.new-way h3 { color: var(--text-dark); }

.hp-cap-side p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.hp-cap-side.old-way p { color: var(--text-light); }
.hp-cap-side.new-way p { color: var(--text-body); }

.hp-cap-side .side-stat {
  font-size: 13px;
  font-weight: 600;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.hp-cap-side.old-way .side-stat { color: var(--text-light); }
.hp-cap-side.new-way .side-stat { color: var(--bc-green); }

/* Curriculum callout */
.hp-curriculum {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 32px;
  background: var(--bg-stripe);
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.hp-curriculum-number {
  font-size: 52px;
  font-weight: 800;
  color: var(--bc-blue);
  line-height: 1;
  min-width: 72px;
  text-align: center;
}

.hp-curriculum-text { text-align: left; }

.hp-curriculum-text h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.hp-curriculum-text p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
}

.hp-standards-badges {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.hp-badge-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hp-badge-tag.national {
  background: rgba(64,112,184,0.1);
  color: var(--bc-blue);
  border: 1px solid rgba(64,112,184,0.2);
}

.hp-badge-tag.state {
  background: rgba(112,184,64,0.08);
  color: var(--bc-green);
  border: 1px solid rgba(112,184,64,0.2);
}

.hp-badge-tag.methods {
  background: rgba(236,151,31,0.08);
  color: var(--bc-orange);
  border: 1px solid rgba(236,151,31,0.2);
}

/* ─── PILLARS MODULE STYLES ─── */
.hp-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hp-pillar {
  background: var(--bg-white);
  border-radius: 8px;
  padding: 32px 24px;
  border: 1px solid var(--border-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hp-pillar:hover {
  border-color: var(--bc-blue);
  box-shadow: 0 2px 12px rgba(64,112,184,0.1);
}

.hp-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.hp-pillar-icon.competition { background: rgba(112,184,64,0.1); }
.hp-pillar-icon.outcomes { background: rgba(64,112,184,0.1); }
.hp-pillar-icon.teachers { background: rgba(236,151,31,0.1); }

.hp-pillar h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.hp-pillar p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
}

.hp-pillar-stat {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--bc-blue);
  font-weight: 600;
}

/* ─── CTA MODULE STYLES ─── */
.hp-cta h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.hp-cta p {
  font-size: 16px;
  color: var(--text-body);
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hp-cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hp-btn-primary {
  background: var(--bc-green);
  color: white;
  padding: 12px 32px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.hp-btn-primary:hover { background: var(--bc-green-bright); color: white; text-decoration: none; }

.hp-btn-secondary {
  background: var(--bg-white);
  color: var(--text-dark);
  padding: 12px 32px;
  border: 1px solid var(--border-card);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.hp-btn-secondary:hover { border-color: var(--bc-blue); color: var(--bc-blue); text-decoration: none; }

/* ─── SPONSOR CTA MODULE STYLES ─── */
.hp-sponsor-cta-inner {
  background: var(--bg-stripe);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--bc-gold);
  border-radius: 8px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hp-sponsor-cta-inner h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.hp-sponsor-cta-inner h3 .gold { color: var(--bc-gold); }

.hp-sponsor-cta-inner p {
  font-size: 14px;
  color: var(--text-body);
  max-width: 600px;
  line-height: 1.7;
}

.hp-btn-sponsor, .hp-btn-sponsor:visited {
  background: var(--bc-gold);
  color: #FFFFFF;
  padding: 12px 28px;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.hp-btn-sponsor:hover { opacity: 0.9; color: white; text-decoration: none; }

/* ─── FOOTER PANE ─── */
.bc-site-footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
  padding: 36px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
}

.bc-site-footer a {
  color: var(--text-body);
  text-decoration: none;
  margin: 0 12px;
}

.bc-site-footer a:hover { color: var(--bc-blue); }
