/*
Theme Name: Dịch vụ bảo vệ
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.1.2
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* ==========================================================================
   TOPBAR STYLES (Clean, Modern, White Theme)
   ========================================================================== */
#top-bar,
.header-top {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    border-bottom: 1px solid #E2E8F0 !important;
    min-height: 38px !important;
}

#top-bar .flex-row,
.header-top .flex-row {
    align-items: center !important;
}

#top-bar .nav > li,
.header-top .nav > li {
    font-size: 13px !important;
    color: #475569 !important;
}

#top-bar .tb-item,
.header-top .tb-item {
    display: inline-flex !important;
    align-items: center !important;
    color: #475569 !important;
    font-size: 13px !important;
}

#top-bar a,
.header-top a {
    color: #334155 !important;
    transition: color .2s ease;
}

#top-bar a:hover,
.header-top a:hover {
    color: #E1251B !important;
}

#top-bar a[href^="tel:"],
.header-top a[href^="tel:"] {
    color: #E1251B !important;
    font-weight: 700 !important;
}

#top-bar .tb-sep,
.header-top .tb-sep {
    color: #CBD5E1 !important;
    margin: 0 4px !important;
}

#top-bar .social-icons,
.header-top .social-icons {
    display: flex !important;
    align-items: center !important;
}

#top-bar .social-icons a,
.header-top .social-icons a {
    color: #64748B !important;
    font-size: 14px !important;
    margin: 0 4px !important;
    transition: all .2s ease;
}

#top-bar .social-icons a:hover,
.header-top .social-icons a:hover {
    color: #E1251B !important;
    transform: translateY(-1px);
}

#top-bar .searchform,
.header-top .searchform {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

#top-bar input[type="search"],
.header-top input[type="search"] {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    border-right: none !important;
    border-radius: 4px 0 0 4px !important;
    font-size: 12.5px !important;
    height: 28px !important;
    padding: 0 10px !important;
    color: #1E293B !important;
    box-shadow: none !important;
}

#top-bar .ux-search-submit,
.header-top .ux-search-submit {
    background: #E1251B !important;
    background-color: #E1251B !important;
    border: 1px solid #E1251B !important;
    color: #FFFFFF !important;
    height: 28px !important;
    line-height: 28px !important;
    padding: 0 10px !important;
    border-radius: 0 4px 4px 0 !important;
    transition: background .2s ease !important;
}

#top-bar .ux-search-submit:hover,
.header-top .ux-search-submit:hover {
    background: #B51A12 !important;
    border-color: #B51A12 !important;
}

/* ==========================================================================
   MAIN HEADER (Clean White, Perfectly Aligned)
   ========================================================================== */
.header-wrapper,
.header-main,
#masthead {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
}

.header-main {
    border-bottom: 1px solid #F1F5F9 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
}

.header-main .header-inner {
    align-items: center !important;
}

#logo {
    display: flex !important;
    align-items: center !important;
}

#logo img {
    max-height: 75px !important;
    width: auto !important;
    object-fit: contain;
}

/* Menu items & Button alignment */
.header-main .header-nav {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
}

.header-main .header-nav > li {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 10px !important;
    padding: 0 !important;
    height: auto !important;
}

.header-main .header-nav > li > a {
    display: inline-flex !important;
    align-items: center !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .5px !important;
    color: #1E293B !important;
    padding: 10px 4px !important;
    position: relative !important;
    transition: color .2s ease !important;
}

.header-main .header-nav > li:hover > a,
.header-main .header-nav > li.active > a,
.header-main .header-nav > li.current-menu-item > a {
    color: #E1251B !important;
}

/* Underline indicator on active & hover */
.header-main .header-nav > li > a:after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: -2px;
    height: 2.5px;
    background: #E1251B;
    transform: scaleX(0);
    transition: transform .25s ease;
}

.header-main .header-nav > li:hover > a:after,
.header-main .header-nav > li.active > a:after,
.header-main .header-nav > li.current-menu-item > a:after {
    transform: scaleX(1);
}

/* Dropdown arrow */
.header-main .header-nav > li.has-dropdown > a i {
    font-size: 11px !important;
    margin-left: 5px !important;
    color: #64748B !important;
    transition: transform .2s ease;
}

.header-main .header-nav > li.has-dropdown:hover > a i {
    color: #E1251B !important;
    transform: rotate(180deg);
}

/* Dropdown menu */
.nav-dropdown {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-top: 3.5px solid #E1251B !important;
    border-radius: 0 0 6px 6px !important;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08) !important;
    padding: 8px 0 !important;
}

.nav-dropdown li > a,
ul.nav-dropdown li a {
    color: #1E293B !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 9px 18px !important;
    transition: all .2s ease !important;
}

