
/* =========================
   News Details Styling
========================= */

.service-details .content {
    background-color: #f8f8f8;
}

.news-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.35;
    color: #032f3c;
}

.news-date {
    font-size: 14px;
    color: #777;
    margin-bottom: 22px;
}


/* =========================
   News Body + Main Image
========================= */

.news-main-content {
    display: flow-root;
}


.news-thumb {
    width: 48%;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #f2f2f2;
}



html[dir="rtl"] .news-thumb {
    float: right;
    margin-left: 30px;
    margin-right: 0;
}


html[dir="ltr"] .news-thumb {
    float: left;
    margin-right: 30px;
    margin-left: 0;
}


.news-thumb img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}


.news-body {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
}

.news-body p {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
}


/* =========================
   Media Sections
========================= */

.news-media-section {
    clear: both;
    margin-top: 55px;
}

.news-media-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.news-media-header::before {
    content: "";
    width: 4px;
    height: 25px;
    flex: 0 0 4px;
    border-radius: 10px;
    background: #036268;
}

.news-media-title {
    margin: 0;
    color: #032f3c;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
}


/* =========================
   Video
========================= */

.news-video {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.news-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}


/* =========================
   News Gallery
========================= */

.news-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.news-gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 10px;
    background: #f2f2f2;
}

.news-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}


/* =========================
   Gallery Hover
========================= */

.news-gallery-hover {
    position: absolute;
    inset: 0;

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

    background: rgba(3, 47, 60, 0.35);

    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-gallery-view {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border-radius: 50%;

    background: #fff;
    color: #032f3c;

    font-size: 15px;

    transform: translateY(7px);

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

.news-gallery-item:hover img {
    transform: scale(1.035);
}

.news-gallery-item:hover .news-gallery-hover {
    opacity: 1;
}

.news-gallery-item:hover .news-gallery-view {
    transform: translateY(0);
}

.news-gallery-view:hover {
    background: #036268;
    color: #fff;
}


/* =========================
   Tablet
========================= */

@media (max-width: 991px) {

    .news-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================
   Mobile
========================= */

@media (max-width: 768px) {

    .news-title {
        font-size: 24px;
    }



    .news-thumb {
        float: none !important;
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 25px;
    }

    .news-thumb img {
        width: 100%;
        height: auto;
    }


    .news-media-section {
        margin-top: 42px;
    }

    .news-media-title {
        font-size: 18px;
    }

    .news-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .news-gallery-item {
        aspect-ratio: 4 / 3;
    }

}


/* =========================
   Small Mobile
========================= */

@media (max-width: 480px) {

    .news-gallery {
        grid-template-columns: 1fr;
    }

    .news-gallery-item {
        aspect-ratio: 16 / 10;
    }

}

