/* Styles for blog-details.css */
/* Styles for belts-hoses-replacement.css */

/* ============================================================ */
/* FILE PATH: assets/css/belts-hoses-replacement.css            */
/* ============================================================ */

/* ============================================================ */
/* SECTION: Root Variables & Global Controls
/* ============================================================ */
:root {
  /* Change 0.3 to any value from 0.0 (no tint) to 1.0 (solid) */
  --banner-overlay-opacity: 0.2 !important; /* Original was 0.5 */

  /* --- UNIVERSAL BANNER HEIGHT CONTROL --- */
  --universal-banner-height: 100vh !important; /* This variable is not used for height */

  /* --- THIS IS THE VARIABLE YOU WILL EDIT --- */
  --universal-banner-padding: 400px 0 !important; /* Adjusted from 400px to match engine-diagnostics height */

  --universal-banner-padding-horizontal: 15px !important;

  /* --- TEMPLATE-ONLY TEXT BOX POSITIONING --- */
  --template-horizontal-offset: -50px !important;
  --template-vertical-offset: 0px !important;
  --template-content-max-width: 58.3333% !important;
  --template-content-position-top: -15% !important;
  --template-content-position-right: auto !important;
  --template-content-position-bottom: -100% !important;
  --template-content-position-left: 0% !important;
}

/* ============================================================ */
/* SECTION: Breadcrumb Banner Styling
/* ============================================================ */

.breadcumd__banner {
  /* THIS IS THE FORCED RULE THAT WILL WIN ANY CONFLICT */
  background-image: url("../img/blog/banner.png") !important;

  /* --- Supporting styles to ensure it looks correct --- */
  background-size: cover !important;
  background-attachment: fixed !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  position: relative !important;
}

.breadcumd__banner::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* THIS IS THE FIX: We added !important to force this rule to apply */
  background: rgba(0, 0, 0, var(--banner-overlay-opacity)) !important;
}

.breadcumd__banner .breadcumd__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  padding: var(--universal-banner-padding);
}

.breadcumd__banner .breadcumd__wrapper {
  padding: var(--universal-banner-padding) !important;
}

.breadcumd__banner .service-glass-container {
  padding: 0 40px 20px 40px !important;
}

.breadcumd__banner .left__content {
  color: #ffffff;
  font-weight: 600;
}

.breadcumd__banner .right__content {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcumd__banner .right__content li {
  font-size: 16px;
  font-weight: 600;
  text-transform: capitalize;
  color: var(--theme);
}

.breadcumd__banner .right__content li:not(:last-child) {
  margin-right: 10px;
  color: #ffffff;
}

.breadcumd__banner .right__content li a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.breadcumd__banner .right__content li a:hover {
  color: var(--theme);
}

/* ============================================================ */
/* START: BANNER TEXT COLOR OVERRIDES (MOVED FROM THEME-COLOR.CSS)
/* PURPOSE: These rules are moved from the main theme file to
/*          force specific text and link colors on this banner,
/*          overriding any global theme settings.
/* AFFECTS: The title and breadcrumb links within the banner.
/* ============================================================ */
/* This rule handles the "Home" link and the main title */
.breadcumd__banner .breadcumd__wrapper .left__content,
.breadcumd__banner .breadcumd__wrapper .right__content li a {
  color: #ffffff !important; /* Text Color: #ffffff */
}

/* THIS IS THE FIX: It targets the chevron icon AND any link you hover on */
.breadcumd__banner .breadcumd__wrapper .right__content li,
.breadcumd__banner .breadcumd__wrapper .right__content li a:hover {
  color: #facc15 !important; /* Accent Color (Grenier's Yellow): #facc15 */
}

/* This NEW rule specifically targets the LAST link (your active page) and makes it yellow */
.breadcumd__banner .breadcumd__wrapper .right__content li:last-child a {
  color: #facc15 !important; /* Accent Color (Grenier's Yellow): #facc15 */
}

/* ============================================================ */
/* END: BANNER TEXT COLOR OVERRIDES
/* ============================================================ */

/* ============================================================ */
/* SECTION: Breadcrumb Banner Responsive Adjustments
/* ============================================================ */
@media (max-width: 767px) {
  .breadcumd__banner .breadcumd__wrapper {
    gap: 20px;
  }
}

@media (max-width: 575px) {
  .breadcumd__banner .breadcumd__wrapper .left__content {
    font-size: 24px;
  }
}

/* ============================================================ */
/* SECTION: Header & Logo Layout
/* ============================================================ */
.header-section {
  position: relative;
}

.straddle-logo {
  position: absolute;
  top: 160%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
}

.straddle-logo img {
  height: 230px;
  width: auto;
  max-width: none;
}

/* ============================================================ */
/* SECTION: Top Informational Header Bar
/* ============================================================ */
.header__top {
  min-height: 0px !important;
  padding: 8px 0 !important;
  background-color: #ffffff !important;
  position: relative !important;
  z-index: 99 !important;
}

.header__top .header__wrapper {
  min-height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100%;
  flex-wrap: wrap;
}

.header__top .info li {
  color: #333333 !important;
  margin-right: 25px !important;
  font-size: 14px !important;
}

.header__top .info li i {
  color: #2e0c5e !important;
  margin-right: 8px !important;
}

.header__top .social__icon {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  gap: 15px !important;
}

.header__top .social__icon li {
  margin-right: 15px !important;
}

.header__top .social__icon li a {
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #2e0c5e !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  transition: background-color 0.3s ease;
}

.header__top .social__icon a:hover {
  background-color: #facc15 !important;
}
.header__top .social__icon a:hover i {
  color: #ffffff !important;
}

/* ============================================================ */
/* SECTION: Desktop Navigation Adjustments
/* ============================================================ */
@media (min-width: 992px) {
  .header-wrapper .main__logo {
    display: none;
  }
  .header-wrapper .logo__menuadjust {
    flex-grow: 1;
    justify-content: center;
  }
  .header-wrapper .main-menu {
    justify-content: center;
    width: 100%;
    display: flex;
  }
  .header-wrapper .main-menu > li:nth-child(3) {
    margin-right: 180px;
  }
  .header-wrapper .main-menu > li:nth-child(4) {
    margin-left: 180px;
  }
}

/* ============================================================ */
/* SECTION: Sidebar Logo Sizing
/* ============================================================ */
.side_bar .logo img {
  max-width: 80%;
  height: auto;
}

/* ============================================================ */
/* SECTION: Service Details Page Layout
/* ============================================================ */
.details__section .container {
  max-width: 1800px !important;
}

.details__section .row {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
}

.details__section .col-lg-3,
.details__section .col-lg-6 {
  display: flex;
  flex-direction: column;
}

.sidebar__widget {
  margin-bottom: 30px;
}

.details__thumb img,
.benefit__thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  max-width: 100%;
}

