/* is_login() */
.is-login header {
    margin-top: 40px; /* เพิ่มระยะห่างด้านบนสำหรับแถบ Admin Toolbar */
}

/* Section */

.sec_heading {
      text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}



/* ============================================================
   Article Gallery Layout  –  50:50 split (info | gallery)
   ============================================================ */

.hc-split-container {
    display: flex;
    gap: 0;
    align-items: flex-start;
}

/* ── Left panel: info ── */
.hc-split-info {
    width: 50%;
    flex-shrink: 0;
    padding: 0rem 3rem 2rem 0;
}

.hc-title {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

/* Each item stretches to fill its flex ratio */
.hc-gallery-item {
    overflow: hidden;
    min-width: 0;
    /* Height is driven by the image inside */
}

.hc-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hc-gallery-item:hover img {
    transform: scale(1.03);
}

/* ── Responsive: stack on mobile / tablet ── */
@media (max-width: 1023px) {
    .hc-split-container {
        flex-direction: column;
    }

    .hc-split-info,
    .hc-split-gallery {
        width: 100%;
    }

    .hc-split-info {
        padding: 0 0 1.5rem 0;
    }

    .hc-info-sticky {
        position: static;
    }
}


/* swiper-pagination-bullet-active */
.swiper-pagination-bullet-active {
    background-color: #F5A623 !important;
}



/* Footer Curve */
.branches-curve {
    overflow: hidden;
    line-height: 0;
    width: 100%;
    height: 150px;
    position: relative;
    background-color: #FFF7E1;
}
.branches-curve::before {
    content: '';
    position: absolute;
    top: 0;
    left: -25%;
    width: 150%;
    height: 100px;
    background-color: #fff;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    z-index: 9;
}
.footer-curve {
    background-color: #FFF7E1;
    overflow: hidden;
    line-height: 0;
    width: 100%;
    height: 150px;
    position: relative;
}
.footer-curve::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -25%;
    width: 150%;
    height: 100px;
    background-color: #FAD15F;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: 9;
}

.search-cruve {
    overflow: hidden;
    line-height: 0;
    width: 100%;
    height: 150px;
    position: relative;
    position: absolute;

}
.search-cruve::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -25%;
    width: 150%;
    height: 100px;
    background-color: #fff;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: 9;
}


/* Home : Text Sweep Animation */

.text-sweep-animation {
    background: linear-gradient(
        -45deg, 
        #000000 35%, 
        #D5A003 50%, 
        #000000 65%
    );
    background-size: 300% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: redLightSweep 8s linear infinite;
}

@keyframes redLightSweep {
    0%   { background-position: 300% center; }
    50%  { background-position: -100% center; }  /* Complete 4 seconds (25% of 16 seconds) */
    100% { background-position: -100% center; }  /* Remain still for the remaining 12 seconds */
}