.resource-hero {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    background: #fff;
    margin-bottom: 50px;
}

.resource-hero__heading {
    text-align: center;
    max-width: 685px;
}

.resource-hero__label {
    display: block;
    font-family: var(--font-family);
    font-weight: 800;
    font-size: 24px;
    line-height: 40px;
    letter-spacing: 4.8px;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    opacity: 0.8;
}

.resource-hero__title {
    font-family: var(--font-family-serif);
    font-weight: 700;
    font-size: 64px;
    line-height: 1.3;
    color: var(--color-primary-dark);
    margin: 0;
}

.resource-hero__filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 1062px;
    padding: 8px 32px;
}

.resource-filter {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 8px 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 100px;
    background: #fff;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    line-height: 40px;
    color: rgba(13, 14, 18, 0.7);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .resource-filter:hover {
        border-color: rgba(72, 192, 255, 0.5);
    }

    .resource-filter.active {
        border-color: #60e8ff;
        box-shadow: 0px 2px 2px 0px rgba(0, 95, 145, 0.25), 0px 0px 16px 0px rgba(72, 192, 255, 0.8);
    }

.resource-featured {
    padding: 0 80px;
    background: #fff;
    margin-bottom: 100px;
}

.resource-featured__card {
    display: flex;
    align-items: center;
    gap: 23px;
    max-width: 1280px;
    margin: 0 auto;
    border-radius: 20px;
    position: relative;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .resource-featured__card:hover .resource-featured__image img {
        transform: scale(1.05);
    }

.resource-featured__shape {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.resource-featured__image {
    flex-shrink: 0;
    width: 516px;
    height: 398px;
    border-radius: 20px 0 0 20px;
    overflow: hidden;
}

    .resource-featured__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.resource-featured__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    flex: 1;
    padding: 16px 64px 20px 20px;
}

.resource-featured__arrow {
    position: absolute;
    right: 24px;
    bottom: 7px;
    width: 42px;
    height: 42px;
    z-index: 5;
    transition: transform 0.3s ease;
}

.resource-featured__meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.resource-featured__text-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resource-featured__date {
    font-family: var(--font-family-serif);
    font-weight: 700;
    font-size: 14px;
    color: #000;
}

.resource-featured__title {
    font-family: var(--font-family-serif);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.3;
    color: #000;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.resource-featured__desc {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5;
    color: #000;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}

.resource-featured__tag {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    height: 34px;
    padding: 0 14px;
    background: #b8e7ff;
    border: 1px solid #48c0ff;
    border-radius: 100px;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: var(--color-primary-dark, #004cc8);
    margin-right: 64px;
    white-space: nowrap;
}

.resource-grid {
    padding: 0 clamp(16px, calc(10vw + 8px), 80px);
    background: #fff;
}

.resource-grid__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding-bottom: 100px;
}

.resource-card {
    position: relative;
}

.resource-card__link {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: 480px;
    text-decoration: none;
    color: inherit;
    background-color: transparent;
    background-image: url('/img/resource-card.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    border-radius: 20px 20px 0 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card__image {
    width: 100%;
    height: 210px;
    margin: 0;
    padding: 0;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    flex-shrink: 0;
}

    .resource-card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }

.resource-card__link:hover .resource-card__image img {
    transform: scale(1.05);
}

.resource-card__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 16px 24px 24px;
    flex: 1;
}

.resource-card__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.resource-card__date {
    font-family: var(--font-family-serif);
    font-weight: 700;
    font-size: 14px;
    color: #000;
}

.resource-card__title {
    font-family: var(--font-family-serif);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    color: #000;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.resource-card__desc {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.45;
    color: #000;
    margin: 0;
    height: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.resource-card__tag {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    height: 38px;
    padding: 8px 12px;
    background: #b8e7ff;
    border: 2px solid #48c0ff;
    border-radius: 100px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    line-height: 40px;
    color: var(--color-primary-dark);
    white-space: nowrap;
}

.resource-grid__more {
    display: flex;
    justify-content: center;
    margin-bottom: 100px;
}

.resource-grid__more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    min-width: 193px;
    height: 48px;
    border: 3px solid #004cc8;
    border-radius: 25px;
    background: #fff;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2.7px;
    color: var(--color-primary-dark);
    text-transform: capitalize;
    cursor: pointer;
    box-shadow: 0px 2px 2px 0px rgba(1, 23, 60, 0.25), 0px 0px 16px 0px rgba(0, 76, 200, 0.5);
    transition: all 0.3s ease;
}

    .resource-grid__more-btn:hover {
        background: var(--color-primary-dark);
        color: #fff;
        border-color: var(--color-primary-dark);
    }

.resource-detail__hero {
    padding: calc(var(--header-height) + 50px) 80px 0;
    background: #fff;
}

    .resource-detail__hero img {
        width: 100%;
        max-width: 1280px;
        height: 400px;
        object-fit: cover;
        border-radius: 20px;
        display: block;
        margin: 0 auto;
    }

.resource-detail__header {
    padding: 48px 0 0;
    background: #fff;
}

.resource-detail__header-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
}

.resource-detail__header-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 100%;
}

