/* =========================================================
   KEDCO NEWS & UPDATES
   ========================================================= */

.kedco-news {
    width: 100%;

    background: #ffffff;

    padding: 38px 0 45px;

    position: relative;
}


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

.kedco-news-container {
    width: min(1250px, calc(100% - 100px));

    margin: 0 auto;
}


/* =========================================================
   SECTION HEADER
   ========================================================= */

.kedco-news-header {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    margin-bottom: 18px;
}


/* =========================================================
   HEADER CONTENT
   ========================================================= */

.kedco-news-heading {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
}


.kedco-news-eyebrow {
    margin: 0 0 3px;

    color: #011174;

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

    font-size: 14px;

    font-weight: 700;

    line-height: 1.1;

    letter-spacing: 0.7px;

    text-transform: uppercase;
}


.kedco-news-title {
    margin: 0;

    color: #111111;

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

    font-size: 26px;

    font-weight: 700;

    line-height: 1.1;
}


/* =========================================================
   VIEW ALL NEWS
   ========================================================= */

.kedco-news-view-all {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    min-height: 26px;

    padding: 0 11px;

    background: #011174;

    color: #ffffff;

    border-radius: 3px;

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

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;

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


.kedco-news-view-all i {
    font-size: 9px;
}


.kedco-news-view-all:hover {
    background: #e8de03;

    color: #011174;

    transform: translateY(-1px);
}


/* =========================================================
   NEWS GRID
   ========================================================= */

.kedco-news-grid {
    display: grid;

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

    gap: 20px;

    align-items: stretch;
}


/* =========================================================
   NEWS CARD
   ========================================================= */

.kedco-news-card {
    position: relative;

    min-width: 0;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 10px;

    overflow: hidden;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06);

    display: flex;

    flex-direction: column;

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


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

    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   IMAGE AREA
   ========================================================= */

.kedco-news-image {
    width: 100%;

    height: 130px;

    position: relative;

    overflow: hidden;

    background: #eeeeee;
}


.kedco-news-image img {
    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center;

    transition:
        transform 0.35s ease;
}


.kedco-news-card:hover .kedco-news-image img {
    transform: scale(1.035);
}


/* =========================================================
   YELLOW IMAGE ACCENT
   ========================================================= */

.kedco-news-image::after {
    content: "";

    position: absolute;

    left: 0;

    bottom: 0;

    width: 42px;

    height: 4px;

    background: #e8de03;

    z-index: 2;
}


/* =========================================================
   CONTENT AREA
   OVERLAPS IMAGE SLIGHTLY
   ========================================================= */

.kedco-news-card-content {
    position: relative;

    z-index: 3;

    margin:
        -15px 8px 0;

    padding:
        10px 11px 20px;

    background: #ffffff;

    border-radius:
        5px 5px 0 0;

    display: flex;

    flex-direction: column;

    flex: 1;
}


/* =========================================================
   META
   ========================================================= */

.kedco-news-meta {
    display: flex;

    align-items: center;

    gap: 6px;

    margin-bottom: 6px;
}


.kedco-news-category {
    position: relative;

    display: inline-flex;

    align-items: center;

    min-height: 15px;

    padding:
        3px 7px;

    background: #011174;

    color: #ffffff;

    border-radius: 2px;

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

    font-size: 12px;

    font-weight: 700;

    line-height: 1;

    white-space: nowrap;
}


/* Yellow accent attached to category */

.kedco-news-category::before {
    content: "";
    
     top: 0;

     left: 0;

     width: 40px;

     height: 3px;
   
    position: absolute;

    background: #e8de03;

    border-radius:
        3px 0 0 3px;
}


.kedco-news-category {
    padding-left: 8px;
}


.kedco-news-date {
    color: #999999;

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

    font-size: 13px;

    line-height: 1;

    white-space: nowrap;
}


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

.kedco-news-card-title {
    margin: 0 0 6px;

    color: #111111;

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

    font-size: 14px;

    font-weight: 700;

    line-height: 1.25;
}


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

.kedco-news-excerpt {
    margin: 0 0 9px;

    color: #777777;

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

    font-size: 12px;

    line-height: 1.4;
}


/* =========================================================
   READ MORE
   ========================================================= */

.kedco-news-read-more {
    display: inline-flex;

    align-items: center;

    align-self: flex-start;

    gap: 5px;

    margin-top: auto;

    color: #011174;

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

    font-size: 13px;

    font-weight: 700;

    line-height: 1;

    text-decoration: none;

    transition:
        color 0.2s ease,
        gap 0.2s ease;
}


.kedco-news-read-more i {
    font-size: 8.5px;
}


.kedco-news-read-more:hover {
    color: #e8de03;

    gap: 7px;
}


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

@media (max-width: 991px) {

    .kedco-news {
        padding: 35px 0 42px;
    }


    .kedco-news-container {
        width: calc(100% - 60px);
    }


    /* HEADER */

    .kedco-news-title {
        font-size: 23px;
    }


    .kedco-news-eyebrow {
        font-size: 9px;
    }


    .kedco-news-view-all {
        min-height: 25px;

        padding: 0 10px;

        font-size: 9px;
    }


    /* GRID */

    .kedco-news-grid {
        gap: 15px;
    }


    /* IMAGE */

    .kedco-news-image {
        height: 105px;
    }


    /* CONTENT */

    .kedco-news-card-content {
        margin:
            -7px 7px 0;

        padding:
            9px 10px 11px;
    }


    .kedco-news-category {
        font-size: 8.5px;
    }


    .kedco-news-date {
        font-size: 8.5px;
    }


    .kedco-news-card-title {
        font-size: 13px;
    }


    .kedco-news-excerpt {
        font-size: 10px;
    }


    .kedco-news-read-more {
        font-size: 10px;
    }
}


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

@media (max-width: 767px) {

    .kedco-news {
        padding: 45px 0 50px;
    }


    .kedco-news-container {
        width: calc(100% - 32px);
    }


    /* HEADER */

    .kedco-news-header {
        flex-direction: column;

        align-items: flex-start;

        gap: 12px;

        margin-bottom: 20px;
    }


    .kedco-news-eyebrow {
        font-size: 10px;

        margin-bottom: 4px;
    }


    .kedco-news-title {
        font-size: 26px;
    }


    .kedco-news-view-all {
        min-height: 30px;

        padding: 0 12px;

        font-size: 11px;
    }


    /* GRID */

    .kedco-news-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    /* CARD */

    .kedco-news-card {
        border-radius: 8px;
    }


    /* IMAGE */

    .kedco-news-image {
        height: 185px;
    }


    /* CONTENT */

    .kedco-news-card-content {
        margin:
            -10px 10px 0;

        padding:
            13px 14px 16px;

        border-radius:
            7px 7px 0 0;
    }


    .kedco-news-meta {
        margin-bottom: 8px;
    }


    .kedco-news-category {
        min-height: 17px;

        padding:
            3px 7px 3px 9px;

        font-size: 9px;
    }


    .kedco-news-date {
        font-size: 10px;
    }


    .kedco-news-card-title {
        font-size: 16px;

        line-height: 1.3;

        margin-bottom: 8px;
    }


    .kedco-news-excerpt {
        font-size: 13px;

        line-height: 1.45;

        margin-bottom: 13px;
    }


    .kedco-news-read-more {
        font-size: 12px;
    }


    .kedco-news-read-more i {
        font-size: 10px;
    }
}


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

@media (max-width: 480px) {

    .kedco-news {
        padding: 40px 0 46px;
    }


    .kedco-news-container {
        width: calc(100% - 28px);
    }


    .kedco-news-title {
        font-size: 25px;
    }


    .kedco-news-image {
        height: 165px;
    }


    .kedco-news-card-content {
        margin:
            -9px 9px 0;

        padding:
            12px 13px 15px;
    }


    .kedco-news-card-title {
        font-size: 14px;
    }


    .kedco-news-excerpt {
        font-size: 10px;
    }
}

/* =========================================================
   KEDCO NEWS - DARK MODE
   ========================================================= */

[data-theme="dark"] .kedco-news {
    background: #050A24;
}


/* =========================================================
   SECTION HEADER
   ========================================================= */

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

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


/* =========================================================
   VIEW ALL BUTTON
   ========================================================= */

[data-theme="dark"] .kedco-news-view-all {
    background: #0072C6;
    color: #ffffff;
}

[data-theme="dark"] .kedco-news-view-all:hover {
    background: #E8DE03;
    color: #011174;
}


/* =========================================================
   NEWS CARD
   ========================================================= */

[data-theme="dark"] .kedco-news-card {
    background: #111936;

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

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


[data-theme="dark"] .kedco-news-card:hover {
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.45);

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


/* =========================================================
   IMAGE AREA
   ========================================================= */

[data-theme="dark"] .kedco-news-image {
    background: #0B122F;
}


/* =========================================================
   CONTENT AREA
   ========================================================= */

[data-theme="dark"] .kedco-news-card-content {
    background: #111936;
}


/* =========================================================
   CATEGORY
   ========================================================= */

[data-theme="dark"] .kedco-news-category {
    background: #0072C6;
    color: #ffffff;
}


/* =========================================================
   DATE
   ========================================================= */

[data-theme="dark"] .kedco-news-date {
    color: #9CA5BD;
}


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

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


/* =========================================================
   NEWS EXCERPT
   ========================================================= */

[data-theme="dark"] .kedco-news-excerpt {
    color: #C4CADB;
}


/* =========================================================
   READ MORE
   ========================================================= */

[data-theme="dark"] .kedco-news-read-more {
    color: #5FADEB;
}


[data-theme="dark"] .kedco-news-read-more:hover {
    color: #E8DE03;
}


/* =========================================================
   YELLOW ACCENTS
   Keep KEDCO yellow visible in dark mode
   ========================================================= */

[data-theme="dark"] .kedco-news-image::after {
    background: #E8DE03;
}


[data-theme="dark"] .kedco-news-category::before {
    background: #E8DE03;
}