/* ===================================================
 * ROAYATY OUR WORKS SECTION (SINGLE-LINE SLIDER)
 * =================================================== */

:root {
    --gold-primary: #b88a3e;
    --gold-dark: #9e7029;
    --bg-light: #fbfbf9;
    --text-dark: #221c14;
    --border-color: #eae7e1;
    --radius-card: 14px;
}

.roayaty-works-section {
    padding: 60px 20px;
    background-color: var(--bg-light);
    width: 100%;
    box-sizing: border-box;
}

.works-container {
    max-width: 1320px;
    margin: 0 auto;
}

/* Section Title */
.works-section-title {
    text-align: center;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 35px 0;
}

/* Carousel Outer Shell */
.works-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

/* Round Side Navigation Arrows */
.works-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: #888077;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    z-index: 2;
}

.works-nav-btn:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(184, 138, 62, 0.25);
}

/* Single-Line Scroll Container */
.works-track-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    
    /* Horizontal Slider Controls */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    white-space: nowrap;
    
    /* Hide Scrollbars */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.works-track-container::-webkit-scrollbar {
    display: none;
}

/* Work Card (Strict Flex Width for Desktop - 4 visible at once) */
.work-card {
    flex: 0 0 calc((100% - 54px) / 4);
    min-width: 250px;
    height: 180px;
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    text-decoration: none !important;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    scroll-snap-align: start;
    box-sizing: border-box;
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Background Image Layer */
.work-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.work-card:hover .work-card-bg {
    transform: scale(1.08);
}

/* Dark Overlay */
.work-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.6) 50%,
        rgba(10, 10, 10, 0.2) 100%
    );
    transition: opacity 0.3s ease;
}

.work-card:hover .work-card-overlay {
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.98) 0%,
        rgba(184, 138, 62, 0.5) 100%
    );
}

/* Centered Title Text */
.work-card-content {
    position: relative;
    z-index: 2;
    padding: 20px 15px;
    width: 100%;
    text-align: center;
}

.work-card-title {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.2px;
    white-space: normal; /* Allows title to wrap normally if multi-line */
}

/* Centered CTA Button */
.works-footer-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 35px;
}

.view-all-works-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 10px 26px;
    text-decoration: none !important;
    color: var(--gold-dark) !important;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.view-all-works-btn i {
    font-size: 0.75rem;
    color: var(--gold-primary);
}

.view-all-works-btn:hover {
    background: var(--gold-primary);
    color: #ffffff !important;
    border-color: var(--gold-primary);
    box-shadow: 0 6px 18px rgba(184, 138, 62, 0.25);
}

.view-all-works-btn:hover i {
    color: #ffffff;
}

/* ===================================================
 * RESPONSIVE BREAKPOINTS
 * =================================================== */

@media (max-width: 1024px) {
    .work-card {
        flex: 0 0 calc((100% - 18px) / 2); /* 2 items visible on tablet */
        height: 170px;
    }
}

@media (max-width: 600px) {
    .roayaty-works-section {
        padding: 40px 16px;
    }

    .works-section-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .works-carousel-wrapper {
        gap: 8px;
    }

    .works-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .work-card {
        flex: 0 0 100%; /* 1 item visible on mobile */
        height: 160px;
    }

    .works-footer-center {
        margin-top: 25px;
    }

    .view-all-works-btn {
        width: 100%;
        justify-content: center;
    }
}