﻿
.pihm-news-page {
    background: #ffffff;
    color: #222;
    overflow: hidden;
}

.pihm-news-hero {
    position: relative;
    padding: 85px 20px 80px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient( 135deg, rgba(25, 47, 89, .97), rgba(25, 47, 89, .88) ), url('Assets/images/news-bg.jpg') center / cover no-repeat;
}

    .pihm-news-hero::before {
        content: "";
        position: absolute;
        width: 280px;
        height: 280px;
        top: -140px;
        left: -80px;
        border-radius: 50%;
        background: rgba(239, 127, 27, .12);
    }

    .pihm-news-hero::after {
        content: "";
        position: absolute;
        width: 350px;
        height: 350px;
        right: -150px;
        bottom: -180px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .05);
    }

.pihm-news-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.pihm-news-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #ef7f1b;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.pihm-news-hero h1 {
    margin: 0 0 15px;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    line-height: 1.15;
    font-weight: 700;
}

.pihm-news-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .86);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

.pihm-news-content {
    padding: 70px 20px 90px;
    background: #ffffff;
}

.pihm-news-container {
    max-width: 1380px;
    margin: 0 auto;
}

.pihm-news-heading {
    margin-bottom: 35px;
    text-align: center;
}

    .pihm-news-heading span {
        display: inline-block;
        margin-bottom: 8px;
        color: #ef7f1b;
        font-family: 'Poppins', sans-serif;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    .pihm-news-heading h2 {
        margin: 0;
        color: #192f59;
        font-family: 'Playfair Display', serif;
        font-size: 38px;
        line-height: 1.2;
    }

    .pihm-news-heading p {
        max-width: 680px;
        margin: 12px auto 0;
        color: #777;
        font-family: 'Poppins', sans-serif;
        font-size: 14px;
        line-height: 1.7;
    }

.pihm-news-years {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 45px;
}

.pihm-news-year-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    height: 42px;
    padding: 0 20px;
    border: 1px solid #e3e3e3;
    border-radius: 5px;
    background: #ffffff;
    color: #555;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all .3s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .04);
}

    .pihm-news-year-btn:hover {
        color: #ffffff !important;
        background: #192f59;
        border-color: #192f59;
        transform: translateY(-2px);
    }

    .pihm-news-year-btn.active {
        color: #ffffff !important;
        background: #ef7f1b;
        border-color: #ef7f1b;
        box-shadow: 0 7px 18px rgba(239, 127, 27, .22);
    }

.pihm-news-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px;
}

.pihm-news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #eeeeee;
    /*border-radius: 10px;*/
    background: #ffffff;
    cursor: default;
    box-shadow: 0 7px 25px rgba(0, 0, 0, .3);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

    .pihm-news-card:hover {
        border-color: rgba(239, 127, 27, .35);
        transform: translateY(-7px);
        box-shadow: 0 18px 40px rgba(0, 0, 0, .11);
    }

.pihm-news-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f4f4f4;
}

    .pihm-news-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .55s ease;
    }

.pihm-news-card:hover .pihm-news-image img {
    transform: scale(1.06);
}

.pihm-news-date-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    min-width: 58px;
    padding: 7px 9px;
    border-radius: 5px;
    background: #ef7f1b;
    color: #ffffff;
    text-align: center;
    pointer-events: none !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .18);
}

.pihm-news-date-day {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.pihm-news-date-month {
    display: block;
    margin-top: 3px;
    font-family: 'Poppins', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pihm-news-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 19px 22px;
}

.pihm-news-published {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    color: #ef7f1b;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
}

    .pihm-news-published i {
        font-size: 11px;
    }

.pihm-news-title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #192f59 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.55 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.pihm-news-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 17px;
    border-top: 1px solid #eeeeee;
    color: #888;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
}

    .pihm-news-meta i {
        color: #ef7f1b;
    }

.pihm-news-empty {
    padding: 60px 20px;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    background: #fafafa;
    text-align: center;
}

    .pihm-news-empty i {
        display: block;
        margin-bottom: 15px;
        color: #ef7f1b;
        font-size: 42px;
    }

    .pihm-news-empty h3 {
        margin: 0 0 8px;
        color: #192f59;
        font-family: 'Playfair Display', serif;
        font-size: 25px;
    }

    .pihm-news-empty p {
        margin: 0;
        color: #777;
        font-family: 'Poppins', sans-serif;
        font-size: 13px;
    }

.pihm-news-loadmore {
    margin-top: 45px;
    text-align: center;
}

    .pihm-news-loadmore .pihm-load-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        min-width: 160px;
        height: 48px;
        padding: 0 25px;
        border: 2px solid #192f59;
        border-radius: 4px;
        background: #192f59;
        color: #ffffff;
        font-family: 'Poppins', sans-serif;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none !important;
        transition: all .3s ease;
    }

        .pihm-news-loadmore .pihm-load-btn:hover {
            border-color: #ef7f1b;
            background: #ef7f1b;
            color: #ffffff !important;
            transform: translateY(-2px);
        }

