/* 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 */
}

/* CONTACT PAGE */

.bom-contact-wrapper {
    font-family: 'Noto Sans Thai', sans-serif;
    max-width: 900px;
    margin: 0 auto;
    color: #333;
    line-height: 1.6;
}

/* Section Headers */
.bom-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #e60000;
    padding-left: 12px;
}

/* Direct Contact (Top Cards) */
.bom-direct-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.bom-contact-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bom-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.bom-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.phone-bg { background: #e8f5e9; color: #2e7d32; }
.line-bg { background: #e0f7fa; color: #00b900; }

.bom-contact-card h3 {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    color: #555;
}

.bom-contact-card a {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    margin-bottom: 5px;
    transition: color 0.2s;
}

.bom-contact-card a:hover { color: #e60000; }

.line-btn {
    display: inline-block;
    background: #00b900;
    color: #fff !important;
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 1rem !important;
    margin-top: 10px;
}
.line-btn:hover { background: #009900; color: #fff !important; }

/* Branches Grid */
.bom-branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.bom-branch-card {
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.bom-branch-card:hover { background: #fff; border-color: #ddd; }

.bom-branch-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #222;
}

.bom-social-links {
    display: flex;
    gap: 10px;
}

.bom-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s, transform 0.2s;
}

.bom-social-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.btn-fb { background: #1877f2; }
.btn-tiktok { background: #000000; }

.bom-social-btn svg { width: 20px; height: 20px; fill: currentColor; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .bom-branch-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}