﻿.fr-row {
    display: flex;
    flex-wrap: wrap;

}

.news-one {
    position: relative;
    display: block;
    margin-bottom: 5px;
    border-bottom: 2px solid transparent;
}
    .news-one:hover {
        cursor: pointer;
        border-bottom: 2px solid #000091;
    }

        .news-one:hover a {
            color: #000091 !important;
        }
    .news-one-img-box {
        position: relative;
        display: block;
}
.news-one-img {
    width: 100%;
    aspect-ratio: 16 / 9; /* Or use 4 / 3, 1 / 1 depending on your design */
    overflow: hidden;
    position: relative;
    border-radius: 0px;
}
.news-one-img:before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    content: "";
    background-color: rgba(var(--govity-black-rgb), 0.3);
    opacity: 1;
    transition: 0.5s;
    transform: perspective(400px) rotateY(-90deg) scale(0.2);
    transform-origin: top;
    z-index: 1;
}
    .news-one-img img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Ensures the image fills the box nicely */
        transition-delay: 0.1s;
        transition-timing-function: ease-in-out;
        transition-duration: 0.7s;
        transition-property: all;
    }
.news-one-date {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #000091;
    padding: 9px 15px 12px;
    z-index: 2;
    height: 50px;
}
    .news-one-date :before {
        content: "";
        position: absolute;
        bottom: -6px;
        left: 0;
        right: 0;
        height: 6px;
        background-color: #00009130;
    }
    .news-one-date p {
        font-size: 12px;
        font-weight: 600;
        line-height: 17px;
        color: white;
        text-transform: uppercase;
        text-align: center;
    }



@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .news-one__content {
        padding: 30px 30px 13px;
    }
}

.news-one__title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 13px;
    border-bottom: 1px solid #dddddd50;
    margin-bottom: 0;
    padding-bottom: 10px;
    height: 4em;
}
.news-one-kh__title {
    font-size: 19px;
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .news-one__title {
        font-size: 18px;
        line-height: 28px;
    }
}
.news-one__btn {
    position: relative;
    display: block;
  
    text-decoration: none;
    justify-content: end;
    display: flex;
}

.news-one__title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2; /* Show only 2 lines */
    line-height: 1.65em;
    max-height: 5em;
    text-decoration: none;
    background-image: none;
    background-position: 0;
    background-repeat: no-repeat;
    background-size: 0;
    transition: background-size 0;
    color: #000091 !important;
}

.news-details {
    position: relative;
    display: block;
    padding: 70px 0 70px;
}
.news-details__left {
    position: relative;
    display: block;
}
.sidebar__search {
    position: relative;
    display: block;
    background-color: #0d0d91; /* green background */
}
.sidebar__single + .sidebar__single {
    margin-top: 0px;
}
.sidebar__post {
    position: relative;
    display: block;
    padding: 35px 20px 20px;
    background-color: #f3f3f3;
    overflow: hidden;
    z-index: 1;
}
    .sidebar__post .sidebar__title {
        margin-left: 20px;
    }
.sidebar__title {
    margin: 0;
    font-size: 18px;
    margin-bottom: 6px;
    font-weight: 600;
    color: #000091;
}
.sidebar__post-list {
    margin: 0;
}
.list-unstyled {
    padding-left: 0;
    list-style: none;
}
.sidebar__post-list li {
    display: flex;
    align-items: center;
    padding: 5px 20px 5px;
    transition: all 500ms ease;
}
.sidebar__post-image {
    margin-right: 20px;
}
    .sidebar__post-image > img {
        width: 70px;
    }
.sidebar__post-content {
    position: relative;
    top: -3px;
}
    .sidebar__post-content h3 {
        font-size: 18px;
        margin: 0;
        line-height: 26px;
    }
        .sidebar__post-content h3 a {
            color: black;
            transition: all 500ms ease;
            display: block;
            font-size: 13px;
            font-weight: 400;
            text-decoration-line:none;
        }

.sidebar__category {
    position: relative;
    display: block;
    background-color: #f3f3f3;
    padding: 46px 30px 33px;
    overflow: hidden;
    z-index: 1;

}
.sidebar__category-list {
    margin: 0;
}
    .sidebar__category-list li + li {
        margin-top: 4px;
    }
    .sidebar__category-list li.active a {
        background-color: rgb(255, 255, 255);
        box-shadow: 0px 10px 60px 0px rgba(0, 0, 0, 0.05);
        color: black;
    }
    .sidebar__category-list li a {
        color: gray;
        position: relative;
        transition: all 500ms ease;
        display: block;
        background: none;
        padding: 7px 20px 7px;
        letter-spacing: -0.02em;
    }
.sidebar__search-form {
    position: relative;
}

.search-bar {
    display: flex;

    overflow: hidden;
    max-width: 100%; /* or whatever width you want */
}

    .search-bar input[type="search"] {
        flex: 1;
        border: none;
        padding: 15px 20px;
        font-size: 14px;
        color: white;
        background: transparent;
        outline: none;
        /* placeholder style */
    }

        .search-bar input[type="search"]::placeholder {
            color: rgba(255, 255, 255);
        }

    .search-bar button {
        border: none;
        background:transparent;
        padding: 0 16px;
        display: flex;
        align-items: center;
        cursor: pointer;
    }
    .search-bar:hover button {
        background: #0e84d2 !important;
    }
        .search-bar button svg {
            stroke: white;
        }
    .search-bar:hover > button {
        background: #3a3aa190;
    }
.news-details__img img {
    width: 100%;
    height:auto;
    object-fit:contain;
}
.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Show up to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 4.8em;
    font-size: .9rem;
    opacity: .8;
    white-space: normal;
    line-height:1.7;
    word-break: break-word;
}


    .news-one-date-press-release :before {
        content: "";
        position: absolute;
        bottom: -6px;
        left: 0;
        right: 0;
        height: 6px;
        background-color: #00009130;
    }

    .news-one-date-press-release p {
        font-size: 14px;
        font-weight: 600;
        line-height: 20px;
        color: white;
        text-transform: uppercase;
        text-align: center;
    }
.news-one + .news-one {
    margin-top: 1.5rem;
}
.media-icon-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0,0,0,0.6);
    color: white;
    padding: 6px 10px;
    border-radius: 50%;
    font-size: 16px;
    z-index: 2;
}

/* Dark background for Fancybox HTML content */
.fancybox__container .f-html {
    background-color: #000 !important; /* pure black */
    color: #fff !important; /* white text */
}

/* Optional: soften it a bit */
.fancybox__container .f-html {
    background-color: rgba(0, 0, 0, 0.9) !important;
}
