/* ============================================================
   Resources Page Styles
   Inherits CSS variables from index.css
   ============================================================ */

/* ---- Hero ---- */
.resources-hero {
    position: relative;
    padding: 160px 0 90px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, #5c6bc0 100%);
    color: white;
    overflow: hidden;
}

.resources-hero-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent-color);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.92;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Section Eyebrows ---- */
.section-eyebrow {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.section-subtitle {
    color: #555;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Media Links Section ---- */
.media-section {
    padding: 100px 0;
    background: #f7f8fc;
}

/* Card link wrapper — removes default anchor styling */
.media-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.media-card-link:hover {
    color: inherit;
}

.media-card {
    background: #fff;
    border-radius: 20px;
    padding: 44px 36px 40px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    height: 100%;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.media-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(26,35,126,0.12);
}

.media-card:hover::before {
    opacity: 1;
}

/* Platform icons */
.media-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.media-card:hover .media-icon {
    transform: scale(1.08);
}

.media-icon.linkedin {
    background: rgba(10,102,194,0.1);
    color: #0a66c2;
}

.media-icon.youtube {
    background: rgba(255,0,0,0.08);
    color: #ff0000;
}

.media-icon.facebook {
    background: rgba(24,119,242,0.1);
    color: #1877f2;
}

/* Card typography */
.media-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.media-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* CTA text at bottom of card */
.media-cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.25s ease, color 0.25s ease;
}

.media-card:hover .media-cta {
    gap: 10px;
    color: var(--primary-color);
}

.media-cta i {
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

.media-card:hover .media-cta i {
    transform: translateX(2px);
}

/* ---- Resources CTA ---- */
.resources-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #5c6bc0 50%, #667eea 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.resources-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.resources-cta .btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .resources-hero {
        padding: 140px 0 70px;
    }

    .media-section {
        padding: 70px 0;
    }

    .media-card {
        padding: 36px 28px 32px;
    }
}

@media (max-width: 767px) {
    .resources-hero {
        padding: 130px 0 60px;
    }

    .resources-hero .display-4 {
        font-size: 2rem;
    }

    .media-section {
        padding: 50px 0;
    }

    .media-card {
        padding: 28px 20px 24px;
    }

    .media-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        border-radius: 14px;
        margin-bottom: 20px;
    }

    .resources-cta {
        padding: 60px 0;
    }
}