.custom-carousel-control {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    opacity: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    top: 50%;
    transform: translateY(-50%);
}

.custom-carousel-control:hover {
    background-color: white;
    opacity: 0.9;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.custom-icon {
    width: 20px;
    height: 20px;
    background-size: 100%;
}


.profile-card {
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-image {
    img {
        box-shadow: 0px 0px 10px 0px #000000;
    }
}

.star-rating i {
    color: #FEA137;
}

.btn-main {
    background-color: #377FFE;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    border: none;
    border: 1px solid #377FFE;
}

.btn-main:hover {
    border: 1px solid #377FFE;
}

.btn-secondary-action {
    background: transparent;
    border-radius: 10px;
    padding: 10px 19px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #012152;
}

.btn-secondary-action:hover {
    background-color: #f1f5f9;
}

.nav-tabs {
    border-bottom: unset;
}

.nav-tabs .nav-link {
    color: #9F9F9F;
    border: none;
    padding-bottom: 15px;
    font-weight: 700;
    font-size: 24px;
}

.nav-tabs .nav-link.active {
    color: #012152 !important;
    border: none;
    border-bottom: 3px solid #012152;
    font-weight: 700;
    font-size: 24px;
    border-color: #012152 !important;
}

.section-title {
    margin-top: 40px;
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 32px;
}

.profile-sidebar-section {
    border: 1px solid #dee2e6;
    height: fit-content;
}

/* Project cards styling */
.project-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: auto;
    /* margin-bottom: 30px; */
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* new */

.project-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 1;
}

.project-info {
    position: absolute;
    bottom: 15%;
    left: 10%;
    right: 10%; /* new */
    color: white;
    z-index: 2; /* new */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* new */
}
/* new */
.project-info h4 {
    margin-bottom: 5px;
    font-weight: 600;
}

.project-info p {
    margin-bottom: 0;
    opacity: 0.9;
}
/* new */
/* Gallery styling */
.gallery-container img {
    width: 100%;
    object-fit: cover;
    margin-bottom: 5px;
    /* border-radius: 6px; */
}

.galler-card {
    border: 0px;
}

.gallery-container .small-images img {
    height: 120px;
}

.gallery-container .large-image img {
    height: 250px;
}

.gallery-view-more {
    position: absolute;
    bottom: 23%;
    left: 38%;

    button {
        color: #fff;
        font-size: 15px;
    }
}

.small-font {
    font-size: 0.8rem;
}

/* Ratings styling */
.ratings-section {
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    margin-top: 30px;
}

.star-rating {
    color: #f8d64e;
}

.progress {
    height: 10px;
    padding: 0 !important;
    /* margin-bottom: 15px; */
}

.progress-bar {
    background-color: #FFBE28;
}

/* Credentials styling */
.credentials-section {
    margin-top: 30px;
}

.credential-badge {
    text-align: center;
}

/* Project type styling */
.project-type-section {
    margin-top: 30px;
}

.category-dropdown {
    border-bottom: 1px solid #dee2e6;
    padding: 10px 0;
}

.category-dropdown:last-child {
    border-bottom: none;
}

.about-paragraph {
    font-size: 18px;
    margin-top: 10px;
}

.border-bottom {
    border-bottom: 1px solid #dee2e6;
    border-radius: 0px;
}

.project-category-section {
    border: 0px;
}

.cred-badge-title {
    color: #212B36;
    font-size: 0.55rem;
    font-weight: 500;
}

.cred-badge-size {
    color: #64748B;
    font-size: 0.4rem;
}

.filter-section {
    padding-bottom: 0px;
}

.arrow-icon {
    color: #757575;
}

.filter-section {
    margin-top: 3px;
}

.rating-font {
    font-size: 14px;
    font-weight: 400;
}

#business-section {
    p {
        font-size: 16px !important;
    }
    .font-size-14{
        font-size: 14px !important;
    }
}



.border-right {
    border-right: 1px solid #D9D9D9;
}

