/*
 Theme Name:   CRFC Main Page Theme
 Theme URI:    https://test.thecrfc.org/
 Description:  Customized theme to meet CRFC's needs. Implements a custom header along with additional stylings
 Author:       Steven Streasick
 Version:      1.0.2
 Text Domain:  website_theme
*/

/* Embedded dropdown menus code originates from https://mdbootstrap.com/docs/standard/extended/dropdown-multilevel/#example1 */

:root {
    /** THESE COLORS SHOULD NOT BE MODIFIED **/
    /* OFFICIAL CRFC THEME COLORS */
    --raw-electric-blue: 39 170 225;
    --base-electric-blue: rgb(var(--raw-electric-blue));
    --base-endzone-onyx: rgb(35, 31, 32);
    --base-touchdown-white: rgb(255, 255, 255);
    --base-silver: rgb(115, 121, 142);
    --base-platinum: rgb(75, 79, 96);
    --base-lemon-chiffron: #faf0ca;
    

    /* MAKESHIFT THEME COLORS */
    --sandy-brown: #ee964b;
    --tomato-raw: 249 87 56;
    --green-raw: 86 246 196;
    --navy-blue-raw: 70 101 147;
    --tomato: rgb(var(--tomato-raw));
    --green: rgb(var(--green-raw));
    --navy-blue: rgb(var(--navy-blue-raw));
    --gold: #c8922a;
    --gold-light: #e8b44a;

    /* TRANSPARENT COLORS */
    --base-transparent-electric-blue: #27aae1b3;
    --base-transparent-lemon-chiffron: rgba(250, 240, 202, .6);

    /* LIGHT COLORS */
    --base-light-lemon-chiffron: #fae1e1;

    /** THESE COLORS ARE SUBJECT TO MODIFICATION BASED ON THEME TYPE **/
    /* OFFICIAL CRFC THEME COLORS */
    --crfc-electric-blue: var(--base-electric-blue);
    --crfc-endzone-onyx: var(--base-endzone-onyx);
    --crfc-touchdown-white: var(--base-touchdown-white);
    --crfc-silver: var(--base-silver);
    --crfc-platinum: var(--base-platinum);

    /* MAKESHIFT COLORS */
    --tomato-faint-background: rgb(var(--tomato-raw) / 0.3);
    --tomato-strong-background: rgb(var(--tomato-raw) / 0.65);
    --green-strong-background: rgb(var(--green-raw) / .65);
    --navy-blue-strong-background: rgb(var(--navy-blue-raw) / .65);

    /* TRANSPARENT COLORS */
    --crfc-transparent-electric-blue: var(--base-transparent-electric-blue);

    /* COLOR FOR BORDER ON CARDS (VERTICAL CAROUSAL)  */
    --card-border-color: rgb(220, 220, 220);

    /** NAVBAR SETTINGS **/
    --nav-font-size: 1.25rem;
    --navbar-height: 0px;
}

/* GLOBAL STYLING */
body {
    font-family: 'Roboto Condensed', sans-serif;
    /* background-color: var(--lavendar-rose); */
}

h1, h2 {
    font-weight: 700; /* Bold */
}

.h3, h4, h5, h6 {
    font-weight: 400;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--crfc-endzone-onyx);
}

.italic {
    font-style:italic;
}

.subtitle {
    font-weight: 400; /* Regular */
}

p, li, span, div {
    font-weight: 300; /* Light */
}

a {
    color: var(--crfc-electric-blue);
    text-decoration: none;
}

.nav-link:active {
    background-color: rgba(0, 0, 0, 0.25) !important; /* Dark semi-transparent */
    border-radius: 8px; /* Rounded corners */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3); /* Inset shadow for "depressed" effect */
    text-decoration: none !important; /* Remove any underline */
}

/* Optional: Add a subtle effect on hover (lighter version) */
.nav-link:hover {
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    text-decoration: none; /* Override your existing underline on hover */
}

