/* Resources / Downloads
-------------------------------------------------------------- */
.resources-intro {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    color: #777;
}

.resources-intro p {
    margin: 12px 0 0;
    line-height: 26px;
}

.resources-category {
    margin-bottom: 50px;
}

.resources-category:last-child {
    margin-bottom: 0;
}

.resources-category-header {
    margin-bottom: 28px;
}

.resources-category-header .heading {
    margin-bottom: 8px;
}

.resources-category-header p {
    color: #777;
    margin: 0;
    line-height: 24px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.download-grid.brochure-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.download-card.brochure-card {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

.download-card-preview {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #f2f2f2;
}

.download-card.brochure-card .download-card-body {
    padding: 18px 20px 0;
}

.download-card.brochure-card .download-card-action {
    padding: 0 20px 20px;
    align-self: stretch;
}

.download-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    background: #fff;
    border: 1px solid #ececec;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.download-card:hover {
    border-color: #d79b0b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.download-card-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    color: #d79b0b;
    font-size: 24px;
}

.download-card-body {
    flex: 1;
    min-width: 0;
}

.download-card-title {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 24px;
    color: #222;
    font-weight: 600;
}

.download-card-text {
    margin: 0 0 10px;
    color: #777;
    font-size: 14px;
    line-height: 22px;
}

.download-card-meta {
    display: block;
    color: #999;
    font-size: 12px;
    line-height: 18px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.download-card-action {
    flex: 0 0 auto;
    align-self: center;
}

.download-card-action .themesflat-button {
    white-space: nowrap;
    padding: 12px 20px;
}

.resources-empty-note {
    text-align: center;
    padding: 28px;
    background: #f7f7f7;
    color: #777;
    line-height: 24px;
}

.resources-cta {
    margin-top: 40px;
    padding: 28px 32px;
    background: #414141;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.resources-cta h3 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 26px;
    color: #fff;
}

.resources-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 24px;
}

@media only screen and (max-width: 1199px) {
    .download-grid.brochure-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 991px) {
    .download-grid,
    .download-grid.brochure-grid {
        grid-template-columns: 1fr;
    }

    .download-card {
        flex-wrap: wrap;
    }

    .download-card-action {
        width: 100%;
    }

    .download-card-action .themesflat-button {
        width: 100%;
        text-align: center;
    }
}
