.section__resources-center {
    padding: 60px 0;

    > * {
        font-family: 'Geist', sans-serif;
    }
}

.resources-header {

    .resources-header__top {
        display: flex;
        align-items: center;
        gap: 30px;
        margin-bottom: 50px;
    }

    .resources-header__top:after {
        content: "";
        width: 100%;
        display: block;
        position: relative;
        height: 1px;
        background: #000;
        opacity: 0.2;
    }

    .resources-title {
        font-size: 38px;
        color: #2A1C4A;
    }

    .resources-subtitle {
        margin-bottom: 40px;
        font-size: 18px;
        color: #2A1C4A;
        opacity: 0.5;
    }
}

.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;
}

.resource-card {
    border: 1px solid #262365;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    box-shadow: 2px 2px 4px 0px rgb(0 0 0 / 45%);
    overflow: hidden;

    .resource-image,
    .resource-image img {
        object-fit: cover;
        width: 100%;
    }

    .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;
    }
}

/* All code comments in English */
.resource-image.open-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999999999;
    background: rgb(0 0 0 / 70%);
    border-radius: 0;
    opacity: 0;
    transition: all .25s ease;
    overflow: auto;

    img {
        cursor: zoom-in;
    }

    img.zoomed {
        scale: 2;
        cursor: zoom-out;
    }
}

.resource-image.open-lightbox.visible {
  opacity: 1;
}

/* Lightbox hint/icon (close indicator) */
.resource-image.open-lightbox .lightbox-hint {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  line-height: 1;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
  user-select: none;
}

.resource-image.open-lightbox .lightbox-hint:hover {
  color: #fff;
  transform: scale(1.15);
}

/* All code comments in English */
.code-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999999999;
  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: 0.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: 0.85rem;
    cursor: pointer;
    transition: background .2s ease;
}

.copy-code-btn.copied {
  background: #4caf50;
}


