@charset "UTF-8";

/* Reserve scrollbar space to prevent layout shift */
html {
  scrollbar-gutter: stable;
}

/* --- CUSTOM PCASB COLOR THEME --- */
:root {
  --guards-red: #e30613;
  --ruby-red: #9b111e;
  --neptune-blue: #1e4d8f;
  --light-purple: #a88fd8;
  --dark-purple: #6b4fa0;
  --pcasb-red: #cc0000; /* Primary red from original site */
  --pcasb-dark: #1a1a1a; /* Dark background */
  --pcasb-navy: #0d1b2a; /* Navy blue from site */
  --pcasb-gold: #d4af37; /* Gold accent */
  --pcasb-light-gray: #f4f4f4;
  --pcasb-medium-gray: #666;
  --pcasb-dark-gray: #2a2a2a;
  --pcasb-darker-gray: #1a1a1a;
}

/* Reserve space for the fixed navbar on all pages */
/* #navbar-placeholder {
  height: 0px;
} */

body {
  font-family: "Open Sans", sans-serif;
  color: #333;
  background-color: #fff;
}

h1,
h2,
h3,
h4,
.navbar-brand,
.btn {
  font-family: "Montserrat", sans-serif;
}

h1 {
  color: var(--ruby-red);
  font-size: 4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -2px;
}

h2 {
  /* color: #007bff; */
  /* font-size: 24px; */
  /* font-family: "Arial Black", "sans-serif"; */
  text-align: center;
}

h3 {
  /* color: #007bff; */
  /* font-size: 22px; */
  text-align: center;
}

h4 {
  color: var(--ruby-red); /* Ruby Red */
}

/* Navbar with PCASB Dark Theme */
.navbar {
  background-color: #000000 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.navbar-dark {
  background-color: #000000 !important;
}
.navbar-brand {
  color: white !important;
}

/* Keep navbar layout flexible and prevent text from covering button */
@media (min-width: 768px) {
  .navbar-collapse {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
  }
  .navbar-nav {
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex-wrap: nowrap;
    margin-bottom: 0;
  }
  .join-pca-wrapper {
    margin-left: 0;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    white-space: nowrap;
    width: auto;
    display: inline-block;
    vertical-align: middle;
  }
}

.nav-link {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85) !important;
  margin-left: 0.25rem;
  padding: 0.5rem 0.5rem;
  transition: color 0.3s;
}
.nav-link:hover {
  color: var(--pcasb-red) !important;
}
.btn-join {
  background-color: var(--pcasb-red);
  color: white;
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-weight: 700;
  transition: all 0.3s;
  border: 2px solid var(--pcasb-red);
  margin-left: 0.75rem;
}
.btn-join:hover {
  background-color: #990000;
  border-color: #990000;
  color: white;
  transform: translateY(-2px);
}