.resource-detail__info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.resource-detail__meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.resource-detail__date,
.resource-detail__reading-time {
    font-family: var(--font-family-serif);
    font-weight: 700;
    font-size: 14px;
    color: #000;
}

.resource-detail__separator {
    width: 1px;
    height: 21px;
    background: rgba(0, 0, 0, 0.2);
    margin: 0 3px;
}

.resource-detail__title {
    font-family: var(--font-family-serif);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.3;
    color: #000;
    margin: 0;
}

.resource-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.resource-detail__tag {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 8px 12px;
    background: #b8e7ff;
    border: 2px solid #48c0ff;
    border-radius: 100px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    line-height: 40px;
    color: var(--color-primary-dark);
    white-space: nowrap;
    text-decoration: none;
}

.resource-detail__share {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding-right: 12px;
    flex-shrink: 0;
}

.resource-detail__share-label {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 16px;
    color: #000;
}

.resource-detail__share-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

    .resource-detail__share-icons a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        transition: opacity 0.2s ease;
    }

        .resource-detail__share-icons a:hover {
            opacity: 0.7;
        }

        .resource-detail__share-icons a > img {
            filter: brightness(0) saturate(100%) invert(0%) sepia(1%) saturate(3%) hue-rotate(326deg) brightness(96%) contrast(104%);
        }

.resource-detail__wrapper {
    max-width: clamp(844px, calc(50vw + 80px), 1280px);
    margin: 0 auto;
    background: #fff;
    padding-bottom: 120px;
}

.resource-detail__content {
    padding: 64px 0 0;
}

    .resource-detail__content p a {
        color: #000;
    }

.resource-detail__intro {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 20px;
    line-height: 32px;
    color: #000;
    margin: 0 0 42px;
}

.resource-detail__section {
    margin-bottom: 42px;
}

    .resource-detail__section:last-child {
        margin-bottom: 0;
    }

    .resource-detail__section h2 {
        font-family: var(--font-family);
        font-weight: 700;
        font-size: 24px;
        line-height: 32px;
        color: #000;
        margin: 0 0 24px;
    }

    .resource-detail__section p {
        font-family: var(--font-family);
        font-weight: 400;
        font-size: 20px;
        line-height: 32px;
        color: #000;
        margin: 0 0 16px;
    }

        .resource-detail__section p:last-child {
            margin-bottom: 0;
        }

.resource-detail__popular {
    padding: 0 80px 80px;
    background: #fff;
}

.resource-detail__popular-title {
    font-family: var(--font-family-serif);
    font-weight: 700;
    font-size: 40px;
    line-height: 1;
    color: var(--color-primary-dark);
    text-align: center;
    margin: 0 0 48px;
}

.resource-detail__popular-grid {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

.swiper-resource {
    visibility: hidden;
    opacity: 0;
}

    .swiper-resource.swiper-initialized {
        visibility: visible;
        opacity: 1;
        transition: opacity 0.1s ease;
    }

.resource-grid.success-stories .resource-card__image {
    height: 245px;
}

    .resource-grid.success-stories .resource-card__image img {
        object-position: left center;
    }

.resource-detail__hero.success-stories-detail > img {
    height: unset;
    object-fit: contain;
}

.section__body {
    margin: 0 0 64px;
}

    .section__body .publitas-container {
        position: relative;
        width: 100%;
        height: 80vh;
        min-height: 600px;
        max-height: 900px;
        overflow: hidden;
    }

        .section__body .publitas-container > iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 0;
            display: block;
            box-sizing: border-box;
        }

@media (max-width: 1280px) {
    .resource-featured__title {
        font-size: 24px;
    }

    .resource-featured__desc {
        font-size: 16px;
    }
}

@media (max-width: 1199.98px) {

    .resource-grid__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .resource-featured__title {
        font-size: 20px;
    }

    .resource-featured__content {
        padding: 0 16px;
    }

    .resource-featured__arrow {
        right: 12px;
    }
}

