.installer-profile-container {
    background-color: #f8f9fa;
    margin-bottom: 24px;
    padding: 24px 32px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    position: relative;
    cursor: pointer;
}

.installer-profile-container:hover {
    background-color: #f2f2f2;
}

.installer-profile-container .card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.installer-profile-container .btn-quote {
    position: relative;
    z-index: 2;
}

.container .row.no-margin-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    --bs-gutter-x: 0 !important;
    /* background-color: #f8f9fa; */
    border-radius: 12px;
}

.banner-search-input {
    width: auto;
    height: 50px;
    border-radius: 7px 0px 0px 7px;
}

.banner-search-button {
    border-radius: 7px;
    font-size: 18px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .banner-search-button {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .banner-search-button {
        font-size: 12px;
    }
}


.search-container {
    position: relative;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.keyword-tag {
    color: #828282;
    background-color: #E6E6E6;
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 16px;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
}

.keyword-tag .close {
    margin-left: 6px;
    font-size: 14px;
    cursor: pointer;
}

.filter-section-outer {
    border: 1px solid #E3E3E3;
}

.filter-section {
    border-bottom: 1px solid #757575;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.filter-header {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.custom-checkbox {
    margin-bottom: 10px;
}

.custom-checkbox .form-check-input {
    border-color: #ced4da;
}

.custom-checkbox .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.service-card {
    border: none;
    background-color: #fff;
    margin-bottom: 0;
    padding: 2.5rem 0;
}



.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.service-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e9e9e9;
}

.service-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 5px;
}

.star-rating {
    color: #ffc107;
    font-size: 14px;
}

.review-count {
    color: #6c757d;
    font-size: 14px;
    margin-left: 5px;
}

.badge-verified {
    background-color: #6D9852;
    color: white;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-right: 8px;
}