.pihm-news-lightbox-trigger {
    cursor: zoom-in;
}

.pihm-news-image-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(25, 47, 89, 0);
    opacity: 0;
    pointer-events: none;
    transition: all .35s ease;
}

.pihm-news-card:hover .pihm-news-image-overlay {
    background: rgba(25, 47, 89, .28);
    opacity: 1;
}

.pihm-news-image-overlay span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(239, 127, 27, .95);
    color: #ffffff;
    font-size: 18px;
    transform: scale(.7);
    transition: transform .35s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .25);
}

.pihm-news-card:hover .pihm-news-image-overlay span {
    transform: scale(1);
}

.pihm-news-lightbox {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 30px !important;
    box-sizing: border-box !important;
    background: rgba(0, 0, 0, .94) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity .3s ease, visibility .3s ease !important;
}

    .pihm-news-lightbox.show {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

.pihm-news-lightbox-content {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 1200px !important;
    max-height: 90vh !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: scale(.94);
    transition: transform .3s ease;
}

.pihm-news-lightbox.show .pihm-news-lightbox-content {
    transform: scale(1);
}

.pihm-news-lightbox-image {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 90vw !important;
    max-height: 80vh !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 5px !important;
    background: #ffffff;
    object-fit: contain !important;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .65);
}

.pihm-news-lightbox-close {
    position: fixed !important;
    top: 20px !important;
    right: 25px !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    outline: none !important;
    background: rgba(255, 255, 255, .16) !important;
    color: #ffffff !important;
    font-size: 24px !important;
    cursor: pointer !important;
    transition: all .3s ease;
}

    .pihm-news-lightbox-close:hover {
        background: #ef7f1b !important;
        transform: rotate(90deg);
    }

.pihm-news-lightbox-title {
    max-width: 900px !important;
    margin-top: 15px !important;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    text-align: center !important;
}

body.pihm-lightbox-open {
    overflow: hidden !important;
}

/*@media (max-width: 1399px) {

    .pihm-news-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}*/

@media (max-width: 1199px) {

    .pihm-news-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .pihm-news-hero h1 {
        font-size: 46px;
    }
}

@media (max-width: 767px) {

    .pihm-news-hero {
        padding: 60px 18px 55px;
    }

        .pihm-news-hero h1 {
            font-size: 34px;
        }

        .pihm-news-hero p {
            font-size: 13px;
            line-height: 1.7;
        }

    .pihm-news-content {
        padding: 50px 15px 65px;
    }

    .pihm-news-heading {
        margin-bottom: 28px;
    }

        .pihm-news-heading h2 {
            font-size: 30px;
        }

        .pihm-news-heading p {
            font-size: 13px;
        }

    .pihm-news-years {
        gap: 7px;
        margin-bottom: 32px;
    }

    .pihm-news-year-btn {
        min-width: 75px;
        height: 38px;
        padding: 0 15px;
        font-size: 12px;
    }

    .pihm-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .pihm-news-card-body {
        padding: 15px 14px 17px;
    }

    .pihm-news-title {
        font-size: 13px !important;
    }

    .pihm-news-published {
        font-size: 9px;
    }

    .pihm-news-meta {
        padding-top: 12px;
        font-size: 9px;
    }

    .pihm-news-date-badge {
        left: 9px;
        bottom: 9px;
        min-width: 50px;
    }

    .pihm-news-date-day {
        font-size: 17px;
    }

    .pihm-news-date-month {
        font-size: 8px;
    }

    .pihm-news-lightbox {
        padding: 15px 10px !important;
    }

    .pihm-news-lightbox-image {
        max-width: 94vw !important;
        max-height: 75vh !important;
    }

    .pihm-news-lightbox-close {
        top: 12px !important;
        right: 12px !important;
        width: 44px !important;
        height: 44px !important;
        font-size: 21px !important;
    }

    .pihm-news-lightbox-title {
        max-width: 94vw !important;
        margin-top: 10px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {

    .pihm-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pihm-news-image {
        aspect-ratio: 16 / 10;
    }

    .pihm-news-card-body {
        padding: 18px 17px 20px;
    }

    .pihm-news-title {
        font-size: 14px !important;
    }

    .pihm-news-published {
        font-size: 10px;
    }

    .pihm-news-lightbox {
        padding: 10px 6px !important;
    }

    .pihm-news-lightbox-image {
        max-width: 96vw !important;
        max-height: 70vh !important;
    }

    .pihm-news-lightbox-close {
        top: 10px !important;
        right: 10px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 19px !important;
    }

    .pihm-news-lightbox-title {
        font-size: 11px !important;
    }
}
