@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

/* ===== PHOTO 2 STYLE MULTI-IMAGE SLIDER (INJECTED DIRECTLY INTO GN-CARD-IMG) ===== */
.gn-card-img {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 12px 12px 0 0 !important;
    cursor: pointer;
}

/* Internal track that replaces background */
.gn-card-img .slider-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gn-card-img .slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

.gn-card-img .slider-item.active {
    opacity: 1;
}

/* Ensure badge group stays above slider images */
.gn-badge-group {
    z-index: 10 !important;
}

/* Nav arrows (Photo 2 circular design) */
.gn-card-img .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #1e293b;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 15;
    padding: 0;
}

.gn-card:hover .gn-card-img .slider-arrow {
    opacity: 1;
}

.gn-card-img .slider-arrow:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

.gn-card-img .slider-arrow.prev {
    left: 8px;
}

.gn-card-img .slider-arrow.next {
    right: 8px;
}

.gn-card-img .slider-arrow svg {
    width: 16px;
    height: 16px;
    stroke: #1e293b;
    stroke-width: 2.5;
}

/* Dots pill (Photo 2 capsule design) */
.gn-card-img .slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    padding: 3px 8px;
    border-radius: 20px;
    z-index: 15;
}

.gn-card-img .slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    transition: all 0.2s ease;
    cursor: pointer;
}

.gn-card-img .slider-dot.active {
    width: 16px;
    border-radius: 4px;
    background: #ffffff;
}

/* ===== ULTRA-SHARP MODERN NAVBAR TYPOGRAPHY ===== */
.nav-menu,
.nav-menu ul,
.nav-menu li,
.nav-menu a,
.hs-fonts,
.hs-nav {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}

/* Sharp, dark navy contrast menu items */
.nav-menu #topmenu > li > a,
.hs-nav .nav-menu #topmenu > li > a div,
.nav-menu #topmenu .hs-fonts {
    color: #0f172a !important; /* Rich deep slate navy */
    font-size: 15.5px !important;
    font-weight: 600 !important; /* Bold & crisp */
    letter-spacing: 0.2px !important;
    transition: all 0.2s ease !important;
    text-shadow: 0 0 1px rgba(15, 23, 42, 0.08); /* Crisp edge definition */
}

/* Hover effect */
.nav-menu #topmenu > li > a:hover,
.nav-menu #topmenu > li > a:hover .hs-fonts {
    color: #f97316 !important;
    transform: translateY(-1px);
}

/* Active menu item */
.nav-menu #topmenu > li.active > a,
.nav-menu #topmenu > li.active .hs-fonts {
    color: #f97316 !important;
    font-weight: 700 !important;
}

/* Modern underline accent on active/hover (matches Photo 6 orange underline) */
.nav-menu #topmenu > li > a {
    position: relative;
    padding-bottom: 8px !important;
}

.nav-menu #topmenu > li.active > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 3px;
    background: #f97316;
    border-radius: 3px;
}

/* ===== HEADER ACTION BUTTONS HIERARCHY (PHOTO 8 & 10 NO OVERLAP FIX) ===== */
.action-buttons {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    float: right !important;
}

/* Lock width: auto on all header buttons so they NEVER expand to 100% */
.action-buttons .button-register,
.action-buttons .button-login,
.action-buttons .btn-favorite,
.header-section .button-register,
.header-section .button-login,
.header-section .btn-favorite {
    width: auto !important;
    max-width: none !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    font-family: 'Prompt', -apple-system, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
}

.action-buttons .alink-property,
.header-section .alink-property {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
}

.action-buttons .alink-property font,
.header-section .alink-property font {
    font-family: 'Prompt', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
}

/* 1. ปุ่ม "สมัครสมาชิก" (Primary Highlight CTA - สีส้มแบรนด์เด่น) */
.action-buttons .button-register,
.header-section .button-register {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35) !important;
}

.action-buttons .button-register:hover,
.header-section .button-register:hover {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%) !important;
    color: #ffffff !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.45) !important;
    text-decoration: none !important;
}

