/**
 * Custom styles for Bootstrap Theme
 * Includes responsive styles and custom font settings
 */

/* Custom accent color */
:root {
  --bs-primary: #2DAF52;
  --bs-primary-rgb: 45, 175, 82;
  --bs-link-color: #2DAF52;
  --bs-link-hover-color: #259443;
}

/* Override Bootstrap default styles with our accent color */
.btn-primary {
  background-color: #2DAF52;
  border-color: #2DAF52;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.btn-primary:hover, 
.btn-primary:focus, 
.btn-primary:active {
  background-color: #259443 !important;
  border-color: #259443 !important;
}

/* Outline buttons */
.btn-outline-primary {
  color: #2DAF52;
  border-color: #2DAF52;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: #2DAF52 !important;
  border-color: #2DAF52 !important;
  color: #fff !important;
}

/* Other Bootstrap components */
.text-primary {
  color: #2DAF52 !important;
}

.bg-primary {
  background-color: #2DAF52 !important;
}

.border-primary {
  border-color: #2DAF52 !important;
}

/* Progress bars */
.progress-bar {
  background-color: #2DAF52;
}

/* Badges */
.badge.bg-primary {
  background-color: #2DAF52 !important;
}

/* Alert primary */
.alert-primary {
  color: #0c3f1a;
  background-color: #d1f1db;
  border-color: #b8ebc7;
}

.navbar-nav .dropdown-menu {
  border-radius: 0;
  border-top: 3px solid #2DAF52;
}

.welcome-section h1:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #2DAF52;
}

.site-footer {
  border-top: 5px solid #2DAF52;
}

/* Links and other accent elements */
a {
  color: #2DAF52;
  text-decoration: none;
}

a:hover {
  color: #259443;
  text-decoration: none;
}

/* Remove underlines from all buttons */
.btn:hover,
.btn:focus,
.btn:active {
  text-decoration: none !important;
}

/* Remove underlines from navbar links and other navigation elements */
.nav-link:hover,
.navbar-nav a:hover,
.dropdown-item:hover,
.navbar-brand:hover {
  text-decoration: none;
}

/* Remove underlines from pagination links */
.pagination .page-link:hover {
  color: #259443;
  text-decoration: none;
}

/* Remove underlines from footer links */
.site-footer a:hover {
  text-decoration: none;
}

/* Card links */
.card a:hover {
  text-decoration: none;
}

.pagination .page-item.active .page-link {
  background-color: #2DAF52;
  border-color: #2DAF52;
}

.pagination .page-link {
  color: #2DAF52;
}

.form-check-input:checked {
  background-color: #2DAF52;
  border-color: #2DAF52;
}

/* List group items */
.list-group-item.active {
  background-color: #2DAF52;
  border-color: #2DAF52;
}

/* Nav pills */
.nav-pills .nav-link.active {
  background-color: #2DAF52;
}

/* Highlight text selection */
::selection {
  background-color: rgba(45, 175, 82, 0.2);
}

/* Typography setup with Google Fonts */
h1 {
  font-family: 'Kanit', sans-serif;
  font-weight: 700; /* Bold weight */
  font-size: 2.5rem; /* Default h1 size reduced by 0.5rem */
}

h2, h3, h4, h5, h6, p, a, span, div, input, button, textarea, select, li, label {
  font-family: 'Montserrat', sans-serif;
}

/* Default heading sizes (reduced by 0.5rem from Bootstrap defaults) */
h2 {
  font-size: 1.5rem; /* Default h2 size reduced by 0.5rem */
}

h3 {
  font-size: 1rem; /* Default h3 size reduced by 0.5rem */
}

h4 {
  font-size: 0.875rem; /* Default h4 size reduced by 0.5rem */
}

h5 {
  font-size: 0.75rem; /* Default h5 size reduced by 0.5rem */
}

h6 {
  font-size: 0.625rem; /* Default h6 size reduced by 0.5rem */
}

/* Navigation Active States */
.navbar-nav .nav-item .nav-link.active,
.navbar-nav .nav-item.current-menu-item .nav-link,
.navbar-nav .nav-item.current-page-ancestor .nav-link,
.navbar-nav .nav-item.current_page_item .nav-link,
.navbar-nav .nav-item.current_page_parent .nav-link {
  color: #2DAF52 !important;
  font-weight: 600;
  position: relative;
}

