/* ===== GLOBAL STYLES ===== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #5a5858;
}

h1, h2, h3, h4, h5, h6 {
  color: #000000;
}

.container {
  max-width: 1200px;
}

/* ===== NAVBAR ===== */
.navbar {
  background-color: #fcaf17 !important;
  padding: 0.5rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  height: 40px;
}

.nav-link {
  color: #000 !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.nav-link:hover {
  color: #fff !important;
}

.nav-link.active {
  color: #055623 !important;
  font-weight: 600;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* ===== BANNERS ===== */
.index-banner {
  background: url('../images/index-banner.jpg') center/cover;
  height: 250px;
  width: 100%;
}

.product-banner {
  background: url('../images/product-banner.jpg') center/cover;
  height: 200px;
  width: 100%;
}

/* ===== PRODUCT GRID (Used Tractors Page) ===== */
.product-grid {
  padding: 3rem 0;
  background: white;
}

.product-card {
  border: 2px solid #055623;
  padding: 8px;
  margin-bottom: 2rem;
  height: 100%;
  transition: transform 0.3s;
  background: white;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-img {
  background-color: #f8f9fa;
  height: 280px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.product-title {
  font-weight: 600;
  margin-bottom: 8px;
  min-height: 40px;
  color: #000;
}

.inquire-btn {
  background-color: #282828;
  color: white;
  width: 100%;
  border: none;
  padding: 8px;
  transition: all 0.3s;
}

.inquire-btn:hover {
  background-color: #055623;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card {
  position: relative; /* Add this to make it a positioning context */
  padding-bottom: 50px; /* Make room for the button at the bottom */
}

.inquire-btn {
  position: absolute;
  bottom: 8px; /* Match the card's padding */
  left: 8px; /* Match the card's padding */
  right: 8px; /* Match the card's padding */
  width: auto; /* Override the previous 100% width */
}

/* ===== PAGINATION ===== */
.pagination {
  margin-top: 2rem;
}

.pagination .page-link {
  color: #055623;
  border: 1px solid #dee2e6;
  margin: 0 5px;
}

.pagination .page-item.active .page-link {
  background-color: #055623;
  border-color: #055623;
  color: white !important;
}

.pagination .page-link:hover {
  background-color: #f8f9fa;
}

/* CONTACT FORM BUTTON */
.btn-send-message {
  background-color: #10a145;
  color: white;
  border: none;
  padding: 10px 25px;
  transition: all 0.3s;
}

.btn-send-message:hover {
  background-color: #0d8a3a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* WhatsApp Icon Fix */
.whatsapp-icon i {
  color: #25D366 !important;
  transition: transform 0.3s;
}

.whatsapp-icon:hover i {
  transform: scale(1.1);
}

/* HERO CAROUSEL LEFT ALIGNMENT */
.carousel-caption.text-left {
  left: 0;
  right: auto;
  padding-left: 15px;
  padding-right: 15px;
  text-align: left;
}

/* PARALLAX BLACK OVERLAY */
.parallax-bg {
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Ensure content stays above overlay */
.position-relative {
  position: relative;
}

.z-index-1 {
  z-index: 1;
}

/* HERO CAROUSEL SPACING ADJUSTMENTS */
.carousel-caption.text-left {
  left: 0;
  right: 0;
  padding-left: 15px;
  padding-right: 15px;
  text-align: left;
}

@media (min-width: 992px) {
  .carousel-caption.text-left .ps-lg-5 {
    padding-left: 3rem !important;  /* Larger padding on desktop */
  }
}

/* Additional spacing between elements */
.carousel-caption .display-4 {
  margin-bottom: 1.5rem !important;
}

.carousel-caption .lead {
  margin-bottom: 2rem !important;
}

/* HERO CONTENT POSITIONING - HIGH PLACEMENT */
.carousel-caption {
  top: 0;
  bottom: auto;
  height: 100%;
  display: flex;
  align-items: flex-start; /* Aligns content to the top */
}

.hero-content {
  padding-top: 20vh !important; /* Very high placement */
  padding-bottom: 2rem;
}

@media (max-width: 992px) {
  .hero-content {
    padding-top: 15vh !important; /* Slightly lower on mobile */
  }
}

/* HERO TEXT COLOR ENHANCEMENT */
.hero-content .text-dark {
  color: #000 !important; /* Force black color */
  text-shadow: 0 1px 2px rgba(255,255,255,0.8); /* White shadow for contrast */
}

/* Ensure heading stays white */
.hero-content .text-white {
  text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Dark shadow for contrast */
}

/* Ensure full height containers */
.container.h-100, .row.h-100 {
  height: 100%;
}

/* Carousel image styling */
.carousel-image {
  background-size: cover;
  background-position: center;
  height: 70vh;
  width: 100%;
}

/* Ensure carousel image covers properly */
.carousel-image {
  background-size: cover;
  background-position: center;
  height: 70vh;
  width: 100%;
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: #252828;
  color: white;
  padding: 2rem 0;
}

.footer-heading {
  color: #fff;
  border-bottom: 2px solid #fcaf17;
  padding-bottom: 8px;
  display: inline-block;
  margin-bottom: 15px;
}

#about-footer {
  border-bottom-color: #10a145;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fcaf17;
}

.whatsapp-icon {
  display: inline-block;
  margin-top: 10px;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .navbar-collapse {
    padding-top: 1rem;
  }
  


/* PRODUCT BANNER STYLING */
.product-banner {
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* Optional: Add dark overlay for better text contrast if needed */
.product-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); /* Adjust opacity as needed */
}

@media (max-width: 768px) {
  .product-banner {
    height: 200px !important;
  }
}