/* ===================================================================
   FC Bucklebury Cougars — "Match Day" Design v1
   Concept: bold editorial / match programme — strong horizontal
   stripes, dark header bands, sharp geometry, red & black blocking
   Headings: Staatliches | Body: Outfit
=================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ---------------------------------------------------------------
   VARIABLES
---------------------------------------------------------------- */
:root {
  --red:      #cc0000;
  --dark-red: #9e0000;
  --black:    #0d0d0d;
  --charcoal: #1c1c1c;
  --slate:    #2e2e2e;
  --offwhite: #f6f6f6;
  --white:    #ffffff;
  --stripe-h: 5px;          /* height of a single stripe band */
  --font-h:   'Staatliches', sans-serif;
  --font-b:   'Outfit', sans-serif;
}

/* ---------------------------------------------------------------
   RESET HELPERS
---------------------------------------------------------------- */
* { box-sizing: border-box; }

/* ---------------------------------------------------------------
   GLOBAL TYPE
---------------------------------------------------------------- */
body {
  font-family: var(--font-b);
  font-size: 17px;
  color: #222;
  background: var(--offwhite);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-h) !important;
  letter-spacing: 0.05em;
}

p, li, td, th, label, input, textarea, select, button {
  font-family: var(--font-b);
}

a { color: var(--red); transition: color 0.2s; }
a:hover { color: var(--dark-red); }

.cougarsred { color: var(--red) !important; }
.gray { color: #888; }

/* ---------------------------------------------------------------
   WIDE CONTAINER
---------------------------------------------------------------- */
@media (min-width: 1400px) { .container { max-width: 1340px !important; } }
@media (min-width: 1600px) { .container { max-width: 1520px !important; } }

/* ---------------------------------------------------------------
   THREE-STRIPE UTILITY  (red / black / red)
   Used as repeating background or border stacks
---------------------------------------------------------------- */
.stripe-bar {
  width: 100%;
  height: 15px;
  background:
    linear-gradient(var(--red) 0 33%, var(--black) 33% 67%, var(--red) 67% 100%);
  display: block;
}

/* ---------------------------------------------------------------
   TOP BAR
---------------------------------------------------------------- */
#topbar {
  background: var(--black) !important;
  border-bottom: 3px solid var(--red);
}

#topbar .social-icons li a {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 0.7;
  transition: opacity 0.2s !important;
}
#topbar .social-icons li a:hover { opacity: 1; }

/* ---------------------------------------------------------------
   HEADER — always solid, never transparent
---------------------------------------------------------------- */
#header,
#header .header-inner,
#header #header-wrap {
  background: var(--black) !important;
  border-bottom: none !important;
}

/* Three-stripe bottom edge on header */
#header::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 9px;
  background:
    linear-gradient(
      to bottom,
      var(--red)   0px, var(--red)   3px,
      var(--black) 3px, var(--black) 6px,
      var(--red)   6px, var(--red)   9px
    );
  z-index: 10;
}

#header .header-inner { height: 90px !important; padding-bottom: 9px; }

#logo { height: 90px !important; }
#logo img {
  max-height: 80px !important;
  width: auto;
  transition: opacity 0.25s;
}
#logo img:hover { opacity: 0.85; }

/* Nav top-level */
#mainMenu nav > ul > li > a {
  font-family: var(--font-b) !important;
  font-size: 16px !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e0e0e0 !important;
  transition: color 0.2s;
}
#mainMenu nav > ul > li > a:hover,
#mainMenu nav > ul > li.active > a {
  color: var(--red) !important;
}
/* Red underline on hover */
#mainMenu nav > ul > li > a::after {
  background: var(--red) !important;
  height: 3px !important;
}

/* Dropdown */
#mainMenu .dropdown-menu {
  background: var(--charcoal) !important;
  border-top: 3px solid var(--red) !important;
  border-radius: 0 !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6) !important;
  min-width: 220px !important;
}
#mainMenu .dropdown-menu li a {
  font-family: var(--font-b) !important;
  font-size: 15px !important;
  font-weight: 500;
  color: #ccc !important;
  padding: 11px 24px !important;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.15s;
}
#mainMenu .dropdown-menu li:last-child a { border-bottom: none; }
#mainMenu .dropdown-menu li a:hover {
  color: #fff !important;
  background: var(--red) !important;
  padding-left: 32px !important;
}

/* ---------------------------------------------------------------
   MOBILE NAV
---------------------------------------------------------------- */
#mainMenu-trigger .lines-button .lines,
#mainMenu-trigger .lines-button .lines::before,
#mainMenu-trigger .lines-button .lines::after {
  background: #fff !important;
}