/* Active state underline for sticky navbar */
.sticky-navbar .navbar-nav .nav-item .nav-link.active::after,
.sticky-navbar .navbar-nav .nav-item.current-menu-item .nav-link::after,
.sticky-navbar .navbar-nav .nav-item.current-page-ancestor .nav-link::after,
.sticky-navbar .navbar-nav .nav-item.current_page_item .nav-link::after,
.sticky-navbar .navbar-nav .nav-item.current_page_parent .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  background-color: #2DAF52;
  opacity: 1;
  transition: all 0.3s ease;
}

/* Active state underline for frontpage navbar */
.frontpage-navbar .navbar-nav .nav-item .nav-link.active::after,
.frontpage-navbar .navbar-nav .nav-item.current-menu-item .nav-link::after,
.frontpage-navbar .navbar-nav .nav-item.current-page-ancestor .nav-link::after,
.frontpage-navbar .navbar-nav .nav-item.current_page_item .nav-link::after,
.frontpage-navbar .navbar-nav .nav-item.current_page_parent .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  background-color: #2DAF52;
  opacity: 1;
  transition: all 0.3s ease;
}

/* Ensure active states work on mobile */
@media (max-width: 991.98px) {
  .navbar-nav .nav-item .nav-link.active,
  .navbar-nav .nav-item.current-menu-item .nav-link,
  .navbar-nav .nav-item.current-page-ancestor .nav-link,
  .navbar-nav .nav-item.current_page_item .nav-link,
  .navbar-nav .nav-item.current_page_parent .nav-link {
    background-color: rgba(45, 175, 82, 0.1);
    border-radius: 5px;
    margin: 2px 0;
  }
  
  /* Remove underlines on mobile, use background instead */
  .sticky-navbar .navbar-nav .nav-item .nav-link.active::after,
  .sticky-navbar .navbar-nav .nav-item.current-menu-item .nav-link::after,
  .sticky-navbar .navbar-nav .nav-item.current-page-ancestor .nav-link::after,
  .sticky-navbar .navbar-nav .nav-item.current_page_item .nav-link::after,
  .sticky-navbar .navbar-nav .nav-item.current_page_parent .nav-link::after,
  .frontpage-navbar .navbar-nav .nav-item .nav-link.active::after,
  .frontpage-navbar .navbar-nav .nav-item.current-menu-item .nav-link::after,
  .frontpage-navbar .navbar-nav .nav-item.current-page-ancestor .nav-link::after,
  .frontpage-navbar .navbar-nav .nav-item.current_page_item .nav-link::after,
  .frontpage-navbar .navbar-nav .nav-item.current_page_parent .nav-link::after {
    display: none;
  }
}

/* Dropdown menu active states */
.navbar-nav .dropdown-menu .dropdown-item.active,
.navbar-nav .dropdown-menu .dropdown-item.current-menu-item {
  background-color: #2DAF52;
  color: white;
}

.navbar-nav .dropdown-menu .dropdown-item.active:hover,
.navbar-nav .dropdown-menu .dropdown-item.current-menu-item:hover {
  background-color: #259443;
  color: white;
}

/* Global adjustments */
body {
  overflow-x: hidden;
  padding-top: 80px; /* Space for fixed navbar */
}

/* Additional spacing for page content */
.page:not(.home) .site-main .container {
  padding-top: 5rem !important; /* Extra space above page content - override Bootstrap py-4 */
}

/* Product pages specific spacing */
.single-product .site-main .container {
  padding-top: 6rem !important; /* Extra space for product pages to prevent breadcrumb overlap */
}

/* Archive product pages specific spacing */
.post-type-archive-product .site-main .container {
  padding-top: 6rem !important; /* Extra space for archive product pages to prevent header overlap */
}

/* Remove body padding on front page since it has its own header structure */
body.home {
  padding-top: 0;
}

/* Adjust body padding when admin bar is present */
.admin-bar body {
  padding-top: 112px; /* 80px + 32px admin bar */
}

.admin-bar body.home {
  padding-top: 0; /* Front page handles its own spacing */
}

/* Additional spacing for pages when admin bar is present */
.admin-bar .page .site-main .container {
  padding-top: 4rem !important; /* Slightly less since admin bar already adds space */
}

/* Admin bar adjustments for product pages */
.admin-bar .single-product .site-main .container {
  padding-top: 5rem !important; /* Account for admin bar on product pages */
}

/* Admin bar adjustments for archive product pages */
.admin-bar .post-type-archive-product .site-main .container {
  padding-top: 5rem !important; /* Account for admin bar on archive product pages */
}

