@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Outfit", sans-serif;
    background: #ffffff;
    color: #000000;
}

/* Breadcrumbs */
.breadcrumbs-section {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    padding: 3rem 54px 0.75rem;
}

.breadcrumbs-wrap {
    margin: 0 auto;
}

.breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    line-height: 1.25;
    color: #000000;
    white-space: nowrap;
    max-width: 100%;
}

.breadcrumbs a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #a1a1a1;
}

.breadcrumbs .separator {
    color: #9298b5;
    flex-shrink: 0;
}

.breadcrumbs .current-page {
    color: #0400ff;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hero — centered minimal type block */
.resources-hero {
    background: #ffffff;
    width: 100%;
    padding: 4rem 54px 4rem;
}

.resources-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.resources-hero-title {
    margin: 0;
    color: #000000;
    font-size: clamp(2.35rem, 4.2vw, 3.35rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.resources-hero-title span {
    background: linear-gradient(180deg, #aa78fc 0%, #5931d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.resources-hero-text {
    margin: 1.35rem auto 0;
    max-width: 760px;
    color: #4a4a4a;
    font-size: clamp(1.05rem, 1.35vw, 1.1rem);
    font-weight: 400;
    line-height: 1.55;
}

/* Category filter pills */
.resources-filter {
    background: #ffffff;
    width: 100%;
    padding: 0 54px 3.5rem;
}

.resources-filter-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.resources-filter-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.resources-filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.22);
    background: #ffffff;
    color: #000000;
    font: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.resources-filter-pill:hover {
    border-color: rgba(0, 0, 0, 0.45);
}

.resources-filter-pill.is-active {
    background: linear-gradient(180deg, #aa78fc 0%, #5931d4 100%);
    border: none;
    color: #ffffff;
}

.resources-filter-pill:focus-visible {
    outline: 2px solid #8f48ff;
    outline-offset: 2px;
}

/* Resource cards grid */
.resources-cards-section {
    background: #ffffff;
    width: 100%;
    padding: 0 54px 5rem;
}

.resources-cards-inner {
    max-width: 1300px;
    margin: 0 auto;
}

.resources-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 36px;
}

.resources-empty {
    grid-column: 1 / -1;
    margin: 0;
    color: #4a4a4a;
    font-size: 1rem;
    text-align: center;
}

.resource-card {
    margin: 0;
}

.resource-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.resource-card-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.resource-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.resource-card-title {
    margin: 1rem 0 0;
    color: #000000;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.resource-card-category {
    margin: 0.45rem 0 0;
    color: #666666;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.35;
}

.resource-card-link:hover .resource-card-title {
    color: #5931d4;
}

.resource-card-link:focus-visible {
    outline: 2px solid #8f48ff;
    outline-offset: 4px;
}

/* Resource detail page */
.resource-detail {
    background: #ffffff;
    width: 100%;
    padding: 4.5rem 54px 5.5rem;
}

.resource-detail-inner {
    max-width: 900px;
    margin: 0 auto;
}

.resource-detail-header {
    margin: 0 0 2.25rem;
}

.resource-detail-title {
    margin: 0;
    color: #000000;
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.resource-detail-intro {
    margin: 1.1rem 0 0;
    max-width: 820px;
    color: #000000;
    font-size: clamp(1.02rem, 1.3vw, 1.15rem);
    font-weight: 300;
    line-height: 1.55;
}

.resource-detail-media {
    width: 100%;
    background: transparent;
    margin: 0 0 2rem;
    overflow: visible;
    position: relative;
}

.resource-detail-media img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
    image-rendering: auto;
}

.resource-detail-body p {
    margin: 0 0 1.75rem;
    color: #000000;
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
    white-space: pre-line;
}

.resource-detail-subtitle {
    margin: 0.35rem 0 1.1rem;
    color: #000000;
    font-size: clamp(1.45rem, 2.2vw, 1.85rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.resource-detail-link {
    display: inline-flex;
    margin: 0 0 1.75rem;
    color: #131313;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.resource-detail-link:hover {
    color: #444444;
}

.resource-detail-extras {
    margin-top: 2.75rem;
    padding-top: 2.25rem;
    border-top: 1px solid #e6e6e6;
}

.resource-share {
    margin: 0 0 2.75rem;
}

.resource-share-title,
.resource-related-title {
    margin: 0 0 1rem;
    color: #000000;
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.resource-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.resource-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 2.75rem;
    padding: 0.55rem 1rem;
    border: 1px solid #d0d0d0;
    border-radius: 999px;
    background: #ffffff;
    color: #131313;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.resource-share-btn i {
    font-size: 0.95rem;
}

.resource-share-btn:hover {
    background: #131313;
    border-color: #131313;
    color: #ffffff;
}

.resource-share-btn:focus-visible {
    outline: 2px solid #8f48ff;
    outline-offset: 2px;
}

.resource-share-status {
    margin: 0.75rem 0 0;
    min-height: 1.2em;
    color: #1f7a3f;
    font-size: 0.92rem;
    font-weight: 400;
}

.resource-related {
    margin: 0;
}

.resource-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
}

.resource-related-grid .resource-card-title {
    font-size: 1.1rem;
}

.resource-related-grid .resource-card-category {
    font-size: 0.88rem;
}

/* Tablet */
@media (max-width: 991px) {
    .breadcrumbs-section {
        padding: 1.5rem 24px 0.65rem;
    }

    .breadcrumbs {
        font-size: 1rem;
        gap: 10px;
    }

    .resources-hero {
        padding: 3.5rem 32px 3.5rem;
    }

    .resources-hero-title {
        font-size: clamp(2rem, 4.5vw, 2.75rem);
        line-height: 1.18;
    }

    .resources-hero-text {
        margin-top: 1.15rem;
        max-width: 620px;
        font-size: 1.1rem;
        line-height: 1.55;
    }

    .resources-filter {
        padding: 0 24px 2.75rem;
    }

    .resources-filter-pills {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .resources-filter-pill {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 0.5rem 1.2rem;
        font-size: 0.95rem;
    }

    .resources-cards-section {
        padding: 0 24px 4rem;
    }

    .resources-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 24px;
    }

    .resource-card-title {
        font-size: 1rem;
        margin-top: 0.85rem;
    }

    .resource-card-category {
        font-size: 0.85rem;
        margin-top: 0.35rem;
    }

    .resource-detail {
        padding: 3.25rem 28px 4rem;
    }

    .resource-detail-header {
        margin-bottom: 1.75rem;
    }

    .resource-detail-title {
        font-size: clamp(1.75rem, 4vw, 2.35rem);
    }

    .resource-detail-intro {
        font-size: 1.05rem;
        margin-top: 0.95rem;
    }

    .resource-detail-media {
        margin-bottom: 1.5rem;
    }

    .resource-detail-body p {
        font-size: 1rem;
        margin-bottom: 1.4rem;
    }

    .resource-detail-subtitle {
        font-size: 1.45rem;
        margin-bottom: 0.95rem;
    }

    .resource-detail-extras {
        margin-top: 2.25rem;
        padding-top: 1.85rem;
    }

    .resource-share {
        margin-bottom: 2.25rem;
    }

    .resource-share-title,
    .resource-related-title {
        font-size: 1.4rem;
        margin-bottom: 0.9rem;
    }

    .resource-share-actions {
        gap: 0.6rem;
    }

    .resource-share-btn {
        min-height: 2.6rem;
        padding: 0.5rem 0.9rem;
        font-size: 0.9rem;
    }

    .resource-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.35rem 1.1rem;
    }

    .resource-related-grid .resource-card-title {
        font-size: 1rem;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .breadcrumbs-section {
        padding: 1rem 1.25rem 0.5rem;
    }

    .breadcrumbs-wrap {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .breadcrumbs {
        font-size: 1rem;
        gap: 8px;
    }

    .resources-hero {
        padding: 2.5rem 1.25rem 2.75rem;
    }

    .resources-hero-title {
        font-size: 1.85rem;
        line-height: 1.22;
        letter-spacing: -0.015em;
    }

    .resources-hero-text {
        margin-top: 1rem;
        max-width: 100%;
        font-size: 1rem;
        line-height: 1.55;
    }

    .resources-filter {
        padding: 0 1.25rem 2.25rem;
    }

    .resources-filter-pills {
        gap: 8px;
    }

    .resources-filter-pill {
        min-height: 40px;
        padding: 0.45rem 1rem;
        font-size: 0.88rem;
    }

    .resources-cards-section {
        padding: 0 1.25rem 3.5rem;
    }

    .resources-cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .resource-card-title {
        font-size: 0.98rem;
        margin-top: 0.75rem;
        line-height: 1.4;
    }

    .resource-card-category {
        font-size: 0.82rem;
        margin-top: 0.3rem;
    }

    .resource-detail {
        padding: 2.5rem 1.25rem 3.25rem;
    }

    .resource-detail-header {
        margin-bottom: 1.4rem;
    }

    .resource-detail-title {
        font-size: 1.65rem;
        line-height: 1.22;
    }

    .resource-detail-intro {
        font-size: 0.98rem;
        line-height: 1.55;
        margin-top: 0.85rem;
    }

    .resource-detail-media {
        margin-bottom: 1.25rem;
    }

    .resource-detail-body p {
        font-size: 0.95rem;
        line-height: 1.65;
        margin-bottom: 1.25rem;
    }

    .resource-detail-subtitle {
        font-size: 1.28rem;
        margin: 0.2rem 0 0.85rem;
    }

    .resource-detail-extras {
        margin-top: 1.85rem;
        padding-top: 1.5rem;
    }

    .resource-share {
        margin-bottom: 1.85rem;
    }

    .resource-share-title,
    .resource-related-title {
        font-size: 1.25rem;
        margin-bottom: 0.8rem;
    }

    .resource-share-actions {
        gap: 0.55rem;
    }

    .resource-share-btn {
        flex: 1 1 calc(50% - 0.55rem);
        min-height: 2.55rem;
        padding: 0.45rem 0.75rem;
        font-size: 0.86rem;
    }

    .resource-share-btn span {
        white-space: nowrap;
    }

    .resource-related-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .resource-related-grid .resource-card-title {
        font-size: 0.98rem;
    }

    .resource-related-grid .resource-card-category {
        font-size: 0.82rem;
    }
}
