/*
Theme Name: Houzez Child
Theme URI: http://www.favethemes.com/
Author: Favethemes
Author URI: http://www.favethemes.com/
Description: Houzez Child Theme - Bootstrap 5.3 Compatible
Version: 4.0.0
Template: houzez
*/

/* ========================================
   CSS CUSTOM PROPERTIES - Brand Colors & Typography
   ======================================== */

:root {
  /* Brand Colors */
  --brand-primary: #5f56bf;
  --brand-primary-hover: #554dab;
  --brand-secondary: #3EB6A8;
  --brand-secondary-hover: #32A093;
  --brand-accent: #56BFB3;
  --brand-dark: #2F4858;
  --brand-yellow: #ffab00;
  
  /* Typography */
  --font-primary: 'Sen', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-avenir-regular: 'avenirnextregular', var(--font-primary);
  --font-avenir-bold: 'avenirnextbold', var(--font-primary);
  
  /* Spacing */
  --container-max-width: 1140px;
  
  /* Colors */
  --text-primary: #1A1A1A;
  --text-secondary: #474747;
  --text-light: #D4D4D4;
  --bg-light: #f1f1f1;
  --border-color: #dce0e0;
}

/* ========================================
   CUSTOM FONTS - Performance Optimized
   ======================================== */

@font-face {
  font-family: "avenirnextregular";
  src: url("./fonts/AvenirNextLTPro-Regular.otf") format("opentype"),
    url('./fonts/avenirnextltpro-regular-webfont.woff2') format('woff2'),
    url('./fonts/avenirnextltpro-regular-webfont.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "avenirnextbold";
  src: url("./fonts/AvenirNextLTPro-Bold.otf") format("opentype"),
    url('./fonts/avenirnextltpro-bold-webfont.woff2') format('woff2'),
    url('./fonts/avenirnextltpro-bold-webfont.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ========================================
   GLOBAL TYPOGRAPHY - Bootstrap 5.3 Compatible
   ======================================== */

body {
  font-family: var(--font-primary);
}

/* Heading Styles */
.h1, h1 {
  font-size: 1.8rem;
  font-weight: 400;
  font-family: var(--font-primary);
}

.h2, h2 {
  font-size: 1.5rem;
  font-weight: 400;
  font-family: var(--font-primary);
}

.h3, h3 {
  font-size: 1.3rem;
  font-weight: 400;
  font-family: var(--font-primary);
}

.h4, h4 {
  font-size: 1.2rem;
  font-family: var(--font-primary);
}

.h5, h5 {
  font-size: 1.15rem;
  font-family: var(--font-primary);
}

.h6, h6 {
  font-size: 1.1rem;
  font-family: var(--font-primary);
}

/* Font Weight Updates */
.fw-bold, 
.font-weight-bold,
strong, 
b {
  font-family: var(--font-avenir-bold);
}

.block-content-wrap b,
.block-content-wrap label,
.block-content-wrap strong {
  font-weight: 400;
}

p strong {
  font-weight: bold;
}

/* ========================================
   HEADER STYLING - Bootstrap 5.3 Compatible
   ======================================== */

header .header-top {
  padding: 0px !important;
}

header .header-top .navbar {
  line-height: 90px;
}

@media screen and (min-width: 1200px) {
  header .header-top .container {
    max-width: var(--container-max-width) !important;
    padding: 0px 10px;
  }
}

/* Logo Styling */
header .header-top .logo {
  display: flex;
  align-items: center;
  width: 256px !important;
  margin-inline-end: 0; /* Bootstrap 5.3 logical property */
}

header .header-top .logo a {
  display: inline-block;
}

header .header-top .logo a img {
  top: 0;
  height: auto !important;
  max-width: 160px;
  width: 100%;
  display: block;
}

/* Header Search */
header .header-top .input-group input {
  color: var(--text-secondary);
  font-family: var(--font-primary);
  border-color: var(--text-light);
}

header .header-top .input-group input::placeholder {
  color: var(--text-light);
}

/* Header Search Button - Bootstrap 5.3 Fix */
.add-search-topMenu .input-group .btn {
  border-start-start-radius: 0; /* Updated for Bootstrap 5.3 */
  border-end-start-radius: 0;
}

.add-search-topMenu .input-group .form-control {
  border-start-end-radius: 0; /* Updated for Bootstrap 5.3 */
  border-end-end-radius: 0;
}

/* Header Links */
header .header-top li a {
  color: var(--text-primary) !important;
  font-family: var(--font-primary);
  font-size: 14px !important;
  font-weight: 400 !important;
  background: transparent !important;
}

header .header-top li a:hover {
  color: var(--brand-primary) !important;
}

header .header-top li i {
  font-size: 12px;
  color: var(--brand-primary) !important;
}

/* Navigation */
header #header-section nav {
  min-height: 100% !important;
}

header #header-section .main-nav .nav-link {
  padding-inline-end: 10px !important; /* Bootstrap 5.3 logical property */
  padding-inline-start: 10px !important;
  padding-bottom: 22px !important;
}

header #header-section nav ul li {
  line-height: 100%;
}