.carousel-control-next, .carousel-control-prev {
	width: 5%;
}

@media screen and (max-width: 782px) {
  .admin-bar body {
    padding-top: 126px; /* 80px + 46px admin bar */
  }
  
  .admin-bar body.home {
    padding-top: 0; /* Front page handles its own spacing */
  }
  
  /* Responsive spacing for mobile */
  .page:not(.home) .site-main .container {
    padding-top: 4rem !important;
  }
  
  .admin-bar .page .site-main .container {
    padding-top: 3rem !important;
  }
}

/* Product pages responsive spacing */
.single-product .site-main .container {
  padding-top: 5rem !important; /* Slightly less on mobile */
}

.admin-bar .single-product .site-main .container {
  padding-top: 4rem !important; /* Account for admin bar on mobile */
}

/* Archive product pages responsive spacing */
.post-type-archive-product .site-main .container {
  padding-top: 5rem !important; /* Slightly less on mobile */
}

.admin-bar .post-type-archive-product .site-main .container {
  padding-top: 4rem !important; /* Account for admin bar on mobile for archive */
}

img {
  max-width: 100%;
  height: auto;
}

/* Front Page Header and Slider */
.site-header-frontpage {
  position: relative;
  margin-bottom: 0;
}

.frontpage-hero {
  position: relative;
  width: 100%;
}

.header-background {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  min-height: 600px;
  display: flex;
  flex-direction: column;
}

.frontpage-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  background-color: transparent;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.admin-bar .frontpage-navbar {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .frontpage-navbar {
    top: 46px;
  }
  .frontpage-navbar {
	  background-color: rgba(33, 37, 41, 0.95);
	}
}

@media screen and (max-width: 600px) {
  .admin-bar.scrolled .frontpage-navbar {
    top: 0;
  }
}

.frontpage-navbar.scrolled {
  background-color: rgba(33, 37, 41, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.frontpage-navbar .navbar-brand {
  color: #fff;
  font-weight: 700;
}

.frontpage-navbar .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1.5rem !important; /* Increased horizontal padding for more space */
  transition: color 0.3s ease;
  font-weight: 400; /* Normal font-weight */
  text-transform: uppercase; /* Uppercase text */
  letter-spacing: 0.5px; /* Slight letter spacing for better readability */
  position: relative;
  overflow: hidden;
}

.frontpage-navbar .navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: all 0.3s ease;
  transform: translateX(-100%);
}

.frontpage-navbar .navbar-nav .nav-link:hover::before {
  width: 100%;
  transform: translateX(0);
}

.frontpage-navbar .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #2DAF52;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.frontpage-navbar .navbar-nav .nav-link:hover::after {
  width: 80%;
}

.frontpage-navbar .navbar-nav .nav-link:hover,
.frontpage-navbar .navbar-nav .nav-link:focus,
.frontpage-navbar .navbar-nav .nav-link.active {
  color: #fff;
}

#frontpageCarousel {
  position: relative;
  padding-top: 120px; /* Space below the navbar */
  padding-bottom: 40px; /* Space at the bottom of the carousel */
  flex: 1;
  display: flex;
  align-items: center;
}

/* Adjust carousel padding when admin bar is present */
.admin-bar #frontpageCarousel {
  padding-top: 120px; /* 120px + 32px admin bar */
}

@media screen and (max-width: 782px) {
  .admin-bar #frontpageCarousel {
    padding-top: 120px; /* 120px + 46px admin bar */
  }
}

/* Adjust padding for mobile views */
@media screen and (max-width: 576px) {
  #frontpageCarousel {
    padding-bottom: 20px; /* Less bottom padding on small screens */
  }
}

.carousel-item {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  visibility: hidden;
  width: 100%;
}

.carousel-item.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.carousel-text-column {
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  padding: 2rem 1rem;
}

.carousel-text-column h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.carousel-text-column p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.carousel-image-column {
  padding: 2rem 1rem;
}

.carousel-image-column img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
}

/* Front Page Sections */
.welcome-section h1 {
  position: relative;
  padding-bottom: 1rem;
}

.features-section .card {
  transition: transform 0.3s ease;
}

.features-section .card:hover {
  transform: translateY(-10px);
}

