   /* Combined Stylesheet with Racing Theme Priority */

/* Color Schemes */
:root {
  --racing-black: #121212;
  --racing-white: #f8f8f8;
  --racing-yellow: #ffcc00;
  --racing-grey: #333333;
  --racing-red: #e10600;
  --racing-blue: #005696;
  --racing-green: #228b22;
  --primary-black: #1a1a1a;
  --primary-white: #f9f9f9;
  --accent-yellow: #ffcb05;
  --accent-yellow-light: #ffde59;
  --gray-dark: #333333;
  --gray-medium: #666666;
  --gray-light: #dddddd;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

/* Base Styles with Racing Theme */
body {
  background-color: var(--racing-black);
  color: var(--racing-white);
  font-family: 'Rajdhani', 'Orbitron', sans-serif;
  transition: all 0.3s ease;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

a {
  color: var(--racing-yellow);
  transition: all 0.2s ease;
  text-decoration: none;
}

a:hover {
  color: var(--racing-white);
  text-shadow: 0 0 8px var(--racing-yellow);
}

/* Motorsport Events Container - Ensure visibility */
.motorsport-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  color: var(--racing-white) !important;
}

.motorsport-container * {
  color: var(--racing-white) !important;
}

.motorsport-container th,
.motorsport-container td {
  color: var(--racing-white) !important;
}

.motorsport-container .hero-section {
  background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('assets/img/motorsport-hero.jpg');
  background-size: cover;
  background-position: center;
  color: var(--racing-white);
  padding: 60px 20px;
  text-align: center;
  margin-bottom: 30px;
}

.motorsport-container .hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.motorsport-container .hero-section p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

.motorsport-container .section-title {
  color: var(--racing-red);
  margin-bottom: 20px;
  font-size: 1.8rem;
  border-bottom: 2px solid var(--racing-red);
  padding-bottom: 10px;
}

.motorsport-container .tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--racing-grey);
}

.motorsport-container .tab {
  padding: 10px 20px;
  cursor: pointer;
  border: 1px solid var(--racing-grey);
  border-bottom: none;
  margin-right: 5px;
  background-color: var(--racing-grey);
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  color: var(--racing-white);
}

.motorsport-container .tab.active {
  background-color: var(--racing-red);
  color: var(--racing-white);
  border-color: var(--racing-red);
}

.motorsport-container .tab-content {
  display: none;
  padding: 20px;
  background-color: var(--racing-grey);
  border: 1px solid var(--racing-grey);
  border-top: none;
  margin-bottom: 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.motorsport-container .tab-content.active {
  display: block;
}

.motorsport-container table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.motorsport-container th {
  background-color: var(--racing-red);
  color: var(--racing-black);
  text-align: left;
  padding: 12px;
  position: sticky;
  top: 0;
}

.motorsport-container td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--racing-grey);
  color: var(--racing-white);
}

.motorsport-container tr:nth-child(even) {
  background-color: rgba(255,255,255,0.05);
}

.motorsport-container tr:hover {
  background-color: rgba(255,255,255,0.1);
}

.motorsport-container .button {
  display: inline-block;
  padding: 6px 12px;
  background-color: var(--racing-red);
  color: var(--racing-white);
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.motorsport-container .button:hover {
  background-color: #c00500;
}

.motorsport-container .series-tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  color: var(--racing-white);
  background-color: var(--racing-grey);
}

.motorsport-container .f1 { background-color: var(--racing-red); }
.motorsport-container .indycar { background-color: var(--racing-blue); }
.motorsport-container .wec { background-color: #00529b; }
.motorsport-container .nascar { background-color: #ffd659; color: var(--racing-black); }
.motorsport-container .supercars { background-color: var(--racing-red); }
.motorsport-container .roadracing { background-color: var(--racing-green); }
.motorsport-container .wrc { background-color: #003399; }

.motorsport-container .no-events {
  padding: 20px;
  text-align: center;
  background-color: var(--racing-grey);
  border: 1px solid var(--racing-grey);
  margin: 20px 0;
}

.motorsport-container .filter-section {
  background-color: var(--racing-grey);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--racing-grey);
}

.motorsport-container .filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.motorsport-container .form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 200px;
}

.motorsport-container .form-group label {
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--racing-white);
}

.motorsport-container .form-group select, 
.motorsport-container .form-group input {
  padding: 8px;
  border: 1px solid var(--racing-grey);
  border-radius: 4px;
  background-color: var(--racing-black);
  color: var(--racing-white);
}

.motorsport-container .standings-nav {
  display: flex;
  background-color: var(--racing-grey);
  margin-bottom: 20px;
  border: 1px solid var(--racing-grey);
  border-radius: 4px;
  overflow: hidden;
}

.motorsport-container .standings-nav a {
  padding: 10px 15px;
  text-align: center;
  text-decoration: none;
  color: var(--racing-white);
  flex: 1;
  border-right: 1px solid var(--racing-grey);
}

.motorsport-container .standings-nav a:last-child {
  border-right: none;
}

.motorsport-container .standings-nav a.active {
  background-color: var(--racing-red);
  color: var(--racing-white);
}

.motorsport-container .position {
  font-weight: bold;
  width: 40px;
  text-align: center;
}

.motorsport-container .position-1 {
  background-color: gold;
  color: var(--racing-black);
}

