/* =========================
   Base Styling
   ========================= */
body {
  font-family: Arial, sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
}

.footer a {
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}
.hero-slide {
    transition: opacity 0.7s ease-in-out;
}

/* Carousel image fix */
.carousel-item img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
}

/* Optional: Caption enhancements */
.carousel-caption {
  background: rgba(0, 0, 0, 0.6);
  padding: 15px;
  border-radius: 8px;
}

/* =========================
   VS Badge & Vehicle Image
   ========================= */

/* Center VS badge vertically and horizontally */
.vs-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vehicle image frame */
.vehicle-image-frame {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vehicle-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* VS badge styling */
.vs-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #007bff;
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.vs-badge:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  background-color: #ff4d4d;
  color: #fff;
}

/* =========================
   Section Styling (News Blog)
   ========================= */
.section-card {
  border-radius: 8px;
  padding: 10px 15px;
}

.section-title {
  border-bottom: 2px solid #007bff;
  padding-bottom: 5px;
  margin-bottom: 20px;
  font-weight: bold;
  font-size: 1.25rem;
  color: #333;
}

.section-card .card-body {
  padding: 20px;
}

.section-card .row > [class*='col-'] {
  margin-bottom: 15px;
}

/* =========================
   Mobile & Tablet Optimizations
   ========================= */

/* Post Cards: Adjustments for smaller screens */
@media (max-width: 768px) {
  .card-img-top {
    height: 160px !important;
  }
  .card-title {
    font-size: 0.95rem;
  }
  .card-text {
    font-size: 0.8rem;
  }
  .card-footer a {
    font-size: 0.85rem;
    padding: 6px 10px;
  }
}

/* Post Cards: Single column on extra small screens */
@media (max-width: 576px) {
  .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Carousel: Mobile adjustments */
@media (max-width: 768px) {
  .trending-carousel img {
    height: 120px !important;
  }
  .trending-carousel h6 {
    font-size: 0.85rem;
  }
}

/* Carousel: Stack items on very small devices */
@media (max-width: 576px) {
  .carousel-item .col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Hero Section: Mobile adjustments */
@media (max-width: 768px) {
  .hero-section {
    height: 250px !important;
  }
  .hero-overlay h2 {
    font-size: 1.2rem;
  }
}

/* Sidebar: Stack under content on tablets & below */
@media (max-width: 992px) {
  .sidebar-widget {
    margin-top: 20px;
  }
}
/* This file contains the custom CSS for the image slider. */

/* Custom styles for the slider container */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 1rem;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hide the default scrollbar */
.slider-container::-webkit-scrollbar {
    display: none;
}

/* Fallback for browsers that don't support the above */
.slider-container {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none;    /* Firefox */
}

/* Image hover zoom for all relevant images */
.img-hover-zoom {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.img-hover-zoom:hover {
    transform: scale(1.05);
}

/* Card hover shadow */
.card-hover {
    transition: box-shadow 0.3s ease;
}
.card-hover:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Hero section tweaks */
.hero-title {
    font-size: 1.8rem;
    line-height: 1.2;
}
.hero-button {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
}

/* Trending posts square image */
.trending-post img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 8px;
}

/* Button styling improvements */
a.read-more, .hero-button, .category-button {
    display: inline-block;
    background-color: #ff5722;
    color: #fff !important;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
a.read-more:hover, .hero-button:hover, .category-button:hover {
    background-color: #e64a19;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.5rem;
    }
    .hero-button, a.read-more, .category-button {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}


/* =========================
   Navbar & Header Link Styling
   ========================= */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    transition: color 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #ff5722 !important; /* matches your read-more & buttons */
}

.navbar-dark .navbar-brand {
    color: #fff !important;
    font-weight: bold;
    font-size: 1.25rem;
}

.navbar-dark {
    background-color: #212529 !important; /* dark header background */
}



