/* Shared 100RFS page shell + vintage sample cards (matches index.html) */
.page-wrapper {
    overflow: clip !important;
}

.rtl {
    text-align: right;
}

.rfs-page-content {
    direction: rtl;
    text-align: right;
}

.rfs-page-content .theme-btn.btn-style-one,
.rfs-page-content .theme-btn.btn-style-one-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
}

.rfs-page-content .theme-btn .btn-wrap {
    float: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
    text-align: center;
    overflow: hidden;
    line-height: 1.5;
    min-height: 26px;
    height: 26px;
    vertical-align: middle;
}

.rfs-page-content .theme-btn .btn-wrap .text-one,
.rfs-page-content .theme-btn .btn-wrap .text-two {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
    height: 26px;
    white-space: nowrap;
}

.rfs-sample-card {
    background: #f4f0e9;
    border: 2px solid #222;
    border-radius: 5px;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.08);
    padding: 16px;
    display: flex;
    flex-direction: column;
    direction: rtl;
    text-align: right;
    min-width: 0;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rfs-sample-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
}

.rfs-sample-card__img {
    aspect-ratio: 3 / 2;
    width: 100%;
    border: 2px solid #222;
    border-radius: 4px;
    overflow: hidden;
    background: #ddd;
    margin-bottom: 14px;
}

.rfs-sample-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rfs-sample-card__id {
    font-size: 22px;
    font-weight: 800;
    color: var(--main-color);
    margin: 0 0 10px;
    letter-spacing: 0.06em;
    width: 100%;
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
}

.rfs-sample-card__desc {
    font-size: 14px;
    line-height: 1.85;
    color: #555;
    margin: 0 0 16px;
    flex: 1;
}

.rfs-sample-card__title {
    font-size: 15px;
    line-height: 1.75;
    font-weight: 700;
    color: #222;
    margin: 0 0 16px;
    flex: 1;
}

.rfs-sample-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: flex-start;
    flex-direction: row-reverse;
    padding: 10px 18px;
    background: #1212f9;
    color: #fff;
    border: 2px solid #000;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.15);
    transition: background 0.25s ease, transform 0.25s ease;
}

.rfs-sample-card__btn:hover {
    background: #0e0ec7;
    color: #fff;
    transform: translate(-1px, -1px);
}

.rfs-sample-card__btn .fa {
    font-size: 12px;
}

.rfs-sample-card .theme-btn.rfs-card-action {
    align-self: flex-start;
}

.rfs-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--main-color);
    text-decoration: none;
    margin-bottom: 28px;
    border: 2px solid var(--main-color);
    padding: 8px 16px;
    border-radius: 4px;
    background: #fff;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, background 0.2s ease;
}

.rfs-detail-back:hover {
    color: #fff;
    background: var(--main-color);
    transform: translate(-2px, -2px);
}

@media (max-width: 991px) {
    .rfs-all-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 575px) {
    .rfs-all-grid {
        grid-template-columns: 1fr !important;
    }
}