.badge-top-installer {
    background-color: #6D9852;
    color: white;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* Ensure badge container displays horizontally */
.badge-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.badge-container .badge-verified,
.badge-container .badge-top-installer {
    display: inline-flex !important;
    flex-direction: row !important;
}

/* Additional specificity to override any conflicts */
.installer-profile-container .badge-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

.installer-profile-container .badge-container .badge-verified,
.installer-profile-container .badge-container .badge-top-installer {
    display: inline-flex !important;
    flex-direction: row !important;
    float: none !important;
    clear: none !important;
}

.installer-directory-card-header {
    gap: 16px;
}

.installer-directory-card-profile {
    min-width: 0;
}

.installer-directory-card-profile > div:last-child {
    min-width: 0;
}

.installer-directory-card-action {
    flex-shrink: 0;
}

@media (min-width: 768px) and (max-width: 1399.98px) {
    .installer-profile-container {
        padding: 22px 24px;
    }

    .installer-directory-card-header {
        flex-wrap: wrap;
    }

    .installer-directory-card-profile {
        flex: 1 1 100%;
    }

    .installer-directory-card-action {
        flex-basis: 100%;
    }

    .installer-directory-card-action .btn-quote {
        width: auto;
        max-width: 260px;
        justify-content: center;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .installer-profile-container .service-title {
        font-size: 17px;
        line-height: 1.3;
    }

    .installer-profile-container .badge-container {
        flex-wrap: wrap !important;
        gap: 6px;
    }

    .installer-profile-container .badge-verified,
    .installer-profile-container .badge-top-installer {
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* Quote Modal Styles */
.quote-modal .modal-title {
    color: #012152 !important;
    font-weight: bold !important;
}

.quote-modal .btn-close {
    background-color: #6c757d;
    opacity: 0.7;
}

.quote-modal .btn-close:hover {
    opacity: 1;
}

.quote-modal .btn-primary {
    background-color: #012152;
    border-color: #012152;
    padding: 12px 24px;
    font-weight: 500;
}

.quote-modal .btn-primary:hover {
    background-color: #001a3a;
    border-color: #001a3a;
}

.quote-modal .btn-outline-primary {
    color: #012152;
    border-color: #012152;
    background-color: white;
    padding: 12px 24px;
    font-weight: 500;
}

.quote-modal .btn-outline-primary:hover {
    background-color: #012152;
    border-color: #012152;
    color: white;
}

.service-description {
    color: #555;
    font-size: 14px;
    margin-bottom: 10px;
}

.read-more {
    color: #6c757d;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.read-more:hover {
    color: #0d6efd;
}

/* .read-more::after {
    content: "\ea4e";
    font-family: remixicon;
    font-size: 1rem;
} */

.provider-name {
    color: #6c757d;
    font-size: 14px;
}

.service-date {
    color: #6c757d;
    font-size: 14px;
}

.btn-quote {
    background-color: #0a2463;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-quote:hover {
    background-color: #0a2463;
    color: white;
    opacity: 0.9;
}


.btn-quote:hover {
    border: 1px solid #0a2463;
}

.location-info {
    color: #6c757d;
    font-size: 14px;
}

.dropdown-toggle {
    background-color: white;
    border: 1px solid #ced4da;
    color: #495057;
    width: 100%;
    text-align: left;
    position: relative;
}

.dropdown-toggle::after {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.form-select {
    background-color: white;
    border: 1px solid #ced4da;
    color: #495057;
}

.quote-btn-container {
    display: flex;
    justify-content: flex-end;
}

.service-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.service-quote {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-description-paragraph {
    width: 80%;
}

.location-icon {
    font-size: 20px
}

.service-meta-section-sm {
    border: 1px solid #DBDBDB;
}

.form-control-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #888;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-left: 40px;
    font-size: 20px;
    font-weight: 300;
}

.get-quote-button {
    background-color: #377FFE;
    color: #fff;
    font-weight: 500;
}

.search-manually-button {
    background-color: #012152;
    color: #fff;
    font-weight: 500;
}

.banner-form-inner {
    box-shadow: 0px 0px 10px 0px #000000;
    width: 80%;
    margin: auto;
    top: 70%;
    left: 10%;
    background: #fff;
    border-radius: 5px;
    padding: 30px 20px;
}

@media (max-width: 767.98px) {
    .service-quote {
        margin-top: 15px;
    }
}

@media (max-width: 575.98px) {
    .service-card-row {
        background-color: #f3f2f2;
    }
}


.stars i {
    font-size: 1rem;
    margin-right: 2px;
  }

.gallery-container{
    margin-top: 10px;
}

/* Reduce spacing between CTA and Learn More section */
#quote-form {
    margin-bottom: 0 !important;
    padding-bottom: 2rem !important;
}

.blogSwiper {
    margin-top: 0 !important;
    padding-top: 2rem !important;
}

/* Reduce excessive spacing after main content */
main {
    margin-bottom: 0;
}

/* Areas We Serve Tabbed Interface Styles */
.areas-we-serve-section {
    padding: 40px 0;
    margin-top: 40px;
}

.areas-we-serve-container {
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e0e7ff;
}

.areas-we-serve-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 2rem;
    font-family: 'Public Sans'
}

.areas-we-serve-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid #e2e8f0;
    gap: 16px;
    padding: 20px;
}

.areas-we-serve-tab {
    padding: 20px 24px;
    background-color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #1e40af;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.areas-we-serve-tab:hover {
    background-color: #f1f5f9;
    color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.areas-we-serve-tab.active {
    background-color: #1e40af;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 64, 175, 0.3);
}

.areas-we-serve-tab::after {
    content: "▼";
    font-size: 12px;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.areas-we-serve-tab.active::after {
    transform: rotate(180deg);
}

/* Services Section Styling */
.services-section {
    padding: 4rem 0;
}

.services-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 3rem;
    font-family: 'Public Sans'
}

.services-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.services-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1e40af, #1d4ed8);
    border-radius: 16px 16px 0 0;
}

.services-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.services-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.services-card:hover img {
    transform: scale(1.05);
}

.services-card h3 {
    color: #1e40af;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Public Sans'
}

.services-card p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.services-card ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-indent: 0 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.services-card ul li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 20px !important;
    margin-left: 0 !important;
}

.services-card ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 0;
    color: #3b82f6;
    font-weight: bold;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
    line-height: 1.4;
}

.services-card ul li a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.services-card ul li a:hover {
    color: #3b82f6;
    text-decoration: underline;
    transform: translateX(4px);
}

.services-card ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

.services-card ul li a:hover::after {
    width: 100%;
}

.areas-we-serve-content {
    background-color: white;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
}

