/* Custom Color Override for Motto Theme */
/* Primary Color: #4cb286 */
/* Secondary Color: #00787d */

:root {
  --primary-color: #4cb286 !important;
  --primary-color-rgb: 76, 178, 134 !important;
  --secondary-color: #00787d !important;
  --secondary-color-rgb: 0, 120, 125 !important;
}

/* Override any hardcoded primary colors */
.bg-color,
header,
section.bg-color,
section.call-to-action,
a.btn-main,
.btn-main,
.btn-primary,
.bg-id-color,
#back-to-top,
.de-icon,
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link,
#section-fun-facts.bg-color {
  background-color: #4cb286 !important;
  color: #ffffff !important;
}

.id-color,
h1.id-color,
h2.id-color,
h3.id-color,
h4.id-color,
.id-color i,
.id-color a {
  color: #4cb286 !important;
}

/* Secondary color for hover states and accents */
.btn-main:hover,
a.btn-main:hover,
.btn-primary:hover {
  background-color: #00787d !important;
  border-color: #00787d !important;
}

/* Border colors */
.btn-main,
a.btn-main {
  border-color: #4cb286 !important;
}

/* Text colors with secondary */
.text-secondary,
.secondary-color {
  color: #00787d !important;
}

/* Background with secondary */
.bg-secondary {
  background-color: #00787d !important;
}

/* Links and hover states */
a:hover,
a:focus {
  color: #4cb286 !important;
}

/* Progress bars and sliders */
.de-progress .progress-bar,
input[type="range"]::-webkit-slider-thumb {
  background-color: #4cb286 !important;
}

/* Testimonial quote icons */
.d-quote.id-color {
  color: #4cb286 !important;
}

/* Footer icons */
footer .id-color {
  color: #4cb286 !important;
}

/* Marquee dots */
.de-marquee-list .d-item-dot {
  background-color: #4cb286 !important;
}

/* Active menu items */
#mainmenu li a.menu-item.active,
#mainmenu li a.menu-item:hover {
  color: #4cb286 !important;
}

/* Tab active states */
.nav-pills .nav-link.active {
  background-color: #4cb286 !important;
}

/* Carousel navigation */
.owl-arrow span {
  background-color: #4cb286 !important;
}

/* Modern Header Styling */
.modern-header {
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

/* Fixed Header */
.fixed-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  width: 100% !important;
  background: #ffffff !important;
}

/* Account for fixed header - add padding to first section on pages with fixed header */
#content section.pco-hero-section {
  padding-top: 200px !important;
  margin-top: 0 !important;
}

.fixed-header .navbar-main {
  position: relative !important;
}

/* Topbar styling for fixed header */
.fixed-header #topbar {
  position: relative !important;
  z-index: 10000 !important;
}

/* Navbar main for fixed header */
.fixed-header .navbar-main {
  position: relative !important;
  z-index: 10001 !important;
}

/* Smooth header transition on scroll */
.fixed-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.fixed-header.scrolled #topbar {
  display: none !important;
}

.modern-header .navbar-main {
  background: #ffffff !important;
  /* padding: 15px 0 !important; */
}

.modern-header #logo {
  padding: 5px 0 !important;
}

.modern-header #logo img,
.modern-header #logo .logo-1 {
  max-height: 50px !important;
  width: auto !important;
  transition: all 0.3s ease !important;
  opacity: 1 !important;
  display: block !important;
}

/* Ensure logo-1 shows on large screens for header-light */
@media (min-width: 993px) {
  header.header-light #logo .logo-1 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  header.header-light #logo .logo-2 {
    display: none !important;
  }
}

/* If logo needs color adjustment - uncomment below and adjust filter */
/* .modern-header #logo img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(140deg) brightness(95%) contrast(85%);
} */

.modern-header #logo img:hover {
  transform: scale(1.05) !important;
  opacity: 0.9 !important;
}

/* Logo background for better visibility if needed */
.modern-header #logo a {
  display: inline-block !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  background: rgba(76, 178, 134, 0.05) !important;
  transition: all 0.3s ease !important;
}

.modern-header #logo a:hover {
  background: rgba(76, 178, 134, 0.1) !important;
}

/* Modern Menu Styling */
.modern-header #mainmenu {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  flex-wrap: wrap !important;
}

.modern-header #mainmenu li {
  margin: 0 8px !important;
}

.modern-header #mainmenu li a.menu-item {
  color: #333333 !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  padding: 10px 15px !important;
  border-radius: 6px !important;
  transition: all 0.3s ease !important;
  position: relative !important;
}

.modern-header #mainmenu li a.menu-item:hover,
.modern-header #mainmenu li a.menu-item.active {
  color: #4cb286 !important;
  background-color: rgba(76, 178, 134, 0.1) !important;
}

.modern-header #mainmenu li a.menu-item::after {
  display: none !important;
}

/* Modern Button Styling */
.modern-header .btn-enquire {
  background-color: #00787d !important;
  color: #ffffff !important;
  padding: 12px 24px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-transform: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(0, 120, 125, 0.3) !important;
  border: none !important;
}

.modern-header .btn-enquire:hover {
  background-color: #005f63 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 120, 125, 0.4) !important;
}

/* Modern Hero Section */
.modern-hero {
  padding-top: 140px !important;
  min-height: 90vh !important;
  position: relative !important;
  margin-top: 0 !important;
}