.verified-button {
    background-color: #012152;
    border-radius: 0px;
    font-size: 13px;
}

.background-white {
    background-color: #fff;
}

.background-dark {
    background-color: #F5F5F5;
}

.review-button {
    border: 2px solid #012152;
    color: #012152;
    font-size: 16px;
    padding: 12px;
    font-weight: 600;
}

.review-button:hover {
    background-color: #012152;
    color: #fff;
}

@media (max-width: 767px) {

    .profile-image {
        position: absolute;
        top: 36%;

        img {
            width: 80%;
        }
    }

    .banner {
        height: 40vh;
    }

    .profile-card {
        flex-direction: column;
        align-items: start;
    }

    .profile-button {
        font-size: 12px;
    }

    .small-profile-card-container {
        margin-top: 90px;
    }
    
    /* Responsive padding for profile details */
    .profile-details {
        padding-top: 50px !important;
    }

    .nav-tabs .nav-link.active {
        font-size: 15px;
    }

    .nav-tabs .nav-link {
        font-size: 15px;
    }

    .section-title {
        margin-top: 16px;
        margin-bottom: 0;
        font-weight: 600;
    }
}

@media (max-width: 425px) {
    .banner {
        height: 20vh;
    }

    .nav-tabs .nav-link.active {
        font-size: 13px;
    }

    .nav-tabs .nav-link {
        font-size: 13px;
    }


    .profile-image {
        position: absolute;
        top: 20%;

        img {
            width: 55%;
        }
    }

    .small-profile-card-container {
        margin-top: 70px;
    }

    .profile-ratings-section {
        font-size: 12px;
    }
}

@media (max-width: 375px) {
    .btn-secondary-action {
        padding: 10px 16px;
        font-size: 12px;
    }
}

@media (max-width: 320px) {
    .nav-tabs .nav-link.active {
        font-size: 12px;
    }

    .nav-tabs .nav-link {
        font-size: 12px;
        
    }
}

@media (max-width: 300px) {
    .nav-tabs .nav-link {
        font-size: 10px;
    }

    .nav-tabs .nav-link.active {
        font-size: 10px;
    }
}


.testimonial-box-projects {
    background: white;
    border-radius: 15px;
    height: 100%;
    color: #012152;
    position: relative; /* new */
    overflow: hidden; /* new */
}
/* new */
.testimonial-box-projects::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 1;
}
/* new */
.project-info-projects {
    width: fit-content;
    position: absolute;
    bottom: 15%;
    left: 10%;
    right: 10%; /* new */
    color: white;
    z-index: 2; /* new */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* new */
}
/* new */
.project-info-projects h4 {
    margin-bottom: 5px;
    font-weight: 600;
}
/* new */
.project-info-projects p {
    margin-bottom: 0;
    opacity: 0.9;
}
/* new */   
.project-section-swiper {
    .swiper-wrapper {
        gap: 20px
    }
}

/* Newly added */
.lightbox {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: block;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.2s ease;
    user-select: none;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .lightbox-nav {
        font-size: 24px;
        padding: 8px 12px;
    }
    
    .lightbox-close {
        font-size: 30px;
        top: 15px;
        right: 20px;
    }
    
    .lightbox img {
        max-width: 95%;
        max-height: 85%;
    }
}

/* Mobile Business Information Section */
@media (max-width: 767.98px) {
    #business-section-sm .row {
        margin: 0;
    }
    
    #business-section-sm .col-6 {
        padding: 0 8px;
    }
    
    #business-section-sm .business-name,
    #business-section-sm .business-phone,
    #business-section-sm .business-email,
    #business-section-sm .business-webs,
    #business-section-sm .service-areas,
    #business-section-sm .business-address,
    #business-section-sm .socials {
        min-height: 60px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    #business-section-sm .fw-semibold {
        font-size: 14px;
        line-height: 1.2;
        margin-bottom: 4px !important;
    }
    
    #business-section-sm .text-muted {
        font-size: 13px;
        line-height: 1.3;
        word-break: break-word;
    }
    
    #business-section-sm .text-primary {
        color: #2c3e50 !important;
    }
    
    /* Ensure consistent spacing between columns */
    #business-section-sm .col-6:first-child {
        padding-right: 4px;
    }
    
    #business-section-sm .col-6:last-child {
        padding-left: 4px;
    }
}

