/**
 * Featured Post Shortcode Styling
 * Author: Robust Tech House / Facilitybot Developer
 */

.fcb-featured-post-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
    width: 100%;
    margin: 40px 0;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Left Content Column */
.fcb-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fcb-featured-content .fcb-badge {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 24px;
    display: inline-block;
    transition: all 0.3s ease;
}

.fcb-featured-content .fcb-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    color: #0d1e3d;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.fcb-featured-content .fcb-title a {
    color: inherit;
    text-decoration: none;
}



.fcb-featured-content .fcb-excerpt {
    font-size: 17px;
    line-height: 1.6;
    color: #555e70;
    margin: 0 0 35px 0;
}

.fcb-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fcb-author-avatar-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f2f5;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fcb-author-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fcb-author-name {
    font-size: 15px;
    font-weight: 700;
    color: #0d1e3d;
}

/* Right Card Column */
.fcb-featured-card-wrapper {
    width: 100%;
    perspective: 1000px;
}

.fcb-featured-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: stretch;
    background-color: #121212;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    text-decoration: none !important;
}

.fcb-featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.fcb-featured-card-img {
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fcb-featured-card:hover .fcb-featured-card-img {
    transform: scale(1.05);
}

.fcb-featured-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    z-index: 2;
    padding: 35px 35px 35px 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    background: linear-gradient(135deg, rgba(16, 2, 2, 0.98) 0%, var(--fcb-accent-color, #8a0303) 100%);
}

.fcb-card-badge {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fcb-card-title-wrap {
    margin-top: auto;
    margin-bottom: auto;
    padding-right: 15px;
}

.fcb-card-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin: 5px 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fcb-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fcb-card-logo-wrap {
    height: 20px;
    display: flex;
    align-items: center;
}

.fcb-card-logo {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.fcb-card-logo-text {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
}

/* Responsiveness */

@media (max-width: 991px) {
    .fcb-featured-post-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .fcb-featured-content .fcb-title {
        font-size: 34px;
    }
}

@media (max-width: 767px) {
    .fcb-featured-content .fcb-title {
        font-size: 28px;
    }
    .fcb-featured-content .fcb-excerpt {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .fcb-featured-card-overlay {
        padding: 25px;
    }
    .fcb-card-title {
        font-size: 18px;
    }
}

@media (max-width: 575px) {
    .fcb-featured-card {
        aspect-ratio: 4 / 3;
    }
    .fcb-featured-card-overlay {
        width: 72%;
        clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
        padding: 20px;
    }
    .fcb-featured-card-img {
        width: 45%;
    }
    .fcb-card-title {
        font-size: 16px;
        -webkit-line-clamp: 4;
    }
    .fcb-card-logo-wrap {
        height: 16px;
    }
    .fcb-card-logo-text {
        font-size: 12px;
    }
}