/* Keep your existing hover style for regular links, but not nav-links */
a:hover:not(.nav-link) {
    text-decoration: underline;
    text-decoration-color: var(--base-endzone-onyx);
}

/* Smooth transition */
.nav-link {
    transition: all 0.15s ease;
}
.crfc-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 0;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
    color: inherit
}

.crfc-card:hover {
    background-color: rgba(248, 248, 248, 0.884);
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    transform: translateY(-4px);
    border-color: #0d6efd;
    text-decoration: none
}

.blue-crfc-card {
    border: 1px solid var(--crfc-electric-blue);
    box-shadow: 0 2px 8px rgba(var(--raw-electric-blue) / .4);
}

.blue-highlight-crfc-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--crfc-electric-blue);
}
.blue-highlight-crfc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #378ADD 0%, #1D9E75 100%);
}

.crfc-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: .75rem
}

.crfc-card h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #1a1a1a;
  font-weight: 600
}

.crfc-card p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.6;
  color: #666;
  flex-grow: 1
}

.crfc-card a {
    text-decoration: none; 
}

.card-text {
    font-size: 20px;
} 

.crfc-card-border-right {
    border-bottom: 1px solid var(--card-border-color);
}

@media screen and (min-width: 992px) {
  .crfc-card-border-right {
    border-bottom: 0;
    border-right: 1px solid var(--card-border-color);
  }
}

/* ================================
   			BUTTONS
================================ */
/* PRIMARY BUTTON */
.crfc-primary-button {
    display: inline-block;
    background: var(--crfc-touchdown-white);
    color: var(--crfc-endzone-onyx);
    border: 2px solid transparent;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.15s ease;
}

.crfc-primary-button:hover {
    background: transparent;
    color: var(--crfc-touchdown-white) !important;
    border-color: var(--crfc-touchdown-white) !important;
    transform: translateY(-1px);
}

.crfc-primary-button:active {
    background: transparent;
    color: var(--crfc-touchdown-white) !important;
    border-color: var(--crfc-touchdown-white) !important;
    transform: translateY(1px);
}

/* SECONDARY BUTTON */
body.woocommerce .add_to_cart_button,
.crfc-secondary-button {
    display: inline-block;
    background: linear-gradient(
        to bottom,
        color-mix(in srgb, var(--crfc-electric-blue) 90%, var(--crfc-endzone-onyx)),
        var(--crfc-electric-blue)
    );
    color: var(--crfc-touchdown-white) !important;
    border-radius: 0.75rem;
    padding: 0.75rem 2rem;
    letter-spacing: 0.3px;
    transition: transform 0.15s ease, filter 0.15s ease;
}

body.woocommerce .add_to_cart_button:hover,
.crfc-secondary-button:hover {
    background: linear-gradient(
        to bottom,
        color-mix(in srgb, var(--crfc-electric-blue) 90%, var(--crfc-endzone-onyx)),
        var(--crfc-electric-blue)
    );
    color: var(--crfc-touchdown-white) !important;
    transform: translateY(-1px);
    filter: brightness(0.95);
}

body.woocommerce .add_to_cart_button:active,
.crfc-secondary-button:active {
    transform: translateY(1px); /* slight press-down feel */
    filter: brightness(0.9);
}

/* TERTINARY BUTTON */
.crfc-hollow-button {
    padding: 1rem;
    border-radius: 6px;
    border: 2px solid var(--crfc-electric-blue);
    background-color: var(--crfc-touchdown-white);
    color: var(--crfc-electric-blue);
    cursor: pointer;
    user-select: none;
}

/* ================================
   NAVBAR
================================ */
@media all and (max-width:992px) {
    :root {
        --nav-font-size: 1.05rem;
    }
}

@media all and (max-width:768px) {
    :root {
        --nav-font-size: 1.1rem;
    }
}

