.members-search-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.note-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #008ba3;
}

.note-section h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.note-section p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.note-section strong {
    color: #333;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: nowrap;
}

.action-buttons .btn {
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    justify-content: center;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-search {
    background: #008ba3;
    color: white;
}

.btn-reset {
    background: #757575;
    color: white;
}

.btn-download {
    background: #212529;
    color: white;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.filter-group select {
    width: 100%;
    height: 55px;
    padding: 0 15px;
    border: 1px solid #EBEBEB;
    border-radius: 5px;
    font-size: 14px;
    color: #666;
    background: #f9f9f9;
    cursor: pointer;
    outline: none;
}

.filter-group select:focus {
    border-color: #008ba3;
    background: #fff;
}

/* UPDATED: Removed overflow-x: auto to disable scroll */
.members-table {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 6px 6px 0 0;
}

/* UPDATED: Removed min-width to allow table to shrink */
.members-table table {
    width: 100%;
    border-collapse: collapse;
}

.members-table thead {
    background: #222;
    color: white;
}

.members-table thead th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    border-right: 1px solid #333;
}

.members-table tbody td {
    padding: 14px 20px;
    color: #444;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    /* ADDED: Forces text to wrap so it fits on screen */
    word-break: break-word;
    white-space: normal;
}

.members-table tbody tr:nth-child(even) {
    background: #f3f3f3;
}

.members-table tbody tr:hover {
    background: #eaeaea;
    transition: 0.2s;
}

.members-table tbody td:nth-child(2) {
    font-weight: 600;
    color: #008ba3;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination-wrapper button {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    background: white;
    color: #555;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination-wrapper button:hover:not(.disabled):not(.active) {
    background: #f0f0f0;
}

.pagination-wrapper button.active {
    background: #008ba3;
    color: white;
    border-color: #008ba3;
}

.pagination-wrapper .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-wrapper button.nav-btn {
    width: auto;
    padding: 0 15px;
}

@media (max-width: 991px) {
    .filter-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }
}

/* Modal Background Overlay */
.qr-modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

/* Modal Content Box */
.qr-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s;
}

/* Close X Button */
.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional: Mobile adjustments for table readability */
@media (max-width: 768px) {

    .members-table th,
    .members-table td {
        padding: 8px;
        /* Reduce padding to save space */
        font-size: 12px;
        /* Smaller font for mobile */
    }

    /* Ensure the button fits */
    .rts-btn.quote-btn {
        padding: 5px 8px !important;
        font-size: 11px !important;
        min-width: auto !important;
    }
}

.founder-image-crop {
    width: 100%;
    height: 550px;
    object-fit: cover;
    object-position: top;
    border-radius: 20px;
}


.fix-icon-bulge {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    overflow: hidden;
    flex-shrink: 0;
}

.fix-icon-bulge i {
    font-size: 20px;
    line-height: 1;
    margin: 0;
}


.single-contact-info .icon {
    background: #ffffff;
    color: #000000;
    transition: 0.3s;
}

.google-map iframe {
    width: 100% !important;
    height: 500px;
    border-radius: 10px;
    border: 0;
    display: block;
}

.members-search-wrapper {
    padding: 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.action-buttons {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.action-buttons .rts-btn {}

.filter-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-group {
    flex: 0 1 250px;
    min-width: 250px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 15px;
    background: #fff;
    transition: all 0.3s;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, .15);
}

.members-table {
    overflow-x: auto;
    margin-top: 20px;
}

.members-table table {
    width: 100%;
    border-collapse: collapse;
}

.members-table th {
    background: #2d3436;
    color: #fff;
    padding: 16px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    white-space: nowrap;
}

.members-table td {
    padding: 16px 14px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    color: #495057;
}

.members-table tbody tr {
    background: #fff;
    transition: all 0.2s;
}

.members-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.members-table tbody tr:hover {
    background: #e9ecef;
}

.qr-modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.qr-modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #000;
}

