/* ==========================================================================
   OFFICE GALLERY SECTION - FULL WIDTH SLIDER
   Path: carbon-block/templates/sections/office-gallery/style.css
   ========================================================================== */

.crb-block-fullwidth.sec-office-gallery,
.sec-office-gallery {
    padding-top: 50px;
    padding-bottom: 30px;
    background-color: var(--color-surface, #F7F2EE);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Khung tiêu đề giữ căn lề chuẩn hệ thống */
.sec-office-gallery .office-gallery__header,
.sec-office-gallery .crb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.sec-office-gallery .office-gallery__title {
    font-family: var(--font-heading, 'Cormorant SC', serif);
    font-size: var(--fs-h2, 32px);
    line-height: 1.2;
    font-weight: var(--fw-h3, 700);
    color: var(--text-title, #456967);
    margin-top: 0;
    margin-bottom: var(--space-heading-bottom, 20px);
    text-transform: none;
}

/* Khung Slider tràn 100% màn hình */
.sec-office-gallery .office-gallery__slider-wrapper {
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.sec-office-gallery .office-gallery__swiper {
    width: 100%;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.sec-office-gallery .office-gallery__swiper:active {
    cursor: grabbing;
}

.sec-office-gallery .office-gallery__slide {
    height: auto;
    box-sizing: border-box;
}

.sec-office-gallery .office-gallery__item {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10; /* Tỷ lệ hiển thị ảnh chữ nhật rộng */
    overflow: hidden;
}

.sec-office-gallery .office-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transition: var(--transition-base, transform 0.4s ease);
}

.sec-office-gallery .office-gallery__item:hover img {
    transform: scale(1.03);
}

/* ==========================================================================
   PHÂN TRANG DẠNG VIÊN THUỐC (PILL PAGINATION)
   ========================================================================== */
.sec-office-gallery .office-gallery__pagination {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    margin-bottom: 10px;
    z-index: 10;
}

.sec-office-gallery .office-gallery__pagination .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    background-color: #cbd5e1;
    opacity: 0.8;
    border-radius: 50%;
    margin: 0 !important;
    cursor: pointer;
    transition: var(--transition-base, all 0.3s ease);
}

.sec-office-gallery .office-gallery__pagination .swiper-pagination-bullet-active {
    width: 28px;
    height: 7px;
    border-radius: 4px;
    background-color: var(--color-primary-second, #456967);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .sec-office-gallery {
        padding-top: 35px;
        padding-bottom: 20px;
    }

    .sec-office-gallery .office-gallery__title {
        font-size: var(--fs-h2, 28px);
        margin-bottom: 16px;
    }
}