.cta-section .bg-light {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Responsive styles */

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1rem;
  }
  
  h3 {
    font-size: 0.75rem;
  }

  .navbar-brand {
    max-width: 80%;
  }
  
  .site-header {
    padding: 0.5rem 0;
  }
  
  .entry-title {
    font-size: 1.25rem;
  }
  
  .card-title {
    font-size: 0.75rem;
  }
  
  .carousel-text-column h1 {
    font-size: 1.5rem;
  }
  
  .carousel-text-column p {
    font-size: 1rem;
  }
  
  .carousel-text-column .btn {
    font-size: 0.875rem;
  }
  
  .header-background {
    min-height: 500px;
  }
  
  .carousel-item {
    min-height: 350px;
  }
  
  #frontpageCarousel {
    padding-top: 80px;
  }
  
  .carousel-text-column {
    order: 2;
    text-align: center;
  }
  
  .carousel-image-column {
    order: 1;
    margin-bottom: 1rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  h3 {
    font-size: 1rem;
  }
  
  .carousel-text-column h1 {
    font-size: 2rem;
  }
  
  .carousel-text-column p {
    font-size: 1.25rem;
  }
  
  .header-background {
    min-height: 550px;
  }
  
  .carousel-item {
    min-height: 400px;
  }
  
  .carousel-text-column {
    order: 2;
    text-align: center;
  }
  
  .carousel-image-column {
    order: 1;
    margin-bottom: 1rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .carousel-text-column h1 {
    font-size: 2.25rem;
  }
  
  .carousel-text-column {
    padding-right: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Custom component styles */
.widget-title {
  font-size: 0.75rem; /* Reduced from 1.25rem */
  border-bottom: 2px solid #f8f9fa;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.nav-link {
  font-weight: 500;
}

.pagination .page-link {
  font-weight: 500;
}

.btn {
  font-weight: 500;
  letter-spacing: 0.5px;
}

.card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Footer styles */
.footer-widget h5 {
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* Homepage Content Sections */
.homepage-section {
  min-height: 400px;
  display: flex;
  align-items: center;
  padding-top: 4.5rem !important; /* Increased from 3rem (py-5) by 50% */
  padding-bottom: 4.5rem !important; /* Increased from 3rem (py-5) by 50% */
}

.bg-light-gray {
  background-color: #F7F7F7;
}

.bg-white {
  background-color: #ffffff;
}

.section-content {
  padding: 2rem 0;
}

.section-heading {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1.5rem;
}

.section-text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 2rem;
}

.section-image {
  text-align: center;
}

.section-image img {
  height: auto;
  max-height: 400px;
  border-radius: 0.5rem;
}

/* Responsive adjustments for homepage sections */
@media (max-width: 991.98px) {
  .section-heading {
    font-size: 2rem;
    text-align: center;
  }
  
  .section-text {
    text-align: center;
  }
  
  .section-content {
    text-align: center;
    padding: 1rem 0;
  }
  
  .homepage-section {
    min-height: auto;
    padding-top: 4.5rem !important; /* Increased from 3rem by 50% */
    padding-bottom: 4.5rem !important; /* Increased from 3rem by 50% */
  }
}

@media (max-width: 767.98px) {
  .section-heading {
    font-size: 1.75rem;
  }
  
  .section-text {
    font-size: 1rem;
  }
  
  .homepage-section {
    padding-top: 3rem !important; /* Increased from 2rem by 50% */
    padding-bottom: 3rem !important; /* Increased from 2rem by 50% */
  }
}

/* Navbar Contact Button */
.navbar-contact-btn {
  font-size: 0.875rem !important;
  padding: 0.5rem 1.5rem !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-radius: 0.375rem !important;
  transition: all 0.3s ease !important;
  margin-left: 1rem;
}

.navbar-contact-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Specific styles for outline-light button in navbar */
.btn-outline-light.navbar-contact-btn {
  color: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.btn-outline-light.navbar-contact-btn:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
  color: #fff !important;
}

/* Responsive adjustments for contact button */
@media (max-width: 991.98px) {
  .navbar-contact-btn {
    margin-left: 0;
    margin-top: 1rem;
    display: block;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .navbar-contact-btn {
    font-size: 0.8rem !important;
    padding: 0.4rem 1.2rem !important;
  }
}

/* Regular Header Sticky Navbar */
.sticky-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  background-color: rgba(33, 37, 41, 0.95);
  padding: 1rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Adjust navbar position when admin bar is present */
.admin-bar .sticky-navbar {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .sticky-navbar {
    top: 46px;
  }
}

@media screen and (max-width: 600px) {
  .admin-bar.scrolled .sticky-navbar {
    top: 0;
  }
}

.sticky-navbar .navbar-brand {
  color: #fff;
  font-weight: 700;
}

.sticky-navbar .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1.5rem !important; /* Increased horizontal padding for more space */
  transition: color 0.3s ease;
  font-weight: 400; /* Normal font-weight */
  text-transform: uppercase; /* Uppercase text */
  letter-spacing: 0.5px; /* Slight letter spacing for better readability */
  position: relative;
  overflow: hidden;
}

.sticky-navbar .navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: all 0.3s ease;
  transform: translateX(-100%);
}

.sticky-navbar .navbar-nav .nav-link:hover::before {
  width: 100%;
  transform: translateX(0);
}

.sticky-navbar .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #2DAF52;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.sticky-navbar .navbar-nav .nav-link:hover::after {
  width: 80%;
}

.sticky-navbar .navbar-nav .nav-link:hover,
.sticky-navbar .navbar-nav .nav-link:focus,
.sticky-navbar .navbar-nav .nav-link.active {
  color: #fff;
}

/* Partner Logos Section */
.partner-logos-section {
  background-color: #ffffff;
  padding: 20px 0;
  overflow: hidden;
  user-select: none;
}

.partner-logos-container {
  overflow: hidden;
  cursor: grab;
  position: relative;
}

.partner-logos-container:active {
  cursor: grabbing;
}

.partner-logos-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  transition: transform 0.3s ease;
  will-change: transform;
}

