/* ========================================
   Imdex Blog / News Area
======================================== */

.imdex-blog-area {
    width: 100%;
    padding: 100px 32px;
    background: #FFFFFF;
    box-sizing: border-box;
}

.imdex-blog-area *,
.imdex-blog-area *::before,
.imdex-blog-area *::after {
    box-sizing: border-box;
}

/* Main container: align with the other theme sections */

.imdex-blog-area__inner {
    width: 100%;
    max-width: 1520px;
    margin: 0 auto;
}

/* Section title */

.imdex-blog-area__title {
    margin: 0 0 68px;
    font-family: Eurostile, sans-serif;
    font-size: 69px;
    font-weight: 900;
    line-height: 57px;
    letter-spacing: 0;
    color: #ED5437;
    text-align: center;
}

/* Three news cards */

.imdex-blog-area__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    width: 100%;
    margin: 0 auto;
}

/* Card */

.imdex-blog-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
}

/* Featured image: full card width */

.imdex-blog-card__image-link {
    display: block;
    width: 100%;
    aspect-ratio: 487 / 311;
    overflow: hidden;
    background: #F5F5F5;
}

.imdex-blog-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.25s ease;
}

.imdex-blog-card__image-link:hover .imdex-blog-card__image {
    transform: scale(1.03);
}

.imdex-blog-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: #F5F5F5;
}

/* Post title and description */

.imdex-blog-card__content {
    padding-top: 28px;
}

.imdex-blog-card__title {
    margin: 0 0 18px;
    font-family: Eurostile, sans-serif;
    font-size: 31px;
    font-weight: 900;
    line-height: 39px;
    letter-spacing: 0;
    color: #ED5437;
    text-align: left;
    overflow-wrap: anywhere;
}

.imdex-blog-card__title a {
    color: inherit;
    text-decoration: none;
}

.imdex-blog-card__title a:hover,
.imdex-blog-card__title a:focus-visible {
    color: #CF4027;
}

.imdex-blog-card__description {
    margin: 0;
    font-family: Eurostile, sans-serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0;
    color: #063857;
    text-align: left;
    overflow-wrap: anywhere;
}

/* View All News button */

.imdex-blog-area__footer {
    display: flex;
    justify-content: center;
    margin-top: 64px;
}

.imdex-blog-area__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 324px;
    min-height: 86px;
    padding: 20px 32px;
    border: 0;
    border-radius: 0;
    background: #ED5437;
    color: #FFFFFF;
    font-family: Eurostile, sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.imdex-blog-area__button:hover,
.imdex-blog-area__button:focus-visible {
    background: #CF4027;
    color: #FFFFFF;
}

.imdex-blog-area__empty {
    margin: 0;
    font-family: Eurostile, sans-serif;
    font-size: 20px;
    line-height: 1.5;
    color: #063857;
}

/* ========================================
   Tablet
======================================== */

@media (max-width: 1100px) {
    .imdex-blog-area {
        padding: 72px 28px;
    }

    .imdex-blog-area__title {
        margin-bottom: 48px;
        font-size: clamp(42px, 5vw, 60px);
        line-height: 1;
    }

    .imdex-blog-area__grid {
        gap: 24px;
    }

    .imdex-blog-card__content {
        padding-top: 22px;
    }

    .imdex-blog-card__title {
        margin-bottom: 14px;
        font-size: 25px;
        line-height: 1.25;
    }

    .imdex-blog-card__description {
        font-size: 20px;
        line-height: 1.45;
    }

    .imdex-blog-area__footer {
        margin-top: 48px;
    }
}

/* ========================================
   Mobile
======================================== */

@media (max-width: 700px) {
    .imdex-blog-area {
        padding: 48px 20px;
    }

    .imdex-blog-area__title {
        margin-bottom: 36px;
        font-size: clamp(36px, 10vw, 48px);
        line-height: 1.1;
    }

    .imdex-blog-area__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
        max-width: 487px;
    }

    .imdex-blog-area__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .imdex-blog-area__title,
    .imdex-blog-area__grid,
    .imdex-blog-area__footer,
    .imdex-blog-area__empty {
        width: 100%;
    }

    .imdex-blog-card__content {
        padding-top: 20px;
    }

    .imdex-blog-card__title {
        margin-bottom: 14px;
        font-size: 26px;
        line-height: 1.3;
    }

    .imdex-blog-card__description {
        font-size: 19px;
        line-height: 1.5;
    }

    .imdex-blog-area__footer {
        margin-top: 40px;
    }

    .imdex-blog-area__button {
        width: 100%;
        min-width: 0;
        min-height: 64px;
        padding: 16px 20px;
        font-size: 22px;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

    .imdex-blog-card__image,
    .imdex-blog-area__button {
        transition: none;
    }
}