@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('layout.css');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    color: #000000;
}

/* Breadcrumbs */
.breadcrumbs-section {
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
    padding: 3rem var(--page-gutter) 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%;
    font-weight: 500;
}

.breadcrumbs a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #a1a1a1;
}

.breadcrumbs .separator {
    color: #000000;
    flex-shrink: 0;
}

.breadcrumbs .current-page {
    color: #0030FF;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

/* Hero — centered minimal type block */
.resources-hero {
    width: 100%;
    padding: 4rem var(--page-gutter) 4rem;
}

.resources-hero-inner {
    max-width: 1800px;
    margin: 0 auto;
    text-align: center;
}

.resources-hero-title {
    margin: 0;
    color: #000000;
    font-size: clamp(2.35rem, 4.2vw, 2.8rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.resources-hero-title span {
    color: #0030FF;
}

.resources-hero-text {
    margin: 1.35rem auto 0;
    max-width: 760px;
    color: #000000;
    font-size: clamp(1.05rem, 1.35vw, 1.1rem);
    font-weight: 500;
    line-height: 1.55;
}

/* Category filter pills */
.resources-filter {
    width: 100%;
    padding: 0 var(--page-gutter) 3.5rem;
}

.resources-filter-inner {
    max-width: 1800px;
    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;
    background: #f5f5f5;
    color: #000000;
    border: none;
    font: inherit;
    font-size: 1rem;
    font-weight: 500;
    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: #0363FB;
    border: none;
    color: #ffffff;
}

.resources-filter-pill:focus-visible {
    outline: 2px solid #8f48ff;
    outline-offset: 2px;
}

/* Resource cards grid */
.resources-cards-section {
    width: 100%;
    padding: 0 var(--page-gutter) 5rem;
}

.resources-cards-inner {
    max-width: 1650px;
    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: #000000;
    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: 5 / 3;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #ffffff;
}

.resource-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.resource-card-title {
    margin: 1rem 0 0;
    color: #000000;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.resource-card-meta,
.resource-detail-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.7rem;
    margin: 0.55rem 0 0;
    color: rgb(0, 0, 0);
    font-size: 0.86rem;
    font-weight: 400;
    line-height: 1.4;
}

.resource-card-meta span + span,
.resource-card-meta time + span,
.resource-detail-byline span + span,
.resource-detail-byline time + span {
    position: relative;
    padding-left: 0.7rem;
}

.resource-card-meta span + span::before,
.resource-card-meta time + span::before,
.resource-detail-byline span + span::before,
.resource-detail-byline time + span::before {
    content: "·";
    position: absolute;
    left: 0.15rem;
    color: #0030FF;
}

.resource-card-category {
    margin: 0.45rem 0 0;
    color: #0030FF;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
}

.resource-card-link:hover .resource-card-title {
    color: #0030FF;
}

.resource-card-link:focus-visible {
    outline: 2px solid #b6b6b6;
    outline-offset: 4px;
}

/* Resource detail page */
.resource-detail {
    width: 100%;
    padding: 4.5rem var(--page-gutter) 5.5rem;
}

.resource-detail-layout {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: 40px;
    align-items: start;
}

.resource-detail-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.resource-detail-layout .resource-detail-inner {
    max-width: none;
    margin: 0;
}

.resource-detail-extras {
    max-width: 1600px;
}

.resource-detail-tools {
    position: sticky;
    top: 110px;
    min-width: 0;
}

.resource-detail-tools[hidden] {
    display: none;
}

.resource-detail-tools-title {
    margin: 0 0 16px;
    color: #000000;
    font-size: 1.35rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.resource-detail-tools-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: calc(100vh - 240px);
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.resource-detail-tools-list::-webkit-scrollbar {
    display: none;
}

.resource-detail-tools .ai-tool-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    padding: 16px;
    border-radius: 10px;
    background-color: #f0f0f0;
    border: 1px solid rgba(255, 255, 255, 0.103);
    text-decoration: none;
    color: inherit;
}

.resource-detail-tools .ai-tool-card__top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 0;
}

.resource-detail-tools .ai-tool-card__logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    flex-shrink: 0;
    overflow: hidden;
}

.resource-detail-tools .ai-tool-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.resource-detail-tools .ai-tool-card h3 {
    margin: 0;
    flex: 1;
    min-width: 0;
    color: #000000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
}

.resource-detail-tools .ai-tool-card__preview {
    margin-top: 14px;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
}

.resource-detail-tools .ai-tool-card__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.resource-detail-tools .ai-tool-card__featured-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.resource-detail-tools .ai-tool-card__best-for {
    margin: 10px 0 0;
    color: rgba(0, 0, 0, 0.863);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-detail-tools .ai-tool-card__best-for-label {
    color: #0030FF;
    font-weight: 500;
}

.resource-detail-tools .ai-tool-card__plan {
    display: inline-flex;
    align-items: center;
    margin: 8px 0 0;
    padding: 5px 15px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.2;
    width: fit-content;
}

.resource-detail-tools .ai-tool-card__plan--free {
    color: #2cc00f;
    background: rgba(44, 192, 15, 0.12);
}

.resource-detail-tools .ai-tool-card__plan--freemium {
    color: #ffffff;
    background: #0f023d;
}

.resource-detail-tools .ai-tool-card__plan--paid {
    color: #ffffff;
    background: #f5c518;
}

.resource-detail-tools .ai-tool-card__stats {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    color: #000000;
    font-size: 0.9rem;
    font-weight: 500;
}

.resource-detail-tools .ai-tool-card__stats .fa-star {
    color: #f5c518;
}

.resource-detail-tools .ai-tool-card__featured-category {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 70%;
    padding: 5px 10px;
    border-radius: 999px;
    background: #ffffff;
    color: #000000;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resource-detail-tools .ai-tool-card__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
}

.resource-detail-tools .ai-tool-card__view,
.resource-detail-tools .ai-tool-card__visit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    height: 32px;
    padding: 0 16px;
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: filter 0.2s ease;
}

.resource-detail-tools .ai-tool-card__view {
    background: #0363FB;
}

.resource-detail-tools .ai-tool-card__visit {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.733);
    color: #000000;
}