/* Additional mobile optimizations */
@media (max-width: 575.98px) {
    /* Consistent section styling for all mobile sections */
    #about-section-sm,
    #projects-section-sm,
    #business-section-sm,
    #qualifications-section-sm,
    #credentials-section-sm,
    #ratings-section-sm,
    #gallery-section-sm {
        padding: 20px 16px;
    }
    
    #about-section-sm .container,
    #projects-section-sm .container,
    #business-section-sm .container,
    #qualifications-section-sm .container,
    #credentials-section-sm .container,
    #ratings-section-sm .container,
    #gallery-section-sm .container {
        padding: 0;
    }
    
    #about-section-sm .section-title,
    #projects-section-sm .section-title,
    #business-section-sm .section-title,
    #qualifications-section-sm .section-title,
    #credentials-section-sm .section-title,
    #ratings-section-sm .section-title,
    #gallery-section-sm .section-title {
        font-size: 18px;
        margin-bottom: 20px;
        font-weight: 600;
    }
    
    /* Specific styling for qualifications section */
    #qualifications-section-sm .qualification-item {
        margin-bottom: 15px;
    }
    
    #qualifications-section-sm .qualification-icon {
        margin-top: 2px;
    }
    
    #qualifications-section-sm .qualification-text p {
        font-size: 14px;
        line-height: 1.4;
    }
    
    /* Specific styling for credentials section */
    #credentials-section-sm .fw-semibold {
        font-size: 14px;
        line-height: 1.4;
    }
    
    /* Specific styling for ratings section */
    #ratings-section-sm .rating-font {
        font-size: 14px;
    }
    
    #ratings-section-sm .font-review-font {
        font-size: 14px;
    }
    
    /* Specific styling for gallery section */
    #gallery-section-sm .card-body {
        padding: 0;
    }
    
    /* Ensure consistent text styling across all sections */
    #about-section-sm .about-paragraph,
    #credentials-section-sm .text-muted,
    #ratings-section-sm .text-muted {
        font-size: 14px;
        line-height: 1.4;
    }
    
    /* Consistent button styling */
    #ratings-section-sm .review-button,
    #gallery-section-sm .btn {
        font-size: 14px;
        padding: 8px 16px;
    }
}

.project-section-swiper {
    margin-top: 10px;
}

