/* =========================================================
   Capabilities Section
   - Dark themed capabilities area with tabs
   - Left: copy, Right: supporting image
   - JS controls .active on .tab and .tab-content
   ========================================================= */

/* ===== Section Wrapper ===== */

.about-capabilities-section {
    background-color: #103358;
    padding: 30px 20px;
}

/* ===== Heading ===== */

.capabilities-heading {
    margin-bottom: 30px;
    text-align: center;
}

.capabilities-heading .sub {
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    color: #ccc;
}

.capabilities-heading .main-title {
    margin-bottom: 10px;
    font-size: 44px;
    font-weight: 500;
    text-transform: capitalize;
    color: #ffffff;
    text-align: left; /* matches original */
}

/* ===== Tabs (Navigation) ===== */

.capability-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 70px;
    padding-left: 0;
    margin-bottom: 30px;
    list-style: none;
    border-bottom: 1px solid #8ea7c3;
}

.capability-tabs .tab {
    position: relative;
    padding-bottom: 8px;
    font-size: 24px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.capability-tabs .tab:hover {
    opacity: 0.8;
    color: #f68920;
}

.capability-tabs .tab.active {
    color: #f68920;
}

.capability-tabs .tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 3px;
    background-color: #f68920;
    border-radius: 2px;
}

/* ===== Tab Content ===== */

.tab-content-wrapper .tab-content {
    display: none;
    opacity: 0;
    padding-top: 20px;
    border-radius: 4px;
    transition: opacity 0.3s ease-in-out;
}

.tab-content-wrapper .tab-content.active {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    opacity: 1;
}

/* ===== Capability Box Layout ===== */

.capability-box {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    padding: 30px;
    border: 1px solid #3c5d7d;
    border-radius: 10px;
    background-color: #0c2c4c;
}

/* Left: text */

.cap-left {
    flex: 1 1 50%;
}

.cap-left h3 {
    margin-bottom: 15px;
    font-family: "Bai Jamjuree", sans-serif;
    font-size: 45px;
    font-weight: 200;
    line-height: 55px;
    text-transform: capitalize;
    color: #ffffff;
}

.cap-left .desc {
    font-size: 16px;
    line-height: 1.6;
    color: #b9cbe4;
}

/* Right: image */

.cap-right {
    flex: 1 1 45%;
    display: flex;
    justify-content: center;
}

.cap-right img {
    width: 100%;
    max-width: 100%;
    max-height: 320px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* ======= RESPONSIVE BREAKPOINTS ======= */


@media screen and (max-width: 1370px) {
    .cap-left h3 {
        font-size: 22px;
    }
    .cap-left .desc {
        font-size: 15px;
    }
    .capability-tabs .tab {
        font-size: 22px;
    }
}


@media screen and (max-width: 1024px) {
    .cap-left h3 {
        font-size: 20px;
    }
    .cap-left .desc {
        font-size: 14px;
    }
    .capability-tabs {
        gap: 40px;
    }
    .capability-tabs .tab {
        font-size: 20px;
    }
    .cap-right img {
        max-width: 100%;
    }
}


@media screen and (max-width: 768px) {
    .capabilities-heading .main-title {
        font-size: 28px;
    }
    .capability-tabs {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        margin: 0;
    }
    .capability-tabs .tab {
        font-size: 18px;
        text-align: center;
    }
    .tab-content-wrapper .tab-content.active {
        flex-direction: column;
    }
    .cap-left,
    .cap-right {
        flex: 1 1 100%;
        text-align: center;
    }
    .cap-left h3 {
        font-size: 18px;
    }
    .cap-left .desc {
        font-size: 14px;
    }
    .cap-right img {
        max-height: 220px;
    }
}


@media screen and (max-width: 480px) {
    .capabilities-heading .main-title {
        font-size: 20px !important;
    }
    .capability-tabs .tab {
        font-size: 16px !important;
    }
    .cap-left h3 {
        font-size: 24px !important;
        line-height: 1.3;
    }
    .cap-left .desc {
        font-size: 13px !important;
    }
    .cap-right img {
        max-height: 220px;
    }
}


@media screen and (max-width: 380px) {
    .capabilities-heading .main-title {
        font-size: 18px !important;
    }
    .capability-tabs {
        gap: 8px;
    }
    .capability-tabs .tab {
        font-size: 14px !important;
    }
    .cap-left .desc {
        font-size: 12px !important;
    }
    .cap-left h3 {
        font-size: 15px !important;
    }
}

