/* =========================================================
   KEDCO PARTNERS SECTION
   ========================================================= */

.kedco-partners {
    width: 100%;
    background: #ffffff;

    padding: 0;

    position: relative;
    overflow: hidden;
}


/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.kedco-partners-container {
    width: 100%;
    /* max-width: 1450px; */

    min-height: 245px;

    margin: 0 auto;

    display: flex;
    align-items: stretch;

    position: relative;
}


/* =========================================================
   LEFT CONTENT
   ========================================================= */

.kedco-partners-content {
    width: 38%;

    min-height: 245px;

    padding: 45px 55px 40px 8%;

    background: #011174;

    display: flex;
    flex-direction: column;
    justify-content: center;

    position: relative;

    z-index: 2;
}


/* =========================================================
   EYEBROW
   ========================================================= */

.kedco-partners-eyebrow {
    margin: 0 0 7px;

    color: #e8de03;

    font-family: "Candara", Arial, sans-serif;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* =========================================================
   TITLE
   ========================================================= */

.kedco-partners-title {
    margin: 0 0 12px;

    color: #ffffff;

    font-family: "Candara", Arial, sans-serif;

    font-size: 34px;

    font-weight: 700;

    line-height: 1.05;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.kedco-partners-description {
    max-width: 400px;

    margin: 0 0 22px;

    color: rgba(255, 255, 255, 0.88);

    font-family: "Candara", Arial, sans-serif;

    font-size: 14px;

    line-height: 1.5;
}


/* =========================================================
   BUTTON
   ========================================================= */

.kedco-partners-button {
    width: fit-content;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 38px;

    padding: 0 17px;

    background: #e8de03;

    color: #011174;

    border-radius: 4px;

    font-family: "Candara", Arial, sans-serif;

    font-size: 12px;

    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


.kedco-partners-button i {
    font-size: 11px;
}


.kedco-partners-button:hover {
    background: #ffffff;

    color: #011174;

    transform: translateY(-2px);
}


/* =========================================================
   YELLOW DIVIDER
   ========================================================= */

.kedco-partners-divider {
    width: 5%;

    min-height: 245px;

    background: #e8de03;

    position: relative;

    flex-shrink: 0;

    z-index: 4;

    /*
     * Creates the same dynamic diagonal feeling
     * as the approved design.
     */
    clip-path: polygon(
        25% 0,
        100% 0,
        75% 100%,
        0 100%
    );
}


/* =========================================================
   RIGHT LOGO AREA
   ========================================================= */

.kedco-partners-logos {
    flex: 1;

    min-width: 0;

    min-height: 245px;

    padding: 32px 5% 32px 4%;

    background: #f7f8fa;

    display: flex;

    align-items: center;

    position: relative;

    z-index: 1;
}


/* =========================================================
   PARTNER GRID
   ========================================================= */

.kedco-partners-grid {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    grid-template-rows: repeat(2, 1fr);

    gap: 14px;
}


/* =========================================================
   PARTNER CARD
   ========================================================= */

.kedco-partner-card {
    min-width: 0;

    min-height: 78px;

    padding: 10px 12px;

    background: #ffffff;

    border: 1px solid #e8ebf2;

    border-radius: 7px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 6px;

    text-align: center;

    box-shadow:
        0 2px 8px rgba(1, 17, 116, 0.05);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


.kedco-partner-card:hover {
    transform: translateY(-3px);

    border-color: rgba(1, 17, 116, 0.15);

    box-shadow:
        0 7px 18px rgba(1, 17, 116, 0.10);
}


/* =========================================================
   PARTNER LOGO
   ========================================================= */

.kedco-partner-logo {
    width: 100%;

    height: 43px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.kedco-partner-logo img {
    display: block;

    width: auto;

    max-width: 125px;

    height: 38px;

    max-height: 38px;

    object-fit: contain;

    object-position: center;
}


/* =========================================================
   PARTNER NAME
   ========================================================= */

.kedco-partner-card span {
    display: block;

    max-width: 100%;

    color: #555555;

    font-family: "Candara", Arial, sans-serif;

    font-size: 11px;

    font-weight: 600;

    line-height: 1.1;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .kedco-partners-container {
        min-height: 220px;
    }


    /* -----------------------------------------
       LEFT
       ----------------------------------------- */

    .kedco-partners-content {
        width: 40%;

        min-height: 220px;

        padding: 35px 30px 35px 6%;
    }


    .kedco-partners-eyebrow {
        font-size: 11px;
    }


    .kedco-partners-title {
        font-size: 29px;
    }


    .kedco-partners-description {
        max-width: 300px;

        font-size: 12px;

        margin-bottom: 18px;
    }


    .kedco-partners-button {
        min-height: 35px;

        padding: 0 14px;

        font-size: 12px;
    }


    /* -----------------------------------------
       DIVIDER
       ----------------------------------------- */

    .kedco-partners-divider {
        width: 5%;

        min-height: 220px;
    }


    /* -----------------------------------------
       LOGOS
       ----------------------------------------- */

    .kedco-partners-logos {
        min-height: 220px;

        padding: 25px 4% 25px 3%;
    }


    .kedco-partners-grid {
        gap: 10px;
    }


    .kedco-partner-card {
        min-height: 70px;

        padding: 8px;
    }


    .kedco-partner-logo {
        height: 36px;
    }


    .kedco-partner-logo img {
        max-width: 100px;

        height: 32px;

        max-height: 32px;
    }


    .kedco-partner-card span {
        font-size: 10px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .kedco-partners {
        padding: 0;
    }


    .kedco-partners-container {
        width: 100%;

        max-width: none;

        min-height: auto;

        display: flex;

        flex-direction: column;
    }


    /* -----------------------------------------
       BLUE CONTENT
       ----------------------------------------- */

    .kedco-partners-content {
        width: 100%;

        min-height: auto;

        padding: 40px 25px;

        align-items: flex-start;
    }


    .kedco-partners-eyebrow {
        font-size: 12px;
    }


    .kedco-partners-title {
        font-size: 32px;

        line-height: 1.05;
    }


    .kedco-partners-description {
        max-width: 520px;

        font-size: 14px;

        line-height: 1.5;
    }


    .kedco-partners-button {
        min-height: 39px;

        padding: 0 16px;

        font-size: 13px;
    }


    /* -----------------------------------------
       YELLOW DIVIDER
       ----------------------------------------- */

    .kedco-partners-divider {
        width: 100%;

        height: 10px;

        min-height: 10px;

        clip-path: none;
    }


    /* -----------------------------------------
       LOGO AREA
       ----------------------------------------- */

    .kedco-partners-logos {
        width: 100%;

        min-height: auto;

        padding: 25px 20px 30px;

        background: #f7f8fa;
    }


    /* -----------------------------------------
       PARTNER GRID
       ----------------------------------------- */

    .kedco-partners-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        grid-template-rows: auto;

        gap: 12px;
    }


    .kedco-partner-card {
        min-height: 85px;

        padding: 12px 8px;
    }


    .kedco-partner-logo {
        height: 43px;
    }


    .kedco-partner-logo img {
        max-width: 120px;

        height: 37px;

        max-height: 37px;
    }


    .kedco-partner-card span {
        font-size: 9px;

        white-space: normal;

        line-height: 1.15;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .kedco-partners-content {
        padding: 35px 18px;
    }


    .kedco-partners-title {
        font-size: 29px;
    }


    .kedco-partners-description {
        font-size: 13px;

        margin-bottom: 20px;
    }


    .kedco-partners-logos {
        padding: 20px 15px 25px;
    }


    .kedco-partners-grid {
        gap: 9px;
    }


    .kedco-partner-card {
        min-height: 78px;

        padding: 9px 6px;
    }


    .kedco-partner-logo {
        height: 38px;
    }


    .kedco-partner-logo img {
        max-width: 105px;

        height: 32px;

        max-height: 32px;
    }


    .kedco-partner-card span {
        font-size: 10px;
    }
}

/* =========================================================
   KEDCO PARTNERS - DARK MODE
========================================================= */

[data-theme="dark"] .kedco-partners {
    background: var(--kedco-background);
}


/* =========================================================
   LEFT CONTENT
   Keep KEDCO brand blue, but make it slightly deeper
========================================================= */

[data-theme="dark"] .kedco-partners-content {
    background: #10152b;
}


/* =========================================================
   EYEBROW
========================================================= */

[data-theme="dark"] .kedco-partners-eyebrow {
    color: #E8DE03;
}


/* =========================================================
   TITLE
========================================================= */

[data-theme="dark"] .kedco-partners-title {
    color: #ffffff;
}


/* =========================================================
   DESCRIPTION
========================================================= */

[data-theme="dark"] .kedco-partners-description {
    color: rgba(255, 255, 255, 0.78);
}


/* =========================================================
   BUTTON
========================================================= */

[data-theme="dark"] .kedco-partners-button {
    background: #E8DE03;
    color: #011174;
}

[data-theme="dark"] .kedco-partners-button:hover {
    background: #ffffff;
    color: #011174;
}


/* =========================================================
   YELLOW DIVIDER
========================================================= */

[data-theme="dark"] .kedco-partners-divider {
    background: #E8DE03;
}


/* =========================================================
   RIGHT LOGO AREA
========================================================= */

[data-theme="dark"] .kedco-partners-logos {
    background: #10152b;
}


/* =========================================================
   PARTNER CARDS
========================================================= */

[data-theme="dark"] .kedco-partner-card {
    background: #171d38;

    border-color: rgba(255, 255, 255, 0.08);

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.25);
}


/* =========================================================
   PARTNER CARD HOVER
========================================================= */

[data-theme="dark"] .kedco-partner-card:hover {
    background: #1c2445;

    border-color: rgba(232, 222, 3, 0.35);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.35);

    transform: translateY(-3px);
}


/* =========================================================
   PARTNER NAME
========================================================= */

[data-theme="dark"] .kedco-partner-card span {
    color: #d7dbea;
}


/* =========================================================
   OPTIONAL: VERY SUBTLE LOGO AREA DEPTH
========================================================= */

[data-theme="dark"] .kedco-partners-logos::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(1, 17, 116, 0.18),
            transparent 45%
        );

    pointer-events: none;
}


/* Keep grid above decorative layer */

[data-theme="dark"] .kedco-partners-grid {
    position: relative;
    z-index: 2;
}