* {
    font-family: 'Ubuntu', sans-serif;
}

/** BEGIN MAIN WIDGET **/
#whatsapp-widget {
    font-family: "Ubuntu";
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    transition: 0.5s;
}

#whatsapp-widget-target {
    width: 60px;
    height: 60px;
    display: table;
    background: #259bbe;
    /* Updated to match primary theme */
    color: #fff;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

#whatsapp-widget-icon {
    position: absolute;
    display: table-cell;
    vertical-align: middle;
    max-width: 30px;
    max-height: 30px;
    top: 25%;
    left: 25%;
}

/** BEGIN POPUP WIDGET **/
#whatsapp-widget-chat {
    position: absolute;
    display: flex;
    visibility: hidden;
    opacity: 0;
    flex-direction: column;
    margin-bottom: 96px;
    width: 320px;
    height: 80px;
    right: 0px;
    z-index: 999999;
    bottom: 250px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 12px 24px 0px;
    transition: opacity 0.3s ease 0s, margin 0.3s ease 0s, visibility 0.3s ease 0s;
}

@media (min-width: 768px) {
    #whatsapp-widget-chat {
        right: 40px;
    }
}

#whatsapp-widget-chat-header {
    background: #157a8a;
    /* Updated to match info-box color */
    height: 220px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    color: #fff;
}

#whatsapp-widget-chat-header .close {
    display: flex;
    color: #cecece;
    cursor: pointer;
    top: 8px;
    position: absolute;
    font-size: 16px;
    font-weight: 600;
    right: 8px;
    width: 20px;
    height: 20px;
    justify-content: center;
    align-items: center;
}

#whatsapp-widget-chat-header .bot {
    padding: 24px 20px;
    display: flex;
    align-items: center;
}

#whatsapp-widget-chat-header .bot-img {
    width: 60px;
    height: 60px;
    display: block;
    position: relative;
    border-radius: 50%;
    background: #ffffff;
}

#whatsapp-widget-chat-header .bot-img img {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 100%;
    width: 100%;
    border-radius: 50%;
    object-fit: contain;
}

#whatsapp-widget-chat-header .name {
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    color: #fff;
}

#whatsapp-widget-chat-header .status {
    font-size: 13px;
    margin-top: 4px;
    line-height: 18px;
    color: #fff;
}

/** BEGIN POPUP CHAT WIDGET **/
#whatsapp-widget-chat-chat {
    position: absolute;
    max-height: 500px;
    height: 250px;
    width: 100%;
    top: 100px;
    z-index: 0;
    background-color: rgb(230, 221, 212);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

#whatsapp-widget-chat-chat:before {
    position: absolute;
    background-image: url('https://external-preview.redd.it/rEwFriCkfAtjOb5b-23b4tGGVcuvfaBqamYNJrgxnLM.png?auto=webp&s=f3bf0b5c90e4c5fda12ff2139781c854554fd198');
    background-size: contain;
    background-color: #E6DDD4;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.8;
    left: 0px;
    top: 0px;
    content: '';
    z-index: 0;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

#whatsapp-widget-chat-chat .message {
    display: none;
    margin-top: 15px;
    position: relative;
    padding: 7px 15px 15px;
    border-radius: 0px 8px 8px;
    margin-left: 15px;
    margin-right: 15px;
    background-color: #fff;
    max-width: max-content;
}

#whatsapp-widget-chat-chat .header {
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    color: rgba(0, 0, 0, 0.4);
}

#whatsapp-widget-chat-chat .msg {
    font-size: 14px;
    margin-top: 4px;
    line-height: 19px;
    color: rgb(17, 17, 17);
}

#whatsapp-widget-chat-chat .date {
    position: absolute;
    font-size: 11px;
    margin-top: 2px;
    line-height: 19px;
    color: rgba(0, 0, 0, 0.4);
    right: 15px;
    bottom: 0;
}

/** BEGIN POPUP FOOTER WIDGET **/
#whatsapp-widget-chat-footer {
    position: absolute;
    bottom: 0;
    height: 103px;
    width: 100%;
    background: #fff;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

#whatsapp-widget-chat-footer a {
    padding: 10px;
    display: flex;
    flex-direction: column;
    color: #fff !important;
    text-decoration: none;
    background: #259bbe;
    /* Updated to match theme */
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    margin: 9px auto;
    width: 250px;
    border-radius: 8px;
}

#whatsapp-widget-chat-input:focus {
    outline: none;
}

