:root { --mx: 64rem; --gap: 1.25rem; --muted: #f6f7f9; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, Segoe UI, Inter, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(100% - 2rem, var(--mx)); margin-inline: auto; }
.section { padding: 64px 0; }
.section-muted { background: var(--muted); }
.grid-3 {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(3, 1fr); /* exactly 3 columns per row */
}
@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
  }
}

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr; /* 1 column on phones */
  }
}

.card, .post, .gallery-item { min-height: 240px; background: #fff; border: 1px solid #e7e9ee; border-radius: 12px; padding: 16px; }
.btn { display: inline-block; padding: .75rem 1rem; border-radius: 999px; border: 1px solid #111; }
.btn-outline { background: transparent; }
.btn-lg { padding: 1rem 1.25rem; }
.site-header { position: sticky; top: 0; background: #fff; border-bottom: 1px solid #eee; }
.site-header .container { display: flex; align-items: center; gap: var(--gap); }
.site-nav ul { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }


.nav-toggle { display: none; }
/*@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-nav[aria-expanded="true"] { display: block; }
  .nav-toggle { display: inline-block; margin-left: auto; }
}*/

.site-footer { background: #0f1115; color: #cbd0d8; padding: 32px 0; }
.footer-grid { display: flex; justify-content: space-between; gap: var(--gap); flex-wrap: wrap; }
.cta { text-align: center; }
.lead { font-size: 1.125rem; opacity: .8; }

.hero-video {
  position: relative;
  overflow: hidden;
  padding: 0;
  height: 70vh;             /* full screen height */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;          /* ensures video covers area */
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;                 /* above the video */
  text-align: center;
  background: rgba(0,0,0,0.45); /* subtle overlay for readability */
  padding: 2rem;
  border-radius: 12px;
}

.page-bg{
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("../assets/bg.png");
  background-size: cover;      /* fills viewport */
  background-position: center; /* keeps focus centered */
  background-repeat: no-repeat;
  background-attachment: fixed;/* subtle parallax on scroll */
}

/* Optional: soften the wallpaper if needed */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index:-1;
  pointer-events:none;
  background: rgba(255,255,255,0.02); /* raise to 0.10–0.20 if text needs more contrast */
}

/* === Top Banner Section === */
/* === Top Banner Section === */
.top-banner {
  width: 100%;
  background-color: #ffffff;   /* white background behind the image */
  text-align: center;          /* centers the image horizontally */
  padding: 10px 0;             /* vertical space above/below the image */
}

/* shrink and center the graphic */
.top-banner img {
  width: 65%;                  /* makes the image smaller (try 60–80%) */
  height: auto;                /* keeps proportions */
  max-width: 1000px;           /* prevents it from growing too wide on large monitors */
  display: inline-block;       /* allows centering */
}

/* === Site Logo === */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo img {
  height: 60px;          /* adjust this value for your preferred logo size */
  width: auto;           /* keeps proportions */
  display: block;
}

@media (max-width: 768px) {
  .logo img {
    height: 48px;        /* slightly smaller on mobile */
  }
}

:root{
  --brand:#2e77b8;      /* BrightBridge blue */
  --accent:#f2c335;     /* BrightBridge gold */
  --cream:#fef0d8; /*#f7ead3;       page background tone */
  --ink:#0f1115;        /* text */
  --line:#e6d8bd;       /* subtle border on cream */
}

/* ===== Header / Nav – BrightBridge theme ===== */
/* ===== Transparent / Glass Navigation Bar ===== */
.site-header {
  position: sticky; /* fixed; sticky;*/
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100; /* 200; */
  background: transparent;  /* rgba(247, 234, 211, 0.2);    20% cream tint */
  backdrop-filter: blur(10px) saturate(100%);
  -webkit-backdrop-filter: blur(14px) saturate(100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Optional: Slightly stronger color when scrolling for readability */
.site-header.scrolled {
  background: rgba(255, 255, 255, 1); /* rgba(247, 234, 211, 0.55); */ 
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Keep spacing consistent */
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* min-height: 72px; */
  /* padding-inline: 1rem; */
  /* padding: 0.75rem 1rem; */
  padding: 6px 1rem;
  min-height: 48px;
}

/* Adjust nav link colors for visibility on transparent bg */
.site-nav a {
  color: #000 /* #fff;  white for contrast */
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffde6f;  /* golden hover accent */
}

body {
  margin: 0;
  padding: 0;
}

section:first-of-type {
  padding-top: 72px; /* equal to navbar height */
}

/* === Introductory Section === */
.intro {
  background-color: #ffffff;      /* or transparent if you want it over wallpaper */
  color: #222;                    /* text color */
  text-align: center;             /* center align text */
  padding: 60px 20px;             /* vertical spacing */
}

.intro-heading {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #2e77b8;                 /* BrightBridge blue accent */
  margin-bottom: 1rem;
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;                 /* centers text block */
  color: #444;
}

.intro::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  margin: 30px auto 0;
  background: linear-gradient(90deg, /*#f2c335*/ #ffff00, /*#2e77b8*/ #0083f0);
  border-radius: 3px;
}

.card {
  display: flex;
  flex-direction: column;   /* stack content vertically */
  /* justify-content: space-between;  distribute items vertically */
  justify-content: flex-start;
  height: 100%;             /* ensure equal card heights */
}

.card .btn-lg {
  align-self: flex-end;     /* align button to the bottom */
  margin-top: auto;         /* pushes it down within the card */
}

.card .cta {
  margin-top: auto;     /* pushes button to bottom while text stays top */
}


#sponsors .gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
@media (max-width: 768px) {
  #sponsors .gallery-item figcaption{
	  display: flex;
	  flex-direction: column;
	  text-align: center;
  }	  
  #sponsors .container {
	  display: flex;
      flex-direction: column;
	  align-items: center;
  }	
}  

#sponsors .gallery-item img {
  max-width: 160px;
  width: 100%;
  object-fit: contain;
}

.news-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
  font-style: italic;
}
.news-date2 {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
  font-style: italic;
}

#news .gallery {
  display: grid;
  grid-template-columns: 1fr; 
  gap: 2rem;
}
#news .gallery-item img {
  /*width: 100%;*/
  width: auto;              /* Set desired image width */
  height: 200px;
  object-fit: cover;        /* Ensures clean cropping if dimensions differ */
  /*display: block;*/
  /*margin: 0 auto;           /* Centers image horizontally */
  /*max-width: 350px;         /* MATCH THIS to the first image’s width */
  flex-shrink: 0;            /* Prevent image from shrinking */
  border-radius: 6px;        /* Optional */
}
#news .gallery-item {
  text-align: left;
  display: flex;
  /*flex-direction: column;*/ 
  /*align-items: center;      /* centers image + caption */
  flex-direction: row;       /* Image left, text right */
  gap: 20px;                 /* Space between image and text */
  align-items: center; /*flex-start;   /* Align image and text at the top */
}
#news .gallery-item figcaption {
  flex: 1;                   /* Text expands to the right */
}
@media (max-width: 768px) {
  #news .container {
	  display: flex;
      flex-direction: column;
	  align-items: center;
  }	  
	
  #news .gallery-item {
	/*display: flex;*/
    flex-direction: column;
	align-items: center;
    text-align: left;
  }
  .gallery-item figcaption {
    text-align: left;  /* ensure text aligns properly on mobile */
  }
}

.btn {
  background-color: #2e77b8;     /* Primary blue */
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.25s ease;
  display: inline-block;
  text-decoration: none;
}

.btn:hover {
  background-color: #c0c0c0; /*#0d4d9f;     /* Slightly darker blue */
  transform: translateY(-2px);   /* Subtle lift effect */
}

.news-video {
  width: 250px;    /* ← match your old toro.png width */
  height: auto;
  object-fit: cover;
  border-radius: 6px;   /* optional, keep same styling as images */
  display: block;
}

/* MOBILE MENU (hidden by default) */
@media (max-width: 768px) {

  .nav-toggle {
    display: block;
    cursor: pointer;
  }

  /* Hide menu by default */
  .site-nav {
    display: none;
    position: absolute;
    top: 70px; /* below header */
    right: 0;
    width: 100%;
    background: white;
    padding: 1rem 0;
    z-index: 1000;
  }

  /* Show menu when open */
  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
