/**
 * Featured Post Card Styles
 * 
 * @package Clayutility
 * @version 1.0
 */

/* ===== Featured Card ===== */
.featured-card {
    position: relative;
    width: 100%;
    background: var(--color-white);
    overflow: hidden;
}

.featured-card .container {
    position: relative;
}

.featured-card .title {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 0;
}

.featured-card__wrapper {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(3, 10, 18, 0.12);
    display: flex;
    align-items: stretch;
    background: #000;
    padding: 20px 0;
}

/* Background image layer */
.featured-card__wrapper .featured-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: saturate(0.95) contrast(0.95);
    transform: scale(1.03);
    will-change: transform;
}

/* Dark overlay for legibility */
.featured-card__wrapper .featured-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 40, 61, 0.65) 0%, rgba(6, 40, 61, 0.45) 55%, rgba(6, 40, 61, 0.20) 100%);
    z-index: 1;
}

/* Content area */
.featured-card__wrapper .featured-card__content {
    position: relative;
    z-index: 2;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 70%;
    min-width: 260px;
    max-width: 100%;
}

/* Tag */
.featured-card__tag {
    color: #bfe1ff;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 1rem;
    margin-bottom: 12px;
    margin-top: 0;
}

/* Title */
.featured-card__title {
    color: #fff;
    line-height: 1.08;
    margin-bottom: 14px;
    font-weight: 700;
    margin-top: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Subtitle */
.featured-card__subtitle {
    color: rgba(225, 240, 255, 0.90);
    font-size: 1rem;
    margin-bottom: 22px;
    max-width: 48ch;
    margin-top: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Button */
.featured-card__btn {
    display: inline-block;
    background: #ffffff;
    color: var(--color-blue);
    padding: 15px 50px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.18);
    transition: transform .18s ease, background .18s ease, color .18s ease;
    align-self: flex-start;
    max-width: 100%;
    text-align: center;
    white-space: normal;
}

.featured-card__btn:hover {
    transform: translateY(-3px);
    background: #e6f4ff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .featured-card__wrapper .featured-card__content {
        width: 60%;
        padding: 40px 36px;
    }

    .featured-card__title {
        font-size: 1.9rem;
    }
}

@media (max-width: 820px) {

    /* Stack content above image for smaller screens */
    .featured-card__wrapper {
        flex-direction: column;
        align-items: flex-end;
        height: auto;
        max-height: none;
        min-height: 48vh;
        justify-content: center;
    }

    .featured-card__wrapper .featured-card__content {
        width: 100%;
        padding: 28px;
        text-align: left;
    }

    .featured-card__wrapper .featured-card__bg {
        height: 48vh;
        position: absolute;
        transform: none;
    }

    .featured-card__title {
        font-size: 1.6rem;
    }

    .featured-card__subtitle {
        font-size: 0.975rem;
    }
}

/* Very small screens */
@media (max-width: 420px) {
    .featured-card__wrapper {
        border-radius: 28px;
    }

    .featured-card__wrapper .featured-card__content {
        padding: 20px;
    }

    .featured-card__title {
        font-size: 1.25rem;
    }

    .featured-card__tag {
        font-size: 0.75rem;
    }

    .featured-card__btn {
        padding: 8px 18px;
        font-size: 0.95rem;
    }
}