/* Mobile Projects Section Fixes */
@media (max-width: 767.98px) {
    #projects-section-sm {
        overflow: hidden;
    }
    
    #projects-section-sm .container {
        max-width: 100%;
        padding: 0;
    }
    
    #projects-section-sm .swiper2 {
        width: 100%;
        overflow: hidden;
        padding: 0 15px;
        position: relative;
    }
    
    #projects-section-sm .swiper-wrapper {
        width: 100%;
        display: flex;
        align-items: stretch;
        gap: 15px;
        padding: 5px 0;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
    }
    
    #projects-section-sm .swiper-slide {
        width: auto;
        min-width: 280px;
        max-width: 280px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
    
    #projects-section-sm .swiper-slide {
        width: auto;
        min-width: 280px;
        max-width: 280px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
    
    #projects-section-sm .testimonial-box-projects {
        width: 100%;
        max-width: 280px;
    }
    
    #projects-section-sm .project-card {
        width: 100%;
        max-width: 280px;
        overflow: hidden;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        position: relative;
    }
    
    #projects-section-sm .project-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }
    
    #projects-section-sm .testimonial-box-projects::before {
        display: none; /* Remove gradient overlay on mobile */
    }
    
    #projects-section-sm .project-info-projects {
        position: static;
        padding: 15px;
        background: white;
        color: #012152;
        text-shadow: none;
        width: 100%;
        left: auto;
        right: auto;
        bottom: auto;
    }
    
    #projects-section-sm .project-info-projects h4 {
        font-size: 16px;
        margin-bottom: 5px;
        color: #012152;
    }
    
    #projects-section-sm .project-info-projects p {
        font-size: 12px;
        color: #6c757d;
        margin: 0;
    }
    
    /* Mobile Project Navigation Buttons */
    #projects-section-sm .mobile-project-nav {
        position: relative;
        margin-top: 15px;
        display: flex;
        justify-content: center;
        gap: 20px;
    }
    
    #projects-section-sm .mobile-nav-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 2px solid #377FFE;
        background: white;
        color: #377FFE;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(55, 127, 254, 0.2);
    }
    
    #projects-section-sm .mobile-nav-btn:hover {
        background: #377FFE;
        color: white;
        transform: scale(1.05);
    }
    
    #projects-section-sm .mobile-nav-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        background: #f8f9fa;
        color: #6c757d;
        border-color: #dee2e6;
    }
    
    #projects-section-sm .mobile-nav-btn i {
        font-size: 18px;
        font-weight: bold;
    }
    
    /* Improve mobile scrolling experience */
    #projects-section-sm .swiper-wrapper {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    #projects-section-sm .scroll-hint {
        font-size: 12px;
        color: #6c757d;
        display: flex;
        align-items: center;
    }
    
    #projects-section-sm .scroll-hint i {
        font-size: 14px;
    }
}

/* Responsive Company Logo */
.company-logo-container {
    z-index: 10;
}

.company-logo-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px;
    transition: all 0.3s ease;
    width: 160px;
    height: 160px;
    overflow: hidden;
}

.company-logo-responsive {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    display: block;
    transition: all 0.3s ease;
}

/* Ensure logo maintains aspect ratio and fits container */
@media (max-width: 576px) {
    .company-logo-responsive {
        max-width: 90vw;
        max-height: 90vw;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    .company-logo-wrapper {
        width: 150px;
        height: 150px;
        padding: 7px;
    }
    
    .company-logo-container {
        bottom: -75px !important;
    }
}

/* Mobile Logo Adjustments - Only affects mobile banner */
@media (max-width: 767.98px) {
    /* Target the mobile banner logo specifically */
    .d-md-none .company-logo-wrapper {
        width: 140px !important;
        height: 140px !important;
        padding: 6px;
    }
    
    /* Adjust banner height for mobile */
    .d-md-none .banner.small-banner {
        height: 200px !important;
    }
    
    /* Adjust logo positioning for mobile */
    .d-md-none .company-logo-container {
        bottom: -70px !important;
    }
}

/* Small mobile devices */
@media (max-width: 425px) {
    .d-md-none .company-logo-wrapper {
        width: 120px !important;
        height: 120px !important;
        padding: 5px;
    }
    
    .d-md-none .company-logo-container {
        bottom: -60px !important;
    }
    
    .small-profile-card-container {
        margin-top: 80px;
    }
    
    .profile-details {
        padding-top: 40px !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 375px) {
    .d-md-none .company-logo-wrapper {
        width: 100px !important;
        height: 100px !important;
        padding: 4px;
    }
    
    .d-md-none .company-logo-container {
        bottom: -50px !important;
    }
    
    .small-profile-card-container {
        margin-top: 70px;
    }
    
    .profile-details {
        padding-top: 35px !important;
    }
}

/* Very small mobile devices */
@media (max-width: 320px) {
    .d-md-none .company-logo-wrapper {
        width: 90px !important;
        height: 90px !important;
        padding: 3px;
    }
    
    .d-md-none .company-logo-container {
        bottom: -45px !important;
    }
    
    .small-profile-card-container {
        margin-top: 60px;
    }
    
    .profile-details {
        padding-top: 30px !important;
    }
}