/* 2. ปุ่ม "เข้าสู่ระบบ" (Secondary Navy Luxury - สีกรมท่าหรูหรา ตัดกับสีส้มชัดเจน) */
.action-buttons .button-login,
.header-section .button-login {
    background: #0f172a !important; /* Deep Navy Slate */
    color: #ffffff !important;
    border: 1px solid #1e293b !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18) !important;
}

.action-buttons .button-login:hover,
.header-section .button-login:hover {
    background: #1e293b !important;
    color: #f97316 !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.28) !important;
    text-decoration: none !important;
}

.action-buttons .button-login:hover .alink-property font,
.header-section .button-login:hover .alink-property font {
    color: #f97316 !important;
}

/* 3. ปุ่ม "รายการโปรด" (Clean White Card with Border) */
.action-buttons .btn-favorite,
.header-section .btn-favorite {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

.action-buttons .btn-favorite:hover,
.header-section .btn-favorite:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #f97316 !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.action-buttons .btn-favorite i.fa-heart-o,
.action-buttons .btn-favorite i.fa-heart,
.header-section .btn-favorite i {
    color: #ef4444 !important;
    margin-right: 4px !important;
}

/* ===== ULTRA-MODERN PREMIUM LOGIN MODAL & AUTH FORMS ===== */
#exampleModal .modal-dialog,
#myRegister .modal-dialog,
#ResetModal .modal-dialog,
.modal.in .modal-dialog {
    max-width: 440px !important;
    margin: 40px auto !important;
}

#exampleModal .modal-content,
#myRegister .modal-content,
#ResetModal .modal-content {
    border: none !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(15, 23, 42, 0.06) !important;
    overflow: hidden !important;
    background: #ffffff !important;
    font-family: 'Prompt', -apple-system, sans-serif !important;
}

/* Modal Header */
#exampleModal .modal-header,
#myRegister .modal-header,
#ResetModal .modal-header {
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 24px 28px 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
    background: #ffffff !important;
}

#exampleModal .modal-header .logo img,
.img-login {
    width: 68px !important;
    height: auto !important;
    display: block !important;
    transition: transform 0.2s ease !important;
}

#exampleModal .textheader,
.textheader {
    font-family: 'Prompt', sans-serif !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    margin: 0 !important;
    letter-spacing: -0.2px !important;
}

#exampleModal .modal-header .close,
.modal-header .close {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    border: none !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    padding: 0 !important;
}

#exampleModal .modal-header .close:hover,
.modal-header .close:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    transform: rotate(90deg) !important;
}

/* Modal Body */
#exampleModal .modal-body,
#myRegister .modal-body,
#ResetModal .modal-body {
    padding: 24px 28px 28px !important;
}

#exampleModal .modal-body .container,
#myRegister .modal-body .container,
#ResetModal .modal-body .container {
    width: 100% !important;
    padding: 0 !important;
}

#exampleModal .modal-body .row,
#myRegister .modal-body .row,
#ResetModal .modal-body .row {
    margin: 0 !important;
}

/* Form Labels */
#exampleModal label,
#myRegister label,
#ResetModal label {
    font-family: 'Prompt', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* Input Fields inside Modal */
#exampleModal .input-center-pass,
#myRegister .input-center-pass,
#ResetModal .input-center-pass,
.modal-body .input-center-pass {
    position: relative !important;
    margin-bottom: 18px !important;
    padding-top: 0 !important;
}

#exampleModal .input-center-pass i.fa-user,
#exampleModal .input-center-pass i.fa-lock,
#myRegister .input-center-pass i.fa-user,
#myRegister .input-center-pass i.fa-lock,
.modal-body .input-center-pass i.fa-user,
.modal-body .input-center-pass i.fa-lock {
    position: absolute !important;
    left: 16px !important;
    right: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    font-size: 16px !important;
    pointer-events: none !important;
    transition: color 0.2s ease !important;
    z-index: 10 !important;
}

#exampleModal #showHidePassword,
#exampleModal .input-center-pass i.fa-eye,
#exampleModal .input-center-pass i.fa-eye-slash,
.modal-body .input-center-pass i.fa-eye,
.modal-body .input-center-pass i.fa-eye-slash,
.modal-body #showHidePassword {
    position: absolute !important;
    right: 16px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    font-size: 16px !important;
    transition: color 0.2s ease !important;
    pointer-events: auto !important;
    z-index: 15 !important;
}