header #header-section nav ul li a {
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
}

header #header-section a.nav-link:hover,
header #header-section a.nav-link:active {
  color: var(--brand-secondary) !important;
  background-color: transparent;
}

/* Bold Menu Items */
#menu-item-86662 .nav-link,
#menu-item-80630 .nav-link,
#menu-item-68338 .nav-link,
#menu-item-68335 .nav-link,
#menu-item-69978 .nav-link,
#menu-item-68330 .nav-link,
#menu-item-86692 .nav-link {
  font-weight: bold !important;
}

/* ========================================
   CONTACT FORM 7 - Enhanced Bootstrap 5.3 Styling
   ======================================== */

/* Form Grid Layout */
.form-grid {
  display: grid;
  gap: 0 2rem;
}

/* Form Groups - Bootstrap 5 compatible */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  font-weight: 300 !important;
  width: 100%;
  margin-bottom: 0.5rem;
  display: inline-block;
}

/* Form Controls */
.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.form-group select,
.form-group textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--bs-body-color, #212529);
  background-color: var(--bs-body-bg, #fff);
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  appearance: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Enhanced Focus States with Brand Colors */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus,
.wpcf7 input[name="first-name"]:focus,
.wpcf7 input[name="last-name"]:focus,
.wpcf7 input[name="email"]:focus,
.wpcf7 input[name="email-address"]:focus,
.wpcf7 input[name="phone-no"]:focus,
.wpcf7 input[name="project-location"]:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 5px rgba(95, 85, 190, 0.5);
}

/* Submit Button */
.wpcf7-form-control.wpcf7-submit,
.contact-form-7-custom-btn input[type="submit"] {
  background: var(--brand-primary) !important;
  color: #FFFFFF !important;
  border-radius: 0.25rem;
  border: none;
  padding: 10px 11px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 19px;
  text-shadow: 0px 0px 10px rgba(0,0,0,0.3);
  width: 100% !important;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.wpcf7-form-control.wpcf7-submit:hover,
.contact-form-7-custom-btn input[type="submit"]:hover {
  background: var(--brand-primary-hover) !important;
}

/* Sidebar Form Adjustments */
#sidebar .form-row .wpcf7-form-control.wpcf7-submit {
  display: block;
  width: calc(100% + 25px) !important;
  border-radius: 0.25rem;
}

/* Form List Items */
.wpcf7-list-item {
  display: inline-block;
  margin: 0 0 0 !important;
}

/* Checkbox Styling */
.form-group input[type="checkbox"] {
  width: 20px;
  height: 15px;
  vertical-align: middle;
}

/* Textarea */
.form-group textarea,
.wpcf7 textarea {
  height: 120px;
  resize: vertical;
}

/* International Tel Input */
.intl-tel-input.allow-dropdown {
  width: 100%;
}

/* Custom CF7 Classes */
.contact-form-7-custom-class input:not([type="submit"]),
.contact-form-7-custom-class textarea {
  width: 100% !important;
}

.contact-form-7-custom-btn {
  height: 40px !important;
}

.contact-form-7-custom-btn p {
  width: 100% !important;
  margin: 0;
}

/* Acceptance/Terms Checkbox */
.wpcf7-acceptance span {
  margin: 0 !important;
}

/* Error/Success Messages */
.wpcf7 .wpcf7-response-output {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
}

.wpcf7 .wpcf7-mail-sent-ok {
  color: #0f5132;
  background-color: #d1e7dd;
  border: 1px solid #badbcc;
}

.wpcf7 .wpcf7-validation-errors {
  color: #842029;
  background-color: #f8d7da;
  border: 1px solid #f5c2c7;
}

.wpcf7 .wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 0.875em;
  margin-top: 0.25rem;
}