/* Match legacy navbar dropdown hover behavior on desktop */
@media (min-width: 992px) {
  .sbr-navbar .dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.PCA_SBR_Bkg {
  background-color: #343a40;
  /* background-color: #040720; */
}

footer a {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none;
}

footer a:hover {
  color: var(--pcasb-red) !important;
}

/* Footer with PCASB Dark Theme */
footer {
  background-color: var(--pcasb-dark);
  background-image: linear-gradient(
    135deg,
    var(--pcasb-dark) 0%,
    var(--pcasb-navy) 100%
  );
}
footer h5 {
  color: var(--pcasb-red);
  font-weight: 700;
}

/* Define classes */
.footer {
  background-color: #343a40;
}

.bg-primary {
  /* background-color: #374C93 !important; */
  background-color: #4a7cc1 !important;
}

.SBR_Header-style {
  padding: 5px;
  background-color: #4a7cc1;
  /* This is the color used by Bootstrap's bg-primary class */
  color: #fff;
  /* This is the color used by Bootstrap's text-white class */
}

.notice {
  color: var(--ruby-red);
  /* color: var(--ruby-red); Ruby Red */
}

.card-header {
  color: var(--ruby-red);
  /* color: var(--ruby-red); /* Ruby Red */
}

/* .btn-primary {
    color: #fff;
    background-color: var(--ruby-red);
    border-color: #007bff;
} 
*/

.btn-outline-primary {
  /* border-color: var(--ruby-red); */
  border-color: var(--ruby-red);
  border-width: 2px;
  color: var(--ruby-red); /* Ruby Red */
  font-size: 18px;
}

/* Custom button without Bootstrap dependency */
.btn-custom-outline {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: 2px solid var(--guards-red);
  border-radius: 0.25rem;
  color: var(--guards-red);
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-custom-outline:hover {
  background-color: var(--guards-red);
  color: #fff;
}

.btn-custom-outline:active {
  opacity: 0.85;
}

.text-irish-green {
  color: #117a65 !important;
}

.text-primary {
  color: var(--neptune-blue) !important;
}

/* Define External Event Calendar Formatting */
.calendar-iframe {
  border: solid 1px #777;
  width: 320px;
  height: 300px;
}

.band-hero {
  background-color: grey;
  padding-top: 100px;
  padding-bottom: 100px;
  background-image: url(../images/2018_events/gimmick-rally_GroupShot_1200.jpg);
  background-size: cover;
}

/* Mobile View */
@media (max-width: 767px) {
  h1 {
    font-size: 200%;
  }

  h2 {
    font-size: 150%;
  }
}

/* ========================================== */
/* EVENT CARDS - Modern Layout (index.html)  */
/* ========================================== */

/* Event card grid layout */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.5rem; /* Reduced from the default 1.5rem */
  margin-bottom: 2rem;
}

/* Event card styling */
.event-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem;
  overflow: hidden;
  height: 100%;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  background-color: #fff; /* White background for cards */
  margin-bottom: 0; /* Ensure no bottom margin */
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-card-header {
  background-color: #4a7cc1;
  padding: 0.5rem 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  color: #fff;
}

/* Make sure date elements have readable text color on blue background */
.event-card-header time {
  color: #fff;
}

.event-card-body {
  padding: 0.75rem 1rem; /* Reduced from 1.25rem */
  flex: 1 1 auto;
}

.event-link {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 500;
}

.event-link:hover {
  text-decoration: underline;
}

.event-details {
  margin-top: 0.25rem; /* Reduced from 0.5rem */
  list-style-type: none;
  padding-left: 0;
}

.event-details li {
  margin-bottom: 0.125rem; /* Reduced from 0.25rem */
  position: relative;
  padding-left: 1rem; /* Reduced from 1.25rem */
  line-height: 1.2; /* Tighter line height */
}

.event-details li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #0d6efd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
}

/* Section background colors */
#news {
  /* background-color: #fff; */
  background-color: #343a40;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Make sure card header colors remain consistent */
#news .card-header {
  background-color: rgba(0, 0, 0, 0.03);
  color: #e1251b; /* Guards Red */
  /* color: #900000; Maintaining your brand color */
  /* color: red; */
  /* color: #FF6347; */
  /* color:firebrick */
  /* color: #FF4500; /* OrangeRed */
  /* color: #FF6347; /* Tomato */
  /* color: #FF7F50; /* Coral */
  /* color: #FF8C00; /* DarkOrange */
}

/* Ensure the event cards have white backgrounds */
.event-card {
  background-color: #fff;
}

/* Style the Club News header */
#club_news .card-header {
  /* background-color: #24292D; */
  background-color: slategrey;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.125);
}

/* Style the Events section header */
#events .card-header {
  background-color: #708090; /* Slate Grey color */
  color: #fff; /* White text for contrast */
  border-radius: 0.25rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1.25rem;
  border: none;
}

/* Higher specificity selector for the events footer */
#events .events-footer {
  background-color: #708090 !important; /* Slate Grey with !important to override */
  padding: 1rem;
  border-radius: 0.25rem;
  width: fit-content; /* Changed from 100% to fit-content */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  margin-left: auto; /* Center the footer horizontally */
  margin-right: auto; /* Center the footer horizontally */
  min-width: 300px; /* Ensure minimum width matches event cards */
  max-width: 100%; /* Don't exceed container width */
}

/* Higher specificity for button styling */
#events .events-footer .btn-outline-primary {
  background-color: #343a40; /* Dark background matching the section behind */
  color: white; /* White text */
  border-color: white !important;
}

/* Make text turn white on hover */
#events .events-footer .btn-outline-primary:hover {
  background-color: #495057 !important; /* Lighter gray on hover */
  color: white !important; /* Keep text white on hover */
}

/* ========================================== */
/* HERO CAROUSEL - Modern Layout              */
/* ========================================== */

/* Modern Hero Carousel */
#heroCarousel .carousel-item {
  height: 85vh;
  min-height: 500px;
}
#heroCarousel .carousel-item img {
  object-fit: cover;
  height: 100%;
  filter: brightness(0.575);
}

/* Events Carousel — auto height */
#eventsCarousel .carousel-item,
#eventsCarouselMobile .carousel-item {
  height: auto;
  min-height: auto;
}
.carousel-caption {
  bottom: 30%;
  text-align: left;
}
.hero-title {
  color: var(--pcasb-light-gray);
  font-size: 4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -2px;
  text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.8);
}
.hero-accent {
  color: var(--pcasb-gold);
}

