/* ==========================================================================
   SALA HOLDINGS - TRANG LĨNH VỰC HOẠT ĐỘNG (page-services.php)
   Font: Montserrat & Be Vietnam Pro
   ========================================================================== */

:root {
    --sala-navy-deep: #061C49;
    --sala-navy: #0B2D6E;
    --sala-blue-primary: #0F439A;
    --sala-blue-bright: #0A68DF;
    --sala-blue-num: #0C63E4;
    --sala-text-dark: #1E293B;
    --sala-text-body: #334155;
    --sala-font-heading: 'Montserrat', 'Be Vietnam Pro', sans-serif;
    --sala-font-body: 'Be Vietnam Pro', sans-serif;
}

.sala-services-page {
    font-family: var(--sala-font-body);
    color: var(--sala-text-dark);
    background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FF 32%, #EEF5FF 70%, #F7FAFF 100%);
    overflow-x: hidden;
    padding-bottom: 80px;
}

.sala-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ==========================================================================
   1. HERO SECTION & KHUNG ẢNH VÁT CHÉO CHUẨN THIẾT KẾ
   ========================================================================== */
.sala-srv-hero {
    padding: 125px 0 30px;
    position: relative;
}

.sala-srv-hero__grid {
    display: grid;
    grid-template-columns: 4.5fr 5.5fr;
    gap: 28px;
    align-items: center;
}

.sala-srv-hero__content {
    padding-right: 10px;
}

.sala-srv-hero__title {
    font-family: var(--sala-font-heading);
    font-size: clamp(36px, 4.4vw, 50px);
    font-weight: 800;
    color: var(--sala-navy);
    line-height: 1.14;
    letter-spacing: 0.01em;
    margin: 0 0 22px;
    text-transform: uppercase;
}

.sala-srv-hero__subtitle {
    font-family: var(--sala-font-heading);
    font-size: clamp(16px, 1.65vw, 19px);
    font-weight: 800;
    color: var(--sala-navy);
    line-height: 1.45;
    margin: 0 0 18px;
    text-transform: uppercase;
}

.sala-srv-hero__desc {
    font-size: 14px;
    line-height: 1.72;
    color: var(--sala-text-body);
    margin: 0 0 26px;
    text-align: justify;
}

.sala-srv-hero__partner-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 6px;
}

.sala-srv-hero__partner-icon {
    width: 48px;
    height: 44px;
    flex-shrink: 0;
}

.sala-srv-hero__partner-icon svg {
    width: 100%;
    height: 100%;
}

.sala-srv-hero__partner-text {
    font-family: var(--sala-font-heading);
    font-size: 13px;
    font-weight: 800;
    color: var(--sala-navy);
    line-height: 1.42;
    text-transform: uppercase;
    max-width: 310px;
}

/* Khung ảnh tòa nhà vát chéo cạnh trái giống 100% ảnh gốc */
.sala-srv-hero__visual {
    position: relative;
}

.sala-slanted-frame {
    position: relative;
    width: 100%;
    height: 500px;
    padding-left: 14px;
    padding-top: 8px;
    box-sizing: border-box;
}

.sala-slanted-frame__border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sala-slanted-frame__mask {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    clip-path: polygon(23.5% 0%, 100% 0%, 100% 100%, 0% 100%);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 22px 48px rgba(11, 45, 110, 0.16);
}

.sala-slanted-frame__mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s ease;
}

.sala-slanted-frame:hover .sala-slanted-frame__mask img {
    transform: scale(1.04);
}

/* ==========================================================================
   2. THANH BAR 5 LĨNH VỰC HOẠT ĐỘNG (01 -> 05)
   ========================================================================== */