/* Responsive Form Grid */
@media screen and (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  #sidebar .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   BRAND COLOR IMPLEMENTATIONS
   ======================================== */

/* Primary Brand Color Applications */
.elementor-counter-title:hover {
  color: var(--brand-primary-hover) !important;
}

.login-register-nav a:hover {
  color: var(--brand-primary) !important;
}

.favorite-btn-login,
.favorite-btn-login i {
  color: var(--brand-primary) !important;
}

#pills-gallery-tab,
#pills-video-tab {
  border-bottom-color: var(--brand-primary) !important;
  background: var(--brand-primary) !important;
}

.custom-profile-wrap-here .btn-secondary {
  background: var(--brand-primary);
  border: var(--brand-primary) 1px solid;
}

.mobile-property-contact div .btn-secondary {
  background: var(--brand-primary) !important;
  border-color: var(--brand-primary);
}

/* Secondary Brand Color Applications */
.pt-cv-readmore {
  color: #fff !important;
  background-color: var(--brand-accent) !important;
  border: none !important;
}

.elementor-16547 .elementor-element.elementor-element-995a641 .elementor-button:hover {
  background: var(--brand-secondary);
  cursor: pointer;
}

/* ========================================
   ELEMENTOR CUSTOMIZATIONS
   ======================================== */

/* Block Kit CSS */
.envato-block__preview {
  overflow: visible;
}

/* Bracket Styling */
.envato-kit-138-bracket .elementor-widget-container > *:before {
  content: "[";
  color: var(--brand-yellow);
  display: inline-block;
  margin-inline-end: 4px; /* Bootstrap 5.3 logical property */
  line-height: 1em;
  position: relative;
  top: -1px;
}

.envato-kit-138-bracket .elementor-widget-container > *:after {
  content: "]";
  color: var(--brand-yellow);
  display: inline-block;
  margin-inline-start: 4px; /* Bootstrap 5.3 logical property */
  line-height: 1em;
  position: relative;
  top: -1px;
}

/* Main Button Styling */
#MainButton .elementor-button-wrapper a .elementor-button-content-wrapper {
  width: 218px;
  padding: 0px 20px;
}

.elementor-button-content-wrapper .elementor-button-text {
  flex-grow: 0 !important;
}

#MainButton2 .elementor-button-wrapper a .elementor-button-content-wrapper {
  width: 218px;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}

.elementor-button-content-wrapper {
  display: flex;
  justify-content: space-between;
}

/* Outline Effect */
@media (min-width: 992px) {
  .elementor-element-2222fce0 {
    outline: 3px solid var(--brand-primary);
    border-radius: 7.5px;
    outline-offset: 5px;
    box-shadow: 0px 0px 8px rgba(0,0,0,0.5);
  }
}

/* ========================================
   HOME PAGE SECTIONS
   ======================================== */

/* Hero Search */
#DevHomeHeroSearch form .houzez-ele-search-form-wrapper > .elementor-field-group:last-child input {
  padding: .3rem 0rem .3rem .75rem;
  text-align: end;
  border: none;
  min-height: auto !important;
  height: auto !important;
  box-shadow: none !important;
}

/* Category Section */
#DevHomeCategory .grid-view .item-listing-wrap {
  padding: 0px 8px 0px 8px !important;
  margin-bottom: 0px !important;
}

#DevHomeCategory .item-header .header-image img {
  margin: 0 !important;
  height: 128px !important;
  width: 100%;
  object-fit: cover;
}

#DevHomeCategory .grid-view .item-listing-wrap .item-body .item-title a {
  font-family: var(--font-primary);
  font-weight: 700 !important;
  color: var(--text-primary) !important;
}

#DevHomeCategory .grid-view .item-listing-wrap .item-body .item-title small {
  font-family: var(--font-primary);
  color: var(--text-secondary) !important;
}

/* Latest Models Section */
#DevHomeCategoryLatest .grid-view .item-listing-wrap {
  padding: 0px 8px 0px 8px !important;
}

#DevHomeCategoryLatest .grid-view .item-listing-wrap .item-header {
  margin-inline-end: auto !important; /* Bootstrap 5.3 logical property */
}

#DevHomeCategoryLatest .grid-view .item-listing-wrap .item-header img {
  width: 100% !important;
  min-height: 210px !important;
}

#DevHomeCategoryLatest .grid-view.modal-property-carousel .item-listing-wrap .item-header img {
  width: 100% !important;
  min-height: 239px !important;
}