.partner-logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 105px;
  min-width: 150px;
}

.partner-logo {
  height: 80px;
  width: auto;
  max-width: 200px;
  filter: grayscale(100%) opacity(0.7);
  transition: all 0.3s ease;
  /* Enhanced image rendering properties */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  /* Prevent blurry scaling */
  -ms-interpolation-mode: bicubic;
  /* Better anti-aliasing */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Ensure sharp edges */
  object-fit: contain;
  object-position: center;
}

.partner-logo:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05) translateZ(0);
  /* Maintain sharpness during hover transform */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.partner-logo-item a {
  display: block;
  text-decoration: none;
  /* Ensure the link doesn't affect image rendering */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .partner-logos-track {
    gap: 2rem;
  }
  
  .partner-logo-item {
    min-width: 120px;
  }
  
  .partner-logo {
    height: 70px;
    max-width: 150px;
  }
}

@media (max-width: 576px) {
  .partner-logos-track {
    gap: 1.5rem;
  }
  
  .partner-logo-item {
    min-width: 100px;
  }
  
  .partner-logo {
    height: 60px;
    max-width: 120px;
  }
}

/* High DPI/Retina display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .partner-logo {
    /* Better rendering on high DPI displays */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Footer Styles */
.site-footer {
  border-top: 5px solid #2DAF52;
}

/* Footer Logo Styling */
.footer-logo img {
  max-width: 200px;
  height: auto;
  width: auto;
}

/* Header Logo Styling - All Headers */
.custom-logo {
  max-width: 200px !important;
  height: auto !important;
  width: auto !important;
}

/* Navbar Brand Logo Container */
.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand .custom-logo {
  transition: all 0.3s ease;
}

/* Footer logo should also follow the same responsive pattern */
.footer-logo .custom-logo {
  max-width: 200px !important;
  height: auto !important;
  width: auto !important;
}

/* Responsive Logo Adjustments */
@media (max-width: 1199.98px) {
  .custom-logo,
  .footer-logo img,
  .footer-logo .custom-logo {
    max-width: 180px !important;
  }
}

@media (max-width: 991.98px) {
  .custom-logo,
  .footer-logo img,
  .footer-logo .custom-logo {
    max-width: 160px !important;
  }
}

@media (max-width: 767.98px) {
  .custom-logo,
  .footer-logo img,
  .footer-logo .custom-logo {
    max-width: 140px !important;
  }
}

@media (max-width: 575.98px) {
  .custom-logo,
  .footer-logo img,
  .footer-logo .custom-logo {
    max-width: 120px !important;
  }
}

@media (max-width: 480px) {
  .custom-logo,
  .footer-logo img,
  .footer-logo .custom-logo {
    max-width: 100px !important;
  }
}

/* Specific adjustments for front page navbar */
.frontpage-navbar .custom-logo {
  filter: brightness(1.1); /* Slightly brighter for better visibility on background */
}

/* Sticky navbar logo adjustments */
.sticky-navbar .custom-logo {
  /* Inherits the responsive sizes from above */
}

/* Footer Navigation Menu */
.footer-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-menu li {
  margin-bottom: 8px;
}