#whatsapp-widget-chat-input {
    width: 97%;
    border: none;
    padding: 10px 5px;
    height: 17px;
    border-radius: 6px;
    resize: none;
}

#whatsapp-widget-chat-input-container {
    padding: 5px 10px;
    background: #f0f2f5;
}

/** PROJECT PAGE STYLES **/
:root {
    --primary: #259bbe;
    --border: #e6eef7;
    --text-muted: #6b7280;
    --bg-light: #f8fafc;
}

/* =========================
    TOGGLE BUTTONS
   ========================= */
.toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    position: relative;
}

.toggle button {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: #e4f7f8;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    touch-action: manipulation;
}

.toggle button.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* =========================
    GRID VIEW
   ========================= */
.grid-view {
    display: none;
}

.grid-view.show {
    display: flex !important;
    flex-wrap: wrap;
}

.project-card {
    border-radius: 40px;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.main-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

/* =========================
    INFO BOX STYLES
   ========================= */
.project-card .info-box {
    background: #157a8a;
    color: white;
    padding: 18px 20px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    text-align: left;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25);
    transition: all 0.45s ease;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
}

.project-card .info-box h4 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

.project-card .info-box p {
    margin: 4px 0 0;
    font-size: 13px;
    opacity: 0.9;
    color: #fff;
}

/* DESKTOP HOVER */
@media (min-width: 992px) {
    .project-card:hover .info-box {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* =========================
    LIST VIEW & TABLE
   ========================= */
.list-view {
    display: none;
}

.list-view.show {
    display: block !important;
}

/* SMART WRAPPER: Only scrolls if table exceeds screen width */
.project-list-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    /* Allows table to shrink, but sets a floor at 380px 
       so it won't crush text on S8 */
    min-width: 380px;
}

thead th {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 35px 20px;
    border-bottom: 3px solid var(--border);
}

tbody tr {
    border-bottom: 3px solid var(--border);
}

tbody td {
    padding: 45px 20px;
    font-size: 16px;
    vertical-align: middle;
    text-align: center;
}

tbody td:first-child {
    text-align: left;
}

.project-data {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 12px;
}

.project-name {
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
    /* Restored: Allows shrinking on XR, but prevents messy line breaks */
    white-space: nowrap;
}

.project-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
}

.p-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* =========================
    MOBILE VERSION (< 768px)
   ========================= */
@media (max-width: 767px) {
    thead th {
        padding: 20px 10px;
    }

    tbody td {
        padding: 20px 10px;
    }

    /* Keep your original percentage widths for XR compatibility */
    tbody td:first-child {
        width: 45%;
        padding-left: 10px;
    }

    tbody td:nth-child(2),
    tbody td:nth-child(3) {
        width: 27.5%;
    }

    .project-img {
        width: 60px;
        height: 60px;
    }

    .project-name {
        font-size: 14px;
        /* Changed to nowrap: This forces the scroll on S8 
           instead of squishing the text into a vertical mess */
        white-space: nowrap;
        line-height: 1.2;
    }

    /* Info box always visible on mobile */
    .project-card .info-box {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        padding: 10px 15px;
        pointer-events: none;
    }

    .project-card .info-box h4 {
        font-size: 18px;
    }

    .project-card .info-box p {
        font-size: 18px !important;
    }
}

/* =========================
    DESKTOP TABLE ALIGNMENT
   ========================= */
@media (min-width: 992px) {

    thead th:first-child,
    tbody td:first-child {
        padding-left: 15%;
        text-align: left;
    }

    .p-img {
        opacity: 0;
        border-radius: 10px;
    }

    tr:hover .p-img {
        opacity: 1;
        transition: opacity 0.3s ease-in-out 0.2s;
    }
}

/* ==========================================
    CUSTOM HORIZONTAL SCROLLBAR STYLING 
   ========================================== */

.project-list-wrapper::-webkit-scrollbar {
    height: 8px;
}

.project-list-wrapper::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 10px;
}

.project-list-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    border: 2px solid var(--border);
}

.project-list-wrapper::-webkit-scrollbar-thumb:hover {
    background: #1a81a1;
}

.project-list-wrapper {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--border);
}

/* =========================
   CUSTOM SLIDER LOGIC
   ========================= */
.custom-slider-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    background-color: #e4f7f8;
}

.custom-slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 400%;
    /* 100% per slide (4 slides total) */
}

.custom-slide {
    width: 100vw;
    flex-shrink: 0;
}