.motorsport-container .position-2 {
  background-color: silver;
  color: var(--racing-black);
}

.motorsport-container .position-3 {
  background-color: #cd7f32; /* bronze */
  color: var(--racing-white);
}

.motorsport-container .news-section {
  margin-top: 40px;
}

.motorsport-container .news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.motorsport-container .news-card {
  background-color: var(--racing-grey);
  border: 1px solid var(--racing-grey);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.motorsport-container .news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.motorsport-container .news-content {
  padding: 15px;
}

.motorsport-container .news-content h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--racing-white);
}

.motorsport-container .news-content p {
  color: var(--racing-white);
  opacity: 0.8;
  font-size: 0.9rem;
}

.motorsport-container .news-meta {
  display: flex;
  justify-content: space-between;
  color: var(--racing-yellow);
  font-size: 0.8rem;
  margin-top: 10px;
}

/* Responsive adjustments for motorsport section */
@media (max-width: 768px) {
  .motorsport-container .filter-form {
    flex-direction: column;
  }
  
  .motorsport-container .form-group {
    width: 100%;
  }
  
  .motorsport-container table {
    display: block;
    overflow-x: auto;
  }
  
  .motorsport-container .series-tag {
    font-size: 10px;
    padding: 3px 6px;
  }
  
  .motorsport-container .tabs {
    flex-wrap: wrap;
  }
  
  .motorsport-container .tab {
    flex: 1 0 auto;
    text-align: center;
    margin-bottom: -1px;
  }
}

/* Rest of the racing theme styles */
button, .btn {
  background: linear-gradient(45deg, var(--racing-black), var(--racing-grey));
  color: var(--racing-yellow);
  border: 2px solid var(--racing-yellow);
  text-transform: uppercase;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button:hover, .btn:hover {
  background: var(--racing-yellow);
  color: var(--racing-black);
  box-shadow: 0 0 15px var(--racing-yellow);
  transform: translateY(-2px);
}

/* Racing Container Styles */
.racing-container {
  border: 2px solid var(--racing-grey);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  position: relative;
  background: linear-gradient(135deg, rgba(18,18,18,0.9), rgba(51,51,51,0.7));
}

.racing-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: repeating-linear-gradient(
    45deg,
    var(--racing-black),
    var(--racing-black) 10px,
    var(--racing-yellow) 10px,
    var(--racing-yellow) 20px
  );
}

/* Checkered Patterns */
.checkered-pattern {
  background-image: 
    linear-gradient(45deg, var(--racing-black) 25%, transparent 25%), 
    linear-gradient(-45deg, var(--racing-black) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--racing-black) 75%),
    linear-gradient(-45deg, transparent 75%, var(--racing-black) 75%);
  background-size: 20px 20px;
  background-color: var(--racing-white);
}

.checkered-border {
  border: 10px solid transparent;
  border-image: repeating-conic-gradient(var(--racing-black) 0% 25%, var(--racing-white) 0% 50%) 50;
  border-image-slice: 20;
}

/* Racing-inspired header & navigation */
.top-nav {
  background: var(--racing-black);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-bottom: 4px solid var(--racing-yellow);
}

.top-nav .brand {
    display: flex;
    align-items: center;
    height: 100%;
}

.top-nav .brand a {
    text-decoration: none;
    color: var(--racing-white);
    display: flex;
    align-items: center;
    height: 100%;
}

.top-nav .brand img {
    max-height: 45px;
    width: auto;
    object-fit: contain;
    border: 2px solid var(--racing-yellow);
}

.top-nav .nav-actions {
    display: flex;
    align-items: center;
    height: 100%;
}

.top-nav .nav-icon {
    color: var(--racing-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-weight: bold;
    text-transform: uppercase;
    padding: 8px 12px;
}

.top-nav .nav-icon:hover {
  color: var(--racing-yellow);
  text-shadow: 0 0 8px var(--racing-yellow);
}

.top-nav .nav-icon i {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.top-nav .nav-icon::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--racing-yellow);
    transition: width 0.3s ease;
}

.top-nav .nav-icon:hover::after {
    width: 100%;
}

/* Badge Styles */
.badge {
    position: absolute;
    top: 0;
    right: -25px;
    background: var(--racing-yellow);
    color: var(--racing-black);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Nav Toggle Button - Hidden by default on larger screens */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    color: var(--racing-white);
    height: 40px;
    margin-right: 5px;
}

/* Media Query for Medium Breakpoint - Collapsible Navigation */
@media screen and (max-width: 768px) {
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .top-nav .nav-actions {
        position: absolute;
        top: 60px;
        right: 0;
        background-color: var(--racing-grey);
        flex-direction: column;
        width: 200px;
        padding: 15px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        height: auto;
    }

    .top-nav .nav-actions.active {
        transform: translateX(0);
    }

    .top-nav .nav-icon {
        margin: 12px 0;
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        height: auto;
    }

    .top-nav .nav-icon i {
        margin-right: 10px;
        margin-bottom: 0;
        width: 20px;
        text-align: center;
    }
    
    /* Adjust badge position for mobile layout */
    .badge {
        position: relative;
        top: auto;
        right: auto;
        margin-left: 8px;
    }
}

.nav-actions {
  display: flex;
  gap: 1.5rem;
}