@media (max-width: 991px) {
  #mainMenu {
    background: var(--charcoal) !important;
    border-top: 4px solid var(--red) !important;
    padding: 8px 0 16px !important;
  }
  #mainMenu nav > ul > li > a {
    color: #fff !important;
    font-size: 16px !important;
    padding: 12px 20px !important;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  #mainMenu nav > ul > li > a:hover {
    color: var(--red) !important;
    background: rgba(255,255,255,0.03);
  }
  #mainMenu .dropdown-menu {
    background: var(--black) !important;
    border-top: none !important;
    border-left: 4px solid var(--red) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-width: 100% !important;
    position: static !important;
    float: none !important;
    padding: 0 !important;
  }
  #mainMenu .dropdown-menu li a {
    font-size: 14px !important;
    padding: 10px 20px 10px 28px !important;
  }
  #mainMenu .dropdown-menu li a:hover {
    padding-left: 36px !important;
  }
}

/* ---------------------------------------------------------------
   HERO / PAGE TITLE
   Text anchored to the bottom inside a dark band, bracketed by
   red horizontal stripes — the signature "match day" look
---------------------------------------------------------------- */
#page-title {
  min-height: 540px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

/* Light dark wash over the whole image */
#page-title::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.15) 45%,
    rgba(0,0,0,0.82) 100%
  );
  z-index: 1;
}

/* Full-width dark band at the bottom — the content lives here */
#page-title .container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100% !important;
  padding: 0 !important;
}

/* Red stripe above the dark panel */
#page-title .page-title {
  background: var(--black);
  border-top: var(--stripe-h) solid var(--red);
  border-bottom: var(--stripe-h) solid var(--red);
  padding: 28px 5% 32px;
  text-align: left;
  width: 100%;
}

#page-title .page-title h1 {
  font-family: var(--font-h) !important;
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 0.9;
  margin-bottom: 10px;
  text-transform: uppercase;
}

#page-title .page-title > span {
  font-family: var(--font-b);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 18px;
}

/* Team buttons */
#page-title .btn-danger {
  background: var(--red) !important;
  border: 2px solid var(--red) !important;
  border-radius: 0;
  font-family: var(--font-b) !important;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 20px !important;
  margin: 3px 4px 3px 0 !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
#page-title .btn-danger:hover {
  background: var(--white) !important;
  color: var(--red) !important;
  border-color: var(--white) !important;
}

/* ---------------------------------------------------------------
   PAGE CONTENT SECTION
---------------------------------------------------------------- */
#page-content {
  background: var(--offwhite);
  padding: 50px 0 60px;
  /* No clip-path — clean break from hero stripe */
}

/* ---------------------------------------------------------------
   CONTENT BOXES — "match programme card"
   Sharp corners, dark full-width heading bar, red accent stripe
---------------------------------------------------------------- */
.content-box {
  background: var(--white);
  border-radius: 0;
  border: none;
  border-bottom: 3px solid #e0e0e0;
  padding: 0 0 20px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.content-box:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,0.14);
  transform: translateY(-2px);
}

/* Full-width dark heading bar bleeding edge to edge */
.content-box h3 {
  font-family: var(--font-h) !important;
  font-size: 2rem;
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--charcoal);
  margin: 0 0 18px;
  padding: 14px 22px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 6px solid var(--red);
}
.content-box h3 .fa,
.content-box h3 .fas,
.content-box h3 .far,
.content-box h3 .fab {
  color: var(--red);
  font-size: 1.1rem;
}

/* Body content padding */
.content-box > *:not(h3) {
  padding-left: 22px;
  padding-right: 22px;
}

/* News date — large Staatliches */
.content-box h5.gray {
  font-family: var(--font-h) !important;
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 10px;
  padding-left: 22px;
}

/* ---------------------------------------------------------------
   VIDEO EMBED
---------------------------------------------------------------- */
iframe[src="vid.html"] {
  display: block;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  margin-bottom: 28px;
  border-top: 4px solid var(--red);
}

/* ---------------------------------------------------------------
   SPONSORS SECTION
---------------------------------------------------------------- */
#page-content > .container:last-of-type {
  background: var(--white);
  border-radius: 0;
  padding: 36px 30px;
  margin-top: 30px;
  border-top: var(--stripe-h) solid var(--red);
  border-bottom: var(--stripe-h) solid var(--red);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.heading-text.heading-section p.lead {
  font-family: var(--font-h);
  font-size: 2rem;
  letter-spacing: 0.06em;
  color: var(--black);
  margin-bottom: 24px;
}
.heading-text.heading-section p.lead strong { color: var(--red); }

