/* ===================================
   DIGITAL RESOURCES PAGE STYLES
   =================================== */

/* ===================================
   PAGE HEADER
   =================================== */

.resources-page-header {
    background: var(--block-navy);
    color: var(--text-on-navy);
    padding: var(--spacing-xxl) 0 var(--spacing-xl);
    text-align: center;
}

.resources-page-header h2 {
    font-size: 2.25rem;
    color: white;
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.resources-page-header p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   INTRODUCTION
   =================================== */

.resources-intro {
    padding: var(--spacing-xxl) 0;
    background: var(--background-white);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h3 {
    font-size: 1.75rem;
    color: var(--block-navy);
    margin-bottom: var(--spacing-md);
}

.intro-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.intro-content p:last-child {
    margin-bottom: 0;
}

.intro-content a {
    color: var(--block-teal);
    font-weight: 600;
    text-decoration: underline;
}

.intro-content a:hover {
    color: var(--block-navy);
}

/* ===================================
   COLLECTIONS GRID
   =================================== */

.resources-collections {
    padding: var(--spacing-xxl) 0;
    background: var(--background-light);
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.collection-card {
    background: var(--background-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--block-teal);
    display: flex;
    flex-direction: column;
}

.collection-card:nth-child(2) {
    border-top-color: var(--block-red);
}

.collection-card__icon {
    font-size: 2.5rem;
    color: var(--block-navy);
    margin-bottom: var(--spacing-md);
}

.collection-card__title {
    font-size: 1.35rem;
    color: var(--block-navy);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.collection-card__description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.collection-card__features {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}

.collection-card__features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.5;
}

.collection-card__features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--block-teal);
    border-radius: 50%;
}

.collection-card:nth-child(2) .collection-card__features li::before {
    background: var(--block-red);
}

.collection-card__features li:last-child {
    border-bottom: none;
}

.collection-card__btn {
    display: block;
    text-align: center;
    padding: 0.85rem var(--spacing-lg);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background 0.2s, transform 0.2s;
}

.collection-card:first-child .collection-card__btn {
    background: var(--block-teal);
    color: white;
}

.collection-card:first-child .collection-card__btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.collection-card:nth-child(2) .collection-card__btn {
    background: var(--block-red);
    color: white;
}

.collection-card:nth-child(2) .collection-card__btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ===================================
   HOW IT WORKS
   =================================== */

.resources-how-it-works {
    padding: var(--spacing-xxl) 0;
    background: var(--background-white);
}

.resources-how-it-works h3 {
    font-size: 1.75rem;
    color: var(--block-navy);
    text-align: center;
    margin-bottom: var(--spacing-xs);
}

.how-it-works-intro {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.6;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: var(--spacing-lg);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--block-navy);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: var(--spacing-md);
}

.step-card h4 {
    font-size: 1.1rem;
    color: var(--block-navy);
    margin-bottom: var(--spacing-sm);
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.step-card a {
    color: var(--block-teal);
    font-weight: 600;
    text-decoration: underline;
}

.step-card a:hover {
    color: var(--block-navy);
}

/* ===================================
   BOOK REQUEST CTA
   =================================== */

.resources-request {
    padding: var(--spacing-xxl) 0;
    background: var(--background-light);
}

.request-block {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: var(--block-cream);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.request-block h3 {
    font-size: 1.5rem;
    color: var(--block-navy);
    margin-bottom: var(--spacing-sm);
}

.request-block p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.request-btn {
    display: inline-block;
    background: var(--block-gold);
    color: var(--text-on-gold);
    padding: 0.85rem var(--spacing-xl);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background 0.2s, transform 0.2s;
}

.request-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .resources-page-header {
        padding: var(--spacing-xl) 0 var(--spacing-lg);
    }

    .resources-page-header h2 {
        font-size: 1.75rem;
    }

    .collections-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .step-card {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .resources-page-header h2 {
        font-size: 1.5rem;
    }

    .intro-content h3 {
        font-size: 1.4rem;
    }

    .collection-card {
        padding: var(--spacing-lg);
    }

    .request-block {
        padding: var(--spacing-lg);
    }
}