/* Bottom navigation - racing checkered pattern */
.bottom-nav {
  background: var(--racing-black);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 0.75rem 0;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  background-image: repeating-conic-gradient(var(--racing-black) 0% 25%, var(--racing-grey) 0% 50%);
  background-size: 20px 20px;
  border-top: 3px solid var(--racing-yellow);
}

.nav-item a {
  color: var(--racing-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: var(--transition);
  text-transform: uppercase;
}

.nav-item a:hover {
  color: var(--racing-yellow);
  text-shadow: 0 0 8px var(--racing-yellow);
}

.nav-item i {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

/* Hero section with racing flag pattern */
.hero-section {
  background-color: var(--racing-black);
  background-image: linear-gradient(45deg, var(--racing-black) 25%, transparent 25%, transparent 50%, var(--racing-black) 50%, var(--racing-black) 75%, transparent 75%, transparent);
  background-size: 10px 10px;
  color: var(--racing-white);
  padding: 8rem 2rem 6rem;
  position: relative;
  text-align: center;
  margin-bottom: 2rem;
}

.vehicle-search-section {
  padding: 8rem 2rem 6rem;
  margin-top: 8rem;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Button styles */
.btn-primary {
  background: var(--racing-yellow);
  color: var(--racing-black);
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  border: 2px solid var(--racing-yellow);
}

.btn-primary:hover {
  background: var(--racing-black);
  color: var(--racing-yellow);
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--racing-yellow);
}

.btn-secondary {
  background: transparent;
  color: var(--racing-white);
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid var(--racing-yellow);
  cursor: pointer;
  text-transform: uppercase;
}

.btn-secondary:hover {
  background: var(--racing-yellow);
  color: var(--racing-black);
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--racing-yellow);
}

.btn-outline {
  background: transparent;
  color: var(--racing-white);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  border: 1px solid var(--racing-yellow);
  text-transform: uppercase;
}

.btn-outline:hover {
  border-color: var(--racing-yellow);
  color: var(--racing-yellow);
  background: rgba(255, 204, 0, 0.1);
}

.btn-text {
  color: var(--racing-yellow);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-transform: uppercase;
}

.btn-text:hover {
  color: var(--racing-white);
  text-shadow: 0 0 8px var(--racing-yellow);
}

/* Section styling */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--racing-white);
  position: relative;
  padding-left: 1rem;
  text-transform: uppercase;
}

.section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25rem;
  height: 70%;
  width: 4px;
  background: var(--racing-yellow);
}

.view-all {
  color: var(--racing-white);
  opacity: 0.8;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition);
  text-transform: uppercase;
}

.view-all:hover {
  color: var(--racing-yellow);
  opacity: 1;
}

/* Service Cards */
.service-card {
  border: 1px solid var(--racing-grey);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: rgba(18,18,18,0.8);
  margin: 10px;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255,204,0,0.2);
  border-color: var(--racing-yellow);
}

.service-icon {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  background: var(--racing-black);
  color: var(--racing-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 2px solid var(--racing-yellow);
}

.service-icon i {
  font-size: 1.5rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--racing-yellow);
  text-transform: uppercase;
}

.service-card p {
  color: var(--racing-white);
  margin-bottom: 1rem;
  opacity: 0.8;
}

/* Services Section */
.services-section {
  padding: 3rem 1.5rem;
  background: var(--racing-black);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Products Section */
.featured-products-section {
  padding: 3rem 1.5rem;
  background: var(--racing-grey);
  position: relative;
}

.featured-products-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--racing-black), var(--racing-black) 10px, var(--racing-yellow) 10px, var(--racing-yellow) 20px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--racing-grey);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--racing-yellow);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 204, 0, 0.2);
}

.product-image-container {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-info {
  padding: 1rem;
  flex-grow: 1;
  background: rgba(18,18,18,0.9);
}

.product-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--racing-yellow);
  text-transform: uppercase;
}

.product-price {
  color: var(--racing-white);
  font-weight: 700;
  font-size: 1.125rem;
}

.product-actions {
  padding: 0 1rem 1rem;
  background: rgba(18,18,18,0.9);
}

.btn-add-to-cart {
  width: 100%;
  padding: 0.5rem;
  background: var(--racing-black);
  color: var(--racing-yellow);
  border: 2px solid var(--racing-yellow);
  border-radius: 0.25rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-transform: uppercase;
}

.btn-add-to-cart:hover {
  background: var(--racing-yellow);
  color: var(--racing-black);
}

/* Vehicle Search Section */
.vehicle-search-section {
  padding: 3rem 1.5rem;
  background: var(--racing-black);
  color: var(--racing-white);
  position: relative;
}

.vehicle-search-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--racing-yellow);
}

.search-container {
  max-width: 900px;
  margin: 0 auto;
}

.search-container h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.search-container p {
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.search-form {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 1.5rem;
  backdrop-filter: blur(5px);
  border: 1px solid var(--racing-yellow);
}

.search-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: end;
}

.field-group {
  display: flex;
  flex-direction: column;
}

.field-group label {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--racing-white);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--racing-yellow);
  border-radius: 0.25rem;
  background: rgba(0, 0, 0, 0.3);
  color: var(--racing-white);
}

.search-btn {
  background: var(--racing-yellow);
  color: var(--racing-black);
  padding: 0.75rem;
  border: none;
  border-radius: 0.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-transform: uppercase;
}