#DevHomeCategoryLatest .grid-view .item-listing-wrap .item-body {
  margin: 0 !important;
  padding-inline-start: 6px; /* Bootstrap 5.3 logical property */
  padding-inline-end: 6px;
}

#DevHomeCategoryLatest .grid-view .item-listing-wrap .item-body h6 a {
  font-family: var(--font-primary);
  font-weight: 700 !important;
  color: var(--text-primary) !important;
}

#DevHomeCategoryLatest .grid-view .item-listing-wrap .item-body small,
#DevHomeCategoryLatest .grid-view .item-listing-wrap .item-body small a {
  font-family: var(--font-primary);
  color: var(--text-secondary) !important;
}

/* Latest Articles Section */
#DevHomeLatestArticles ul.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px !important;
  margin-bottom: 24px !important;
}

#DevHomeLatestArticles .nav li.nav-item a {
  margin: 0px !important;
  padding: 0px 0px 6px 0px !important;
  font-size: 14px;
  font-family: var(--font-primary);
  font-weight: 400 !important;
  text-transform: uppercase;
  color: var(--text-primary) !important;
  border-bottom-width: 1px !important;
}

#DevHomeLatestArticles .articles-tabs-content-mob > div:first-child {
  padding: 0;
}

#DevHomeLatestArticles .articles-tabs-content-mob > div:last-child {
  padding: 0px 30px 0px 16px !important;
}

#DevHomeLatestArticles .articles-tabs-content-mob h2.article-title {
  margin-bottom: 12px;
  line-height: 100% !important;
}

#DevHomeLatestArticles .articles-tabs-content-mob h2.article-title a {
  font-family: var(--font-primary);
  font-weight: 700 !important;
  line-height: 138% !important;
  color: var(--text-primary) !important;
}

#DevHomeLatestArticles .articles-tabs-content-mob .item-body small {
  margin: 0px !important;
  font-family: var(--font-primary);
  line-height: 160%;
  font-weight: 400 !important;
  color: var(--text-secondary);
}

/* Brands Section */
#DevHomeCategoryBrands .item-body h2 {
  line-height: 0 !important;
}

#DevHomeCategoryBrands .item-body h2 a {
  font-family: var(--font-primary) !important;
  font-weight: 700 !important;
  line-height: 160%;
  color: var(--text-primary) !important;
}

/* Manufacturer Section */
#DevHomeManufac .prefab-coloumn-name a {
  color: var(--text-primary) !important;
  font-family: var(--font-primary);
  font-size: 16px;
  font-style: normal;
  font-weight: 600 !important;
  line-height: 140%;
}

#DevHomeManufac .prefab-coloumn-name p {
  color: var(--text-secondary) !important;
  font-family: var(--font-primary);
  font-size: 14px;
  font-style: normal;
  font-weight: 400 !important;
  line-height: 140%;
}

/* Shop Prices Widget */
#HomeDevShopPrice .shop-prices-widget {
  display: flex !important;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap !important;
  justify-content: space-between;
}

#HomeDevShopPrice .shop-price-heading {
  width: auto !important;
}

#HomeDevShopPrice .shop-all-prices {
  gap: 20px;
  flex-wrap: wrap;
  width: auto !important;
  display: flex !important;
}

#HomeDevShopPrice .shop-prices-widget .shop-single-price {
  margin: 0px !important;
  width: 200px !important;
  padding: 0px !important;
}

#HomeDevShopPrice .shop-prices-widget .shop-price-heading .houzez-add-price {
  margin: 0px !important;
  color: var(--text-primary) !important;
  font-family: var(--font-avenir-regular);
  font-size: 26px;
  font-weight: 700 !important;
  line-height: 30px;
}

#HomeDevShopPrice .shop-all-prices a#houzez-price-btn {
  margin-top: 0px !important;
  font-size: 15px !important;
  font-family: var(--font-primary);
  font-weight: 400 !important;
  line-height: 31.79px;
  padding: 8px 30px;
}

/* ========================================
   CUSTOM COMPONENTS & UTILITIES
   ======================================== */

/* Custom Icons */
.icon-single-neutral:before {
  content: "\f275";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

/* Custom Styling Classes */
.houzez--category--carousel--style .item-listing-wrap.hz-item-gallery-js.card {
  background: var(--bg-light);
  padding: 16px;
  border-radius: 8px !important;
  margin: 8px;
}

.houzez--category--carousel--style .item-body .item-title a {
  font-size: 18px;
  text-transform: uppercase;
  color: var(--text-primary);
  font-weight: 600;
}

.blur--effect--bg--custom .elementor-widget-wrap.elementor-element-populated {
  backdrop-filter: blur(2px);
}

/* Placeholder Text Customization */
#chng-placeholder-text-searchbox .btn.dropdown-toggle {
  border: 0;
}

