/* =========================================
   assets/css/resources.css
========================================= */

/* --- PAGE HEADER & BREADCRUMBS --- */
.page-header {
    background-color: #f4f7f6;
    background-image: radial-gradient(circle at 50% 50%, rgba(23, 111, 145, 0.05) 0%, rgba(244, 247, 246, 1) 100%);
    padding: 120px 0 60px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.page-header__title {
    font-size: 2.8rem;
    color: #176f91; /* iHerd Theme Primary */
    margin-bottom: 15px;
    font-weight: 700;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    font-size: 0.95rem;
}

.breadcrumb__list {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    align-items: center;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    color: #666;
}

.breadcrumb__item a {
    color: #176f91;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb__item a:hover {
    color: #0f4c64;
    text-decoration: underline;
}

.breadcrumb__item + .breadcrumb__item::before {
    content: "/";
    margin: 0 12px;
    color: #aaa;
    font-size: 0.9rem;
}

.breadcrumb__item--active {
    color: #333;
    font-weight: 600;
}

/* --- MAIN RESOURCES SECTION --- */
.resources-section {
    padding: 90px 0 110px;
    background-color: #ffffff;
}

.resources-header {
    margin-bottom: 50px;
}

.text-center {
    text-align: center;
}

.section-subtitle {
    color: #176f91;
    font-size: 0.875rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.25rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-description {
    font-size: 1.05rem;
    color: #666;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- GRID LAYOUT --- */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    margin-bottom: 60px;
}

/* --- RESOURCE CARD --- */
.resource-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
    position: relative;
}

.resource-card:hover {
    transform: translateY(-6px);
    border-color: #176f91;
    box-shadow: 0 18px 35px rgba(23, 111, 145, 0.12);
}

.resource-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.resource-card__icon {
    width: 60px;
    height: 60px;
    background-color: #f4f7f6;
    color: #176f91;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.resource-card:hover .resource-card__icon {
    background-color: #176f91;
    color: #ffffff;
}

.resource-card__icon svg {
    width: 28px;
    height: 28px;
}

.resource-card__badge {
    background-color: rgba(23, 111, 145, 0.1);
    color: #176f91;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resource-card__body {
    flex-grow: 1;
    margin-bottom: 25px;
}

.resource-card__title {
    font-size: 1.4rem;
    color: #222222;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.resource-card__desc {
    font-size: 0.98rem;
    color: #555555;
    line-height: 1.65;
}

/* FOOTER & DOWNLOAD BTN */
.resource-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    gap: 15px;
    flex-wrap: wrap;
}

.resource-card__meta {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
}

.meta-label {
    color: #888888;
}

.meta-value {
    color: #333333;
    font-weight: 600;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #176f91;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.download-btn:hover {
    background-color: #0f4c64;
    transform: translateY(-2px);
}

.download-btn svg {
    width: 18px;
    height: 18px;
}

/* --- CTA SECTION --- */
.resources-cta {
    background: linear-gradient(135deg, #176f91 0%, #0f4c64 100%);
    border-radius: 16px;
    padding: 40px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.resources-cta__content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.resources-cta__content p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.5;
}

.btn--cta {
    background-color: #ffffff;
    color: #176f91;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn--cta:hover {
    background-color: #f4f7f6;
    transform: translateY(-2px);
}

/* --- FADE-UP ANIMATION --- */
.fade-up {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .resources-cta {
        flex-direction: column;
        text-align: center;
    }

    .btn--cta {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 100px 0 50px;
    }

    .page-header__title {
        font-size: 2.25rem;
    }

    .resource-card {
        padding: 25px 20px;
    }

    .resource-card__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }
}