.search-btn:hover {
  background: var(--racing-black);
  color: var(--racing-yellow);
  border: 1px solid var(--racing-yellow);
}

/* Featured Vehicles Section */
.featured-vehicles-section {
  padding: 3rem 1.5rem;
  background: var(--racing-black);
}

.featured-vehicles-slider {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.vehicle-card {
  background: var(--racing-grey);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--racing-yellow);
}

.vehicle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 204, 0, 0.2);
}

.vehicle-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.vehicle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.vehicle-card:hover .vehicle-image img {
  transform: scale(1.05);
}

.speed-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.1) 45%,
    rgba(255,255,255,0.1) 55%,
    rgba(255,255,255,0) 100%
  );
}

.vehicle-card:hover .speed-lines {
  opacity: 0.5;
}

.vehicle-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--racing-yellow);
  color: var(--racing-black);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.vehicle-details {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: rgba(18,18,18,0.9);
}

.vehicle-details h3 {
  color: var(--racing-yellow);
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.vehicle-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--racing-white);
  font-size: 0.875rem;
  opacity: 0.8;
}

.tb {
  color: var(--racing-white);
}

.vehicle-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.vehicle-price {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--racing-white);
}

/* Classifieds Preview Section */
.classifieds-preview-section {
  padding: 3rem 1.5rem;
  background: var(--racing-grey);
}

.classifieds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.classified-card {
  background: var(--racing-grey);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--racing-yellow);
}

.classified-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 204, 0, 0.2);
}

.classified-image {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.classified-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.classified-card:hover .classified-image img {
  transform: scale(1.05);
}

.no-image {
  width: 100%;
  height: 100%;
  background: var(--racing-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--racing-white);
}

.no-image i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--racing-yellow);
}

.classified-price {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: var(--racing-yellow);
  color: var(--racing-black);
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  font-weight: 700;
}

.classified-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: rgba(18,18,18,0.9);
}

.classified-content h3 {
  color: var(--racing-yellow);
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.classified-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--racing-white);
  font-size: 0.875rem;
  opacity: 0.8;
}

.classified-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* News Section */
/* News Section - Improved Visibility */
.news-section {
  padding: 3rem 1.5rem;
  background: var(--racing-black);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--racing-grey);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--racing-yellow);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 204, 0, 0.2);
}

.news-image-container {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-image {
  transform: scale(1.05);
}

.news-date {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: var(--racing-yellow);
  color: var(--racing-black);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: bold;
}

.news-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: rgba(30, 30, 30, 0.9); /* Slightly lighter than racing-black */
}

.news-category {
  display: inline-block;
  background-color: var(--racing-yellow);
  color: var(--racing-black);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.news-title {
  color: var(--racing-white); /* Bright white for maximum contrast */
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.news-excerpt {
  color: #e0e0e0; /* Light gray for better readability */
  margin-bottom: 1.5rem;
  line-height: 1.5;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--racing-yellow);
  font-size: 0.875rem;
  margin-top: auto;
}

.news-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-read-more {
  color: var(--racing-yellow);
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition);
  text-transform: uppercase;
}

.news-read-more:hover {
  color: var(--racing-white);
  text-shadow: 0 0 8px var(--racing-yellow);
}

/* News Article Page Specific Styles */
.news-article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.news-article-header {
  margin-bottom: 2rem;
  text-align: center;
}

.news-article-title {
  color: var(--racing-white);
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.news-article-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--racing-yellow);
  font-size: 0.9rem;
}

.news-article-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  border: 2px solid var(--racing-yellow);
}

.news-article-content {
  color: #f0f0f0; /* Very light gray for optimal readability */
  line-height: 1.7;
  font-size: 1.1rem;
}

.news-article-content p {
  margin-bottom: 1.5rem;
}

.news-article-content h2,
.news-article-content h3,
.news-article-content h4 {
  color: var(--racing-yellow);
  margin: 2rem 0 1rem;
  text-transform: uppercase;
}

.news-article-content h2 {
  font-size: 1.75rem;
  border-bottom: 2px solid var(--racing-yellow);
  padding-bottom: 0.5rem;
}

.news-article-content h3 {
  font-size: 1.5rem;
}

.news-article-content a {
  color: var(--racing-yellow);
  text-decoration: underline;
}

.news-article-content a:hover {
  color: var(--racing-white);
}

.news-article-content blockquote {
  border-left: 4px solid var(--racing-yellow);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--racing-white);
}

.news-article-content ul,
.news-article-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.news-article-content li {
  margin-bottom: 0.5rem;
}

.news-article-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--racing-yellow);
  padding-top: 2rem;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.news-tag {
  background-color: rgba(255, 204, 0, 0.2);
  color: var(--racing-yellow);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  text-decoration: none;
  transition: var(--transition);
}

.news-tag:hover {
  background-color: var(--racing-yellow);
  color: var(--racing-black);
}

.news-author-bio {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background-color: rgba(30, 30, 30, 0.9);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--racing-yellow);
}

.news-author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--racing-yellow);
}

.news-author-info h4 {
  color: var(--racing-yellow);
  margin-bottom: 0.5rem;
}

.news-author-info p {
  color: #e0e0e0;
  font-size: 0.9rem;
}

/* Related News Section */
.related-news {
  margin-top: 4rem;
}

