﻿
.ddsTopBar2 a {
    color: white !important;
}

.bg-white {
    background: #144e8c;
}

.heading .heading--title {
    color: #ffffff;
}

.footer {
    background-color: #144e8c;
    border-top: 1px solid white;
    margin-top: 10px;
}

.testimonial--body {
    height: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}


/* Banner container */
.slide--item {
    position: relative;
    overflow: hidden;
}

.slide--item .bg-section img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Slide headline styles */
.slide--headline {
    position: absolute;
    bottom: 0px;
    left: 20px !important;
    background-color: rgb(8 0 0 / 43%);
    line-height: 2 !important;
    color: #fff;
    font-size: 1.2rem !important;
    padding: 8px 15px;
    border-radius: 10px;
    z-index: 5;
    max-width: 80%;
    text-align: left;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
}

    /* Optional hover effect */
    .slide--headline:hover {
        background-color: rgba(0, 0, 0, 0.7);
        transform: scale(1.03);
    }

/* Responsive styles */
@media (max-width: 992px) {
    .slide--headline {
        font-size: 13px;
        bottom: 15px;
        right: 20px;
        padding: 6px 12px;
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .slide--headline {
        font-size: 12px;
        bottom: 10px;
        right: 15px;
        padding: 5px 10px;
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .slide--headline {
        font-size: 11px;
        bottom: 8px;
        right: 10px;
        padding: 4px 8px;
        border-radius: 6px;
    }
}

.globalLogos {
    background-color: white !important;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 5px;
}


.blog-entry.news-card {
    display: flex;
    align-items: center;
    border: 0.0625rem solid #e0e0e0; /* 1px = 0.0625rem (assuming base 16px) */
    border-radius: 0.5rem; /* 8px = 0.5rem */
    margin-bottom: 1.25rem; /* 20px = 1.25rem */
    background-color: #fff;
    box-shadow: 0 0.125rem 0.3125rem rgba(0,0,0,0.1); /* 2px 5px */
    height: 7.5rem; /* 120px = 7.5rem */
    overflow: hidden;
    transition: box-shadow 0.3s ease-in-out;
}

.blog-entry.news-card:hover {
    box-shadow: 0 0.3125rem 0.9375rem rgba(0,0,0,0.2); /* 5px 15px */
}

/* Styling for the date section */
.news-date {
    flex-shrink: 0;
    background-color: #144e8d;
    color: #fff;
    padding: 0.9375rem 0.625rem; /* 15px 10px */
    text-align: center;
    width: 6.25rem; /* 100px = 6.25rem */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .news-date .fa-calendar {
        font-size: 1.5rem; /* 24px = 1.5rem */
        margin-bottom: 0.3125rem; /* 5px = 0.3125rem */
    }

    .news-date .day {
        font-size: 2rem; /* 32px = 2rem */
        font-weight: bold;
        line-height: 1;
    }

    .news-date .month {
        font-size: 0.875rem; /* 14px = 0.875rem */
        text-transform: uppercase;
    }

/* Styling for the content section (title and read more) */
.news-content {
    flex-grow: 1;
    padding: 0.9375rem 1.25rem; /* 15px 20px */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.news-title {
    margin-bottom: 0.625rem; /* 10px = 0.625rem */
    height: 3.125rem; /* 50px = 3.125rem */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

    .news-title h4 {
        font-size: 1rem; /* 16px = 1rem */
        margin: 0;
        line-height: 1.4;
    }

        .news-title h4 a {
            color: #333;
            text-decoration: none;
            transition: color 0.3s ease-in-out;
        }

            .news-title h4 a:hover {
                color: #144e8d;
            }

.entrymore {
    text-align: right;
}

.read-more {
    display: inline-block;
    background-color: #ff0000;
    color: #fff;
    padding: 0.5rem 0.9375rem; /* 8px 15px */
    border-radius: 0.3125rem; /* 5px = 0.3125rem */
    text-decoration: none;
    font-size: 0.8125rem; /* 13px = 0.8125rem */
    transition: background-color 0.3s ease-in-out;
}

    .read-more:hover {
        background-color: #cc0000;
    }

/* Adjustments for the carousel if applicable */
.portfolio--carousel .blog-entry.news-card {
    margin-right: 1.25rem; /* 20px = 1.25rem */
}

/* If you want to ensure the "Latest News !" and "View All" are aligned nicely */
.heading.heading-2 {
    position: relative;
    text-align: center;
    margin-bottom: 1.875rem; /* 30px = 1.875rem */
}

    .heading.heading-2 .spnView {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        background-color: #144e8d;
        color: #fff;
        padding: 0.5rem 0.9375rem; /* 8px 15px */
        border-radius: 0.3125rem; /* 5px = 0.3125rem */
        text-decoration: none;
        font-size: 0.875rem; /* 14px = 0.875rem */
        transition: background-color 0.3s ease-in-out;
    }

        .heading.heading-2 .spnView:hover {
            background-color: #0d3a6b;
        }

/* Ensure the divider lines are also styled correctly, though the image doesn't show them clearly */
.divider--line {
    display: flex;
    justify-content: center;
    margin-top: 0.625rem; /* 10px = 0.625rem */
}

    .divider--line i {
        height: 0.1875rem; /* 3px = 0.1875rem */
        background-color: #144e8d;
        margin: 0 0.125rem; /* 2px = 0.125rem */
    }

    .divider--line .divider--1 {
        width: 1.25rem;
    }

    .divider--line .divider--2 {
        width: 1.875rem;
    }

    .divider--line .divider--3 {
        width: 2.5rem;
    }

    .divider--line .divider--4 {
        width: 1.875rem;
    }


@media (max-width: 48rem) {
    .blog-entry.news-card {
        flex-direction: column;
        height: auto;
    }

    .news-date {
        width: 100%;
        height: auto;
        padding: 0.625rem;
        flex-direction: row;
        justify-content: center;
        margin-bottom: 0.625rem;
    }

        .news-date .fa-calendar {
            margin-right: 0.625rem;
            margin-bottom: 0;
        }

        .news-date .day {
            font-size: 1.75rem;
        }

        .news-date .month {
            font-size: 0.8125rem;
        }

    .news-content {
        padding: 0.625rem 0.9375rem;
    }

    .news-title h4 {
        font-size: 0.9375rem;
    }

    .read-more {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .heading.heading-2 .spnView {
        position: static;
        transform: none;
        margin-top: 0.9375rem;
        display: block;
        text-align: center;
    }
}


#portfolio-all .row {
    margin-bottom: 1.875rem;
}


.portfolio-item {
    margin-bottom: 0;
}

.portfolio--img img {
    display: block;
    max-width: 100%;
    height: auto;
}


.portfolio--hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pos-vertical-center-facility {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 0.625rem;
    box-sizing: border-box;
}

.portfolio--title h4 {
    font-size: 1.125rem;
    margin-bottom: 0.3125rem;
}

    .portfolio--title h4 a {
        color: #fff;
        text-decoration: none;
        font-weight: bold;
        transition: color 0.3s ease;
    }

.portfolio--cat {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.portfolio--img {
    position: relative;
    overflow: hidden;
}

    .portfolio--img img {
        display: block;
        max-width: 100%;
        height: auto;
        transition: transform 0.5s ease;
    }


.portfolio--hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}


.portfolio--img:hover .portfolio--hover {
    opacity: 1;
    visibility: visible;
}

.portfolio--img:hover img {
    transform: scale(1.1);
}


.portfolio--action {
    width: 100%;
    text-align: center;
}

.pos-vertical-center-facility {
    background-color: rgba(68, 68, 68, 0.8);
    padding: 0.625rem 1.25rem;
    border-radius: 0.3125rem;
    display: inline-block;
    width: 90%;
    box-sizing: border-box;
    left: 30%;
}


.portfolio--title h4 {
    font-size: 1.375rem;
    margin-bottom: 0.3125rem;
    margin-top: 0;
    line-height: 1.2;
}

    .portfolio--title h4 a {
        color: #fff;
        text-decoration: none;
        font-weight: bold;
        transition: color 0.3s ease;
    }

        .portfolio--title h4 a:hover {
            color: #ffd700;
        }

.portfolio--cat {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.3125rem;
}


#portfolio-all .row {
    margin-bottom: 1.875rem;
}


.portfolio-item {
    margin-bottom: 0;
}