.benefit .points li {
  display: flex;
  align-items: flex-start;
  font-size: 16px !important;
}

.benefit .points .fa-check {
  margin-right: 10px;
  color: var(--cmn-theme);
  margin-top: 5px;
}

.service__helping .thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-width: 100%;
}

.service__helping .helping__content {
  padding: 25px;
}

.service__helping .helping__content h4 {
  font-size: 20px;
}

.service__helping .helping__content p {
  font-size: 15px !important;
  line-height: 1.5 !important;
}

@media (max-width: 991px) {
  .details__section .row {
    flex-direction: column;
  }
}

/* ============================================================ */
/* SECTION: Service List Sidebar Widget
/* ============================================================ */
.service__list {
  padding: 0;
  list-style: none;
}

.service__list li {
  margin-bottom: 30px !important;
}

.service__list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background-color: #ffffff;
  border: 0.2px solid #e6bc11;
  border-radius: 10px;
  padding: 15px 20px;
  font-weight: 500;
  font-size: 16px;
  color: #121212;
  text-align: left;
  transition: all 0.3s ease;
}

.service__list li a:hover,
.service__list li a.current {
  background-color: #e6bc11;
  border-color: var(--cmn-theme);
  color: var(--cmn-theme);
}

.service__list li a.active {
  background-color: var(--cmn-theme);
  border-color: var(--cmn-theme);
}

.service__list li a.active span {
  color: #000000 !important;
  font-weight: bold;
}

.service__list li a.active .fa-chevron-right {
  color: #000000 !important;
}

/* ============================================================ */
/* SECTION: General Typography & Animation
/* ============================================================ */
p {
  font-size: 16px !important;
  line-height: 1.6 !important;
}

[data-wow-delay] {
  transition: opacity 0.5s ease, transform 0.5s ease !important;
}

/* ============================================================ */
/* SECTION: Sidebar Call-to-Action (CTA) Animations
/* ============================================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes flipOut {
  from {
    transform: perspective(400px) rotateY(0deg);
  }
  to {
    transform: perspective(400px) rotateY(180deg);
  }
}

.text-justify {
  animation: fadeIn 2s;
}

.cta-section {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  animation: slideIn 1.5s;
}

.cta-section a {
  display: inline-block;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  animation: pulse 2s infinite;
}

/* ============================================================ */
/* SECTION: Footer Content Area
/* ============================================================ */
.footer-info {
  padding: 40px 0;
}
.footer-info .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding-bottom: 30px;
}