.related-news h3 {
  color: var(--racing-white);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  position: relative;
  padding-left: 1rem;
}

.related-news h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25rem;
  height: 70%;
  width: 4px;
  background: var(--racing-yellow);
}

.btn-wishlist {
    transition: all 0.3s ease;
}

.btn-wishlist.in-wishlist i {
    color: #ef4444; /* red-500 */
}

.btn-wishlist:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .news-article-title {
    font-size: 1.75rem;
  }
  
  .news-article-image {
    height: 300px;
  }
  
  .news-article-content {
    font-size: 1rem;
  }
  
  .news-author-bio {
    flex-direction: column;
    text-align: center;
  }
  
  .news-article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}
/* Newsletter Section */
.newsletter-section {
  padding: 4rem 1.5rem;
  background: var(--racing-black);
  color: var(--racing-white);
  position: relative;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--racing-black), var(--racing-black) 10px, var(--racing-yellow) 10px, var(--racing-yellow) 20px);
}

.newsletter-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-info h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.newsletter-info p {
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.newsletter-form .form-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 0.75rem;
  border: 1px solid var(--racing-yellow);
  border-radius: 0.25rem;
  background: rgba(0, 0, 0, 0.3);
  color: var(--racing-white);
}

.form-hint {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Empty state styles */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
  background: var(--racing-grey);
  border-radius: 0.5rem;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--racing-yellow);
}

.empty-state i {
  font-size: 3rem;
  color: var(--racing-yellow);
  margin-bottom: 1rem;
}

.empty-state p {
  color: var(--racing-white);
  opacity: 0.8;
}

/* Tyre Type Selector */
.tyretype-container {
    background: linear-gradient(to right, var(--racing-grey), var(--racing-black));
    border-radius: 8px;
    margin: 0 0 1.5rem 0;
    margin-top: 8rem;
    padding: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--racing-yellow);
}

.tyretype {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tyretype .nav-item {
    flex: 1;
    min-width: 120px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    height: auto;
}

.tyretype .nav-item:last-child {
    border-right: none;
}

.tyretype .nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 0.75rem 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 4px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.tyretype .nav-link:hover, 
.tyretype .nav-link.active {
    color: var(--racing-white);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tyretype .nav-link.active::after {
    content: '';
    display: block;
    width: 40%;
    height: 3px;
    background-color: var(--racing-white);
    margin-top: 5px;
    border-radius: 3px;
}

/* Tyre Size Selector Styling */
.tyre-selector {
    background: var(--racing-grey);
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid var(--racing-yellow);
}

.tyre-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tyre-image-container img {
    transition: transform 0.5s ease;
}

.tyre-image-container:hover img {
    transform: scale(1.05);
}

.tyre-selector-content {
    padding: 1.5rem;
    background: rgba(18,18,18,0.9);
}

.tyre-selector-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--racing-white);
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(to right, var(--racing-yellow), var(--racing-white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
}

.counter {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.twidth, .taspect, .tdiam {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--racing-black);
    border-radius: 8px;
    border: 1px solid var(--racing-yellow);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.twidth:hover, .taspect:hover, .tdiam:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(255, 204, 0, 0.2);
}

.counter h4, .counter h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--racing-white);
    margin-bottom: 0.5rem;
    text-align: center;
    text-transform: uppercase;
}

.counter input[type="number"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--racing-yellow);
    border-radius: 4px;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--racing-white);
    text-align: center;
    margin: 0.25rem 0;
    background-color: var(--racing-grey);
}

.counter input[type="button"] {
    width: 100%;
    padding: 0.25rem;
    background: linear-gradient(to right, var(--racing-yellow), var(--racing-grey));
    color: var(--racing-black);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.counter input[type="button"]:hover {
    background: linear-gradient(to right, var(--racing-grey), var(--racing-yellow));
    transform: translateY(-1px);
    color: var(--racing-white);
}

.txt {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--racing-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
}

.search-button {
    background: linear-gradient(to right, var(--racing-yellow), var(--racing-grey));
    color: var(--racing-black);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    display: block;
    margin: 0 auto;
}

.search-button:hover {
    background: linear-gradient(to right, var(--racing-grey), var(--racing-yellow));
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(255, 204, 0, 0.15);
    color: var(--racing-white);
}

.search-button:active {
    transform: translateY(0);
}

/* Classifieds Section */
.classifieds-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    margin-bottom: 5rem;
    color: var(--racing-white);
}

.classifieds-hero {
    background: linear-gradient(135deg, var(--racing-grey), var(--racing-black));
    color: var(--racing-white);
    border-radius: 8px;
    padding: 30px;
    margin-top: 4rem;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--racing-yellow);
}

.classifieds-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--racing-yellow);
    text-transform: uppercase;
}

.classifieds-hero p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.search-form {
    max-width: 800px;
    margin: 0 auto;
}

.search-input-container {
    display: flex;
    margin-bottom: 15px;
}

.search-input-container input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--racing-yellow);
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    background-color: var(--racing-grey);
    color: var(--racing-white);
}

.search-input-container button {
    background-color: var(--racing-yellow);
    color: var(--racing-black);
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 0 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
    text-transform: uppercase;
}

.search-input-container button:hover {
    background-color: var(--racing-grey);
    color: var(--racing-yellow);
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid var(--racing-yellow);
}

