/* ===================================================
 * ROAYATY PARTNERS SECTION (SCROLLABLE FLEX CAROUSEL)
 * =================================================== */

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

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

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

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

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

/* Round Side Navigation Arrows */
.partners-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--card-bg);
    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;
}

.partners-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);
}

/* Main Single-Line Scroll Container */
.partners-logos-container {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    
    /* Precise Snap Settings */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    
    /* Hide Scrollbars */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.partners-logos-container::-webkit-scrollbar {
    display: none;
}

/* Ensure individual item snaps cleanly */
.partner-item {
    flex: 0 0 calc((100% - 150px) / 6);
    min-width: 140px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-sizing: border-box;
    scroll-snap-align: center; /* Snaps cleanly to the center of each logo */
}

.partner-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: opacity(0.88);
    transition: all 0.3s ease;
}

.partner-item:hover .partner-logo {
    filter: opacity(1);
    transform: scale(1.05);
}

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

@media (max-width: 1100px) {
    .partner-item {
        flex: 0 0 calc((100% - 60px) / 4); /* Show 4 items on tablet */
    }
}

@media (max-width: 650px) {
    .roayaty-partners-section {
        padding: 35px 12px;
    }

    .partners-section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

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

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

    .partners-logos-container {
        padding: 16px 10px;
        gap: 20px;
    }

    .partner-item {
        flex: 0 0 calc((100% - 20px) / 2); /* Show 2 items on mobile */
        height: 50px;
        min-width: 110px;
    }
}