/* =========================================
   PRESS FEED NEWS SECTION
========================================= */

.press-feed {
    padding: 70px 0;
    background: #f5f7fa;
}

.press-feed *,
.press-feed *::before,
.press-feed *::after {
    box-sizing: border-box;
}

.press-feed__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.press-feed__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #8b1d2c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.press-feed__heading h2 {
    margin: 0;
    color: #1f2d3d;
    font-size: 34px;
    font-weight: 800;
}

.press-feed__view-all,
.press-feed__more,
.press-feed__feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8b1d2c;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.press-feed__view-all:hover,
.press-feed__more:hover,
.press-feed__feature-link:hover {
    color: #5e0e1a;
}

/* Featured card */
.press-feed__feature {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: 460px;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(25, 45, 65, 0.14);
}

.press-feed__feature-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.press-feed__feature-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.press-feed__feature-date {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 9px 15px;
    background: #8b1d2c;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}

.press-feed__feature-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 25px;
}

.press-feed__category {
    margin-bottom: 10px;
    color: #8b1d2c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.press-feed__feature-title {
    display: block;
    margin-bottom: 12px;
    color: #1f2d3d;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.45;
    text-decoration: none;
}

.press-feed__feature-title:hover {
    color: #8b1d2c;
}

.press-feed__feature-content p {
    margin-bottom: 20px;
    color: #6c7785;
    font-size: 14px;
    line-height: 1.75;
}

.press-feed__feature-link {
    margin-top: auto;
}

/* Standard cards */
.press-feed__card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
    border: 1px solid #e1e6ec;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(25, 45, 65, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.press-feed__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(25, 45, 65, 0.14);
}

.press-feed__card-image {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.press-feed__card-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.press-feed__card-image span {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 8px 12px;
    background: #1f2d3d;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
}

.press-feed__card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.press-feed__card-content small {
    margin-bottom: 9px;
    color: #8b1d2c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.press-feed__card-content > a:not(.press-feed__more) {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 12px;
    color: #273545;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.48;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.press-feed__card-content > a:not(.press-feed__more):hover {
    color: #8b1d2c;
}

.press-feed__card-content p {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 20px;
    color: #748191;
    font-size: 13px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.press-feed__more {
    margin-top: auto;
}

@media (max-width: 767.98px) {
    .press-feed {
        padding: 45px 0;
    }

    .press-feed__heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .press-feed__heading h2 {
        font-size: 28px;
    }

    .press-feed__feature-image {
        height: 230px;
    }

    .press-feed__feature-title {
        font-size: 19px;
    }
}

@media (min-width: 1200px) {
    .press-feed__feature {
        min-height: 480px;
    }

    .press-feed__feature-image {
        height: 285px;
    }

    .press-feed__card-image {
        height: 185px;
    }
}
/* Featured news: 60% image and 40% text */
.press-feed__feature--horizontal {
    display: flex !important;
    flex-direction: row !important;
    min-height: 390px;
}

.press-feed__feature--horizontal .press-feed__feature-image {
    flex: 0 0 60%;
    width: 60%;
    height: auto;
}

.press-feed__feature--horizontal .press-feed__feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.press-feed__feature--horizontal .press-feed__feature-content {
    flex: 0 0 40%;
    width: 40%;
    padding: 30px;
}

@media (max-width: 991.98px) {
    .press-feed__feature--horizontal {
        flex-direction: column !important;
    }

    .press-feed__feature--horizontal .press-feed__feature-image,
    .press-feed__feature--horizontal .press-feed__feature-content {
        width: 100%;
        flex: 0 0 100%;
    }

    .press-feed__feature--horizontal .press-feed__feature-image {
        height: 280px;
    }
}

.cm-info-grid {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: 15px;
}

@media (max-width: 767.98px) {
    .cm-info-grid {
        grid-template-columns: 1fr;
    }
}

.clearall::after {
    display: block;
    clear: both;
    content: "";
}

/* =========================================
   FLAGSHIP RIBBON PROJECT CARDS
========================================= */

.flagship-ribbon {
    position: relative;
    overflow: hidden;
    padding: 50px 0;
    /*background-image: url("../images/kerala-development-banner.jpg");*/
	background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("../images/kerala-development-banner.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* .flagship-ribbon::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        135deg,
        rgba(239, 246, 255, 0.16) 0%,
        rgba(230, 241, 252, 0.18) 55%,
        rgba(220, 234, 248, 0.16) 100%
    );
    content: "";
} */

.flagship-ribbon > .container {
    position: relative;
    z-index: 1;
}

.flagship-ribbon__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.flagship-ribbon__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #5ef7f7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.flagship-ribbon__heading h4 {
    position: relative;
    margin: 0;
    padding-left: 15px;
    color: #ffffff;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
}

.flagship-ribbon__heading h4::before {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 5px;
    border-radius: 8px;
    background: #1e3a8a;
    content: "";
}

/* Project Card */
.flagship-ribbon__card {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 175px;
    overflow: hidden;
    border: 5px solid rgb(255, 255, 255);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: 0 8px 24px rgba(31, 45, 61, 0.12);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/*.flagship-ribbon__card::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 4px;
    background: linear-gradient(180deg, #1e3a8a, #19aaed);
    content: "";
}*/

.flagship-ribbon__card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 35px rgba(31, 45, 61, 0.18);
}

/* Image */
.flagship-ribbon__image {
    position: relative;
    flex: 0 0 135px;
    width: 135px;
    overflow: hidden;
    background: #dce7f2;
}

.flagship-ribbon__image::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13, 34, 63, 0.04), rgba(13, 34, 63, 0.3));
    content: "";
}