@media (max-width: 768px) {
    .members-search-wrapper {
        padding: 20px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .rts-btn {
        width: 100%;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-group {
        flex: 1 1 100%;
    }
}




.members-search-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.note-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #008ba3;
}

.note-section h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.note-section p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.note-section strong {
    color: #333;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: nowrap;
}

.action-buttons .btn {
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    justify-content: center;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-search {
    background: #008ba3;
    color: white;
}

.btn-reset {
    background: #757575;
    color: white;
}

.btn-download {
    background: #212529;
    color: white;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.filter-group select {
    width: 100%;
    height: 55px;
    padding: 0 15px;
    border: 1px solid #EBEBEB;
    border-radius: 5px;
    font-size: 14px;
    color: #666;
    background: #f9f9f9;
    cursor: pointer;
    outline: none;
}

.filter-group select:focus {
    border-color: #008ba3;
    background: #fff;
}

/* UPDATED: Removed overflow-x: auto to disable scroll */
.members-table {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 6px 6px 0 0;
}

/* UPDATED: Removed min-width to allow table to shrink */
.members-table table {
    width: 100%;
    border-collapse: collapse;
}

.members-table thead {
    background: #222;
    color: white;
}

.members-table thead th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    border-right: 1px solid #333;
}

.members-table tbody td {
    padding: 14px 20px;
    color: #444;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    /* ADDED: Forces text to wrap so it fits on screen */
    word-break: break-word;
    white-space: normal;
}

.members-table tbody tr:nth-child(even) {
    background: #f3f3f3;
}

.members-table tbody tr:hover {
    background: #eaeaea;
    transition: 0.2s;
}

.members-table tbody td:nth-child(2) {
    font-weight: 600;
    color: #008ba3;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination-wrapper button {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    background: white;
    color: #555;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination-wrapper button:hover:not(.disabled):not(.active) {
    background: #f0f0f0;
}

.pagination-wrapper button.active {
    background: #008ba3;
    color: white;
    border-color: #008ba3;
}

.pagination-wrapper .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-wrapper button.nav-btn {
    width: auto;
    padding: 0 15px;
}

@media (max-width: 991px) {
    .filter-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }
}

/* Modal Background Overlay */
.qr-modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

/* Modal Content Box */
.qr-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s;
}

/* Close X Button */
.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional: Mobile adjustments for table readability */
@media (max-width: 768px) {

    .members-table th,
    .members-table td {
        padding: 8px;
        /* Reduce padding to save space */
        font-size: 12px;
        /* Smaller font for mobile */
    }

    /* Ensure the button fits */
    .rts-btn.quote-btn {
        padding: 5px 8px !important;
        font-size: 11px !important;
        min-width: auto !important;
    }
}

.founder-image-crop {
    width: 100%;
    height: 550px;
    object-fit: cover;
    object-position: top;
    border-radius: 20px;
}


.fix-icon-bulge {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    overflow: hidden;
    flex-shrink: 0;
}

.fix-icon-bulge i {
    font-size: 20px;
    line-height: 1;
    margin: 0;
}


.single-contact-info .icon {
    background: #ffffff;
    color: #000000;
    transition: 0.3s;
}

.google-map iframe {
    width: 100% !important;
    height: 500px;
    border-radius: 10px;
    border: 0;
    display: block;
}

.members-search-wrapper {
    padding: 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.action-buttons {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.action-buttons .rts-btn {}

.filter-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-group {
    flex: 0 1 250px;
    min-width: 250px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 15px;
    background: #fff;
    transition: all 0.3s;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, .15);
}

.members-table {
    overflow-x: auto;
    margin-top: 20px;
}

.members-table table {
    width: 100%;
    border-collapse: collapse;
}

.members-table th {
    background: #2d3436;
    color: #fff;
    padding: 16px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    white-space: nowrap;
}

.members-table td {
    padding: 16px 14px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    color: #495057;
}

.members-table tbody tr {
    background: #fff;
    transition: all 0.2s;
}

.members-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.members-table tbody tr:hover {
    background: #e9ecef;
}

.qr-modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.qr-modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #000;
}