/* Hide Elements */
.heading--none .shop-price-heading,
#view-all-models,
.view-all-posts {
  display: none;
}

/* Brand Customizations */
.brands--custom--css .adjust-brands-width-single-item {
  width: auto !important;
}

/* FAQ Styling */
.frequently-asked-question-label .elementor-tab-title {
  border-radius: 8px;
}

/* Articles Custom Style */
.articles--custom--style .nav.nav-pills {
  margin-bottom: 40px !important;
}

.articles--custom--style .nav-pills .nav-link {
  border-bottom-width: 4px;
  border-bottom-style: solid;
  border-bottom-color: transparent;
  font-size: 18px;
  font-family: var(--font-secondary);
  text-transform: capitalize;
}

.articles--custom--style .nav-pills .nav-link.active {
  border-bottom-width: 4px !important;
  border-bottom-color: #22d3bb;
}

.articles--custom--style .nav-pills .nav-link:hover {
  border-bottom-color: var(--brand-dark);
}

.articles--custom--style .article-title > a {
  font-size: 20px !important;
  line-height: 24px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  text-shadow: none !important;
  font-family: var(--font-primary) !important;
  letter-spacing: -1px !important;
}

.articles--custom--style .articles-tabs-content-mob-list-view .item-body small {
  font-size: 16px;
  text-align: start !important; /* Bootstrap 5.3 logical property */
  font-family: var(--font-secondary);
}

.articles--custom--style .listing-featured-thumb > img {
  border-radius: 8px;
}

/* Manufacturer List Style */
.manufacture--list-custom--style .prefab-coloumn-name > a {
  color: var(--text-primary) !important;
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 800 !important;
  line-height: 35px;
  letter-spacing: -1px;
}

/* Navigation Font Styling */
.main-nav,
.dropdown-menu,
.login-register,
.btn.btn-create-listing,
.logged-in-nav,
.btn-phone-number {
  font-family: "Open Sans", var(--font-primary);
  font-size: 11px;
  font-weight: 400;
  text-align: start; /* Bootstrap 5.3 logical property */
  text-transform: none;
}

/* ========================================
   FOOTER STYLING
   ======================================== */

.footer-nav {
  margin: 0px auto;
}

.footer-wrap.footer-wrap-v1 .footer-over-top {
  background: var(--brand-dark);
  padding: 40px 0 40px;
  border-bottom: 1px solid #ddd;
}

.footer-wrap.footer-wrap-v1 .footer-over-top p.footer-over-top-content {
  color: #fff;
  font-family: var(--font-primary);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.footer-wrap.footer-wrap-v1 .footer-over-top a.footer-over-top-content {
  color: var(--brand-secondary);
  font-family: var(--font-primary);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  display: block;
}

.footer-wrap.footer-wrap-v1 .footer-top-wrap {
  padding: 60px 0px 0px;
  background: var(--brand-dark);
}

.footer-wrap.footer-wrap-v1 .footer-bottom-wrap {
  background: var(--brand-dark);
  padding: 60px 0px 72px 0px;
}

.footer-wrap.footer-wrap-v1 .footer-top-wrap div#custom_html-10 {
  margin: 48px 0px 0px 0px;
}

.footer-wrap.footer-wrap-v1 .footer-top-wrap .widget-header h3.widget-title {
  color: #FFF;
  font-family: var(--font-primary) !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 100%;
  margin-bottom: 16px;
}

.footer-wrap.footer-wrap-v1 .footer-top-wrap ul.footer-list li a {
  font-family: var(--font-primary) !important;
  font-size: 14px;
  font-weight: 300 !important;
  line-height: 100%;
}