@media all and (max-width:576px) {
    :root {
        --nav-font-size: 1.12rem;
    }
}

.nav-link {
    font-size: var(--nav-font-size);
    color: var(--bs-navbar-active-color);
}

.dropdown-menu li {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle::after {
    border: solid;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 2.5px;
    transform: rotate(45deg);
    vertical-align: middle;
    content: "";
}

.dropdown .dropdown-menu .dropdown-toggle::after {
    transform: rotate(-45deg);
}

/* submenu */
.dropdown-menu .dropdown-menu {
    left: 100%;
    top: 0;
    margin-left: .1rem;
    margin-right: .1rem;
}

.navbar .navbar-brand {
    min-height: 48px;
}

.navbar .navbar-brand img {
    height:100%; 
    max-height:30px;
    width:auto;
}

.theme-container {
    right: 0; 
    top: 15px;
}

.crfc-blue-stripe {
    position: relative;
    height: 4px;
    width: 100%;
    background-color: rgb(39, 170, 225);
    z-index: 1;
}

/* visual-only fade; not in document flow and not interactive */
.crfc-blue-stripe::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;               /* immediately below the 4px stripe */
    width: 100%;
    height: 24px;            /* how far the fade extends visually */
    pointer-events: none;    /* important: fade won't block clicks */
    background: linear-gradient(
      to bottom,
      rgba(39,170,225,0.35) 0%,
      rgba(39,170,225,0.25) 40%,
      rgba(39,170,225,0.08) 70%,
      rgba(39,170,225,0) 100%
    );
}

#themeToggle {
    color: #f8f9fa;
    background-color: transparent;
    border: none;
}

#themeToggle:hover {
    color: #000;               /* text color on hover */
    background-color: #f8f9fa; /* same hover background as default */
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 2;
}


/* ================================
   HERO/NEWS CAROUSAL
================================ */
.hero {
    position: relative;
    height: calc(100vh - var(--navbar-height, 60px));
    min-height: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 0% 50%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,22,40,0.55) 0%, rgba(10,22,40,0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--crfc-touchdown-white);
    padding: 2rem;
}

.hero-content h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.05;
    text-shadow: 0 4px 24px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.hero-content .btn {
    font-size: 1.1rem;
}

.hero-tagline {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.1rem, 3vw, 1.7rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-style: italic;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.news {
    padding: 5rem 0;
    background: var(--crfc-touchdown-white);
}

/* Carousel */
.carousel-wrapper {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
	border-radius: 15px;
	box-shadow: 15px 15px 0px var(--tomato);
    padding-right: 15px;
    padding-bottom: 15px;
}

#newsCarousel,
.carousel-inner,
.carousel-item {
    height: 100%;
}

.carousel-item > .mx-auto {
	height: 100%;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.carousel-item img {
	width: 100%;
	height: 100%;
	object-fit: fill;
	object-position: center;
	display: block;
}

.carousel-control-prev,
.carousel-control-next {
    width: 3rem;          /* default is ~15% */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .6;
    filter: none;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-size: 60% 60%;
    transition: background-color 0.2s ease;
}

/* Hover over the control area → show circle */
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgb(110, 148, 148); 
    opacity: .9;
}

.carousel-indicators > button {
    background-color: var(--base-silver) !important;
}

.carousel-indicators > button.active {
    background-color: var(--crfc-endzone-onyx) !important;
}

/* NEWS CAROUSEL — natural height (no longer locked to 50vh) */
/* Scoped to .news-carousel-section so all hero styles remain untouched */
.news-carousel-section {
    flex: 0 0 auto;   /* don't grow/shrink inside hero-container flex */
    height: auto;
    min-height: 0;
    padding-bottom: 0.5rem;
}

.news-carousel-section .carousel-wrapper {
    height: auto;
    aspect-ratio: unset;
}

.news-carousel-section #newsCarousel,
.news-carousel-section .carousel-inner,
.news-carousel-section .carousel-item {
    height: auto;
}

.news-carousel-section .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: unset; /* let the image's natural dimensions drive the height */
    display: block;
    border-radius: 20px;
}