.areas-we-serve-content.expanded {
    max-height: 800px !important;
    padding: 32px !important;
}


.areas-we-serve-tab-content {
    display: none;
}

.areas-we-serve-tab-content.active {
    display: block;
}

.areas-we-serve-tab-content h3 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 0;
}

.areas-we-serve-tab-content h4 {
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.areas-we-serve-tab-content p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 16px;
}

.areas-we-serve-tab-content ul {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.areas-we-serve-tab-content li {
    margin-bottom: 0.5rem;
}

/* FAQ Section Enhanced Styling */
#faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

#faq-accordion .border {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    margin-bottom: 16px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: white;
}

#faq-accordion .border:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

#faq-accordion .btn-link {
    color: #1e40af !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    padding: 20px 24px !important;
    border: none !important;
    background: none !important;
    text-align: left !important;
    width: 100% !important;
    position: relative;
    transition: all 0.3s ease;
}

#faq-accordion .btn-link:hover {
    color: #1d4ed8 !important;
    background-color: #f8fafc !important;
}

#faq-accordion .btn-link:focus {
    box-shadow: none !important;
    outline: none !important;
}

#faq-accordion .btn-link::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: bold;
    color: #6b7280;
    transition: transform 0.3s ease;
}

#faq-accordion .btn-link[aria-expanded="true"]::after {
    content: '−';
    transform: translateY(-50%) rotate(0deg);
}

#faq-accordion .collapse {
    border-top: 1px solid #e2e8f0;
}

#faq-accordion .collapse .px-3 {
    padding: 20px 24px !important;
    color: #4b5563;
    line-height: 1.6;
    font-size: 15px;
    background-color: #f8fafc;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* FAQ Section Title */
.faq-title {
    color: #1e40af;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

/* Responsive adjustments for FAQ */
@media (max-width: 768px) {
    #faq-accordion .btn-link {
        font-size: 15px !important;
        padding: 16px 20px !important;
    }
    
    #faq-accordion .btn-link::after {
        right: 20px;
        font-size: 18px;
    }
    
    #faq-accordion .collapse .px-3 {
        padding: 16px 20px !important;
        font-size: 14px;
    }
    
    .faq-title {
        font-size: 1.875rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .areas-we-serve-section {
        padding: 20px 0;
        margin-top: 20px;
    }
    
    .areas-we-serve-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .areas-we-serve-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px;
    }
    
    .areas-we-serve-tab {
        padding: 16px 12px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        text-align: center;
        justify-content: center;
        font-size: 14px;
        min-height: 60px;
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 4px;
    }
    
    .areas-we-serve-tab::after {
        content: "▼";
        font-size: 10px;
        margin-left: 0;
        margin-top: 2px;
    }
    
    .areas-we-serve-tab.active {
        background-color: #1e40af;
        color: white;
        border-color: #1e40af;
        transform: none;
        box-shadow: 0 2px 4px rgba(30, 64, 175, 0.3);
    }
    
    .areas-we-serve-tab.active::after {
        transform: rotate(180deg);
    }
    
    .areas-we-serve-content {
        padding: 20px;
    }
    
    .areas-we-serve-tab-content h3 {
        font-size: 1.25rem;
    }
    
    .areas-we-serve-tab-content h4 {
        font-size: 1.125rem;
    }
    
    .areas-we-serve-tab-content p {
        font-size: 14px;
    }
}

/* Services Slider Component */
.servicesSwiper {
    background: #ffffff;
    padding: 2rem 0;
    margin: 2rem 0;
}

.servicesSwiper .swiper {
    width: 100%;
    padding: 1rem 0;
}

.servicesSwiper .swiper-wrapper {
    align-items: stretch;
}

.servicesSwiper .swiper-slide {
    height: auto;
    padding: 0 0.5rem;
}

.servicesSwiper .services-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    height: 100%;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.servicesSwiper .services-card:hover {
    border-color: #377FFE;
    box-shadow: 0 8px 24px rgba(55, 127, 254, 0.15);
    transform: translateY(-4px);
}

.servicesSwiper .services-card h3 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 1rem 0;
}