/* Section Headers */
.section-header {
  color: var(--pcasb-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

/* ========================================== */
/* MODERN EVENT CARD - Enhanced Layout        */
/* ========================================== */

/* Modern Event Card */
.event-card-modern {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  background: white;
  border: 1px solid #e0e0e0;
}
.event-card-modern:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(204, 0, 0, 0.15);
  border-color: var(--pcasb-red);
}
.event-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--pcasb-dark);
}
.event-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.event-card-modern:hover .event-img-wrapper img {
  transform: scale(1.1);
}
.date-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--pcasb-red);
  padding: 10px 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  line-height: 1;
}
.date-badge .month {
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  display: block;
  text-transform: uppercase;
  opacity: 0.9;
}
.date-badge .day {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  display: block;
}

/* Event Badge Colors */
.badge-social {
  background-color: var(--pcasb-navy);
}
.badge-tour {
  background-color: var(--pcasb-gold);
  color: var(--pcasb-dark);
}
.badge-exclusive {
  background-color: var(--pcasb-red);
}
.badge-drive {
  background-color: #2e7d32;
  color: white;
}
.badge-track {
  background-color: var(--guards-red);
  color: white;
}

/* CTA Link Style */
.event-link {
  color: var(--pcasb-red);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
}
.event-link:hover {
  color: var(--pcasb-dark);
}
.event-link i {
  transition: transform 0.3s;
}
.event-link:hover i {
  transform: translateX(5px);
}

/* ========================================== */
/* SPONSOR GRID                               */
/* ========================================== */

/* Sponsor Grid */
.sponsor-logo {
  filter: grayscale(100%) contrast(1.3);
  opacity: 0.8;
  transition: all 0.3s ease;
  max-height: 60px;
  width: auto;
}
.sponsor-logo:hover {
  filter: grayscale(0%) contrast(1.5);
  opacity: 1;
  transform: scale(1.1);
}

/* ========================================== */
/* BACKGROUND PATTERNS                        */
/* ========================================== */

/* Background patterns */
.bg-pattern {
  background-color: var(--pcasb-light-gray);
  background-image:
    linear-gradient(
      30deg,
      #f8f8f8 12%,
      transparent 12.5%,
      transparent 87%,
      #f8f8f8 87.5%,
      #f8f8f8
    ),
    linear-gradient(
      150deg,
      #f8f8f8 12%,
      transparent 12.5%,
      transparent 87%,
      #f8f8f8 87.5%,
      #f8f8f8
    );
  background-size: 80px 140px;
}

/* ========================================== */
/* MOBILE RESPONSIVE ADJUSTMENTS              */
/* ========================================== */

/* Mobile Adjustments for Hero */
@media (max-width: 991px) {
  .carousel-item {
    height: 70vh;
    min-height: 450px;
  }
  .hero-title {
    font-size: 3rem;
    letter-spacing: -1px;
  }
  .carousel-caption {
    bottom: 25%;
  }
  .carousel-caption .lead {
    font-size: 1rem;
  }
  .carousel-caption .btn {
    padding: 0.6rem 2rem !important;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .carousel-item {
    height: 60vh;
    min-height: 400px;
  }
  .hero-title {
    font-size: 2.5rem;
    letter-spacing: 0;
    line-height: 1.2;
  }
  .carousel-caption {
    bottom: 15%;
    text-align: center;
    left: 5%;
    right: 5%;
    padding: 1.5rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    backdrop-filter: blur(5px);
  }
  .carousel-caption .lead {
    font-size: 0.9rem;
    margin-bottom: 1rem !important;
  }
  .carousel-caption h5 {
    font-size: 0.85rem;
  }
  .carousel-caption .btn {
    padding: 0.5rem 1.5rem !important;
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .carousel-item {
    height: 55vh;
    min-height: 350px;
  }
  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  .carousel-caption {
    bottom: 10%;
    left: 3%;
    right: 3%;
    padding: 1rem 0.75rem;
  }
  .carousel-caption h5 {
    font-size: 0.75rem;
    margin-bottom: 0.5rem !important;
  }
  .carousel-caption .lead {
    font-size: 0.8rem;
    margin-bottom: 0.75rem !important;
    display: none; /* Hide secondary text on very small screens */
  }
  .carousel-caption .btn {
    padding: 0.4rem 1rem !important;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
  }
  .carousel-caption .btn i {
    font-size: 0.7rem;
  }
}

@media (max-width: 400px) {
  .carousel-item {
    height: 50vh;
    min-height: 300px;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .carousel-caption {
    bottom: 8%;
    padding: 0.75rem 0.5rem;
  }
  .carousel-caption h5 {
    font-size: 0.7rem;
  }
  .carousel-caption .btn {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.7rem;