@media (max-width: 768px) {
    .members-search-wrapper {
        padding: 20px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .rts-btn {
        width: 100%;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-group {
        flex: 1 1 100%;
    }
}

/* Contact Us Page - Flexible Contact Info */
.single-contact-info {
    display: flex !important;
    align-items: flex-start !important;
    gap: 15px !important;
    margin-bottom: 25px !important;
}

.single-contact-info .info-wrapper {
    flex: 1 !important;
    min-width: 0 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.single-contact-info .info-wrapper span {
    display: block !important;
    font-size: 14px !important;
    margin-bottom: 5px !important;
}

.single-contact-info .info-wrapper a {
    display: block !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    word-break: break-all !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
}

.contact-info-area-wrapper-p {
    padding: 30px !important;
    background: #2d3436 !important;
    border-radius: 10px !important;
    height: 100% !important;
}

.contact-info-area-wrapper-p .single-contact-info .info-wrapper span {
    color: #bbb !important;
}

.contact-info-area-wrapper-p .single-contact-info .info-wrapper a {
    color: #fff !important;
}

.contact-info-area-wrapper-p .single-contact-info .info-wrapper a:hover {
    color: #0d6efd !important;
}

/* Mobile Version (Max width 767px) */
@media (max-width: 767px) {
    .project-style-one .inner-content {
        position: absolute;
        padding: 20px; /* Reduced padding for mobile to save space */
        border-radius: 15px;
        background: #fff;
        
        /* This creates the alignment from left to right */
        left: 15px;
        right: 15px;
        bottom: 20px;
        
        /* REMOVE min-width to prevent overflow */
        min-width: unset !important; 
        width: auto !important;
        
        /* Optional: Add a shadow to make it pop against the image */
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }

    /* Ensure text doesn't break the layout */
    .project-style-one .inner-content .title {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .project-style-one .inner-content span {
        font-size: 12px;
        display: block; /* Stack clock and location if they are long */
    }
}

@media (min-width: 768px) {
    .project-style-one .inner-content {
        position: absolute;
        padding: 32px;
        border-radius: 15px;
        background: #fff;
        left: 30px;
        right: 30px;
        bottom: 44px;
        min-width: 337px;
    }
}

.date-badge {
    position: absolute; 
    top: 20px; 
    right: 20px; 
    background: #fff; 
    padding: 5px 15px; 
    border-radius: 4px; 
    font-weight: bold; 
    color: #1F1F25; 
    text-align: center; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 3;
}


@media (max-width: 767px) {
    .date-badge {
      
        top: auto !important; 
        bottom: 10px; 
        right: 10px;
        padding: 4px 10px;
    }
}

.large-thumbnail {
    width: 100%;       /* Takes full width of the col-lg-6 */
    height: 450px;     /* Set your desired fixed height here */
    overflow: hidden;  /* Ensures no spillover */
    border-radius: 8px; /* Optional: adds rounded corners */
}

.large-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* This crops the image to fill the box */
    object-position: center; /* Keeps the center of the image visible */
}

/* Optional: Styles for the smaller overlapping image */
.small-thumbnail img {
    width: 200px;      /* Example size */
    height: 200px;     /* Example size */
    object-fit: cover;
    border: 5px solid #fff;
}

 /* 1. Reduce the main section vertical space */
.rts-breadcrumb-area {
    padding-top: 40px !important;    /* Adjust this to 20px or 30px for even less space */
    padding-bottom: 40px !important;
    min-height: auto !important;     /* Prevents the section from having a forced height */
}

/* 2. Tighten the space inside the text container */
.rts-breadcrumb-area .title-area-left {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* 3. Optional: Remove space caused by the 'bg-title' span if it exists */
.rts-breadcrumb-area .bg-title {
    margin: 0 !important;
    line-height: 1 !important;
    display: block !important; 
    position: relative !important; /* Prevents it from floating and pushing boundaries */
}

@media only screen and (max-width: 575px) {
  .rts-breadcrumb-area {
    height: 170px;
  }
}
