/* ===================================================
 * HERO SECTION & VERTICAL SLIDER FIX
 * =================================================== */

:root {
    --gold-primary: #b88a3e;
    --gold-dark: #9e7029;
    --bg-page: #fbfbf9;
    --text-dark: #221c14;
    --text-muted: #5e574f;
    --border-light: #eee9e0;
}

.roayaty-hero-section {
    width: 100%;
    background-color: var(--bg-page);
    padding: 30px 0 50px 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    box-sizing: border-box;
}

/* SWIPER CONTAINER HEIGHT FIXES */
.hero-swiper {
    width: 100%;
    height: 460px; /* Fixed height for vertical calculation */
    position: relative;
    padding-right: 30px;
}

.hero-swiper .swiper-wrapper {
    box-sizing: border-box;
}

.hero-swiper .swiper-slide {
    width: 100%;
    height: 100% !important;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* 2-COLUMN GRID LAYOUT */
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

/* LEFT COLUMN: IMAGE & TRANSPARENT RIGHT MASK */
.hero-image-col {
    width: 100%;
}

.hero-image-mask {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 65%, rgba(0, 0, 0, 0) 98%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 65%, rgba(0, 0, 0, 0) 98%);
}

.hero-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    border-radius: 16px 0 0 16px;
}

/* RIGHT COLUMN: CONTENT */
.hero-content-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-tagline {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold-primary);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: block;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.15;
    margin: 0 0 16px 0;
}

.hero-title .highlight-gold {
    color: var(--gold-primary);
}

.hero-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 28px 0;
    max-width: 480px;
}

/* BUTTONS */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-primary-gold {
    padding: 13px 26px;
    background-color: var(--gold-primary);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(184, 138, 62, 0.3);
    transition: all 0.3s ease;
}

.btn-primary-gold:hover {
    background-color: var(--gold-dark);
}

.btn-secondary-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary-outline i {
    color: var(--gold-primary);
}

.btn-secondary-outline:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* VERTICAL PAGINATION DOTS */
.hero-vertical-pagination {
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: auto !important;
    z-index: 10;
}

.hero-vertical-pagination .swiper-pagination-bullet {
    width: 6px !important;
    height: 6px !important;
    background-color: #e2d9cd !important;
    opacity: 1 !important;
    border-radius: 50% !important;
    margin: 0 !important;
    transition: all 0.35s ease !important;
    cursor: pointer;
}

.hero-vertical-pagination .swiper-pagination-bullet-active {
    height: 20px !important;
    border-radius: 10px !important;
    background-color: var(--gold-primary) !important;
}

/* RESPONSIVE STYLES */
@media (max-width: 992px) {
    .hero-swiper {
        height: auto;
        padding-right: 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-img {
        height: 300px;
        border-radius: 16px;
    }

    .hero-image-mask {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .hero-content-col {
        align-items: center;
        text-align: center;
    }

    .hero-vertical-pagination {
        display: none !important;
    }
}

/* ===================================================
 * RTL & HORIZONTAL SCROLL FIXES
 * =================================================== */

html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
}

/* Proper RTL Grid Swap and Alignment */
html[dir="rtl"] .roayaty-hero-section,
body.rtl .roayaty-hero-section {
    direction: ltr !important;
    text-align: right !important;
}

html[dir="rtl"] .hero-content-col,
body.rtl .hero-content-col {
    align-items: flex-start !important;
    text-align: right !important;
}

@media (min-width: 993px) {
    html[dir="rtl"] .hero-grid,
    body.rtl .hero-grid {
        direction: rtl !important;
        grid-template-columns: 1fr 1.15fr !important; /* Flips image and text columns cleanly */
    }

    /* Reverse image mask gradient for RTL view */
    html[dir="rtl"] .hero-image-mask,
    body.rtl .hero-image-mask {
        -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 65%, rgba(0, 0, 0, 0) 98%);
        mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 65%, rgba(0, 0, 0, 0) 98%);
    }

    html[dir="rtl"] .hero-img,
    body.rtl .hero-img {
        border-radius: 0 16px 16px 0;
    }

    /* Move pagination dots to the left side in RTL desktop mode */
    html[dir="rtl"] .hero-vertical-pagination,
    body.rtl .hero-vertical-pagination {
        right: auto !important;
        left: 0 !important;
    }

    html[dir="rtl"] .hero-swiper,
    body.rtl .hero-swiper {
        padding-right: 0 !important;
        padding-left: 30px !important;
    }
}

/* Mobile & Tablet RTL Adjustments */
@media (max-width: 992px) {
    html[dir="rtl"] .hero-grid,
    body.rtl .hero-grid {
        grid-template-columns: 1fr !important;
    }

    html[dir="rtl"] .hero-content-col,
    body.rtl .hero-content-col {
        align-items: center !important;
        text-align: center !important;
    }
}