.heading-text.heading-section a img {
  filter: grayscale(30%);
  opacity: 0.8;
  transition: all 0.25s;
}
.heading-text.heading-section a img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.07);
}

/* ---------------------------------------------------------------
   GENERAL BUTTONS
---------------------------------------------------------------- */
.btn-danger {
  background: var(--red) !important;
  border-color: var(--red) !important;
  border-radius: 0;
  font-family: var(--font-b) !important;
  font-weight: 700;
  letter-spacing: 0.07em;
  transition: all 0.2s;
}
.btn-danger:hover {
  background: var(--dark-red) !important;
  border-color: var(--dark-red) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(204,0,0,0.4);
}

/* ---------------------------------------------------------------
   FOOTER  — full black, red stripe rows for widget headings
---------------------------------------------------------------- */
#footer {
  background: var(--black);
  color: #aaa;
}

/* Triple-stripe top border */
#footer::before {
  content: '';
  display: block;
  height: 9px;
  background:
    linear-gradient(
      to bottom,
      var(--red)   0px, var(--red)   3px,
      var(--black) 3px, var(--black) 6px,
      var(--red)   6px, var(--red)   9px
    );
}

#footer .footer-content {
  background: var(--black);
  padding: 48px 0 32px;
}

/* Widget badge header — red panel with white text */
#footer .widget-title {
  font-family: var(--font-h) !important;
  font-size: 2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  display: inline-block;
  padding: 4px 14px 2px;
  margin-bottom: 18px;
  line-height: 1.2;
}

#footer .widget ul.list { margin: 0; padding: 0; }
#footer .widget ul.list li {
  list-style: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 7px 0;
}
#footer .widget ul.list li::before {
  content: '—';
  color: var(--red);
  margin-right: 8px;
  font-weight: 700;
}
#footer .widget ul.list li a {
  font-family: var(--font-b);
  color: #bbb;
  font-size: 1rem;
  transition: color 0.2s;
}
#footer .widget ul.list li a:hover { color: var(--red); }

#footer .widget p,
#footer .widget address,
#footer .widget span {
  font-family: var(--font-b);
  font-size: 1rem;
  color: #bbb;
  line-height: 1.65;
}

#footer img[src="badge.png"],
#footer img[src*="Badge"] {
  opacity: 0.8;
  transition: opacity 0.2s;
}
#footer img[src="badge.png"]:hover,
#footer img[src*="Badge"]:hover { opacity: 1; }

/* Copyright strip */
#footer .copyright-content {
  background: #000 !important;
  border-top: 3px solid var(--red);
  padding: 20px 0;
}
#footer .copyright-text {
  font-family: var(--font-b);
  color: #666;
  font-size: 0.9rem;
  line-height: 1.9;
}
#footer .copyright-text a { color: #666; }
#footer .copyright-text a:hover { color: var(--red); }

/* ---------------------------------------------------------------
   SOCIAL ICONS — borderless
---------------------------------------------------------------- */
.social-icons li a {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  opacity: 0.7;
  transition: opacity 0.2s !important;
}
.social-icons li a:hover {
  background: transparent !important;
  opacity: 1;
}

/* ---------------------------------------------------------------
   SCROLL TO TOP
---------------------------------------------------------------- */
#scrollTop {
  background: var(--red);
  border-radius: 0;
}
#scrollTop:hover { background: var(--dark-red); }

/* ---------------------------------------------------------------
   FOOTBALL THEME EXTRAS
---------------------------------------------------------------- */
/* Red pulsing live indicator */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.live-badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse-dot 1.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.6); opacity: 0.4; }
}

/* Stat pill */
.stat-pill {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--font-h);
  font-size: 1.5rem;
  line-height: 1;
  padding: 5px 16px 3px;
  border-radius: 0;
  margin: 0 4px;
}

/* ---------------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------------- */
@media (max-width: 768px) {
  #page-title { min-height: 360px; }
  #page-title .page-title { padding: 20px 5% 24px; }
  #page-title .page-title h1 { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  #logo img { max-height: 60px !important; }
  .content-box h3 { font-size: 1.6rem; }
  #footer .widget-title { font-size: 1.6rem; }
}

/* ---------------------------------------------------------------
   MISC
---------------------------------------------------------------- */
.p-20 { padding: 10px 14px; }
