﻿<style >
.media-section {
    position: relative;
    background: rgba(255, 107, 0, 0.05);
    padding: 100px 0;
    overflow: hidden;
}

.section-header {
    position: relative;
    z-index: 2;
    margin-bottom: 60px;
}

.heading-top {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 50px;
    background: rgba(255, 107, 0, 0.08);
    border: 1px solid rgba(255, 107, 0, 0.2);
    color: #e63329;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.main-heading {
    margin-top: 24px;
    margin-bottom: 24px;
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    color: #000;
    letter-spacing: -1px;
}

    .main-heading span {
        display: block;
        background: #e63329;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.heading-text {
    max-width: 720px;
    margin: auto;
    color: #333;
    font-size: 17px;
    line-height: 1.8;
}

.news-card {
    position: relative;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 14px;
    overflow: hidden;
    background: #f8fafc;
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #ffffff;
    transition: transform 0.5s ease;
}

/* Dark contrast overlay layer on hover */
.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 41, 59, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Dynamic Glowing Pill Button */
.view-btn {
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 32px;
    border: none;
    border-radius: 50px;
    background: #e63329 !important; /* Vivid orange background color matching reference snippet */
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3);
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

/* Hover Interface Microinteractions */
.news-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.12);
}

    .news-card:hover .card-overlay {
        opacity: 1;
    }

    .news-card:hover .view-btn {
        transform: translateY(0);
        background: #e63329 !important;
        box-shadow: 0 10px 25px rgba(255, 107, 0, 0.5);
    }

    .news-card:hover img {
        transform: scale(1.03);
    }

/* Modal configuration adjustments */
.modal-backdrop.show {
    opacity: 0.85;
    background-color: #0f172a;
}

#modalNewsImage {
    width: auto;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    background: #ffffff;
    padding: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.btn-close-white {
    filter: invert(1);
    opacity: 0.8;
}

@media (max-width: 991px) {
    .main-heading {
        font-size: 40px;
    }

    .card-inner {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .media-section {
        padding: 60px 0;
    }

    .main-heading {
        font-size: 32px;
    }

    .card-inner {
        height: 250px;
    }
}

</style >
