.rtex-wrap {
    font-family: 'Work Sans', system-ui, sans-serif;
    padding: 60px 24px;
    color: #1d2327;
}
.rtex-hd { text-align: center; margin-bottom: 48px; }
.rtex-hd-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(28px,4vw,42px);
    font-weight: 700;
    margin: 0 0 8px;
    color: #1d2327;
}
.rtex-hd-desc {
    font-size: 16px;
    color: #6b7280;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}
.rtex-hd-line { display: flex; justify-content: center; margin-top: 20px; }
.rtex-hd-line span { width: 60px; height: 3px; background: #31e0ff; border-radius: 3px; }

.rtex-grid {
    display: grid;
    grid-template-columns: repeat(var(--c,4),1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.rtex-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: transform .3s, box-shadow .3s, border-color .3s;
    outline: none;
}
.rtex-card:focus-visible { outline: 2px solid #31e0ff; outline-offset: 2px; }
.rtex-card:hover,
.rtex-card:focus-visible { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.12); border-color: #31e0ff; }

.rtex-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.rtex-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rtex-card-ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: #f3f4f6; color: #9ca3af;
}
.rtex-card-ph .dashicons { font-size: 48px; width: 48px; height: 48px; }
.rtex-card-bd { padding: 16px 20px 20px; }
.rtex-card-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #1d2327;
}

/* Modal */
.rtex-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.rtex-modal.open { display: flex; }
.rtex-modal-bg {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.55);
}
.rtex-modal-box {
    position: relative;
    background: #fff;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,.3);
}
.rtex-modal-x {
    position: absolute; top: 8px; right: 14px;
    background: none; border: none;
    font-size: 32px; line-height: 1;
    color: #6b7280; cursor: pointer;
    z-index: 2; padding: 4px 8px;
}
.rtex-modal-in { display: flex; min-height: 320px; }
.rtex-modal-img {
    flex: 0 0 320px;
    min-height: 320px;
    background: #f3f4f6;
}
.rtex-modal-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rtex-modal-txt {
    flex: 1;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.rtex-modal-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1d2327;
}
.rtex-modal-body {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
    text-align: justify;
}
.rtex-modal-body p { margin: 0 0 10px; text-align: justify; }
.rtex-modal-body p:last-child { margin-bottom: 0; }

@media (max-width: 767px) {
    .rtex-wrap { padding: 40px 16px; }
    .rtex-grid { grid-template-columns: repeat(2,1fr); gap: 16px; }
    .rtex-modal-in { flex-direction: column; }
    .rtex-modal-img { flex: 0 0 200px; min-height: 200px; }
    .rtex-modal-txt { padding: 24px 20px; }
}
@media (max-width: 480px) {
    .rtex-grid { grid-template-columns: 1fr; }
}