.filter-group label {
    margin-right: 10px;
    font-weight: 500;
    color: var(--racing-white);
}

.filter-group select {
    background-color: var(--racing-grey);
    color: var(--racing-white);
    border: 1px solid var(--racing-yellow);
    padding: 5px;
    border-radius: 3px;
    cursor: pointer;
}

.filter-group select option {
    background-color: var(--racing-black);
    color: var(--racing-white);
}

.apply-filters-btn {
    background-color: var(--racing-yellow);
    color: var(--racing-black);
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
    text-transform: uppercase;
}

.apply-filters-btn:hover {
    background-color: var(--racing-grey);
    color: var(--racing-yellow);
    border: 1px solid var(--racing-yellow);
}

.new-listing-cta {
    text-align: center;
    margin-bottom: 30px;
}

.post-classified-btn {
    display: inline-block;
    background-color: var(--racing-yellow);
    color: var(--racing-black);
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
    text-transform: uppercase;
    border: 1px solid var(--racing-yellow);
}

.post-classified-btn:hover {
    background-color: var(--racing-black);
    color: var(--racing-yellow);
}

.post-classified-btn i {
    margin-right: 8px;
}

.classifieds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.classified-card {
    background-color: var(--racing-grey);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--racing-yellow);
}

.classified-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.15);
}

.classified-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.classified-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.classified-card:hover .classified-image img {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--racing-black);
    color: var(--racing-white);
}

.no-image i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--racing-yellow);
}

.classified-price {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--racing-yellow);
    color: var(--racing-black);
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.classified-content {
    padding: 15px;
    background-color: rgba(18,18,18,0.9);
}

.classified-content h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: var(--racing-yellow);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.classified-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--racing-white);
    opacity: 0.8;
    margin-bottom: 10px;
}

.classified-meta span {
    display: flex;
    align-items: center;
}

.classified-meta i {
    margin-right: 5px;
}

.classified-description {
    font-size: 0.9rem;
    color: var(--racing-white);
    margin-bottom: 15px;
    line-height: 1.5;
    height: 54px;
    overflow: hidden;
}

.classified-actions {
    display: flex;
    gap: 10px;
}

.view-details-btn {
    flex: 1;
    background-color: var(--racing-black);
    color: var(--racing-yellow);
    padding: 8px 0;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    border: 1px solid var(--racing-yellow);
    text-transform: uppercase;
}

.view-details-btn:hover {
    background-color: var(--racing-yellow);
    color: var(--racing-black);
}

.save-listing-btn {
    background-color: transparent;
    color: var(--racing-yellow);
    border: 1px solid var(--racing-yellow);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.save-listing-btn:hover {
    background-color: rgba(255, 204, 0, 0.1);
    border-color: var(--racing-yellow);
}

.save-listing-btn.saved {
    background-color: rgba(255, 204, 0, 0.2);
    color: var(--racing-yellow);
    border-color: var(--racing-yellow);
}

.save-listing-btn.saved i {
    font-weight: 900;
}

.no-listings {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    background-color: var(--racing-grey);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--racing-yellow);
}

.no-listings i {
    font-size: 3rem;
    color: var(--racing-yellow);
    margin-bottom: 15px;
}

.no-listings h3 {
    margin: 0 0 10px;
    color: var(--racing-white);
    text-transform: uppercase;
}

.no-listings p {
    color: var(--racing-white);
    opacity: 0.8;
    max-width: 500px;
    margin: 0 auto;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination-arrow {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: var(--racing-grey);
    color: var(--racing-yellow);
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
    border: 1px solid var(--racing-yellow);
}

.pagination-arrow:hover {
    background-color: var(--racing-black);
    color: var(--racing-yellow);
}

.pagination-arrow.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-arrow i {
    margin: 0 5px;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--racing-grey);
    color: var(--racing-yellow);
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
    border: 1px solid var(--racing-yellow);
}

.pagination-number:hover {
    background-color: var(--racing-black);
    color: var(--racing-yellow);
}

.pagination-number.current {
    background-color: var(--racing-yellow);
    color: var(--racing-black);
}

/* Notification Styles */
#notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.notification {
  margin-bottom: 10px;
  padding: 15px;
  border-radius: 4px;
  color: white;
  min-width: 250px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
  border: 1px solid;
}

.notification.success {
  background-color: rgba(39, 174, 96, 0.9);
  border-color: #27ae60;
}

.notification.error {
  background-color: rgba(231, 76, 60, 0.9);
  border-color: #e74c3c;
}

.notification.info {
  background-color: rgba(52, 152, 219, 0.9);
  border-color: #3498db;
}

.notification-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  margin-left: 10px;
}

/* Spinner for loading state */
.fa-spinner {
  animation: spin 1s infinite linear;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Pulse animation for success */
@keyframes successPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.success-animation {
  animation: successPulse 0.5s ease;
}

/* Shimmer effect on hover */
.btn-cart, .btn-wishlist {
  position: relative;
  overflow: hidden;
}

.btn-cart:before, .btn-wishlist:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transition: left 0.5s ease-in-out;
}

.btn-cart:hover:before, .btn-wishlist:hover:before {
  left: 100%;
}