.scroll-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    animation: bounce 2s infinite;
}

.scroll-arrow i {
    font-size: 2.5rem;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.scroll-arrow:hover i {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-5px);
    }
    60% {
        transform: translateX(-50%) translateY(-3px);
    }
}


/* ================================
   EVENT SECTION
================================ */
.events-section {
    padding: 5rem 0;
    background: var(--crfc-touchdown-white);
}

.events-banner {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--crfc-endzone-onyx);
    letter-spacing: 0.04em;
    margin-bottom: 2.5rem;
}
.section-title.centered { text-align: center; }

.events-grid { display: flex; flex-direction: column; gap: 3.5rem; }

.event-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.event-card.reverse { direction: rtl; }
.event-card.reverse > * { direction: ltr; }

.event-card-text h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--crfc-endzone-onyx);
    margin-bottom: 1rem;
}

.event-card-text p {
    color: #444;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.event-card-img img {
    border-radius: 8px;
    width: 100%;
    height: 320px;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}


/* =============================================
   LEGACY BANNER
   ============================================= */
.legacy-banner {
  position: relative;
  overflow: hidden;
}

.legacy-banner a {
  display: block;
  position: relative;
}

.legacy-banner .legacy-bg {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
}

.legacy-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,22,40,0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--crfc-touchdown-white);
  text-align: center;
  padding: 2rem;
}

.legacy-overlay h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.legacy-overlay p {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  letter-spacing: 0.1em;
  font-style: italic;
}

/* ================================
   VALUES SECTION
================================ */
.values-section {
  padding: 5rem 0;
  background: var(--crfc-touchdown-white);
}

.values-grid { display: flex; flex-direction: column; gap: 3.5rem; }

.value-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.value-card.reverse { direction: rtl; }
.value-card.reverse > * { direction: ltr; }

.value-text h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--crfc-endzone-onyx);
  margin-bottom: 1rem;
  border-left: 4px solid var(--gold);
  padding-left: 1rem;
}

.value-text p {
  color: #444;
  line-height: 1.75;
}

.value-img img {
  border-radius: 8px;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.innovation-image {
    box-shadow: 8px 8px 0px var(--tomato-strong-background);
}

.research-image {
    box-shadow: -8px 8px 0px var(--navy-blue-strong-background);
}

.community-image {
    box-shadow: 8px 8px 0px var(--green-strong-background);
}

/* ================================
   PODCAST SECTION
================================ */
.podcast-section {
    padding: 5rem 0;
}

/* ================================
   STATISTICS SECTION
================================ */
.stats-section {
    padding: 5rem 0;
}
.stat-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.stat-img-wrapper {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.stat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: brightness(0.75) saturate(0.9);
  transition: transform 0.4s ease, filter 0.3s ease;
}

.stat-card:hover .stat-img {
  transform: scale(1.03);
  filter: brightness(0.7) saturate(0.95);
}

.zoom-img {
  scale: 1.4;
}

/* Overlay container */
.stat-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
  padding: 2rem;
}

/* Content box - similar feel to quote carousel */
.stat-content-overlay {
  text-align: center;
  max-width: 90%;
  color: white;
}

