.rtw-section {
    max-width: 100%;
}

.rtw-nav {
    display: flex;
    overflow-x: auto;
    gap: 32px;
    margin-bottom: 36px;
    padding-bottom: 0;
    border-bottom: 1px solid #e5e5e5;
    scrollbar-width: none;
}
.rtw-nav::-webkit-scrollbar { display: none; }

.rtw-tab {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 0 16px;
    background: none;
    color: #9aa0a6;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: color .25s;
}
.rtw-tab.active {
    color: #15171c;
}
/* static underline shown when a tab is active (e.g. after manual click) */
.rtw-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 2px;
    width: 100%;
    background: #15171c;
    transform: scaleX(1);
    transform-origin: left;
}
.rtw-tab-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}
.rtw-tab-icon svg,
.rtw-tab-icon i {
    width: 100%;
    height: 100%;
    font-size: 16px;
    color: inherit;
}

/* when auto-rotating, the underline animates from 0 to full width instead of snapping in */
.rtw-tab.active.rtw-progress::after {
    animation: rtw-progress-anim linear;
    animation-duration: var(--rtw-speed, 3s);
}
@keyframes rtw-progress-anim {
    from { transform: scaleX(0); transform-origin: left; }
    to   { transform: scaleX(1); transform-origin: left; }
}

.rtw-content { position: relative; }

.rtw-pane {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.rtw-pane.active { display: grid; }

.rtw-pane-img img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.rtw-pane-body h3 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 700;
}
.rtw-pane-body p {
    margin: 0 0 12px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .rtw-pane { grid-template-columns: 1fr; }
    .rtw-pane-img { order: -1; }
}