#exampleModal .input-center-pass input,
#myRegister .input-center-pass input,
#ResetModal .input-center-pass input,
.modal-body .input-center-pass input.form-control {
    width: 100% !important;
    height: 48px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding-left: 44px !important;
    padding-right: 44px !important;
    font-size: 14.5px !important;
    color: #0f172a !important;
    font-family: 'Prompt', sans-serif !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

#exampleModal .input-center-pass input:focus,
#myRegister .input-center-pass input:focus,
#ResetModal .input-center-pass input:focus,
.modal-body .input-center-pass input.form-control:focus {
    background: #ffffff !important;
    border-color: #f97316 !important;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12) !important;
    outline: none !important;
}

#exampleModal .input-center-pass input:focus ~ i,
.modal-body .input-center-pass input.form-control:focus ~ i {
    color: #f97316 !important;
}

#exampleModal #showHidePassword,
.modal-body #showHidePassword {
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    font-size: 16px !important;
    transition: color 0.2s ease !important;
    z-index: 5 !important;
}

#exampleModal #showHidePassword:hover,
.modal-body #showHidePassword:hover {
    color: #0f172a !important;
}

/* Primary Action Button inside Modal ("ดำเนินการต่อ") */
#exampleModal button[type="submit"].button2,
#exampleModal .modal-body button.button2,
#myRegister .modal-body button.button2,
#ResetModal .modal-body button.button2 {
    width: 100% !important;
    height: 48px !important;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-family: 'Prompt', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 8px 20px -4px rgba(249, 115, 22, 0.4) !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    margin-top: 6px !important;
}

#exampleModal button[type="submit"].button2:hover,
#myRegister .modal-body button.button2:hover,
#ResetModal .modal-body button.button2:hover {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%) !important;
    box-shadow: 0 12px 24px -4px rgba(249, 115, 22, 0.5) !important;
    transform: translateY(-1.5px) !important;
    color: #ffffff !important;
}

/* Links below button: Register & Forgot password */
#exampleModal .modal-body .form-group:nth-of-type(2) .col-md-12,
#exampleModal .col-md-offset-12 {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 14px 0 0 !important;
    margin: 0 !important;
}

#exampleModal a[data-target="#myRegister"],
#exampleModal #MainNavHelp {
    font-family: 'Prompt', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #f97316 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

#exampleModal a[data-target="#myRegister"]:hover,
#exampleModal #MainNavHelp:hover {
    color: #c2410c !important;
    text-decoration: underline !important;
}

#exampleModal a[data-target="#ResetModal"] {
    font-family: 'Prompt', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #64748b !important;
    text-decoration: none !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    transition: color 0.2s ease !important;
}

#exampleModal a[data-target="#ResetModal"]:hover {
    color: #0f172a !important;
}

/* Divider "หรือ" */
#exampleModal .divider-root,
#myRegister .divider-root,
.modal-body .divider-root {
    position: relative !important;
    margin: 22px 0 16px !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#exampleModal .divider-root::before,
#myRegister .divider-root::before,
.modal-body .divider-root::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    width: 100% !important;
    height: 1px !important;
    background: #e2e8f0 !important;
    z-index: 1 !important;
}

#exampleModal .divider-root .line,
.modal-body .divider-root .line {
    display: none !important;
}

#exampleModal .divider-root .title-wrapper,
#exampleModal .divider-root .title,
.modal-body .divider-root .title {
    position: relative !important;
    z-index: 2 !important;
    background: #ffffff !important;
    padding: 0 14px !important;
    font-family: 'Prompt', sans-serif !important;
    font-size: 12.5px !important;
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

/* Google Sign-in button */
#exampleModal button.button1,
#myRegister button.button1,
.modal-body button.button1 {
    width: 100% !important;
    height: 48px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    color: #1e293b !important;
    font-family: 'Prompt', sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
}

#exampleModal button.button1:hover,
.modal-body button.button1:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
    transform: translateY(-1px) !important;
}

#exampleModal .img-google,
.modal-body .img-google {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
}