.stat-number {
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.stat-description {
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  font-weight: 400;
  font-style: italic;
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
}

/* Quote carousel styling */
.vertical-carousel {
    min-height: 320px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 1rem;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    border-left: 4px solid var(--gold);
}

/* Viewport */
.vertical-carousel .carousel-inner {
    height: 100%;
    min-height: 300px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Base slide */
.vertical-carousel .carousel-item {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transform: translateY(0);
}

/* Visible slides */
.vertical-carousel .carousel-item.active,
.vertical-carousel .carousel-item-next,
.vertical-carousel .carousel-item-prev {
    display: flex;
    opacity: 1;
}

/* INCOMING slide — from TOP only */
.vertical-carousel .carousel-item-next {
    transform: translateY(-100%);
}

/* OUTGOING slide — to BOTTOM only */
.vertical-carousel .carousel-item.active.carousel-item-end,
.vertical-carousel .carousel-item.active.carousel-item-start {
    transform: translateY(100%);
}

/* SETTLED active slide */
.vertical-carousel .carousel-item.active:not(.carousel-item-start):not(.carousel-item-end) {
    transform: translateY(0);
}

/* Smooth ramped animation */
.vertical-carousel .carousel-item {
    transition:
        transform 1.6s cubic-bezier(.22,.61,.36,1),
        opacity 0.6s ease;
}

/* Quote wrapper */
.quote-wrapper {
    position: relative;
    max-width: 90%;
    margin: 0 auto;
}

/* Decorative quote icon */
.quote-icon {
    width: 48px;
    height: 48px;
    color: rgba(37, 99, 235, 0.15);
    margin-bottom: 1rem;
    opacity: 0;
    transform: scale(0.8);
    animation: fadeInScale 0.6s ease forwards 0.3s;
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Quote styling */
.vertical-carousel blockquote {
    margin: 0;
    position: relative;
}

.quote-text {
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.35;
    color: #1f2937;
    margin: 0 0 1.25rem 0;
    font-weight: 400;
}

/* Author attribution */
.quote-author {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-style: normal;
    border-top: 2px solid rgba(37, 99, 235, 0.2);
    padding-top: 1rem;
    margin-top: 1rem;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

.author-year {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    /* Stack on smaller screens */
    .col-lg-9.crfc-card-border-right {
        display: block;
    }
    
    /* .vertical-carousel {
        margin-top: 1.5rem;
    } */
}

@media (max-width: 768px) {
    .vertical-carousel {
        padding: 1.5rem 1rem;
        min-height: 350px;
    }
    
    .vertical-carousel .carousel-inner {
        min-height: 350px;
    }
    
    .quote-icon {
        width: 36px;
        height: 36px;
    }
    
    .quote-text {
        font-size: 0.95rem;
    }
}
/* ================================
   SPONSORS SECTION
================================ */
.sponsors-banner {
    background: repeating-linear-gradient(
        135deg, 
        rgba(255,255,255,0.06) 0, 
        rgba(255,255,255,0.06) 15px, 
        transparent 15px, 
        transparent 30px
    ), var(--crfc-electric-blue);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    padding: 3rem 1.5rem;
    text-align: center;
}

.sponsors-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: white;
    margin-bottom: 2rem;
}

.sponsors-grid {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sponsors-grid img {
    max-width: 300px;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.2s;
}

.sponsors-grid img:hover { 
    filter: none;
    transition: transform 0.1s ease-in-out;
    transform: scale(1.01); 
}

/* ================================
   Footer
================================ */
.footer-logo {
    max-width: 140px;
    margin-bottom: 10px;
}

.footer a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 0.7;
}

.footer .navbar-brand {
    margin-bottom: 0; /* clean up any spacing under the logo link */
}

/* ================================
   Buttons
================================ */
button {
    cursor: pointer;
}

/* ================================
   Product Page / Merch
================================ */
.woocommerce-form-coupon-toggle {
    display: block !important;
}
/* Show Checkout header */
body.woocommerce-checkout #masthead {
    display: block !important;
}
/* PRODUCT PAGE - Move PayPal button below all cart buttons */
body.woocommerce .wc-ppec-skeleton-button-container {
    order: 10; /* last in the flex parent */
}
/* Give the PayPal button some top margin to separate it */
body.woocommerce .wc-ppec-skeleton-button-container {
    margin-top: 1rem;
}
/* Unify PayPal button height with other buttons */
body.woocommerce .wc-ppec-skeleton-button-container .wc-ppec-skeleton-button.wc-ppec-skeleton-button--default {
    line-height: 1; /* inherit line-height from the element */
    min-height: 48px; /* or whatever height you want */
}
/* Carousel Caption on Image */
.carousel-caption {
    position: absolute;
    z-index: 10;
    padding-top: 2%;
    padding-bottom: 2%;
    color: white;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 1);
}

.carousel-caption p {
    font-size: 1.25rem;
}

.carousel-caption h2 {
    font-size: 2rem;
}

/* TABLET */
@media all and (max-width: 768px) {
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .carousel-caption h2 {
        font-size: 1.4rem;
    }
}

/* MOBILE */
@media all and (max-width: 576px) {
    .carousel-caption p {
        font-size: 0.85rem;
    }
    .carousel-caption h2 {
        font-size: 1.25rem;
    }
}

/* ================================
   Media Objects
================================ */
.media-item img {
    width: 100%;
    height: auto;
}

.fl-photo-img {
    width: 100%;
    height: auto;
}

/* ================================
   Responsive Layouts
================================ */
@media (max-width: 600px) {
    .fl-builder-content .fl-node-p0d80hhb2myu {
        grid-template-columns: 1fr !important;
    }
}

/* Home Page */
.fl-builder-content-30 .fl-node-gjb0ltwggpkl,
.fl-builder-content-30 .fl-node-cqxffr086kni {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    grid-template-rows: auto !important; 
}

/* Past Events */
.fl-builder-content-633 .fl-node-edkaq4h9z8uy {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    grid-template-rows: auto !important; 
}

/* Future Events */
.fl-builder-content-532 .fl-node-mvb32eua45lh {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    grid-template-rows: auto !important; 
}

/* Contact Us Page */
.fl-builder-content-559 .fl-node-cz9lhjv2dotp {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    grid-template-rows: auto !important; 
}

/* Rules Page */
.fl-builder-content-91 .fl-node-01hsamwc5zfp {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    grid-template-rows: auto !important; 
}

/* Form a Team */
.fl-builder-content-675 .fl-node-f1jctwe843l2 {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: auto !important;
}
@media (max-width: 600px) {
    .fl-builder-content-675 .fl-node-f1jctwe843l2 {
        grid-template-columns: 1fr !important;
    }
}
.fl-builder-content-675 .fl-node-rmk6ievjq503 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    grid-template-rows: auto !important; 
}