.footer-wrap.footer-wrap-v1 .footer-bottom-wrap .footer-nav li a {
  color: #FFF;
  font-family: var(--font-primary);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* Hide WPML Language Switcher in Footer */
.wpml-ls-statics-footer.wpml-ls.wpml-ls-legacy-list-horizontal {
  display: none;
}

/* ========================================
   LINK STYLING & HOVER EFFECTS
   ======================================== */

/* Blog Post Links */
.post-content-wrap a {
  padding: 3px;
  border-radius: 1px;
  color: rgba(95, 85, 190, 0.9);
  background-color: rgba(95, 85, 190, 0.1);
  transition: all 0.15s ease;
  background-size: 100% 200%;
  background-position: 0 -100%;
  background-image: linear-gradient(to top, transparent 50%, rgba(95, 85, 190, 0.9) 50%);
}

.post-content-wrap a:hover {
  color: #fff;
  background-color: var(--brand-primary);
  background-position: 0 0;
}

/* Blog Post Title Links */
.blog-post-title a {
  padding: 3px;
  border-radius: 1px;
  color: rgba(95, 85, 190, 0.9) !important;
  background-color: rgba(95, 85, 190, 0.1) !important;
  transition: all 0.15s ease;
  background-size: 100% 200%;
  background-position: 0 -100%;
  background-image: linear-gradient(to top, transparent 50%, rgba(95, 85, 190, 0.9) 50%);
}

.blog-post-title a:hover {
  color: #fff !important;
  background-color: var(--brand-primary) !important;
  background-position: 0 0;
}

/* Article Links */
.article-wrap a:hover {
  color: #fff;
  background-color: var(--brand-primary);
  background-position: 0 0;
}

/* ========================================
   MEDIA & VIDEO STYLING
   ======================================== */

/* Video Container - Bootstrap 5.3 Compatible */
.video-container {
  position: relative;
  aspect-ratio: 16/9; /* Modern CSS instead of padding hack */
  overflow: hidden;
  max-width: 100%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Media Icons */
i.houzez-icon.icon-video-player-movie-1,
i.houzez-icon.icon-picture-sun,
i.houzez-icon.icon-surveillance-360-camera {
  color: white !important;
}

/* ========================================
   CUSTOM BUTTONS & COMPONENTS
   ======================================== */

/* Custom CTA Buttons */
.custom-prefab-cta-container .custom-cta-button,
.custom-prefab-cta-container .custom-cta-button:hover,
.custom-prefab-cta-container .custom-cta-button:focus,
.custom-prefab-cta-container .custom-cta-button:active {
  background-color: #ffffff !important;
  color: var(--brand-primary) !important;
  background-image: none !important;
  background-position: initial !important;
  background-size: initial !important;
}

.custom-prefab-cta-container .custom-cta-button:hover {
  background-color: #f0f0f0 !important;
}

/* Item Wrap Styling */
.item-wrap-v9 .item-body {
  border-bottom: 1px solid var(--border-color);
}

/* Change Padding for Widget */
.change-pading-for-widger-property-model .view-all-models {
  margin-bottom: 28px;
  text-align: end; /* Bootstrap 5.3 logical property */
}

/* Slick Carousel Adjustments */
.slick-track {
  margin-inline-start: 6px; /* Bootstrap 5.3 logical property */
}

/* Description Content */
.description-content::after {
  content: none !important;
}

/* ========================================
   RESPONSIVE DESIGN - Mobile First Approach
   ======================================== */

/* Large Desktop */
@media screen and (max-width: 1366px) {
  .footer-wrap.footer-wrap-v1 .footer-bottom-wrap {
    padding: 40px 0px 40px 0px;
  }
}

/* Desktop */
@media screen and (max-width: 1200px) {
  header .header-top .logo {
    width: auto !important;
  }
  
  .footer-wrap.footer-wrap-v1 .footer-bottom-wrap {
    padding: 30px 0px 30px 0px;
  }
}

/* Tablet */
@media screen and (max-width: 767px) {
  #HomeDevShopPrice .shop-prices-widget .shop-single-price {
    width: 100% !important;
  }
  
  .footer-wrap.footer-wrap-v1 .footer-over-top a.footer-over-top-content {
    margin-bottom: 30px;
  }
  
  #DevHomeCategory .grid-view .slick-list {
    margin-inline-start: -10px !important; /* Bootstrap 5.3 logical property */
  }
}

/* Mobile */
@media screen and (max-width: 380px) {
  .category-listings-designs {
    padding-inline-end: 0px !important; /* Bootstrap 5.3 logical property */
  }
}

@media (max-width: 474.99px) {
  .change-pading-for-widger-property-model .view-all-models {
    margin-inline-start: 8px; /* Bootstrap 5.3 logical property */
  }
}