.value-content {
    padding: 100px 15%;
    text-align: center;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.value-content p {
    color: #259bbe;
    font-weight: 500;
    width: 40%;
    margin: auto;
}

/* NAVIGATION ARROWS */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    color: #157a8a;
    font-size: 2rem;
    padding: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.slider-arrow:hover {
    background: rgba(21, 122, 138, 0.2);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* =========================
   MOBILE PROJECT DATA FIX
   ========================= */
@media (max-width: 767px) {
    .value-content {
        padding: 60px 20px;
        min-height: 250px;
    }

    /* Ensure image stays constant and name wraps */
    .project-data {
        display: flex !important;
        align-items: center;
        width: 100%;
    }

    .project-img {
        width: 60px !important;
        height: 60px !important;
        flex-shrink: 0 !important;
    }

    .project-name {
        flex-grow: 1;
        white-space: normal !important;
        word-wrap: break-word;
        padding-left: 10px;
    }

    .prev {
        left: -10px;
    }

    .next {
        right: -10px;
    }

    .value-content p {
        width: 100%;
    }
}

/* team css  */

:root {
    --primary-blue: #157a8a;
    --text-gray: #555;
}

.overlay-text {
    text-transform: capitalize;
}

.team-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns */
    gap: 30px 20px;
    /* Vertical and horizontal spacing */
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px;
    font-family: sans-serif;
    background-color: #fff;
    overflow-x: auto;
}

.team-card {
    display: flex;
    flex-direction: column;
}

.image-wrapper img {
    width: 100%;
    object-fit: cover;
    border-radius: 15px;
    /* Rounded corners for the photos */
    display: block;
    border: 0.01px dotted #555;
    border-radius: 50px;
}

.info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Splits name and role */
    align-items: start;
    margin-top: 10px;
    border-top: 1px dotted var(--primary-blue);
    padding-top: 8px;
}

.name {
    color: var(--primary-blue);
    font-size: 2rem !important;
    font-weight: bold;
    margin: 0;
}

.role {
    color: var(--text-gray);
    font-size: 1.2rem !important;
    margin: 0;
    text-align: right;
    /* Aligns role to the right of the name */
}

/* Responsive adjustment for tablets/phones */
@media (max-width: 768px) {
    .team-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .team-container {
        grid-template-columns: 1fr;
    }
}

/* Custom styling for the Bio Popup */

/* Target the dialog container */
.modal-dialog.modal-xl {
    max-width: 95%;
    /* Use percentage of screen width (e.g., 95% or 1500px) */
    width: 1500px;
    /* Desired fixed width */
    margin: 30px auto;
    /* Centers it and gives top/bottom breathing room */
}

/* Target the actual white box (content) */
.modal-content {
    min-height: 80vh;
    /* Makes the modal cover 80% of the screen height */
    display: flex;
    flex-direction: column;
}

/* Ensure the row inside the modal fills the height */
.modal-body,
.modal-body .row {
    height: 100%;
    min-height: 85vh;
}

/* Close button styling to match the screenshot icon */
.close-bio {
    position: absolute;
    top: 20px;
    right: 25px;
    background: #f0f8ff;
    border: 1px solid #0076a8;
    color: #0076a8;
    border-radius: 50%;
    width: 35px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 10;
    cursor: pointer;
    outline: none;
}

.bio-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    text-decoration: underline;
    /* Matches the underline style in your screenshot */
    text-underline-offset: 5px;
    text-decoration-color: #dee2e6;
    margin-bottom: 1.5rem;
}

/* Ensure the modal content is flush */
.modal-content {
    border-radius: 0;
    overflow: hidden;
}

/* Position the button container */
.close-bio-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    padding: 0;
    z-index: 1051;
    /* Higher than modal content */
    cursor: pointer;
    outline: none !important;
}

/* The circular blue button with glow */
.glow-circle {
    width: 35px;
    height: 35px;
    border: 2px solid #0076a8;
    /* Your primary blue */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0076a8;
    background-color: #fff;
    transition: all 0.3s ease;
    /* This creates the initial soft glow */
    box-shadow: 0 0 8px rgba(0, 118, 168, 0.3);
}

.glow-circle span {
    font-size: 22px;
    line-height: 1;
    font-weight: bold;
    margin-top: -2px;
    /* Visual centering */
}

/* The Glow Effect on Hover */
.close-bio-wrapper:hover .glow-circle {
    background-color: #0076a8;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 118, 168, 0.8);
    /* Intensified glow */
    transform: scale(1.1);
    /* Slight pop effect */
}