/* Donate Page */
.fl-builder-content-630 .fl-node-bst5vc4hdqgz {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    grid-template-rows: auto !important; 
}
/* Who we Are */
.fl-builder-content-705 .fl-node-9hfopzl0j5gc {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    grid-template-rows: auto !important; 
}

/* Schedule */
#crfc-schedule .nav-tabs,
#crfc-records .nav-tabs {
    border-bottom: 2px solid var(--crfc-endzone-onyx);
}
#crfc-schedule .nav-link,
#crfc-records .nav-link {
    color: var(--crfc-endzone-onyx);
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}
#crfc-schedule .nav-link:hover,
#crfc-records .nav-link:hover {
    color: var(--crfc-electric-blue);
    border-bottom-color: transparent;
}
#crfc-schedule .nav-link.active,
#crfc-records .nav-link.active {
    color: var(--crfc-electric-blue);
    border-bottom: 3px solid var(--crfc-electric-blue);
    background: none;
}
#crfc-schedule .crfc-time,
#crfc-records .crfc-time {
    color: var(--crfc-endzone-onyx);
}

#crfc-records .crfc-record-label {
    color: var(--crfc-electric-blue);
    line-height: 1.3;
}
#crfc-records .crfc-team-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 8px;
    flex-shrink: 0;
}
#crfc-records .crfc-holder-wrap {
    display: flex;
    align-items: center;
}
#crfc-records .crfc-record-holder a {
    font-weight: 600;
    color: inherit;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    transition: text-decoration-color 0.15s;
}
#crfc-records .crfc-record-holder a:hover {
    text-decoration-color: currentColor;
}
#crfc-records .crfc-since {
    font-size: 0.7rem;
    color: var(--bs-secondary);
    font-style: italic;
}
#crfc-records .crfc-tied {
    font-size: 0.75rem;
    color: var(--bs-secondary);
}
#crfc-records .crfc-tied a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    transition: text-decoration-color 0.15s;
}
#crfc-records .crfc-tied a:hover {
    text-decoration-color: currentColor;
}
#crfc-records .crfc-record-keeping {
    font-size: 0.7rem;
    color: var(--bs-secondary);
    font-style: italic;
    text-align: right;
    white-space: nowrap;
}
#crfc-records .nav-tabs .ms-auto {
    display: flex;
    align-items: flex-end;
    padding-bottom: 6px;
}