/* Ripple effect */
@keyframes ripple {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

/* Button press effect */
.btn-cart:active, .btn-wishlist:active {
  transform: scale(0.95);
  transition: transform 0.1s;
}

/* Racing theme specific styles */
body.racing-theme .notification {
  border: 2px solid var(--racing-yellow);
  background-color: var(--racing-black);
  color: var(--racing-white);
}

body.racing-theme .notification.success {
  border-color: var(--racing-yellow);
}

body.racing-theme .notification.error {
  border-color: var(--racing-yellow);
}

body.racing-theme .notification.info {
  border-color: var(--racing-yellow);
}

body.racing-theme .btn-cart.remove {
  background: linear-gradient(45deg, var(--racing-black), var(--racing-yellow));
  position: relative;
}

body.racing-theme .btn-cart.remove::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 15px 15px 0;
  border-color: transparent var(--racing-yellow) transparent transparent;
}

body.racing-theme .btn-wishlist.wishlist-added {
  position: relative;
}

body.racing-theme .btn-wishlist.wishlist-added::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 15px 15px 0;
  border-color: transparent var(--racing-yellow) transparent transparent;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 6rem 1rem 4rem;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }
  
  .search-fields {
    grid-template-columns: 1fr;
  }

  .classifieds-hero h1 {
    font-size: 2rem;
  }
  
  .filter-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    justify-content: space-between;
  }
  
  .classifieds-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .counter {
    flex-direction: row;
    justify-content: center;
  }
    
  .twidth, .taspect, .tdiam {
    width: 30% !important;
  }
    
  .txt {
    display: flex;
    height: 100%;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .classifieds-grid {
    grid-template-columns: 1fr;
  }
  
  .pagination-numbers {
    display: none;
  }

  .tyretype .nav-item {
    min-width: 80px;
  }

  .tyretype .nav-link {
    padding: 0.5rem;
    font-size: 0.75rem;
  }
}

/* Add touch indicator for mobile */
@media (max-width: 768px) {
  .tyretype-container::after {
    content: '›';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    animation: pulse 1.5s infinite;
    pointer-events: none;
  }
  
  @keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
  }
}

/* Additional utility classes */
.text-racing-yellow {
  color: var(--racing-yellow);
}

.bg-racing-black {
  background-color: var(--racing-black);
}

.bg-racing-grey {
  background-color: var(--racing-grey);
}

.border-racing-yellow {
  border-color: var(--racing-yellow);
}

.hover\:text-racing-yellow:hover {
  color: var(--racing-yellow);
}

.hover\:bg-racing-black:hover {
  background-color: var(--racing-black);
}

.focus\:ring-racing-yellow:focus {
  --tw-ring-color: var(--racing-yellow);
}

/* Animation classes */
@keyframes speedLines {
  0% { background-position: 0 0; }
  100% { background-position: 20px 20px; }
}

.speed-line-animation {
  animation: speedLines 0.5s linear infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--racing-black);
}

::-webkit-scrollbar-thumb {
  background: var(--racing-yellow);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--racing-white);
}
/* Cart Page Specific Styles - Optimized */
.cart-page {
  padding: 2rem 1rem;
  margin-top: 4rem;
  margin-bottom: 5rem;
  color: var(--racing-white);
}

.cart-page h1.page-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--racing-yellow);
  text-align: center;
  position: relative;
  padding-bottom: 0.5rem;
}

.cart-page h1.page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--racing-yellow);
}

.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
  background: var(--racing-grey);
  border-radius: 0.5rem;
  border: 1px solid var(--racing-yellow);
  margin: 2rem 0;
}

.empty-cart-message i {
  color: var(--racing-yellow);
  margin-bottom: 1rem;
}

.empty-cart-message h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--racing-white);
}

.empty-cart-message p {
  margin-bottom: 1.5rem;
  color: var(--racing-white);
  opacity: 0.8;
}

.empty-cart-message .btn-primary {
  background: var(--racing-yellow);
  color: var(--racing-black);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.empty-cart-message .btn-primary:hover {
  background: var(--racing-black);
  color: var(--racing-yellow);
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--racing-yellow);
}

.cart-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .cart-container {
    grid-template-columns: 2fr 1fr;
  }
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  gap: 1rem;
  padding: 1rem;
  background: var(--racing-grey);
  border-radius: 0.5rem;
  border: 1px solid var(--racing-yellow);
  transition: all 0.3s ease;
}

.cart-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 204, 0, 0.1);
}

.cart-item-image {
  width: 100px;
  height: 100px;
  overflow: hidden;
  border-radius: 0.25rem;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cart-item:hover .cart-item-image img {
  transform: scale(1.05);
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cart-item-name {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--racing-white);
}

.cart-item-price {
  font-weight: 600;
  color: var(--racing-yellow);
  margin-bottom: 0.75rem;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--racing-black);
  color: var(--racing-yellow);
  border: 1px solid var(--racing-yellow);
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quantity-btn:hover {
  background: var(--racing-yellow);
  color: var(--racing-black);
}

.quantity-input {
  width: 50px;
  height: 30px;
  text-align: center;
  border: 1px solid var(--racing-yellow);
  border-radius: 0.25rem;
  background: var(--racing-black);
  color: var(--racing-white);
}

.cart-item-total {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--racing-white);
  padding: 0 1rem;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-remove, .btn-move-to-wishlist {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--racing-black);
  color: var(--racing-yellow);
  border: 1px solid var(--racing-yellow);
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-remove:hover {
  background: #dc3545;
  color: white;
  border-color: #dc3545;
}

.btn-move-to-wishlist:hover {
  background: #e83e8c;
  color: white;
  border-color: #e83e8c;
}

.cart-summary {
  padding: 1.5rem;
  background: var(--racing-grey);
  border-radius: 0.5rem;
  border: 1px solid var(--racing-yellow);
  align-self: flex-start;
  position: sticky;
  top: 6rem;
}

.summary-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--racing-yellow);
  text-align: center;
  position: relative;
  padding-bottom: 0.5rem;
}

