/* All code comments in English */

/* Reuse your existing header/typography styles from the grid version */
.section__resources-center {
    padding: 60px 0;
}

.section__resources-center>* {
    font-family: 'Geist', sans-serif;
}

.resources-header .resources-header__top {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}

.resources-header .resources-header__top:after {
    content: "";
    flex: 1;
    height: 1px;
    background: #000;
    opacity: .2;
    order: 2;
}

.resources-title {
    font-size: 38px;
    color: #2A1C4A;
    order: 1;
}

.resources-subtitle {
    margin-bottom: 40px;
    font-size: 18px;
    color: #2A1C4A;
    opacity: .5;
}

/* Card stays identical for visual parity */
.resource-card {
    border: 1px solid #262365;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, .45);
    overflow: hidden;
    background: #fff;
}

.resource-card .resource-image,
.resource-card .resource-image img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.resource-card .resource-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.resource-title {
    font-size: 16px;
    font-weight: 500;
    min-height: 40px;
    margin-bottom: 10px;
}

.resource-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.resource-btn {
    padding: 12px 30px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 2000px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid #3b11a2;
    gap: 5px;
}

.resource-btn--main {
    background: #3b11a2;
    color: #fff;
}

.resource-btn--secondary {
    background: transparent;
    color: #3b11a2;
}

.resource-btn--preview {
    padding: 11px 12px 13px;
}

/* Splide specifics – 3 per view desktop, dots centered like your screenshot */
.section__resources-center--slider .splide__slide {
    padding: 0 12px;
}

.section__resources-center--slider .splide__list {
    align-items: stretch;
}

.section__resources-center--slider .splide__slide .resource-card {
    height: 100%;
}

/* Dots/pagination */
.section__resources-center--slider .splide__pagination {
    position: static;
    margin-top: 16px;
    gap: 8px;
}

/* Optional arrows if you enable them */
.section__resources-center--slider .splide__arrow {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.section__resources-center--slider .splide__track {
    padding: 10px 0;
    margin: -10px -12px 0;
}

.section__resources-center--slider .splide__pagination__page {
    background: rgb(38 35 101 / 10%);
    border: 1px solid #ABA8E9;
    border-radius: 50%;
    display: inline-flex;
    height: 15px;
    margin: 3px;
    opacity: 1;
    padding: 0;
    transition: 0.2s linear;
    width: 15px;
    position: relative;
    justify-content: center;
    align-items: center;
    transform: scale(1)!important;
}

.section__resources-center--slider .splide__pagination__page.is-active::before {
    content: "";
    width: 9px;
    height: 9px;
    background: #3C10A6;
    border-radius: 50%;
    transform: scale(1)!important;
}

/* Footer button reused */
.resources-center-btn {
    padding: 15px 50px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #3b11a2;
    color: #fff;
    border-radius: 2000px;
    margin-top: 40px;
    font-size: 16px;
    font-weight: 600;
    gap: 5px;
}

/* ==== Lightbox (image preview) and Code modal (re-use from your working version) ==== */
.resource-image.open-lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999999;
    background: rgb(0 0 0 / 70%);
    opacity: 0;
    transition: opacity .25s ease;
    overflow: auto;
}

.resource-image.open-lightbox.visible {
    opacity: 1;
}

.resource-image.open-lightbox img {
    cursor: zoom-in;
    transition: transform .25s ease;
}

.resource-image.open-lightbox img.zoomed {
    transform: scale(2);
    cursor: zoom-out;
}

.resource-image.open-lightbox .lightbox-hint {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    color: rgba(255, 255, 255, .8);
    cursor: pointer;
}

/* Code modal */
.code-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999999;
    opacity: 0;
    transition: opacity .25s ease;
}

.code-lightbox.visible {
    opacity: 1;
}

.code-lightbox__inner {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    width: 90%;
    max-width: 520px;
    max-height: 80vh;
    overflow: auto;
    box-shadow: 0 0 40px rgba(0, 0, 0, .2);
}

.code-lightbox__close {
    position: absolute;
    top: 14px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 22px;
    color: #333;
    cursor: pointer;
}

.code-lightbox__inner h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #555;
    font-weight: 600;
}

.code-lightbox__code {
    background: #f5f5f7;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 6px;
    font-family: monospace;
    color: #333;
    font-size: .9rem;
    white-space: pre-wrap;
    word-break: break-word;

    code {
        display: block !important;
    }
}

.copy-code-btn {
    display: inline-block;
    margin-top: 12px;
    background: #3b11a2;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 20000px;
    font-size: .85rem;
    cursor: pointer;
}

.copy-code-btn.copied {
    background: #4caf50;
}

.custom-splide__arrows {
    display: flex;
    gap: 12px;
    order: 3;
}

.resources-splide .custom-splide__arrow,
.resources-splide .splide__arrow,
.section__resources-center--slider .custom-splide__arrow,
.section__resources-center--slider .splide__arrow {
    -ms-flex-align: center;
    align-items: center;
    background: #ccc;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: -ms-flexbox;
    display: flex;
    height: 2em;
    -ms-flex-pack: center;
    justify-content: center;
    opacity: .7;
    padding: 0;
    position: relative;
    top: unset;
    transform: unset;
    width: 2em;
    z-index: 1;
}

.resources-splide .splide__arrow,
.resources-splide .custom-splide__arrow,
.section__resources-center--slider .splide__arrow,
.section__resources-center--slider .custom-splide__arrow {
    width: 58px;
    height: 58px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #C6C4EA;
    background-color: rgb(38 35 101 / 9%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    filter: drop-shadow(4px 4px 4px rgba(39, 35, 101, 0.38));
}

.resources-splide .splide__arrow--prev,
.resources-splide .custom-splide__arrow--prev,
.section__resources-center--slider .splide__arrow--prev,
.section__resources-center--slider .custom-splide__arrow--prev {
    right: auto !important;
    left: -85px !important;
}

.resources-splide .splide__arrow:after,
.resources-splide .custom-splide__arrow:after,
.section__resources-center--slider .splide__arrow:after,
.section__resources-center--slider .custom-splide__arrow:after {
    content: url(../../public/images/arrow-circle-v2.svg);
    min-width: 32px;
    max-width: 32px;
    min-height: 32px;
    max-height: 32px;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.resources-splide .splide__arrow--prev:after,
.resources-splide .custom-splide__arrow--prev:after,
.section__resources-center--slider .splide__arrow--prev:after,
.section__resources-center--slider .custom-splide__arrow--prev:after {
    transform: rotate(180deg);
}

.resources-splide .splide__arrow svg,
.resources-splide .custom-splide__arrow svg,
.section__resources-center--slider .splide__arrow svg,
.section__resources-center--slider .custom-splide__arrow svg {
    display: none;
}

.section__resources-center--slider .splide__arrows.splide__arrows--ltr {
    display: none;
}

.section__resources-center--slider .splide__arrow--prev,
.section__resources-center--slider .custom-splide__arrow--prev,
.section__resources-center--slider .splide__arrow--next,
.section__resources-center--slider .custom-splide__arrow--next {
    top: unset!important;
    transform: unset!important;
    right: unset!important;
    left: unset!important;
}