.footer-widget {
  position: relative;
  text-align: center;
}
.footer-logo {
  position: absolute;
  top: 0;
  left: 0;
  height: 100px;
  width: auto;
}
.widget-title {
  color: #ffd60a !important;
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 15px;
}
.footer-widget:first-child .widget-title {
  margin-top: 115px;
}

.contact-list,
.quick-links {
  list-style: none;
  padding: 0;
  text-align: center;
}
.contact-list li,
.quick-links li {
  margin-bottom: 10px;
}
.contact-list i {
  color: #ffd60a;
  margin-right: 10px;
}
.social-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 15px;
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  color: #1a0b2e;
  background-color: #ffd60a;
  border-radius: 50%;
  transition: all 0.3s;
}
.social-icons a:hover {
  transform: scale(1.1) rotate(10deg);
  background-color: #ffffff;
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #48118a;
}

.footer-info,
.footer-widget p,
.contact-list a,
.quick-links a,
.contact-list span,
.footer-bottom p {
  color: #ffffff !important;
  text-decoration: none;
}
.contact-list a:hover,
.quick-links a:hover {
  color: #ffd60a !important;
}

/* ================================================================= */
/* 10. UNIVERSAL CUSTOM ENHANCEMENTS FOR ALL PAGES                  */
/* ================================================================= */

/* --- Rounded Corners for Main Content Containers --- */
/* This applies rounded corners to containers for a cohesive look. */
.service__section .service__items,
.blog__section .blog__items {
  border-radius: 15px; /* The key change for the cohesive look */
  overflow: hidden; /* Clips content (like the image) to the rounded shape */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* --- Rounded Corners for Standalone Image Containers --- */
/* This targets all single image containers across different pages. */
.shop__details .image.img,
.details__thumb,
.benefit__thumb,
.service__helping .thumb {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* --- Pop-Out Effect on Hover for Card-like Containers --- */
.service__section .service__items:hover,
.blog__section .blog__items:hover {
  transform: scale(1.05); /* Makes the container "pop out" */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Adds a more pronounced shadow */
  z-index: 10;
  position: relative;
}

/* --- Pop-Out Effect for Standalone Image Containers --- */
.shop__details .image.img:hover,
.details__thumb:hover,
.benefit__thumb:hover,
.service__helping .thumb:hover {
  transform: scale(1.03); /* A slightly more subtle pop-out */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* --- Positioning for Click-to-View Icon --- */
.service__thumb,
.blog__thumb {
  position: relative; /* Needed for positioning the icon */
}

/* --- Click-to-View Icon Styling --- */
/* This adds a magnifying glass icon over all targeted images. */
.service__thumb a::before,
.blog__thumb a::before,
.shop-single-slide .swiper-slide a::before,
.details__thumb a::before,
.benefit__thumb a::before,
.service__helping .thumb a::before {
  content: "\f00e"; /* Font Awesome search/magnify icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  color: white;
  font-size: 40px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 5;
  pointer-events: none; /* Allows clicks to go through to the link */
}

/* --- Show Icon on Hover --- */
/* The icon appears when you hover over any targeted image container. */
.service__items:hover .service__thumb a::before,
.blog__items:hover .blog__thumb a::before,
.shop__details .image.img:hover a::before,
.details__thumb:hover a::before,
.benefit__thumb:hover a::before,
.service__helping .thumb:hover a::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* ============================================================ */
/* SECTION: HARD KILL & CUSTOM HOVER EFFECTS                    */
/* ============================================================ */

/* CRITICAL: Disable smooth scroll behavior that interferes with instant scrollTo */
html,
body {
  scroll-behavior: auto !important;
}
.mega-container {
  border: none !important;
  outline: none !important;
}
.resize-handle {
  display: none !important;
  pointer-events: none !important;
}

/* Hover effect for sidebar image "View Image" buttons */
.service__helping .thumb:hover .sidebar-image-btn {
  opacity: 1 !important;
}

/* Ensure smooth image scaling on hover */
.service__helping .thumb a img {
  transition: transform 0.3s ease;
}

.service__helping .thumb:hover a img {
  transform: scale(1.05);
}

/* Contact button hover effect - purple button becomes yellow with purple text */
.sidebar-contact-btn:hover {
  background: #facc15 !important;
  color: #2e0c5e !important;
  border-color: #facc15 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.4) !important;
}

.sidebar-contact-btn:hover i {
  color: #2e0c5e !important;
}

.sidebar-contact-btn:hover span {
  color: #2e0c5e !important;
}

/* Phone/Email link hover effects */
.helping__content a[href^="tel:"]:hover,
.helping__content a[href^="mailto:"]:hover {
  color: #facc15 !important;
  text-decoration: underline !important;
}