.footer-nav-menu a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav-menu a:hover {
  color: #2DAF52;
  text-decoration: none;
}

/* Contact Information Styling */
.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

.contact-item i {
  color: #2DAF52;
  margin-right: 10px;
  margin-top: 2px;
  width: 16px;
  text-align: center;
}

.contact-item a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #2DAF52;
  text-decoration: none;
}

/* Social Media Links */
.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: #2DAF52;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.social-links i {
  font-size: 16px;
}

/* Footer Section Headings */
.site-footer h5 {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.site-footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: #2DAF52;
}

/* Footer Description */
.footer-description {
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Copyright Section */
.site-footer hr {
  border-color: rgba(255, 255, 255, 0.2) !important;
  margin: 30px 0 20px 0;
}

/* Responsive Footer Adjustments */
@media (max-width: 767.98px) {
  .site-footer .col-md-4 {
    margin-bottom: 30px;
  }
  
  .site-footer .col-md-4:last-child {
    margin-bottom: 0;
  }
  
  .site-footer h5::after {
    width: 30px;
  }
  
  .social-links a {
    width: 35px;
    height: 35px;
    line-height: 35px;
    margin-right: 8px;
  }
  
  .social-links i {
    font-size: 14px;
  }
}

/* Product pages responsive spacing */
.single-product .site-main .container {
  padding-top: 5rem !important; /* Slightly less on mobile */
}

.admin-bar .single-product .site-main .container {
  padding-top: 4rem !important; /* Account for admin bar on mobile */
}

/* Archive product pages responsive spacing */
.post-type-archive-product .site-main .container {
  padding-top: 5rem !important; /* Slightly less on mobile */
}

.admin-bar .post-type-archive-product .site-main .container {
  padding-top: 4rem !important; /* Account for admin bar on mobile for archive */
}

/* Product Category Styles */
.product-filters {
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.product-filters .form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

.product-filters .form-select {
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.product-filters .form-select:focus {
  border-color: #2DAF52;
  box-shadow: 0 0 0 0.2rem rgba(45, 175, 82, 0.25);
}

.current-filter .badge {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}

.product-categories .badge {
  font-size: 0.75rem;
  padding: 0.375rem 0.5rem;
  transition: all 0.3s ease;
}

.product-categories .badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-categories .badge.border-primary {
  background-color: #e7f3ff !important;
  border-color: #2DAF52 !important;
  color: #2DAF52 !important;
}

/* Category filter responsive adjustments */
@media (max-width: 767.98px) {
  .product-filters {
    padding: 1rem;
  }
  
  .current-filter {
    text-align: center;
  }
  
  .current-filter .btn {
    margin-top: 0.5rem;
    display: block;
    width: 100%;
  }
}

/* Mobile Heading Size Enhancement */
@media (max-width: 767.98px) {
  /* Increase all heading sizes by 0.5rem in mobile view */
  h1 {
    font-size: 3rem !important; /* Original mobile size + 0.5rem */
  }
  
  h2 {
    font-size: 2rem !important; /* Original mobile size + 0.5rem */
  }
  
  h3 {
    font-size: 1.5rem !important; /* Original mobile size + 0.5rem */
  }
  
  h4 {
    font-size: 1.375rem !important; /* Original mobile size + 0.5rem */
  }
  
  h5 {
    font-size: 1.25rem !important; /* Original mobile size + 0.5rem */
  }
  
  h6 {
    font-size: 1.125rem !important; /* Original mobile size + 0.5rem */
  }
  
  /* Special headings that might need adjustment */
  .carousel-text-column h1 {
    font-size: 3rem !important; /* Ensure carousel headings also get the increase */
  }
  
  .section-heading,
  .page-title,
  .entry-title {
    font-size: 2rem !important; /* Adjust section and page headings */
  }
  
  .card-title.h5 {
    font-size: 1.25rem !important; /* Adjust card titles */
  }
  
  .widget-title,
  .site-footer h5 {
    font-size: 1.25rem !important; /* Adjust widget and footer headings */
  }
} 
/* PAGINATION STYLES */
ul.page-numbers {
	list-style-type: none;
	display: flex;
	flex-direction: row;
    flex-wrap: nowrap;
}
ul.page-numbers li {
	margin-right: 16px;
}
ul.page-numbers li a {
	text-decoration: underline;
}
ul.page-numbers li span.current {
	background: #2DAF52;
	padding: 6px 12px;
	color: #fff;
	border-radius: 4px;
}