/* Disclaimer text at bottom */
#exampleModal .modal-body font,
#exampleModal .modal-body font[color] {
    font-family: 'Prompt', sans-serif !important;
    font-size: 12px !important;
    color: #94a3b8 !important;
    text-align: center !important;
    display: block !important;
    margin-top: 18px !important;
    line-height: 1.5 !important;
}



/* ===== ULTRA-MODERN REGISTER MODAL (#myRegister) STYLING ===== */
#myRegister .modal-dialog {
    max-width: 440px !important;
    margin: 40px auto !important;
}

#myRegister .modal-content {
    border: none !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(15, 23, 42, 0.06) !important;
    overflow: hidden !important;
    background: #ffffff !important;
    font-family: 'Prompt', -apple-system, sans-serif !important;
}

#myRegister .modal-header {
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 24px 28px 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
    background: #ffffff !important;
}

#myRegister .title-register {
    font-family: 'Prompt', sans-serif !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    margin: 0 !important;
    letter-spacing: -0.2px !important;
}

#myRegister .modal-header .close {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    border: none !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    padding: 0 !important;
}

#myRegister .modal-header .close:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    transform: rotate(90deg) !important;
}

#myRegister .modal-body {
    padding: 24px 28px 28px !important;
}

/* Field labels in myRegister */
#myRegister .modal-body .row > .col-lg-12:not(:has(input)):not(:has(button)):not(:has(div)) {
    font-family: 'Prompt', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
    padding: 0 !important;
}

/* Input containers in myRegister */
#myRegister .modal-body .row > .col-lg-12 > div[style*="position: relative"] {
    position: relative !important;
    margin-bottom: 4px !important;
}

/* Left field icons (envelope, phone, user, lock) */
#myRegister .modal-body i.fa-envelope,
#myRegister .modal-body i.fa-phone-square,
#myRegister .modal-body i.fa-phone,
#myRegister .modal-body i.fa-user,
#myRegister .modal-body i.fa-lock {
    position: absolute !important;
    left: 16px !important;
    right: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    font-size: 16px !important;
    pointer-events: none !important;
    transition: color 0.2s ease !important;
    z-index: 5 !important;
}

/* Form input fields */
#myRegister .modal-body input.form-control {
    width: 100% !important;
    height: 48px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding-left: 44px !important;
    padding-right: 44px !important;
    font-size: 14.5px !important;
    color: #0f172a !important;
    font-family: 'Prompt', sans-serif !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

#myRegister .modal-body input.form-control:focus {
    background: #ffffff !important;
    border-color: #f97316 !important;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12) !important;
    outline: none !important;
}

/* Password Eye Icons (Right side) */
#myRegister #showHidePasswordUser,
#myRegister #showHidePasswordUserConfirm,
#myRegister .input-wrapper-passwordeye i,
#myRegister .input-wrapper-passwordeyecon i {
    position: absolute !important;
    right: 16px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: color 0.2s ease !important;
    z-index: 10 !important;
}

#myRegister #showHidePasswordUser:hover,
#myRegister #showHidePasswordUserConfirm:hover {
    color: #0f172a !important;
}

/* reCAPTCHA centering & clean frame */
#myRegister .recaptcha-wrapper {
    display: flex !important;
    justify-content: center !important;
    margin: 14px 0 8px !important;
}

/* Primary Action Button: 'ดำเนินการต่อ' */
#myRegister button#submitBtn,
#myRegister .button-register-web.button2 {
    width: 100% !important;
    height: 48px !important;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-family: 'Prompt', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 20px -4px rgba(249, 115, 22, 0.4) !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    margin-top: 8px !important;
}

#myRegister button#submitBtn:hover,
#myRegister .button-register-web.button2:hover {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%) !important;
    box-shadow: 0 12px 24px -4px rgba(249, 115, 22, 0.5) !important;
    transform: translateY(-1.5px) !important;
    color: #ffffff !important;
}

/* Terms checkbox row */
#myRegister #Check_policy,
#myRegister input[type="checkbox"] {
    accent-color: #f97316 !important;
    cursor: pointer !important;
}