.servicesSwiper .services-card p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.servicesSwiper .services-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.servicesSwiper .services-card li {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.servicesSwiper .services-card li::before {
    content: '✓';
    color: #377FFE;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Pagination */
.servicesSwiper .swiper-pagination {
    position: relative;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.servicesSwiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.2s ease;
    opacity: 1;
}

.servicesSwiper .swiper-pagination-bullet-active {
    background: #377FFE;
    transform: scale(1.2);
}

/* Responsive Design */
@media (min-width: 768px) {
    .servicesSwiper {
        padding: 3rem 0;
    }
    
    .servicesSwiper .services-card {
        padding: 2.5rem;
        border-radius: 20px;
    }
    
    .servicesSwiper .services-card h3 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
    
    .servicesSwiper .services-card p {
        font-size: 1.125rem;
        margin-bottom: 1.75rem;
    }
    
    .servicesSwiper .services-card li {
        font-size: 1rem;
        margin-bottom: 0.875rem;
    }
}

@media (min-width: 1024px) {
    .servicesSwiper {
        padding: 4rem 0;
        overflow: visible;
    }
    
    .servicesSwiper .swiper {
        overflow: visible;
    }
    
    /* When slider is disabled on desktop, show all cards in a row */
    .servicesSwiper .swiper-wrapper {
        display: flex;
        flex-wrap: nowrap;
        gap: 1.5rem;
        transform: none !important;
        justify-content: center;
        align-items: stretch;
        width: 100%;
    }
    
    .servicesSwiper .swiper-slide {
        flex: 0 0 calc(33.333% - 1rem);
        width: calc(33.333% - 1rem);
        max-width: calc(33.333% - 1rem);
        padding: 0;
        margin: 0;
    }
    
    .servicesSwiper .services-card {
        padding: 2.5rem;
        border-radius: 24px;
        height: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .servicesSwiper .services-card h3 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
    
    .servicesSwiper .services-card p {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
    
    .servicesSwiper .services-card li {
        font-size: 1rem;
        margin-bottom: 0.875rem;
    }
    
    /* Hide pagination on desktop when slider is disabled */
    .servicesSwiper .swiper-pagination {
        display: none;
    }
}

@media (max-width: 767px) {
    .servicesSwiper {
        padding: 1.5rem 0;
        margin: 1rem 0;
    }
    
    .servicesSwiper .swiper-slide {
        padding: 0 0.25rem;
    }
    
    .servicesSwiper .services-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .servicesSwiper .services-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .servicesSwiper .services-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .servicesSwiper .services-card li {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
        padding-left: 1.25rem;
    }
}

@media (max-width: 480px) {
    .servicesSwiper .services-card {
        padding: 1.25rem;
    }
    
    .servicesSwiper .services-card h3 {
        font-size: 1.125rem;
    }
    
    .servicesSwiper .services-card p {
        font-size: 0.85rem;
    }
    
    .servicesSwiper .services-card li {
        font-size: 0.8rem;
        padding-left: 1rem;
    }
}

/* Read more/Read less functionality styles */
.review-content {
    position: relative;
    z-index: 5;
}

.review-text-short,
.review-text-full {
    display: inline;
    line-height: 1.5;
}

.read-more-link {
    color: #007bff !important;
    font-weight: 500;
    text-decoration: none !important;
    margin-left: 4px;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
}

.read-more-link:hover {
    color: #0056b3 !important;
    text-decoration: underline !important;
}

.read-more-link:focus,
.read-more-link:active,
.read-more-link:visited {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    background: none !important;
}/* Installer Directory Banner (Figma-aligned) */
.installer-dir-banner {
    position: relative;
    height: 414px; /* Figma: 414 */
    border-radius: 20px; /* Figma: 20 */
    overflow: hidden;
}

/* subtle dark overlay to keep white text readable on bright images */
.installer-dir-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.35));
    z-index: 0;
}

#installer-dir-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.installer-dir-banner .banner-content {
    position: static;
    width: auto;
    max-width: none;
}
.installer-dir-banner .banner-content h1 {
    color: #ffffff;
    margin: 0;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600; /* SemiBold */
    font-size: 45px;
    line-height: 66px;
    letter-spacing: 0;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    white-space: normal; /* allow wrapping on large screens too */
}

.installer-dir-banner .banner-content p {
    margin: 0;
    font-size: 16px !important;
    font-weight: 300 !important;
}