.resource-detail-tools .ai-tool-card__view:hover,
.resource-detail-tools .ai-tool-card__view:focus-visible,
.resource-detail-tools .ai-tool-card__visit:hover,
.resource-detail-tools .ai-tool-card__visit:focus-visible {
    filter: brightness(1.08);
}

.resource-detail-tools-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 18px 0 0;
    min-height: 44px;
    padding: 11px 20px;
    border-radius: 50px;
    background: #0363FB;
    color: #f4f0ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-align: center;
}

.resource-detail-tools-cta:hover,
.resource-detail-tools-cta:focus-visible {
    filter: brightness(1.08);
}

.resource-detail-header {
    margin: 0 0 2.25rem;
}

.resource-detail-title {
    margin: 0;
    color: #000000;
    font-size: clamp(2rem, 3.6vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.resource-detail-byline {
    margin: 0.9rem 0 0;
    font-size: 0.95rem;
}

.resource-detail-intro {
    margin: 1.1rem 0 0;
    max-width: 820px;
    color: #000000;
    font-size: clamp(1.02rem, 1.3vw, 1.2rem);
    font-weight: 400;
    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: 400;
    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: #ffffff;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.resource-detail-link:hover {
    color: #b6b6b6;
}

.resource-detail-extras {
    margin-top: 2.75rem;
    padding-top: 2.25rem;
}

.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: 0;
    border-radius: 999px;
    background: #0363FB;
    color: #ffffff;
    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: rgb(131, 131, 131);
    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-meta {
    font-size: 0.78rem;
}

.resource-related-grid .resource-card-category {
    font-size: 0.88rem;
}

/* Tablet */
@media (max-width: 991px) {
    .breadcrumbs-section {
        padding: 1.5rem var(--page-gutter) 0.65rem;
    }

    .breadcrumbs {
        font-size: 1rem;
        gap: 10px;
    }

    .resources-hero {
        padding: 3.5rem var(--page-gutter) 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 var(--page-gutter) 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 var(--page-gutter) 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 var(--page-gutter) 4rem;
    }

    .resource-detail-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .resource-detail-tools {
        position: static;
        max-width: 420px;
    }

    .resource-detail-tools-list {
        max-height: none;
        overflow: visible;
    }

    .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 var(--page-gutter) 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 var(--page-gutter) 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 var(--page-gutter) 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 var(--page-gutter) 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 var(--page-gutter) 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;
    }
}