/* Volunteer with us */
.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.faq-question {
    background-color: #f8f9fa;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    margin: 0;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-question-text {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    margin: 0;
}

.faq-icon {
    font-size: 1.2rem;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 20px;
    background-color: #ffffff;
    color: #555;
    line-height: 1.6;
}


/** ================================
   Form Styling
================================ */
/* Focus-within label highlight */
.volunteer-form .mt-3:focus-within > .form-label,
.volunteer-form .row:focus-within .form-label {
    color: var(--crfc-electric-blue);
    transition: color 0.2s;
}

/* Checkbox pill buttons */
.availability-checks .wpcf7-list-item {
    margin: 0;
}
.availability-checks .wpcf7-list-item input[type="checkbox"] {
    display: none;
}
.availability-checks .wpcf7-list-item label {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1.5px solid #dee2e6;
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    background: #f8f9fa;
    transition: all 0.15s;
    text-transform: none;
    letter-spacing: 0;
    color: #495057;
}
.availability-checks .wpcf7-list-item input:checked + label {
    background: #0a0a0a;
    border-color: #0a0a0a;
    color: #fff;
}
.availability-checks .wpcf7-list-item label:hover {
    border-color: #0a0a0a;
    background: #f0f0f0;
}

/* Submit button hover */
.volunteer-form .wpcf7-submit:hover {
    background-color: var(--crfc-electric-blue) !important;
    border-color: var(--crfc-electric-blue) !important;
}

/* ================================
   Captcha
================================ */
.grecaptcha-badge {
    visibility: hidden;
}
.page-id-559 .grecaptcha-badge {
    visibility: visible;
}
.page-id-836 .grecaptcha-badge {
    visibility: visible;
}


/* ================================
   404 Page
================================ */
.error-404-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 4rem 1.5rem;
    background: #f9f7f4;
    font-family: 'DM Sans', sans-serif;
}

.error-404-inner {
    max-width: 640px;
    width: 100%;
    text-align: center;
}

.error-404-code {
    font-family: 'Playfair Display', serif;
    font-size: clamp(6rem, 18vw, 11rem);
    font-weight: 700;
    line-height: 1;
    color: #1a1a1a;
    letter-spacing: -0.04em;
    margin: 0 0 0.25rem;
    /* Subtle texture using text-shadow layers */
    text-shadow:
    2px 2px 0px #e8e3dc,
    4px 4px 0px #ddd7ce;
}

.error-404-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem auto;
    max-width: 280px;
}

.error-404-divider::before,
.error-404-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #c8c2b8;
}

.error-404-divider span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #9c9489;
    white-space: nowrap;
}

.error-404-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 400;
    color: #2d2926;
    margin: 0 0 1rem;
}

.error-404-message {
    font-size: 1rem;
    font-weight: 300;
    color: #6b6560;
    line-height: 1.75;
    margin: 0 0 2.5rem;
}

.error-404-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    flex-wrap: wrap;
}
