:root {
  --racing-pink: #ff3399;
  --deep-black: #111111;
  --racing-silver: #cccccc;
  --victory-gold: #ffd700;
  --white: #ffffff;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.section-padding {
  padding: 5rem 0;
}

.section-title {
  position: relative;
  margin-bottom: 2rem;
  font-weight: 700;
  color: var(--deep-black);
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background-color: var(--racing-pink);
  margin-top: 0.5rem;
}

.btn-primary {
  background-color: var(--racing-pink);
  border-color: var(--racing-pink);
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background-color: #e62e8a;
  border-color: #e62e8a;
}

.btn-outline-light {
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn-outline-dark {
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Navigation */
.navbar {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand img {
  height: 36px;
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--white);
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--racing-pink);
}

/* Hero Section (General - some styles might be overridden by video section) */
.hero-section {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--white);
  padding-top: 80px; /* Adjust based on navbar height */
  overflow: hidden; /* Ensure content doesn't overflow */
}

/* Removed background image/gradient styles from original .hero-section */

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-family: 'Racing Sans One', cursive;
  font-size: 4rem;
  margin-bottom: 0.5rem;
  text-shadow: rgba(0, 0, 0, 0.7) 2px 2px 4px; /* Enhanced shadow for video */
}

.hero-section h2 {
  font-size: 2rem;
  font-weight: 600;
  text-shadow: rgba(0, 0, 0, 0.7) 1px 1px 3px; /* Enhanced shadow for video */
}

.hero-buttons {
  margin-top: 2rem;
}

.hero-buttons .btn {
  margin-right: 1rem;
  margin-bottom: 1rem;
}

/* Race Countdown */
.race-countdown {
  background-color: rgba(0, 0, 0, 0.8); /* Slightly darker for video */
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  border-left: 5px solid var(--racing-pink);
}

.race-countdown h3 {
  color: var(--racing-pink);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.event-name {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.countdown {
  display: flex;
  justify-content: space-between;
}

.countdown-item {
  text-align: center;
  width: 23%;
}

.countdown-item span {
  display: block;
}

.countdown-item span:first-child {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
}

.countdown-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--racing-silver);
}

/* News Section */
.news-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  color: var(--racing-pink);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.news-excerpt {
  margin-bottom: 1rem;
}

/* Featured Video (Removed as section was deleted from index.html) */

/* Results Table */
.results-table {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.05);
}

.results-table thead {
  background-color: var(--deep-black);
  color: var(--white);
}

.results-table th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.position {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.position-1 {
  background-color: var(--victory-gold);
  color: var(--deep-black);
}

.position-2 {
  background-color: var(--racing-silver);
  color: var(--deep-black);
}

.position-3 {
  background-color: #cd7f32;
  color: var(--white);
}

/* Sponsors Section */
.sponsor-item {
  /* height: 100px; */ /* Removed fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  margin-bottom: 1.5rem; /* Added margin for spacing */
}

.sponsor-item img {
    max-height: 80px; /* Limit logo height */
    width: auto;
    max-width: 100%;
}

.sponsor-item:hover {
  transform: translateY(-5px);
}

/* Social Feed */
.social-feed {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.social-feed-header {
  background-color: var(--deep-black);
  color: var(--white);
  padding: 1rem;
  display: flex;
  align-items: center;
}

.social-feed-header i {
  font-size: 1.5rem;
  margin-right: 1rem;
}

.social-feed-content {
  padding: 1.5rem;
}

.social-date {
  display: block;
  color: #999;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Newsletter Form */
.newsletter-form .form-control {
  height: 50px;
  border-radius: 25px 0 0 25px;
}

.newsletter-form .btn {
  border-radius: 0 25px 25px 0;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Footer */
.footer-section { /* Added class for specificity */
  background-color: var(--deep-black);
  color: var(--racing-silver);
  padding: 4rem 0 2rem 0;
}

.footer-section h4 {
  color: var(--racing-pink);
  margin-bottom: 1rem;
}

.footer-section a {
  color: var(--racing-silver);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  text-decoration: none;
  color: var(--racing-pink) !important;
}

.footer-logo {
    max-height: 40px;
}

.footer-section .social-icons {
  margin-top: 1.5rem;
}

.footer-section .social-icons a {
  display: inline-block;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  text-align: center;
  line-height: 36px;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

.footer-section .social-icons a:hover {
  background-color: var(--racing-pink);
  color: var(--white) !important;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Hero YouTube Video Section Styles */
.hero-video-section {
  /* Inherits from .hero-section: height, min-height, display, align-items, position, color, padding-top, overflow */
}

/* Container for the iframe, positioned to cover the section */
#youtube-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Allows clicks to go through to content */
  overflow: hidden;
  z-index: -1; /* Behind overlay and content */
}

/* The iframe itself, sized by JS but positioned absolutely */
#youtube-player iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Width and height are set dynamically by JS to maintain aspect ratio */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: 1; /* Overlay above video, below content */
}

.hero-content {
  position: relative;
  z-index: 2; /* Content above overlay */
  /* text-align: center; */ /* Removed centering, using Bootstrap grid */
}

/* Adjustments for existing hero content within video background */
.hero-video-section .container {
    /* Inherits z-index: 2 from .hero-section .container */
}

/* Responsive adjustments for video */
@media (max-width: 991.98px) {
  .hero-video-section {
    height: auto;
    padding-top: 100px;
    padding-bottom: 3rem;
  }
  
  .hero-video-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-video-section h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: 1.75rem;
  }
  
  .countdown-item span:first-child {
    font-size: 1.75rem;
  }
  
  .social-feed {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-video-section h1 {
    font-size: 2rem;
  }
  
  .hero-video-section h2 {
    font-size: 1.25rem;
  }
  
  .countdown {
    flex-wrap: wrap;
  }
  
  .countdown-item {
    width: 48%;
    margin-bottom: 1rem;
  }
}