/* Small Mobile */
@media (max-width: 575.99px) {
  .articles-tabs-content-mob {
    flex-direction: column;
    padding: 15px 0;
  }
  
  .articles-tabs-content-mob .col-6 {
    flex: 100%;
    max-width: 100%;
    padding: 8px 0 !important;
  }
  
  .articles-tabs-content-mob .col-6 h2.article-title {
    margin-top: 12px;
  }
  
  #DevHomeLatestArticles .articles-tabs-content-mob > div:last-child {
    padding: 8px 0 !important;
  }
  
  .slick-track {
    margin-inline-start: 0; /* Bootstrap 5.3 logical property */
  }
  
  #DevHomeCategoryLatest .grid-view .item-listing-wrap {
    padding: 0 !important;
  }
  
  .elementor-53349 .elementor-element.elementor-element-3d3d2ac > .elementor-element-populated {
    margin: 0 !important;
  }
  
  .elementor-63921 .elementor-element.elementor-element-78a79ab6 > .elementor-widget-container {
    padding: 0 !important;
  }
  
  .elementor-63921 .elementor-element.elementor-element-7aa86632 > .elementor-element-populated {
    margin: 0;
  }
  
  .elementor-63921 .elementor-element.elementor-element-3bccf09a {
    margin: 0 !important;
  }
  
  #DevHomeCategoryLatest {
    margin: 0 !important;
  }
}

/* ========================================
   UTILITY CLASSES - Bootstrap 5.3 Compatible
   ======================================== */

/* Brand Color Utilities */
.text-brand-primary {
  color: var(--brand-primary) !important;
}

.bg-brand-primary {
  background-color: var(--brand-primary) !important;
}

.border-brand-primary {
  border-color: var(--brand-primary) !important;
}

.text-brand-secondary {
  color: var(--brand-secondary) !important;
}

.bg-brand-secondary {
  background-color: var(--brand-secondary) !important;
}

/* Typography Utilities */
.font-primary {
  font-family: var(--font-primary) !important;
}

.font-secondary {
  font-family: var(--font-secondary) !important;
}

.font-avenir {
  font-family: var(--font-avenir-regular) !important;
}

.font-avenir-bold {
  font-family: var(--font-avenir-bold) !important;
}

/* ========================================
   AGENCY TEMPLATE SPECIFIC STYLES
   Complements the updated single-houzez_agency.php
   ======================================== */

/* ========================================
   AGENCY BANNER SECTION - 3.x Style Layout
   ======================================== */

.agency-banner-wrap {
  margin-bottom: 2rem;
}

/* Main manufacturer header section - Grid Layout */
.manufacturer-header-section.agency-banner-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  min-height: 500px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Main agency image container */
.agency-main-image {
  position: relative;
  grid-row: 1 / 3;
  grid-column: 1 / 2;
  overflow: hidden;
  border-radius: 8px;
}

.agency-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.agency-main-image:hover img {
  transform: scale(1.02);
}

