﻿.top-items-container {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .top-items-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .top-items-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.top-items-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .top-items-header {
        text-align: left;
    }
}

.top-items-title {
    font-size: clamp(1.25rem, 3vw, 1.875rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: #0f172a;
}

.top-items-subtitle {
    margin-top: 0.5rem;
    font-size: clamp(0.875rem, 1.8vw, 1rem);
    line-height: 1.75;
    color: #475569;
}

.mediafoundry-subtitle-wrapper {
    text-align: center;
}

.mediafoundry-subtitle {
    font-size: clamp(1.25rem, 3vw, 30px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: #0f172a;
}

.mediafoundry-title {
    margin-top: 0.5rem;
    text-align: center;
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    font-weight: 500;
    color: #334155;
}

.mediafoundry-separator {
    margin-top: 1rem;
}

.mediafoundry-divider {
    width: 6rem;
    height: 1px;
    margin-left: auto;
    margin-right: auto;
    background-color: #cbd5e1;
}

.customer-logos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 640px) {
    .customer-logos-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .customer-logos-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .customer-logos-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.customer-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .customer-logo-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
    }

    .customer-logo-card:focus {
        outline: 2px solid #94a3b8;
        outline-offset: 2px;
    }

.customer-logo-image {
    max-height: 4rem;
    width: auto;
    object-fit: contain;
}

.customer-logo-card.is-disabled {
    pointer-events: none;
    opacity: 0.7;
}

.custom-col {
    padding-right: clamp(16px, 4vw + 8px, 180px);
    padding-left: clamp(16px, 4vw + 8px, 40px);
    padding-bottom: clamp(24px, 4vw, 45px);
    background-color: #004986;
}

.news-card .card-img-container .card-title {
    height: 100%;
    align-content: end;
    color: white;
    max-width: 535px;
    margin: auto;
    text-align: left;
    padding-bottom: 90px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.news-card .card-img-container {
    height: 100%;
    min-height: 200px;
    background-size: cover !important;
}

.news-card {
    height: auto;
}

/* === STYLE 15 - Projects & Services Cards === */
.projects-services-wrapper {
    width: 100%;
    padding: 3rem 1rem;
}

@media (min-width: 640px) {
    .projects-services-wrapper {
        padding: 3rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .projects-services-wrapper {
        padding: 3rem 2rem;
    }
}

.projects-services-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    margin: 0;
    padding: 0;
}

@media (min-width: 640px) {
    .projects-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .projects-services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.projects-card-item {
    position: relative;
    display: block;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

@media (min-width: 640px) {
    .projects-card-item {
        height: 280px;
    }
}

@media (min-width: 1024px) {
    .projects-card-item {
        height: 300px;
    }
}

.projects-card-item:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(-4px);
}

.projects-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.projects-card-item:hover .projects-card-img {
    transform: scale(1.08);
}

.projects-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.projects-card-item:hover .projects-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.projects-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    color: white;
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.4;
    padding: 1.5rem;
    margin: 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    transition: text-shadow 0.3s ease;
}

.projects-card-item:hover .projects-card-title {
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.95);
}

/* === STYLE 5 - Featured card (left) === */
.news5-featured-wrap {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 500px;
    display: block;
}

.news5-featured-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.news5-featured-wrap:hover .news5-featured-bg {
    transform: scale(1.05);
}

.news5-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75%;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.25) 55%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.news5-featured-title {
    position: absolute;
    bottom: 90px;
    left: 0;
    right: 0;
    color: white !important;
    padding: 0 32px;
    z-index: 2;
    margin: 0;
    font-family: "PrimaryFont" !important;
    font-size: clamp(1.2rem, 2.2vw, 30px) !important;
    line-height: 1.4 !important;
    letter-spacing: 0.01em;
    text-align: left;
    padding-left: 10vw;
    padding-right: 10vw;
}

.news5-featured-date {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    color: #00a3e0 !important;
    padding: 0 32px;
    z-index: 2;
    margin: 0;
    font-family: "PrimaryFont" !important;
    font-size: clamp(1.2rem, 2.2vw, 30px) !important;
    line-height: 1.4 !important;
    letter-spacing: 0.01em;
    text-align: left;
    padding-left: 10vw;
    padding-right: 10vw;
}

.news5-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    row-gap: 50px;
}

.news5-item {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

.news5-img-wrap {
    overflow: hidden;
    border-radius: 2px;
    display: block;
}

.news5-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.news5-item:hover .news5-img {
    transform: scale(1.08);
}

.news5-date {
    font-family: "PrimaryFontLight";
    margin: 0;
    padding-top: 1.5rem;
    color: #00a3e0;
    font-size: clamp(0.875rem, 1.8vw, 21px);
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.news5-title {
    font-family: "PrimaryFontLight";
    margin: 0;
    padding-top: 0;
    color: #ffffff;
    font-size: clamp(0.875rem, 1.8vw, 21px);
    font-weight: 400;
    line-height: 1.4;
    transition: opacity 0.3s ease;
}

.news5-item:hover .news5-title {
    opacity: 0.75;
}

@media (max-width: 480px) {
    .news5-grid {
        grid-template-columns: 1fr;
    }
}