.nav-dropdown li > a:hover,
ul.nav-dropdown li a:hover {
    color: #E1251B !important;
    background: #FEF2F2 !important;
    padding-left: 23px !important;
}

/* ==========================================================================
   BUTTON "HỒ SƠ NĂNG LỰC" (Perfect alignment, Red, Never dark)
   ========================================================================== */
.header-main .header-nav > li.header-button-1,
.header-main li.header-button-1 {
    display: inline-flex !important;
    align-items: center !important;
    margin-left: 12px !important;
    margin-right: 0 !important;
}

.header-main .header-button {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.header-button a,
.header-button .button,
.header-button-1 a,
.header-button-1 .button,
.header-main .header-button .button,
.header-main .header-button > .button,
.header-main .header-button > .button:not(.is-outline),
.header-main .header-button > a {
    background: #E1251B !important;
    background-color: #E1251B !important;
    border: 1px solid #E1251B !important;
    color: #FFFFFF !important;
    font-family: 'Oswald', sans-serif !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    text-transform: uppercase !important;
    letter-spacing: .5px !important;
    border-radius: 4px !important;
    padding: 8px 18px !important;
    line-height: 1.3 !important;
    box-shadow: 0 4px 12px rgba(225, 37, 27, .25) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    vertical-align: middle !important;
    transition: all .25s ease !important;
}

.header-button a:hover,
.header-button .button:hover,
.header-button-1 a:hover,
.header-button-1 .button:hover,
.header-main .header-button .button:hover,
.header-main .header-button > .button:hover,
.header-main .header-button > a:hover {
    transform: translateY(-1px) !important;
    background: #B51A12 !important;
    background-color: #B51A12 !important;
    border-color: #B51A12 !important;
    box-shadow: 0 6px 18px rgba(225, 37, 27, .4) !important;
    color: #FFFFFF !important;
}

.header-button a span,
.header-button .button span,
.header-button-1 a span,
.header-main .header-button .button span {
    color: #FFFFFF !important;
}

/* ==========================================================================
   STICKY HEADER (Solid White, No Text Bleed-through)
   ========================================================================== */
.header.show-on-scroll,
.stuck,
.stuck .header-main,
.header-wrapper.stuck {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    border-bottom: 1px solid #E2E8F0 !important;
    z-index: 9999 !important;
}

.stuck .header-main {
    height: 56px !important;
}

.stuck #logo img {
    max-height: 44px !important;
}

.stuck .header-main .header-nav > li > a {
    padding: 6px 4px !important;
    font-size: 14px !important;
}

.stuck .header-main .header-button .button {
    padding: 6px 14px !important;
    font-size: 12.5px !important;
}

/* ==========================================================================
   MOBILE HEADER & OFF-CANVAS
   ========================================================================== */
@media (max-width: 849px) {
    .header-top .tb-tagline,
    .header-top .tb-sep:last-of-type {
        display: none !important;
    }
    .header-main {
        height: 60px !important;
    }
    #logo img {
        max-height: 50px !important;
    }
    .mobile-nav i {
        color: #1E293B !important;
        font-size: 20px !important;
    }
    #main-menu {
        background: #FFFFFF !important;
    }
    #main-menu .sidebar-menu li a {
        color: #1E293B !important;
        font-family: 'Oswald', sans-serif !important;
        font-size: 15px !important;
        border-bottom: 1px solid #F1F5F9 !important;
    }
    #main-menu .sidebar-menu li a:hover {
        color: #E1251B !important;
    }
}

/* ==========================================================================
   GALLERY PAGE - HEROIC BANNER, STICKY CATEGORY NAV & BALANCED GRID
   ========================================================================== */

/* Heroic Modern Banner */
.dg-hero-banner {
    position: relative;
    border-bottom: 3px solid #E1251B;
}

.dg-hero-banner .banner-bg img {
    filter: brightness(0.9) contrast(1.08) !important;
}

.dg-banner-crest {
    margin-bottom: 12px;
}

.dg-banner-crest .dg-banner-logo {
    max-height: 82px;
    width: auto;
    filter: drop-shadow(0 4px 18px rgba(0,0,0,0.85));
    transition: transform 0.3s ease;
}

.dg-banner-crest .dg-banner-logo:hover {
    transform: scale(1.05);
}

.dg-banner-kicker {
    display: inline-block;
    padding: 5px 18px;
    background: rgba(225, 37, 27, 0.22);
    border: 1px solid rgba(225, 37, 27, 0.65);
    border-radius: 4px;
    color: #FFE4E2;
    font-family: 'Oswald', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
    backdrop-filter: blur(6px);
}