.sala-srv-nav-bar {
    margin-top: 26px;
    background: linear-gradient(90deg, #072258 0%, #0C2F74 50%, #082560 100%);
    border-radius: 14px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(7, 34, 88, 0.25);
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.sala-srv-nav-item {
    position: relative;
    padding: 18px 20px;
    color: #FFFFFF;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    transition: background 0.28s ease, transform 0.25s ease;
}

.sala-srv-nav-item:last-child {
    border-right: none;
}

.sala-srv-nav-item:hover {
    background: rgba(29, 112, 214, 0.35);
    color: #FFFFFF;
}

.sala-srv-nav-item.is-active {
    background: linear-gradient(135deg, #0E6CF0 0%, #0952BD 100%);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.sala-srv-nav-item__top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sala-srv-nav-item__icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    color: #8FD0FF;
}

.sala-srv-nav-item.is-active .sala-srv-nav-item__icon {
    color: #FFFFFF;
}

.sala-srv-nav-item__icon svg {
    width: 100%;
    height: 100%;
}

.sala-srv-nav-item__num {
    font-family: var(--sala-font-heading);
    font-size: 27px;
    font-weight: 800;
    line-height: 1;
    color: #FFFFFF;
    letter-spacing: 0.01em;
}

.sala-srv-nav-item__label {
    font-family: var(--sala-font-heading);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.38;
    color: rgba(255, 255, 255, 0.92);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   3. DANH SÁCH 5 LĨNH VỰC SO LE (ZIG-ZAG ROWS)
   ========================================================================== */
.sala-srv-list-section {
    padding-top: 52px;
}

.sala-srv-row {
    display: grid;
    grid-template-columns: 5fr 5fr;
    gap: 54px;
    align-items: center;
    margin-bottom: 68px;
    scroll-margin-top: 110px;
}

.sala-srv-row:last-child {
    margin-bottom: 0;
}

/* Đảo chiều cho các mục chẵn (02 & 04): Chữ bên Trái - Ảnh bên Phải */
.sala-srv-row--reverse .sala-srv-row__media {
    order: 2;
}

.sala-srv-row--reverse .sala-srv-row__content {
    order: 1;
}

.sala-srv-img-card {
    width: 100%;
    height: 290px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 38px rgba(11, 45, 110, 0.13);
    background: #E2E8F0;
}

.sala-srv-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.sala-srv-row:hover .sala-srv-img-card img {
    transform: scale(1.05);
}

.sala-srv-heading-group {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}

.sala-srv-num {
    font-family: var(--sala-font-heading);
    font-size: clamp(28px, 3vw, 35px);
    font-weight: 800;
    color: var(--sala-blue-num);
    line-height: 1;
    flex-shrink: 0;
}

.sala-srv-title {
    font-family: var(--sala-font-heading);
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 800;
    color: var(--sala-navy);
    line-height: 1.32;
    margin: 0;
    text-transform: uppercase;
}

.sala-srv-desc {
    font-size: 14px;
    line-height: 1.68;
    color: var(--sala-text-body);
    margin: 0 0 18px;
    text-align: justify;
}

.sala-srv-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sala-srv-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sala-navy);
    line-height: 1.45;
}

.sala-check-icon {
    width: 18px;
    height: 18px;
    color: var(--sala-blue-num);
    flex-shrink: 0;
    margin-top: 2px;
}

.sala-check-icon svg {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   4. ADMIN FRONTEND LIVE EDITOR & DRAWER CUSTOMIZER
   ========================================================================== */
.sala-services-page.is-inline-editing [data-edit-key] {
    outline: 1.5px dashed #2563EB;
    outline-offset: 4px;
    border-radius: 4px;
    cursor: text;
    transition: background-color 0.2s ease, outline-color 0.2s ease;
}

.sala-services-page.is-inline-editing [data-edit-key]:hover,
.sala-services-page.is-inline-editing [data-edit-key]:focus {
    background-color: rgba(37, 99, 235, 0.1);
    outline: 2px solid #F59E0B;
}

.sala-admin-live-dock {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(6, 26, 68, 0.96);
    border: 1px solid rgba(147, 197, 253, 0.35);
    padding: 10px 14px;
    border-radius: 999px;
    box-shadow: 0 16px 38px rgba(3, 15, 43, 0.45);
    backdrop-filter: blur(10px);
}

.sala-admin-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 15px;
    font-family: var(--sala-font-body);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.sala-admin-btn--toggle {
    background: #1E3A8A;
    color: #FFFFFF;
    border: 1px solid #3B82F6;
}

.sala-admin-btn--toggle.is-active {
    background: #F59E0B;
    color: #061A44;
    border-color: #FDE68A;
}

.sala-admin-btn--drawer {
    background: #FFFFFF;
    color: #0B2D6E;
}

.sala-admin-btn--save {
    background: linear-gradient(90deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
}

.sala-admin-save-status {
    font-size: 12px;
    font-weight: 600;
    color: #A7F3D0;
}

.sala-admin-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    max-width: 92vw;
    height: 100vh;
    background: #FFFFFF;
    z-index: 10000;
    box-shadow: -15px 0 45px rgba(6, 26, 68, 0.22);
    display: flex;
    flex-direction: column;
    transition: right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.sala-admin-drawer.is-open {
    right: 0;
}

.sala-admin-drawer__header {
    padding: 20px 22px;
    background: linear-gradient(90deg, #061A44 0%, #0F398B 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sala-admin-drawer__header strong {
    display: block;
    font-family: var(--sala-font-heading);
    font-size: 14px;
}

.sala-admin-drawer__header span {
    font-size: 11.5px;
    color: #93C5FD;
}

.sala-admin-drawer__close {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 26px;
    cursor: pointer;
}

.sala-admin-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sala-admin-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sala-admin-field label {
    font-size: 11.5px;
    font-weight: 700;
    color: #0B2D6E;
}

.sala-admin-field input,
.sala-admin-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 11px;
    border-radius: 6px;
    border: 1px solid #CBD5E1;
    font-family: var(--sala-font-body);
    font-size: 12.5px;
}

.sala-admin-drawer__footer {
    padding: 14px 22px;
    border-top: 1px solid #E2E8F0;
    background: #F8FAFC;
}

/* ==========================================================================
   5. RESPONSIVE TABLET & MOBILE
   ========================================================================== */
@media (max-width: 1024px) {
    .sala-srv-hero__grid {
        grid-template-columns: 1fr;
    }

    .sala-slanted-frame {
        height: 380px;
        padding-left: 0;
    }

    .sala-slanted-frame__border {
        display: none;
    }

    .sala-slanted-frame__mask {
        clip-path: none;
    }

    .sala-srv-nav-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .sala-srv-row {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 48px;
    }

    .sala-srv-row--reverse .sala-srv-row__media {
        order: 1;
    }

    .sala-srv-row--reverse .sala-srv-row__content {
        order: 2;
    }
}

@media (max-width: 640px) {
    .sala-srv-hero {
        padding: 105px 0 24px;
    }

    .sala-srv-nav-bar {
        grid-template-columns: 1fr;
    }

    .sala-srv-nav-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .sala-srv-img-card {
        height: 225px;
    }
}