#featured-posts { 
    background-color: #F7F9FC; 
}

.featured-posts-title { 
    font-family: 'Geologica'; 
    font-weight: 700; 
    font-size: 24px; 
    color: #013877; 
    margin-bottom: 30px; 
    text-transform: uppercase; 
}

.featured-posts-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px; 
}

.featured-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    height: 300px;
    background-color: #1a3a5c;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.15); }
.featured-card--large { grid-row: span 2; height: 625px; }

.featured-card__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: height 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-card:hover .featured-card__bg {
    height: calc(100% - var(--body-h, 100px));
}

.featured-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 56, 120, 0) 0%, rgba(0, 56, 120, 0.85) 100%);
    transition: opacity 1s ease;
}

.featured-card:hover .featured-card__overlay { opacity: 0; }

.featured-card__body {
    display:flex;
    position: relative;
    z-index: 2;
    padding: 24px;
    background: transparent;
    transition: background 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-card:hover .featured-card__body { background: #fff; }

.featured-card__title {
    width:90%;
    font-family: 'PF Highway Sans Pro';
    font-size: 22px;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 15px;
    transition: color 0.5s ease;
}

.featured-card:hover .featured-card__title { color: #013877; }
.featured-card--large .featured-card__title { font-size: 26px; font-weight: 600; }

.featured-card__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: all 0.5s ease;
}

.featured-card:hover .featured-card__arrow { background: rgba(1, 56, 119, 0.1); color: #013877; transform: translateX(5px); }
.featured-card__arrow svg { width: 18px; height: 18px; }

@media (max-width: 1200px) {
    .featured-posts-grid { grid-template-columns: 1fr 1fr; }
    .featured-card--large { grid-column: span 2; height: 320px; }
    .featured-card { height: 250px; }
}

@media screen and (max-width:768px){
    .featured-card--large .featured-card__title{
        font-size:22px;
    }

    .featured-card__title{
        font-size:20px;
    }
}

@media (max-width: 500px) {
    .featured-posts-grid { grid-template-columns: 1fr; }
    .featured-card--large { grid-column: auto; }
}