.trhs-slider {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.trhs-width-1200 {
    max-width: 1200px;
}

.trhs-width-1400 {
    max-width: 1400px;
}

.trhs-width-full {
    max-width: none;
}

.trhs-hero {
    display: grid;
    width: 100%;
    height: 560px;
    margin: 0;
    background: #f5f5f5;
    border-radius: 14px;
    overflow: hidden;
    box-sizing: border-box;
}

.trhs-ratio-40-60 .trhs-hero {
    grid-template-columns: 40% 60%;
}

.trhs-ratio-45-55 .trhs-hero {
    grid-template-columns: 45% 55%;
}

.trhs-ratio-50-50 .trhs-hero {
    grid-template-columns: 50% 50%;
}

.trhs-content {
    min-width: 0;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.trhs-eyebrow {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.trhs-title {
    font-size: 42px;
    line-height: 1.1;
    margin: 0 0 18px;
}

.trhs-text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.trhs-button {
    display: inline-block;
    width: fit-content;
    padding: 12px 20px;
    background: #4A90E2;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

.trhs-image {
    position: relative;
    min-width: 0;
    height: 560px;
    overflow: hidden;
}

.trhs-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

@media (max-width: 767px) {

    .trhs-slider {
        width: 100%;
        max-width: 100%;
    }

    .trhs-hero {
        grid-template-columns: 1fr !important;
        height: auto;
    }

    .trhs-content {
        padding: 30px 24px;
    }

    .trhs-title {
        font-size: 32px;
    }

    .trhs-image {
        height: 320px;
    }
}

/* Ensure theme image rules cannot override the hero image frame. */
.trhs-image img.trhs-photo {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
}

/* Carousel structure */
.trhs-slider {
    position: relative;
}

.trhs-track {
    position: relative;
}

.trhs-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.trhs-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

/* Previous / Next controls */
.trhs-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
    color: #263238;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.trhs-prev {
    left: 14px;
}

.trhs-next {
    right: 14px;
}

.trhs-nav:hover,
.trhs-nav:focus-visible {
    background: #ffffff;
}

.trhs-nav:focus-visible,
.trhs-dot:focus-visible,
.trhs-slider:focus-visible {
    outline: 3px solid #4A90E2;
    outline-offset: 3px;
}

/* Pagination dots */
.trhs-pagination {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.trhs-dot {
    width: 11px;
    height: 11px;
    min-width: 11px;
    padding: 0;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.trhs-dot[aria-current="true"] {
    background: #4A90E2;
}

@media (max-width: 767px) {

    .trhs-nav {
        width: 42px;
        height: 42px;
    }

    .trhs-prev {
        left: 8px;
    }

    .trhs-next {
        right: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .trhs-slide {
        transition: none;
    }
}

/* Keep navigation arrows inside the image area. */
.trhs-ratio-40-60 {
    --trhs-image-start: 40%;
}

.trhs-ratio-45-55 {
    --trhs-image-start: 45%;
}

.trhs-ratio-50-50 {
    --trhs-image-start: 50%;
}

.trhs-prev {
    left: calc(var(--trhs-image-start, 40%) + 14px);
}