.dg-banner-title {
    font-family: 'Anton', 'Oswald', sans-serif;
    color: #FFFFFF !important;
    font-size: 46px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
    line-height: 1.2;
    text-shadow: 0 4px 22px rgba(0,0,0,0.9);
}

.dg-banner-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 16px;
    max-width: 260px;
}

.dg-banner-divider .dg-div-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #E1251B, transparent);
}

.dg-banner-divider .dg-div-dot {
    width: 8px;
    height: 8px;
    background: #E1251B;
    transform: rotate(45deg);
    box-shadow: 0 0 10px #E1251B;
}

.dg-banner-sub {
    font-family: 'Oswald', sans-serif;
    color: #F8FAFC !important;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 auto 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.dg-banner-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.dg-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 15px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50px;
    color: #FFFFFF;
    font-size: 13px;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    letter-spacing: .5px;
    backdrop-filter: blur(8px);
}

.dg-pill i {
    color: #E1251B;
    font-size: 13px;
    font-weight: 700;
}

/* Category Sticky Navigation Bar */
.dg-nav-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 89px;
    z-index: 99;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 12px 10px;
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.dg-gallery-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0;
}

.dg-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    color: #1E293B !important;
    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: .4px;
    text-decoration: none !important;
    transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    cursor: pointer;
}

.dg-nav-btn:hover {
    background: #FFF5F5 !important;
    border-color: #E1251B !important;
    color: #E1251B !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 37, 27, 0.18);
}

.dg-nav-btn.active {
    background: #E1251B !important;
    color: #FFFFFF !important;
    border-color: #E1251B !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(225, 37, 27, 0.35);
}

.dg-nav-btn i {
    font-size: 13px;
}

/* Category Sections & Title */
.dg-gallery-section {
    scroll-margin-top: 155px;
    border-bottom: 1px solid #E2E8F0;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.dg-gallery-section.dg-pulse-highlight {
    animation: dgPulseHighlight 1.4s ease-out;
}

@keyframes dgPulseHighlight {
    0% {
        background-color: rgba(225, 37, 27, 0.08);
        box-shadow: inset 0 0 0 2px #E1251B;
    }
    100% {
        background-color: transparent;
        box-shadow: inset 0 0 0 0 transparent;
    }
}

.dg-cat-header {
    text-align: center;
    margin-bottom: 30px;
}

.dg-cat-title {
    font-family: 'Anton', 'Oswald', sans-serif;
    font-size: 30px;
    font-weight: 400;
    color: #0F172A !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0 auto;
    line-height: 1.25;
}

.dg-red-divider {
    width: 56px;
    height: 4px;
    background: #E1251B;
    margin: 10px auto 14px;
    border-radius: 2px;
}

.dg-cat-desc {
    font-family: 'Oswald', sans-serif;
    color: #64748B;
    font-size: 15px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Force 100% Equal Heights & Uniform Proportions Across All Photos */
.dg-gallery-section .gallery-col {
    margin-bottom: 22px;
}

.dg-gallery-section .gallery-col .box-image,
.dg-gallery-section .gallery-col .image-cover {
    position: relative !important;
    width: 100% !important;
    padding-top: 68% !important; /* Uniform aspect ratio for all */
    overflow: hidden !important;
    border-radius: 8px !important;
    background: #F1F5F9 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
    border: 1.5px solid #E2E8F0 !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dg-gallery-section .gallery-col .box-image img,
.dg-gallery-section .gallery-col .image-cover img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: transform 0.45s ease !important;
}

.dg-gallery-section .gallery-col:hover .box-image,
.dg-gallery-section .gallery-col:hover .image-cover {
    border-color: #E1251B !important;
    box-shadow: 0 12px 28px rgba(225, 37, 27, 0.24) !important;
    transform: translateY(-5px) !important;
}

.dg-gallery-section .gallery-col:hover img {
    transform: scale(1.07) !important;
}

/* Responsive tweaks */
@media (max-width: 849px) {
    .dg-banner-title {
        font-size: 30px;
    }
    .dg-banner-crest .dg-banner-logo {
        max-height: 60px;
    }
    .dg-cat-title {
        font-size: 23px;
    }
    .dg-nav-wrapper {
        top: 49px; /* Mobile header height */
    }
    .dg-gallery-section {
        scroll-margin-top: 110px;
    }
    .dg-nav-btn {
        font-size: 11.5px;
        padding: 6px 11px;
    }
}

.dg-section-anchor {
    display: block !important;
    position: relative !important;
    top: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
}

.dg-banner-pills br,
.dg-gallery-nav br {
    display: none !important;
}