.flagship-ribbon__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.flagship-ribbon__card:hover .flagship-ribbon__image img {
    transform: scale(1.1);
}

/* Content */
.flagship-ribbon__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 20px 14px 18px 20px;
}

.flagship-ribbon__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #1e3a8a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.65px;
    text-transform: uppercase;
}

.flagship-ribbon__date::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #19aaed;
    content: "";
}

.flagship-ribbon__title {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 8px;
    color: #1f2d3d;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.flagship-ribbon__title:hover {
    color: #1e3a8a;
}

.flagship-ribbon__content p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #708093;
    font-size: 12px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Right Arrow Button */
.flagship-ribbon__button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 54px;
    width: 54px;
    border-left: 1px solid #e5ebf2;
    background: rgba(247, 251, 255, 0.9);
    color: #1e3a8a;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.flagship-ribbon__button span {
    display: none;
}

.flagship-ribbon__button:hover {
    background: #1e3a8a;
    color: #ffffff;
}

/* Bottom Button */
.flagship-ribbon__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 32px;
}

.flagship-ribbon__more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border: 1px solid #1e3a8a;
    border-radius: 10px;
    background: #1e3a8a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(30, 58, 138, 0.2);
    transition: all 0.3s ease;
}

.flagship-ribbon__more-btn:hover {
    border-color: #19aaed;
    background: #19aaed;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 12px 22px rgba(25, 170, 237, 0.28);
}

@media (max-width: 991.98px) {
    .flagship-ribbon {
        background-attachment: scroll;
    }
}

@media (max-width: 575.98px) {
    .flagship-ribbon {
        padding: 45px 0;
    }

    .flagship-ribbon__heading h4 {
        font-size: 25px;
    }

    .flagship-ribbon__card {
        min-height: 150px;
    }

    .flagship-ribbon__image {
        flex-basis: 105px;
        width: 105px;
    }

    .flagship-ribbon__content {
        padding: 15px 10px 14px 16px;
    }

    .flagship-ribbon__title {
        font-size: 14px;
    }

    .flagship-ribbon__button {
        flex-basis: 42px;
        width: 42px;
    }

    .flagship-ribbon__footer {
        justify-content: center;
        margin-top: 24px;
    }
}