#myRegister .modal-body label,
#myRegister .modal-body span[style*="font-size"] {
    font-family: 'Prompt', sans-serif !important;
    font-size: 12.5px !important;
    color: #64748b !important;
}

/* Google Sign-in inside Register */
#myRegister button.button1 {
    width: 100% !important;
    height: 48px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    color: #1e293b !important;
    font-family: 'Prompt', sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
    margin-top: 10px !important;
}

#myRegister button.button1:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
    transform: translateY(-1px) !important;
}

/* ===== PHOTO 2 STYLE MULTI-IMAGE SLIDER (UNIVERSAL & ALWAYS VISIBLE) ===== */
.gn-card-img {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 12px 12px 0 0 !important;
    cursor: pointer;
    background-size: cover;
    background-position: center;
}

.gn-card-img .slider-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gn-card-img .slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

.gn-card-img .slider-item.active {
    opacity: 1;
}

.gn-badge-group {
    z-index: 10 !important;
}

/* Nav arrows (Always visible & prominent like photo 2) */
.gn-card-img .slider-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.94) !important;
    color: #0f172a !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    opacity: 0.92 !important; /* Visible on both mobile and desktop without hover */
    transition: all 0.2s ease !important;
    z-index: 15 !important;
    padding: 0 !important;
    outline: none !important;
}

.gn-card-img .slider-arrow:hover {
    opacity: 1 !important;
    background: #ffffff !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32) !important;
}

.gn-card-img .slider-arrow.prev {
    left: 8px !important;
}

.gn-card-img .slider-arrow.next {
    right: 8px !important;
}

.gn-card-img .slider-arrow svg {
    width: 18px !important;
    height: 18px !important;
    stroke: #0f172a !important;
    stroke-width: 2.5 !important;
}

/* Dots pill capsule (Photo 2 style: dark translucent capsule at bottom center) */
.gn-card-img .slider-dots {
    position: absolute !important;
    bottom: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(4px) !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    z-index: 15 !important;
}

.gn-card-img .slider-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.5) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    display: inline-block !important;
}

.gn-card-img .slider-dot.active {
    width: 18px !important;
    border-radius: 5px !important;
    background: #ffffff !important;
}