/* Side images container */
.agency-side-images {
  grid-column: 2 / 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agency-side-images .side-image {
  flex: 1;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.agency-side-images .side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.agency-side-images .side-image:hover img {
  transform: scale(1.05);
}

/* ========================================
   LOGO OVERLAY - Positioned like 3.x
   ======================================== */

.agency-logo-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 300px;
  transition: all 0.3s ease;
}

.agency-logo-overlay:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.agency-logo-overlay img {
  max-width: 200px;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

.agency-logo-overlay h1 {
  font-family: var(--font-primary, 'Sen', sans-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary, #1A1A1A);
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.agency-logo-overlay .established-year {
  font-family: var(--font-primary, 'Sen', sans-serif);
  font-size: 0.9rem;
  color: var(--text-secondary, #474747);
  margin: 5px 0 0 0;
  font-style: italic;
}

/* Fallback for agency image when no logo */
.agency-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.agency-image-fallback .agent-image img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================
   EMAIL BUTTON OVERLAY - Positioned like 3.x
   ======================================== */

.agency-email-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agency-email-overlay .btn {
  background: var(--brand-primary, #5f56bf) !important;
  color: #ffffff !important;
  border: none;
  padding: 12px 30px;
  font-family: var(--font-primary, 'Sen', sans-serif);
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(95, 86, 191, 0.3);
  min-width: 140px;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.agency-email-overlay .btn:hover {
  background: var(--brand-primary-hover, #554dab) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(95, 86, 191, 0.4);
}

.agency-email-overlay .btn-outline-primary {
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--brand-primary, #5f56bf) !important;
  border: 2px solid var(--brand-primary, #5f56bf);
  backdrop-filter: blur(10px);
}

.agency-email-overlay .btn-outline-primary:hover {
  background: var(--brand-primary, #5f56bf) !important;
  color: #ffffff !important;
  border-color: var(--brand-primary-hover, #554dab);
}

.agency-email-overlay .btn i {
  margin-inline-end: 8px;
  font-size: 14px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 991.98px) {
  .manufacturer-header-section.agency-banner-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: 350px auto;
    min-height: auto;
  }
  
  .agency-main-image {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
  }
  
  .agency-side-images {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    flex-direction: row;
    height: 120px;
    gap: 10px;
  }
  
  .agency-logo-overlay {
    top: 15px;
    left: 15px;
    padding: 15px;
    max-width: 250px;
  }
  
  .agency-logo-overlay img {
    max-width: 150px;
  }
  
  .agency-logo-overlay h1 {
    font-size: 1.5rem;
  }
  
  .agency-email-overlay {
    bottom: 15px;
    left: 15px;
  }
  
  .agency-email-overlay .btn {
    padding: 10px 24px;
    font-size: 14px;
    min-width: 120px;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .manufacturer-header-section.agency-banner-wrap {
    grid-template-rows: 280px auto;
    gap: 8px;
  }
  
  .agency-side-images {
    height: 100px;
  }
  
  .agency-logo-overlay {
    top: 12px;
    left: 12px;
    padding: 12px;
    max-width: 220px;
  }
  
  .agency-logo-overlay img {
    max-width: 120px;
  }
  
  .agency-logo-overlay h1 {
    font-size: 1.3rem;
  }
  
  .agency-logo-overlay .established-year {
    font-size: 0.8rem;
  }
  
  .agency-email-overlay {
    bottom: 12px;
    left: 12px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .agency-email-overlay .btn {
    padding: 8px 16px;
    font-size: 13px;
    min-width: 100px;
    flex: 1;
  }
  
  /* Stack buttons vertically on very small screens */
  @media (max-width: 480px) {
    .agency-email-overlay {
      flex-direction: column;
      gap: 8px;
    }
  }
}

/* ========================================
   INTEGRATION WITH EXISTING HOUZEZ STYLES
   ======================================== */

/* Ensure proper spacing with breadcrumb */
.agency-banner-wrap + .row {
  margin-top: 0;
}

/* Fix any z-index conflicts */
.agency-logo-overlay,
.agency-email-overlay {
  z-index: 10;
}

.single-houzez_agency .agency-main-image {
  z-index: 1;
}

/* Ensure content below doesn't overlap */
.agent-bio-wrap {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
}

/* ========================================
   DARK OVERLAY VARIANT (for dark images)
   ======================================== */

.dark-image-overlay .agency-logo-overlay {
  background: rgba(0, 0, 0, 0.85);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-image-overlay .agency-logo-overlay h1 {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.dark-image-overlay .agency-logo-overlay .established-year {
  color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   LOADING STATE & PERFORMANCE
   ======================================== */

.agency-main-image img,
.agency-side-images img {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.agency-main-image img.loaded,
.agency-side-images img.loaded {
  opacity: 1;
}

/* Image lazy loading support */
.agency-main-image img[loading="lazy"],
.agency-side-images img[loading="lazy"] {
  background: var(--bg-light, #f1f1f1);
  min-height: 200px;
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

.agency-logo-overlay,
.agency-email-overlay {
  /* Ensure proper focus visibility */
}

.agency-logo-overlay:focus-within {
  outline: 2px solid var(--brand-primary, #5f56bf);
  outline-offset: 2px;
}

.agency-email-overlay .btn:focus {
  outline: 2px solid var(--brand-primary, #5f56bf);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .agency-logo-overlay {
    background: white;
    border: 2px solid black;
  }
  
  .agency-logo-overlay h1 {
    color: black;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .agency-main-image img,
  .agency-side-images img,
  .agency-logo-overlay,
  .agency-email-overlay .btn {
    transition: none;
  }
  
  .agency-main-image:hover img,
  .agency-side-images .side-image:hover img {
    transform: none;
  }
  
  .agency-logo-overlay:hover,
  .agency-email-overlay .btn:hover {
    transform: none;
  }
}

/* ========================================
   LEGACY COMPATIBILITY (Remove after migration)
   ======================================== */

/* Uncomment these during migration if needed */
/*
.ml-auto { margin-left: auto !important; }
.mr-auto { margin-right: auto !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
*/