.summary-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--racing-yellow);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  margin: 1.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--racing-yellow);
}

.btn-checkout {
  width: 100%;
  padding: 0.75rem;
  background: var(--racing-yellow);
  color: var(--racing-black);
  border: none;
  border-radius: 0.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.btn-checkout:hover {
  background: var(--racing-black);
  color: var(--racing-yellow);
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--racing-yellow);
}

.btn-continue-shopping {
  display: block;
  text-align: center;
  padding: 0.75rem;
  background: transparent;
  color: var(--racing-yellow);
  border: 1px solid var(--racing-yellow);
  border-radius: 0.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-continue-shopping:hover {
  background: var(--racing-yellow);
  color: var(--racing-black);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cart-item {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
  }
  
  .cart-item-total {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    padding: 0;
  }
  
  .cart-item-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-end;
  }
  
  .cart-page h1.page-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 576px) {
  .cart-item {
    grid-template-columns: 1fr;
  }
  
  .cart-item-image {
    width: 100%;
    height: 150px;
  }
  
  .cart-item-total {
    justify-content: flex-start;
  }
  
  .empty-cart {
    padding: 2rem 1rem;
  }
}

/* ========================================
   GLOBAL NAVIGATION SPACING FIX
   Add this to public/css/racing_style.css
   ======================================== */

/* Ensure body has proper padding for fixed navs */
body {
    padding-top: 70px; /* Height of top nav */
    padding-bottom: 80px; /* Height of bottom nav */
    min-height: 100vh;
}

/* Container should not add extra top margin that conflicts */
.container {
    margin-top: 0 !important;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Remove conflicting mt-25 class */
.mt-25 {
    margin-top: 0 !important;
}

/* Top Navigation - ensure it's fixed and has proper z-index */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #000;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Bottom Navigation - ensure it's fixed */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: #1a1a1a;
    height: 70px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

/* Main content area */
#content {
    min-height: calc(100vh - 150px); /* Full height minus top and bottom nav */
    position: relative;
}

/* Ensure all page containers have proper spacing */
.news-page-container,
.store-page-container,
.auto-page-container,
.classifieds-page-container,
.home-page-container {
    padding-top: 20px;
    padding-bottom: 20px;
    min-height: calc(100vh - 150px);
}

/* Category grids should not be obscured */
.category-grid {
    margin-top: 20px;
    margin-bottom: 30px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
        padding-bottom: 70px;
    }
    
    .top-nav {
        height: 60px;
        padding: 0 10px;
    }
    
    .bottom-nav {
        height: 60px;
    }
    
    #content {
        min-height: calc(100vh - 120px);
    }
}

/* Fix for tables being cut off */
table {
    margin-bottom: 30px;
}

/* Ensure modals and overlays appear above navs */
.modal,
.overlay,
.dropdown-menu {
    z-index: 1001;
}

/* Racing theme specific fixes */
.checkered-pattern {
    position: relative;
    z-index: 1;
}

/* Ensure content is scrollable and not hidden */
html {
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Fix for any absolutely positioned elements */
.absolute {
    position: relative;
}

/* Brand logo spacing */
.brand {
    display: flex;
    align-items: center;
}

/* Nav actions spacing */
.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
    position: relative;
}

.nav-icon:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.nav-icon i {
    font-size: 1.2rem;
}

.nav-icon span {
    font-size: 0.75rem;
}

/* Badge for cart/wishlist counts */
.badge {
    position: absolute;
    top: 0;
    right: 5px;
    background-color: #e10600;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: bold;
}

/* Bottom nav items */
.nav-item {
    flex: 1;
    text-align: center;
}

.nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #ccc;
    text-decoration: none;
    padding: 10px 5px;
    transition: all 0.3s ease;
}

.nav-item a:hover {
    color: #e10600;
    transform: translateY(-3px);
}

.nav-item a.active {
    color: #e10600;
}

.nav-item i {
    font-size: 1.5rem;
}

.nav-item span {
    font-size: 0.75rem;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    color: #e10600;
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-actions {
        position: fixed;
        top: 60px;
        right: -100%;
        background-color: #1a1a1a;
        flex-direction: column;
        width: 250px;
        height: calc(100vh - 60px);
        padding: 20px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0,0,0,0.5);
        z-index: 998;
    }
    
    .nav-actions.active {
        right: 0;
    }
    
    .nav-icon {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
        padding: 15px;
    }
    
    .nav-icon i {
        font-size: 1.3rem;
    }
    
    .nav-icon span {
        font-size: 1rem;
    }
}

/* Smooth scroll for anchor links */
a[href^="#"] {
    scroll-margin-top: 80px;
}

/* Print styles - hide navigation when printing */
@media print {
    .top-nav,
    .bottom-nav,
    .nav-toggle {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        padding-bottom: 0;
    }
}