.modern-hero-title {
  font-size: 3.5rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin-bottom: 20px !important;
  color: #1a1a1a !important;
}

.modern-hero-text {
  font-size: 1.2rem !important;
  line-height: 1.8 !important;
  color: #666 !important;
  margin-bottom: 30px !important;
}

.hero-buttons {
  display: flex !important;
  gap: 15px !important;
  flex-wrap: wrap !important;
  margin-top: 30px !important;
}

.btn-hero-primary {
  background-color: #4cb286 !important;
  color: #ffffff !important;
  padding: 15px 35px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(76, 178, 134, 0.3) !important;
  border: none !important;
  text-decoration: none !important;
  display: inline-block !important;
}

.btn-hero-primary:hover {
  background-color: #3a9d6f !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(76, 178, 134, 0.4) !important;
  color: #ffffff !important;
}

.btn-hero-secondary {
  background-color: #00787d !important;
  color: #ffffff !important;
  padding: 15px 35px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(0, 120, 125, 0.3) !important;
  border: none !important;
  text-decoration: none !important;
  display: inline-block !important;
}

.btn-hero-secondary:hover {
  background-color: #005f63 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 120, 125, 0.4) !important;
  color: #ffffff !important;
}

.modern-hero-image {
  animation: float 3s ease-in-out infinite !important;
  max-width: 100% !important;
  height: auto !important;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Modern Section Styling */
section {
  padding: 80px 0 !important;
}

/* Override for PCO hero section */
section.pco-hero-section {
  padding-top: 200px !important;
  padding-bottom: 80px !important;
}

section h2 {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 20px !important;
  color: #1a1a1a !important;
}

section p {
  font-size: 1.1rem !important;
  line-height: 1.8 !important;
  color: #666 !important;
}

/* Modern Card Styling */
.de-item {
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
  background: #ffffff !important;
}

.de-item:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.de-item .d-img {
  overflow: hidden !important;
}

.de-item .d-img img {
  transition: transform 0.5s ease !important;
}

.de-item:hover .d-img img {
  transform: scale(1.1) !important;
}

/* Modern Button Styling */
.btn-main {
  border-radius: 8px !important;
  padding: 12px 25px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  display: inline-block !important;
}

/* Modern Testimonial Cards */
.de-image-text {
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
}

.de-image-text:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Modern News Cards */
.bloglist.item {
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
  background: #ffffff !important;
}

.bloglist.item:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth !important;
}

/* Modern spacing */
.container {
  max-width: 1200px !important;
}

/* Features Section Icon Styling - Modern Clean Design */
.features-section .feature-icon {
  color: #4cb286 !important;
  font-size: 2.5rem !important;
  display: inline-block !important;
  margin-bottom: 20px !important;
  padding: 20px !important;
  background: #ffffff !important;
  border: 2px solid #4cb286 !important;
  border-radius: 8px !important;
  width: 80px !important;
  height: 80px !important;
  line-height: 40px !important;
  text-align: center !important;
}

.features-section .feature-icon-wrapper {
  margin-bottom: 0 !important;
  display: inline-block !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.features-section .col-md-3:hover .feature-icon-wrapper {
  background: transparent !important;
  transform: none !important;
  box-shadow: none !important;
}

.features-section .col-md-3:hover .feature-icon {
  color: #00787d !important;
  border-color: #00787d !important;
  transform: none !important;
}

.features-section h4 {
  color: #1a1a1a !important;
  font-weight: 600 !important;
  margin-bottom: 15px !important;
  margin-top: 10px !important;
}

.features-section p {
  color: #666 !important;
  line-height: 1.8 !important;
}

/* Price Filter Select Styling - Match btn-main button style exactly */
.features-section .price-filter-select {
  display: inline-block !important;
  font-family: var(--title-font) !important;
  text-align: left !important;
  color: #fff !important;
  outline: 0 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  padding: 17px 40px 17px 30px !important;
  font-size: 14px !important;
  border: none !important;
  border-radius: 5px !important;
  -moz-border-radius: 5px !important;
  -webkit-border-radius: 5px !important;
  background-color: #4cb286 !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 16px !important;
  width: auto !important;
  min-width: 150px !important;
  height: auto !important;
  line-height: normal !important;
  text-transform: none !important;
  transition: background-color 0.3s ease !important;
}

.features-section .price-filter-select:hover {
  background-color: #00787d !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 16px !important;
}

.features-section .price-filter-select:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(76, 178, 134, 0.3) !important;
}

.features-section .price-filter-select option {
  background-color: #ffffff !important;
  color: #1a1a1a !important;
  padding: 10px !important;
  font-weight: normal !important;
  font-size: 14px !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .modern-header #mainmenu {
    flex-direction: column !important;
    width: 100% !important;
  }

  .modern-header #mainmenu li {
    width: 100% !important;
    margin: 5px 0 !important;
  }

  .modern-header #mainmenu li a.menu-item {
    display: block !important;
    text-align: left !important;
  }

  .modern-hero-title {
    font-size: 2.5rem !important;
  }

  .modern-hero {
    padding-top: 100px !important;
    min-height: auto !important;
  }

  .hero-buttons {
    flex-direction: column !important;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100% !important;
    text-align: center !important;
  }
}