@media (max-width: 1200px) {
    .installer-dir-banner .banner-content {
        left: 48px;
        top: 72px;
        width: calc(100% - 96px);
        gap: 24px;
    }
}@media (max-width: 768px) {
    .installer-dir-banner {
        height: 320px;
    }

    .installer-dir-banner .banner-content {
        left: 24px;
        top: 48px;
        width: calc(100% - 48px);
        gap: 16px;
    }

    .installer-dir-banner .banner-content p {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .installer-dir-banner {
        height: 260px;
        border-radius: 16px;
    }
    .installer-dir-banner .banner-content {
        left: 16px;
        top: 32px;
        width: calc(100% - 32px);
    }
}

/* Right-side steps (three icons) */
.banner-steps {
    position: absolute;
    left: calc(50% - 484.16px/2 + 369.08px); /* Figma calc */
    top: calc(50% - 217px/2 + 0.5px); /* Figma top */
    width: 484.158px; /* Figma width */
    height: 58.158px; /* Figma height */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    pointer-events: none; /* non-interactive overlay */
}

.banner-steps .steps-line {
    position: absolute;
    width: 155px; /* Figma width */
    height: 0;
    border-top: 2px solid #FFFFFF; /* Figma border */
    top: 29px; /* 73.42 (line top) - 44.42 (container top) */
}
.banner-steps .steps-line.line-1 { left: 58px; /* 834 (line left) - 776 (container left) */ }
.banner-steps .steps-line.line-2 { left: 271.16px; /* approximated for second gap */ }

.banner-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.banner-step img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    z-index: 1;
}

/* No captions in the compact spec layout */

@media (max-width: 1200px) {
    .banner-steps {
        right: 48px;
        width: 520px;
        gap: 16px;
    }
}