@media (max-width: 991.98px) {

    .resource-hero {
        padding-top: calc(var(--header-height) + 24px);
        gap: 24px;
    }

    .resource-hero__label {
        font-size: 20px;
        letter-spacing: 4px;
    }

    .resource-hero__title {
        font-size: 32px;
        font-weight: 700;
    }

    .resource-hero__filters-list {
        padding: 8px 20px;
    }

    .resource-hero__filters-mobile select {
        width: 100%;
        height: 48px;
        padding: 0 44px 0 20px;
        color: #004CC8;
        font-size: 14px;
        font-weight: 600;
        line-height: 150%;
        background-color: #fff;
        border: 0.5px solid rgba(13, 14, 18, 0.30);
        border-radius: 8px;
        outline: none;
        cursor: pointer;
        box-shadow: 0 0 20px 0 rgba(70, 70, 70, 0.10);
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23004CC8' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 16px center;
        background-size: 24px;
        transition: all 0.3s ease;
    }

    .resource-featured {
        padding: 0 24px;
        margin-bottom: 36px;
    }

    .resource-featured__image {
        width: 380px;
        border-radius: 12px 0 0 12px;
    }

    .resource-featured__arrow {
        right: 0;
    }

    .resource-featured__desc {
        font-size: 16px;
    }

    .resource-grid {
        padding: 24px 24px 60px;
    }

    .resource-detail__hero {
        padding: calc(var(--header-height) + 30px) 24px 0;
    }

        .resource-detail__hero img {
            height: 280px;
        }

    .resource-detail__header {
        padding: 32px 24px 0;
    }

    .resource-detail__header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .resource-detail__title {
        font-size: 26px;
    }

    .resource-detail__content {
        padding: 48px 24px 0;
    }

    .resource-detail__intro,
    .resource-detail__section p {
        font-size: 18px;
        line-height: 30px;
    }

    .resource-detail__section h2 {
        font-size: 22px;
    }

    .resource-detail__popular {
        padding: 80px 24px 60px;
    }

    .resource-detail__popular-title {
        font-size: 32px;
    }

    .resource-detail__popular-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .section__body {
        margin: 0 0 32px;
    }

        .section__body .publitas-container {
            height: 70vh;
        }
}

@media (max-width: 767.98px) {

    .resource-featured__title {
        font-size: 24px;
    }

    .resource-detail__hero {
        padding: calc(var(--header-height) + 16px) 16px 0;
    }

        .resource-detail__hero img {
            height: 200px;
            border-radius: 12px;
        }

    .resource-detail__header {
        padding: 24px 16px 0;
    }

    .resource-detail__title {
        font-size: 22px;
    }

    .resource-detail__tags {
        gap: 8px;
    }

    .resource-detail__tag {
        font-size: 12px;
        height: 32px;
        padding: 6px 10px;
    }

    .resource-detail__share {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .resource-detail__content {
        padding: 32px 16px 0;
    }

    .resource-detail__intro,
    .resource-detail__section p {
        font-size: 16px;
        line-height: 28px;
    }

    .resource-detail__section h2 {
        font-size: 20px;
    }

    .resource-detail__section {
        margin-bottom: 32px;
    }

    .resource-detail__intro {
        margin-bottom: 32px;
    }

    .resource-detail__popular {
        padding: 60px 16px 48px;
    }

    .resource-detail__popular-title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .resource-detail__popular-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .resource-hero {
        padding: calc(var(--header-height) + 50px) 20px 0;
        gap: 20px;
    }

    .resource-hero__filters-list {
        gap: 8px;
        padding: 8px 16px;
    }

    .resource-hero__filters,
    .resource-hero__filters-mobile {
        width: 100%;
    }

    .resource-filter {
        font-size: 13px;
        height: 34px;
        padding: 6px 10px;
    }

    .resource-featured {
        padding: 0 20px;
        margin-bottom: 120px;
    }

    .resource-featured__card {
        display: flex;
        flex-direction: column;
        position: relative;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        background-color: transparent;
        background-image: url('/img/resource-featured-card.svg');
        background-repeat: no-repeat;
        background-position: center;
        background-size: 100% 100%;
        border-radius: 20px 20px 0 20px;
        overflow: hidden;
        padding-bottom: 28px;
        height: 90dvh;
    }

    .resource-featured__image {
        width: 100%;
        height: 405px;
        margin: 0;
        padding: 0;
        border-radius: 20px 20px 0 0;
        overflow: hidden;
        flex-shrink: 0;
    }

        .resource-featured__image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .resource-featured__content {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 20px 20px 0 20px;
        box-sizing: border-box;
    }

    .resource-featured__arrow {
        position: absolute;
        right: 12px;
        bottom: 0;
        width: 42px;
        height: 42px;
        z-index: 5;
    }

    .resource-featured__desc {
        -webkit-line-clamp: 7;
        line-clamp: 7;
    }

    .resource-featured__shape {
        display: none;
    }

    .resource-grid {
        padding: 0 20px;
    }

    .resource-grid__container {
        grid-template-columns: 1fr;
        padding-bottom: 48px;
    }

    .resource-card__link {
        height: auto;
    }

    .success-stories .resource-card__link {
        height: 480px;
    }

    .resource-card__shape {
        display: none;
    }

    .resource-grid__more-btn {
        font-size: 16px;
        min-width: 170px;
        height: 44px;
    }
}