/* ===== PAGINATION STYLING (MATCH IMAGE 2 EXACTLY) ===== */
.news-pagination {
    margin-top: 40px !important;
    margin-bottom: 40px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.news-pagination ul {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    background: #ffffff !important;
    border: 1px solid #dcdfe4 !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden !important;
}

.news-pagination li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.news-pagination li + li {
    border-left: 1px solid #e5e7eb !important;
}

.news-pagination a,
.news-pagination span {
    min-width: 44px !important;
    height: 42px !important;
    padding: 0 14px !important;
    border: none !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #2b78e4 !important; /* Blue link color as in image 2 */
    background: #ffffff !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    box-sizing: border-box !important;
}

/* Wider padding for ก่อนหน้า / ถัดไป buttons */
.news-pagination a.prev-next {
    padding: 0 18px !important;
    color: #555555 !important;
    font-size: 14.5px !important;
}

/* Hover state */
.news-pagination a:hover {
    background: #f3f4f6 !important;
    color: #1a56db !important;
}

.news-pagination a.prev-next:hover {
    color: #111827 !important;
}

/* Active page (Grey box as in image 2) */
.news-pagination a.active,
.news-pagination .active span,
.news-pagination [aria-current="page"] {
    background: #e5e7eb !important; /* Soft grey active background */
    color: #2b78e4 !important;      /* Keep blue text as in image 2 */
    font-weight: 500 !important;
    border: none !important;
}

/* Dots ellipsis "..." */
.news-pagination span.page-dots,
.news-pagination li > span {
    color: #2b78e4 !important;
    padding: 0 10px !important;
    background: #ffffff !important;
}

/* ===== PAGINATION STYLING (MATCH PROMPT FONT & SHARP STYLE) ===== */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

.news-pagination,
.news-pagination * {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}

.news-pagination {
    margin-top: 40px !important;
    margin-bottom: 40px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.news-pagination ul {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    background: #ffffff !important;
    border: 1px solid #dcdfe4 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden !important;
}

.news-pagination li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.news-pagination li + li {
    border-left: 1px solid #e5e7eb !important;
}

.news-pagination a,
.news-pagination span {
    min-width: 48px !important;
    height: 42px !important;
    padding: 0 16px !important;
    border: none !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #2b78e4 !important; /* Blue text */
    background: #ffffff !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    box-sizing: border-box !important;
    letter-spacing: 0.2px !important;
}

/* Wider padding for ก่อนหน้า / ถัดไป buttons */
.news-pagination a.prev-next,
.news-pagination li:first-child a,
.news-pagination li:last-child a {
    padding: 0 20px !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
}

/* Hover state */
.news-pagination a:hover {
    background: #f3f4f6 !important;
    color: #1a56db !important;
}

/* Active page (Grey box with blue text as in image 2) */
.news-pagination a.active,
.news-pagination .active span,
.news-pagination [aria-current="page"] {
    background: #e5e7eb !important;
    color: #2b78e4 !important;
    font-weight: 600 !important;
    border: none !important;
}

/* Dots ellipsis "..." */
.news-pagination span.page-dots,
.news-pagination li > span {
    color: #2b78e4 !important;
    padding: 0 12px !important;
    background: #ffffff !important;
    font-size: 15px !important;
}



/* ===== UNIFIED HEADER BUTTONS ALIGNMENT (FIX /AssstAll & ALL SUBPAGES) ===== */
@media (min-width: 992px) {
    /* Align whole header row horizontally centered */
    .header-section .row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }

    /* Container holding logo */
    .header-section .col-md-2,
    .header-section .col-lg-2 {
        display: flex !important;
        align-items: center !important;
    }

    /* Navigation Menu middle section */
    .header-section .col-md-8,
    .header-section .col-lg-8,
    .header-section .col-md-7,
    .header-section .col-lg-7 {
        display: flex !important;
        align-items: center !important;
        flex: 1 1 auto !important;
        margin: 0 !important;
        padding-right: 15px !important;
    }

    /* Override inner row if present */
    .header-section .col-md-8 > .row,
    .header-section .col-lg-8 > .row,
    .header-section .col-md-7 > .row {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .header-section .col-lg-9,
    .header-section .col-md-9 {
        display: flex !important;
        align-items: center !important;
        width: auto !important;
        flex: 1 1 auto !important;
    }

    /* Right column holding action buttons */
    .header-section .col-md-2.col-sm-12,
    .header-section .col-md-3.col-sm-12,
    .header-section .col-lg-2.col-sm-12,
    .header-section .col-lg-3.col-sm-12 {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: auto !important;
        flex: 0 0 auto !important;
        margin-left: auto !important;
        padding-left: 10px !important;
    }

    /* Reset ht-widget and inner rows */
    .header-section .ht-widget {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .header-section .ht-widget > br {
        display: none !important;
    }

    .header-section .ht-widget .row {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
    }

    .header-section .ht-widget .col-lg-12 {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 0 !important;
        flex-wrap: nowrap !important;
    }
}

/* Style for 'ลงประกาศฟรี' button in Header (.btn-post) */
.header-section .btn-post,
.header-section .col-lg-3 .btn-post {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    height: 38px !important;
    width: auto !important;
    padding: 0 16px !important;
    border-radius: 10px !important;
    margin: 0 8px 0 0 !important;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35) !important;
    color: #ffffff !important;
    font-family: 'Prompt', -apple-system, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
}

.header-section .btn-post:hover {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%) !important;
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.45) !important;
    transform: translateY(-1.5px) !important;
}

.header-section .btn-post a,
.header-section .btn-post a font {
    color: #ffffff !important;
    font-family: 'Prompt', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* Reset .button-register and .button-login in Header */
.header-section .button-register,
.header-section .button-login {
    height: 38px !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 16px !important;
    border-radius: 10px !important;
    font-family: 'Prompt', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    margin: 0 4px !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

/* Specific distinct colors */
.header-section .button-register {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35) !important;
}

.header-section .button-login {
    background: #0f172a !important; /* Rich Navy */
    color: #ffffff !important;
    border: 1px solid #1e293b !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18) !important;
}