@media (max-width: 992px) {
    .banner-steps {
        right: 32px;
        width: 460px;
    }
    .banner-step .caption {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .banner-steps {
        display: none !important; /* hide on mobile; small banner shows CTA card */
    }
}
/* Right-side decorative icon (per Figma) */
.installer-dir-right-icon {
    position: absolute;
    top: 61px;    /* Figma spec */
    left: 1372px; /* Figma spec */
    opacity: 1;
    z-index: 2;   /* above background, below content if needed */
    pointer-events: none;
    width: 212px;       /* constrain size so it won't cover banner */
    height: 139.92px;
    object-fit: contain;
}

@media (max-width: 1399px) {
    /* Keep it anchored to the right on narrower desktops */
    .installer-dir-right-icon {
        right: 16px;
        left: auto;
    }
}

@media (max-width: 768px) {
    .installer-dir-right-icon {
        display: none !important;
    }
}






/* ========================= */
/* Banner (new spec overrides)
/* ========================= */
.installer-dir-banner {
    position: relative;
    max-width: 1512px; /* width: 1512 */
    height: 414px;      /* height: 414 */
    border-radius: 20px;/* radius: 20 */
    margin: 0 auto;
    overflow: hidden;
}

.installer-dir-heading {
    position: absolute;
    width: min(980px, 90%);
    left: 50%;
    transform: translateX(-50%);
    top: 35px;
    margin: 0;
    color: #FFFFFF;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600; /* SemiBold */
    font-size: 45px;
    line-height: 66px;
    letter-spacing: 0;
    text-align: center;
    white-space: normal; /* allow wrapping on large screens */
}

/* Ensure nested heading tags in rich text inherit proper styling */
.installer-dir-heading h1,
.installer-dir-heading h2,
.installer-dir-heading h3,
.installer-dir-heading h4,
.installer-dir-heading h5,
.installer-dir-heading h6 {
    color: #FFFFFF;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    font-size: 45px;
    line-height: 66px;
    margin: 0;
    text-align: center;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* Icon group container */
.installer-dir-icon-group {
    position: absolute;
    width: 790.99px;
    height: 90.08px;
    left: 50%;
    transform: translateX(-50%) !important;
    top: 181.2px;
}

.installer-dir-icon-group img {
    position: absolute;
    width: 50.12px;
    height: 50.12px;
    object-fit: contain;
}

/* Exact icon positions per spec (relative to group) */
.installer-dir-icon-group .icon-1 { left: 93.08px; top: 0; }
.installer-dir-icon-group .icon-2 { left: 380.92px; top: 0; }
.installer-dir-icon-group .icon-3 { left: 659.28px; top: 0; }

/* Connector lines between icons */
.installer-dir-icon-group .connector-line {
    position: absolute;
    height: 0px;
    border-top: 1.72px solid #FFFFFF;
    opacity: 1;
}
.installer-dir-icon-group .connector-line.line-1 {
    width: 237.8585px;
    top: 24.99px; /* 206.19 - 181.2 */
    left: 143.06px; /* 504.06 - groupLeft (361.005) */
}
.installer-dir-icon-group .connector-line.line-2 {
    width: 237.8585px;
    top: 24.99px; /* 206.19 - 181.2 */
    left: 431.04px; /* 792.04 - groupLeft (361.005) */
}

/* Captions beneath each icon (desktop banner) */
.installer-dir-icon-group .caption {
    position: absolute;
    top: 58px; /* sits below 50px icon with a small gap */
    width: 280px;
    transform: translateX(-50%);
    text-align: center;
    color: #FFFFFF;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 13.79px;
    line-height: 20.68px;
    letter-spacing: 0;
}
.installer-dir-icon-group .caption.cap-1 { left: 118.14px; }  /* 93.08 + 25.06 (icon center) */
.installer-dir-icon-group .caption.cap-2 { left: 405.98px; }  /* 380.92 + 25.06 */
.installer-dir-icon-group .caption.cap-3 { left: 684.34px; }  /* 659.28 + 25.06 */

/* CTA button horizontal offset per spec */
.installer-dir-cta {
    position: absolute;
    width: 205px;
    height: 62px;
    left: 50%;
    transform: translateX(-50%);
    top: 307px;
    background: #377FFE;
    border-radius: 8px;
    border: none !important;
    outline: none !important;
    box-sizing: border-box;
    font-size: 1.125rem;
    font-weight: 500;
}

/* Remove hover effects for the banner CTA specifically */
.installer-dir-cta:hover,
.installer-dir-cta.blue-btn:hover {
    background: #377FFE !important;
    color: #ffffff !important;
    box-shadow: none !important;
    transform: translateX(-50%) !important;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

@media (max-width: 992px) {
    .installer-dir-heading {
        left: 24px;
        right: 24px;
        width: auto;
        font-size: 32px;
        line-height: 44px;
        white-space: normal;
        transform: none;
        text-align: left;
    }
    .installer-dir-heading h1,
    .installer-dir-heading h2,
    .installer-dir-heading h3,
    .installer-dir-heading h4,
    .installer-dir-heading h5,
    .installer-dir-heading h6 {
        font-size: 32px;
        line-height: 44px;
        text-align: left;
    }
    .installer-dir-cta { position: relative; left: 0; top: auto; }
}

@media (max-width: 768px) {
    .installer-dir-banner {
        height: 320px;
    }
    .installer-dir-icon-group { display: none; }
}

/* Mobile icon row on small banner */
@media (max-width: 768px) {
    .installer-dir-icon-group-sm {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        align-items: start;
        justify-content: center;
        padding: 0 16px;
        margin-top: 8px;
        position: relative;
    }
    /* Split connector into two segments so it doesn't cross the middle icon */
    .installer-dir-icon-group-sm .connector-left,
    .installer-dir-icon-group-sm .connector-right {
        position: absolute;
        top: 22px;   /* center of 44px icon */
        height: 0;
        border-top: 2px solid rgba(255,255,255,0.9);
        z-index: 0;
    }
    /* from first icon border to middle icon border */
    .installer-dir-icon-group-sm .connector-left {
        left: 88px; /* first icon border */
        width: calc(50% - 22px - 88px);
    }
    /* from middle icon border to last icon border */
    .installer-dir-icon-group-sm .connector-right {
        right: 88px; /* last icon border */
        width: calc(50% - 22px - 88px);
    }
    .installer-dir-icon-group-sm .step {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
        position: relative;
        z-index: 1;
    }
    .installer-dir-icon-group-sm .icon {
        width: 44px;
        height: 44px;
        object-fit: contain;
    }
    .installer-dir-icon-group-sm .caption {
        color: #FFFFFF;
        font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        font-weight: 400;
        font-size: 12.5px; /* near 13.79 but tighter for mobile */
        line-height: 18px;
        letter-spacing: 0;
    }
}
