:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: rgba(37, 99, 235, 0.12);
    --secondary: #06b6d4;
    --secondary-hover: #0891b2;

    --dark: #020617;
    --dark-2: #0f172a;
    --dark-3: #1e293b;

    --soft: #f8fafc;
    --bg: #f3f7fc;
    --bg-2: #eef4fb;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --line-strong: #cbd5e1;
    --white: #ffffff;

    --success-bg: #dcfce7;
    --success-text: #166534;
    --warning-bg: #fef3c7;
    --warning-text: #92400e;
    --info-bg: #e0f2fe;
    --info-text: #075985;

    --shadow-xs: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 18px 48px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 28px 72px rgba(15, 23, 42, 0.16);
    --shadow-glow: 0 20px 60px rgba(37, 99, 235, 0.18);

    --radius-xs: 10px;
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;

    --transition: all 0.28s ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}
/* Contact Icon */
.contact-float .contact-icon img {
  width: 40px;
  height: 40px;
  max-width: 100%;
}
.action-col{
white-space:nowrap;
}

.btn-action{
display:inline-block;
padding:6px 12px;
font-size:13px;
border-radius:6px;
text-decoration:none;
border:1px solid transparent;
margin-right:5px;
}

.btn-edit{
background:#f59e0b;
color:white;
}

.btn-delete{
background:#ef4444;
color:white;
}

.btn-status{
background:white;
border:1px solid #3b82f6;
color:#3b82f6;
cursor:pointer;
}

.btn-edit:hover{
background:#d97706;
}

.btn-delete:hover{
background:#dc2626;
}

.btn-status:hover{
background:#3b82f6;
color:white;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.05), transparent 22%),
        radial-gradient(circle at bottom right, rgba(6, 182, 212, 0.05), transparent 20%),
        linear-gradient(180deg, #f8fbff 0%, #f3f7fc 55%, #eef4fb 100%);
    color: var(--text);
    font-family: "Prompt", "Segoe UI", Tahoma, sans-serif;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
}

main {
    flex: 1 0 auto;
}

.footer-section {
    position: relative;
    z-index: 5;
    margin-top: auto;
}

/* =========================
   Typography
========================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dark);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

h1 {
    font-size: clamp(2.3rem, 4vw, 4rem);
}

h2 {
    font-size: clamp(1.9rem, 3vw, 3rem);
}

h3 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

p {
    color: var(--muted);
    margin-bottom: 1rem;
}

.section-title {
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-size: clamp(2rem, 2.5vw, 2.9rem);
    color: var(--dark);
    letter-spacing: -0.035em;
}

.small-muted {
    color: var(--muted);
    font-size: 0.5rem;
}

/* =========================
   Links / Buttons
========================= */
a {
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    text-decoration: none;
}

.btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.82rem 1.4rem;
    transition: var(--transition);
    border: 0;
    position: relative;
    overflow: hidden;
}

.btn:focus {
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    color: #fff;
    border: 0;
    box-shadow:
        0 14px 28px rgba(37, 99, 235, 0.22),
        0 8px 16px rgba(6, 182, 212, 0.10);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow:
        0 18px 34px rgba(37, 99, 235, 0.28),
        0 10px 20px rgba(6, 182, 212, 0.14);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background: #fff;
    color: var(--dark);
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(255, 255, 255, 0.14);
}

.btn-outline-primary {
    border: 1px solid rgba(37, 99, 235, 0.26);
    color: var(--primary);
    background: #fff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.06);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.22);
}

/* ===============================
   HERO FIX
=============================== */
.hero-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 14%, rgba(96, 165, 250, 0.18), transparent 24%),
        radial-gradient(circle at 88% 18%, rgba(34, 211, 238, 0.14), transparent 24%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.16), transparent 28%),
        linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
    color: #fff;
    padding: 40px 0 70px;
}
/* Title */
.hero-title {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 800;
    margin-bottom: 5px;
}

/* Subtitle (ห้ามตกบรรทัด) */
.hero-subtitle {
    font-size: clamp(20px, 3vw, 38px);
    font-weight: 700;
    white-space: normal;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* description spacing */
.hero-section .lead {
    margin-top: 20px;
}
/* Clip at the viewport. A scrolling body prevents the shared header from sticking. */
html {
    overflow-x: hidden;
}
body {
    overflow-x: clip;
}
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 88%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 88%);
    pointer-events: none;
}

.hero-section::after {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    right: -120px;
    top: -160px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.14), transparent 68%);
    filter: blur(18px);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section .display-4,
.hero-section .display-5 {
    color: #fff;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.045em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.hero-section p,
.hero-section .lead {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
}

.hero-section .lead {
    max-width: 700px;
}

.hero-section .text-info {
    color: #38bdf8 !important;
}

.hero-section .badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    border-radius: 999px;
    padding: 0.58rem 0.95rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
}

.hero-checklist {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.hero-checklist li {
    margin-bottom: 0.85rem;
    color: rgba(255, 255, 255, 0.92);
    position: relative;
    padding-left: 1.7rem;
}

.hero-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #7dd3fc;
    font-weight: 700;
}

.hero-logo {
    max-width: 430px;
    width: 100%;
    height: auto;
    display: block;
    margin: auto;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.22));
}
.dropdown-item img {
    border-radius: 6px;
}
.dropdown-menu {
    border-radius: 12px;
    padding: 8px;
}
.dropdown-item:hover {
    background-color: #f1f5f9;
}
/* =========================
   Cards
========================= */
.icon-card,
.info-card,
.portal-card,
.report-card,
.login-card,
.admin-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.90) 100%);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.icon-card::before,
.info-card::before,
.portal-card::before,
.report-card::before,
.login-card::before,
.admin-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 30%);
    pointer-events: none;
}

.icon-card:hover,
.info-card:hover,
.portal-card:hover,
.report-card:hover,
.login-card:hover,
.admin-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.icon-card .card-body,
.info-card .card-body,
.portal-card .card-body,
.report-card .card-body,
.login-card .card-body,
.admin-card .card-body {
    padding: 1.6rem;
    position: relative;
    z-index: 1;
}

.icon-box {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(6, 182, 212, 0.18));
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 10px 22px rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.icon-box i {
    font-size: 1.38rem;
}

.icon-card h5,
.info-card h5,
.portal-card h5,
.report-card h5,
.admin-card h5 {
    margin-bottom: 0.62rem;
    font-size: 1.08rem;
    color: var(--dark);
}

.icon-card p,
.info-card p,
.portal-card p,
.report-card p,
.admin-card p {
    color: var(--muted);
    margin-bottom: 0;
}

/* =========================
   Stats Box
========================= */
.stats-box {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 1.18rem 1rem;
    color: #fff;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
}

.stats-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
}

.stats-box .fw-bold,
.stats-box h3,
.stats-box h4,
.stats-box h5,
.stats-box small {
    color: #fff;
}

/* =========================
   Page Banner
========================= */
.page-banner {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.20), transparent 26%),
        radial-gradient(circle at right center, rgba(34, 211, 238, 0.10), transparent 22%),
        linear-gradient(135deg, #edf4ff 0%, #f8fbff 55%, #eef6ff 100%);
    padding: 40px 0 70px;
    border-bottom: 1px solid rgba(37, 99, 235, 0.08);
}

.page-banner::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -90px;
    top: -95px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.10), transparent 65%);
    pointer-events: none;
}

.page-banner h1,
.page-banner h2 {
    margin-bottom: 0.6rem;
}

/* =========================
   Portal / Report / Login
========================= */
.portal-card,
.report-card,
.login-card,
.admin-card {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.portal-card .card-header,
.report-card .card-header,
.admin-card .card-header {
    background: linear-gradient(135deg, #f8fbff 0%, #edf4ff 100%);
    border-bottom: 1px solid #e6eefc;
    font-weight: 700;
    color: var(--dark);
    padding: 1rem 1.25rem;
}

.login-wrapper {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    padding: 44px 0;
}

.login-card {
    max-width: 480px;
    margin: 0 auto;
}

.portal-card {
    background: linear-gradient(145deg, #ffffff, #f4f7fb);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    transition: all 0.3s ease;
}

.portal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
}

.portal-title {
    font-size: 1.8rem;
    color: #0f172a;
}

.portal-text {
    color: #64748b;
    line-height: 1.7;
}

.portal-list {
    color: #64748b;
    padding-left: 20px;
}

.portal-list li {
    margin-bottom: 8px;
}

.portal-btn {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
    transition: 0.25s;
}

.portal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.45);
    color: #fff;
}

.login-card input,
.login-card .form-control,
.admin-card input,
.admin-card select,
.admin-card textarea,
.report-card input,
.report-card select,
.report-card textarea {
    border-radius: 14px;
    border: 1px solid #dbe3f0;
    padding: 0.84rem 0.98rem;
    box-shadow: none;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.98);
}

.login-card input::placeholder,
.login-card .form-control::placeholder,
.admin-card input::placeholder,
.admin-card textarea::placeholder,
.report-card input::placeholder,
.report-card textarea::placeholder {
    color: #94a3b8;
}

.login-card input:focus,
.login-card .form-control:focus,
.admin-card input:focus,
.admin-card select:focus,
.admin-card textarea:focus,
.report-card input:focus,
.report-card select:focus,
.report-card textarea:focus {
    border-color: rgba(37, 99, 235, 0.34);
    box-shadow:
        0 0 0 0.24rem rgba(37, 99, 235, 0.11),
        0 10px 22px rgba(37, 99, 235, 0.05);
    background: #fff;
}

/* =========================
   Tables
========================= */
.table {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 0;
}

.table thead th {
    white-space: nowrap;
    background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
    color: #334155;
    font-weight: 600;
    border-bottom: 1px solid #e8eef7;
}

.table > :not(caption) > * > * {
    padding: 0.98rem 1rem;
    vertical-align: middle;
    border-color: #edf2f7;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: #f8fbff;
}

/* =========================
   Status Badge
========================= */
.badge-status {
    font-size: 0.78rem;
    padding: 0.5rem 0.74rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.bg-status-open {
    background: var(--info-bg);
    color: var(--info-text);
}

.bg-status-progress {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.bg-status-closed {
    background: var(--success-bg);
    color: var(--success-text);
}

/* =========================
   Footer
========================= */
.footer-section {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 24%),
        linear-gradient(135deg, #0b1220 0%, #111827 45%, #0f172a 100%);
    color: #cbd5e1;
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.footer-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), transparent 85%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), transparent 85%);
    pointer-events: none;
}

.footer-section > .container,
.footer-section > .container-fluid {
    position: relative;
    z-index: 1;
}

.footer-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-text {
    color: #94a3b8;
    line-height: 1.78;
    margin-bottom: 15px;
}

.footer-contact {
    margin-bottom: 8px;
    color: #cbd5e1;
}

.footer-heading {
    color: #fff;
    font-weight: 600;
    margin-bottom: 15px;
}
.footer-headingline {
    color: #fff;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(2px);
}

.footer-qr {
    width: 120px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 10px;
    margin-right: 8px;
    color: #fff;
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.18);
    transition: var(--transition);
}

.footer-social a:hover {
    transform: translateY(-3px);
}

.line-btn {
    background: linear-gradient(135deg, #06c755, #03a84a);
}

.fb-btn {
    background: linear-gradient(135deg, #1877f2, #125dcc);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 30px 0 15px;
}

.footer-copy {
    color: #94a3b8;
    font-size: 14px;
}

/* =========================
   Utilities
========================= */
.rounded-4 {
    border-radius: var(--radius-md) !important;
}

.rounded-5 {
    border-radius: var(--radius-lg) !important;
}

.shadow-soft {
    box-shadow: var(--shadow-md) !important;
}

.bg-soft {
    background: var(--soft) !important;
}

.text-muted {
    color: var(--muted) !important;
}
/* ==========================
   PROMOTIONS PAGE
========================== */

.promo-hero {
    padding: 40px 0 70px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 35%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.promo-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    width: 100%;
    max-width: 100%;
    align-items: center;
}

.promo-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
    color: #2563eb;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.promo-hero-content h1 {
    font-size: 46px;
    line-height: 1.15;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 18px;
}

.promo-hero-content p {
    font-size: 17px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 28px;
    max-width: 700px;
}

.promo-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.promo-mini-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.promo-mini-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.promo-mini-item strong {
    display: block;
    font-size: 16px;
    color: #0f172a;
    margin-bottom: 6px;
}

.promo-mini-item span {
    display: block;
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

.promo-hero-card {
    display: flex;
    justify-content: center;
}

.promo-highlight-card {
    width: 100%;
    max-width: 430px;
    background: linear-gradient(180deg, #0f172a 0%, #162338 100%);
    color: #fff;
    border-radius: 28px;
    padding: 34px 30px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.promo-highlight-top {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 18px;
}

.promo-highlight-card h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
}

.promo-price {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 16px;
}

.promo-price-main {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.promo-price-sub {
    font-size: 15px;
    opacity: 0.8;
}

.promo-highlight-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 18px;
}

.promo-highlight-card ul {
    padding-left: 18px;
    margin-bottom: 24px;
}

.promo-highlight-card ul li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.88);
}

.promo-section {
    padding: 90px 0;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 46px;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.section-kicker.light {
    color: rgba(255, 255, 255, 0.75);
}

.section-heading h2 {
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
}

.section-heading p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.8;
}

.promo-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.promo-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 30px 26px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.promo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.10);
    border-color: rgba(37, 99, 235, 0.25);
}

.promo-card.featured {
    border: 2px solid #2563eb;
    box-shadow: 0 24px 60px rgba(37, 99, 235, 0.12);
}

.promo-card.combo {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.promo-card-label {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 999px;
}

.promo-card-icon {
    font-size: 34px;
    margin-bottom: 16px;
}

.promo-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.promo-card-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #64748b;
    margin-bottom: 18px;
}

.promo-card-price {
    font-size: 28px;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 18px;
}

.promo-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.promo-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: #334155;
    line-height: 1.7;
}

.promo-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 800;
    color: #2563eb;
}

.promo-soft-bg {
    background: #f8fbff;
}

.promo-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.promo-feature-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.04);
}

.promo-feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.10);
    font-size: 28px;
}

.promo-feature-box h4 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.promo-feature-box p {
    font-size: 15px;
    line-height: 1.8;
    color: #64748b;
    margin: 0;
}

.promo-cta-section {
    padding: 0 0 90px;
    background: #f8fbff;
}

.promo-cta-box {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border-radius: 30px;
    padding: 42px 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: 0 24px 60px rgba(37, 99, 235, 0.20);
}

.promo-cta-content h2 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 12px;
}

.promo-cta-content p {
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    max-width: 680px;
}
.promo-highlight-card h3 {
    color: #ffffff !important;
}
.promo-cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-light {
    background: #fff;
    color: #2563eb;
    border: 1px solid #fff;
}

.btn-light:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.w-100 {
    width: 100%;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 1199px) {
    .promo-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-mini-points {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .promo-hero {
        padding: 30px 0 60px;
    }

    .promo-hero-grid {
        grid-template-columns: 1fr;
    }

    .promo-hero-content h1 {
        font-size: 38px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .promo-cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .promo-card-grid,
    .promo-feature-grid {
        grid-template-columns: 1fr;
    }

    .promo-hero-content h1 {
        font-size: 32px;
    }

    .promo-cta-content h2 {
        font-size: 28px;
    }

    .promo-section {
        padding: 70px 0;
    }

    .promo-highlight-card,
    .promo-card,
    .promo-feature-box,
    .promo-cta-box {
        border-radius: 22px;
    }
}

/* =========================================================
   J&P IT SOLUTION
   PORTFOLIO
   Design System
========================================================= */


/* =========================================================
   PORTFOLIO HERO
========================================================= */

.portfolio-hero {
    position: relative;
    overflow: hidden;

    padding: 55px 0 75px;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(96, 165, 250, 0.18),
            transparent 25%
        ),
        radial-gradient(
            circle at 90% 20%,
            rgba(34, 211, 238, 0.14),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #0f172a 0%,
            #1e3a8a 55%,
            #2563eb 100%
        );

    color: #fff;
}


.portfolio-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(255,255,255,.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.035) 1px,
            transparent 1px
        );

    background-size: 38px 38px;

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.5),
            transparent 90%
        );

    -webkit-mask-image:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.5),
            transparent 90%
        );

    pointer-events: none;
}


.portfolio-hero::after {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -180px;
    top: -220px;

    background:
        radial-gradient(
            circle,
            rgba(56,189,248,.16),
            transparent 68%
        );

    filter: blur(20px);

    pointer-events: none;
}


.portfolio-hero .container {
    position: relative;
    z-index: 2;
}


.portfolio-hero-content {
    max-width: 850px;
}


/* =========================================================
   PORTFOLIO LABEL
========================================================= */

.portfolio-label {
    display: inline-flex;

    align-items: center;
    gap: 8px;

    margin-bottom: 16px;

    color: #38bdf8;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 2px;
}


.portfolio-label::before {
    content: "";

    width: 28px;
    height: 2px;

    background: #38bdf8;

    border-radius: 10px;
}


/* =========================================================
   PORTFOLIO HERO TITLE
========================================================= */

.portfolio-hero h1 {
    margin: 0 0 16px;

    color: #fff;

    font-size: clamp(38px, 5vw, 56px);

    font-weight: 800;

    line-height: 1.12;

    letter-spacing: -0.04em;

    text-shadow:
        0 10px 30px rgba(0,0,0,.18);
}


.portfolio-hero p {
    max-width: 720px;

    margin: 0;

    color: rgba(255,255,255,.86);

    font-size: 17px;

    line-height: 1.8;
}


/* =========================================================
   PORTFOLIO SECTION
========================================================= */

.portfolio-section {
    padding: 90px 0;

    background: #f8fbff;
}


/* =========================================================
   SECTION TITLE
========================================================= */

.portfolio-section .section-title {
    margin-bottom: 12px;

    color: #172033;

    font-size: 34px;

    font-weight: 800;

    line-height: 1.3;

    letter-spacing: -0.02em;
}


.portfolio-section .text-secondary {
    color: #64748b !important;

    line-height: 1.8;
}


/* =========================================================
   PROJECT CARD
========================================================= */

.portfolio-card {
    position: relative;

    display: flex;
    flex-direction: column;

    height: 100%;

    overflow: hidden;

    background: #fff;

    border: 1px solid #e2e8f0;

    border-radius: 24px;

    box-shadow:
        0 8px 30px rgba(15,23,42,.055);

    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;
}


.portfolio-card:hover {
    transform: translateY(-7px);

    border-color: rgba(37,99,235,.18);

    box-shadow:
        0 22px 55px rgba(15,23,42,.11);
}


/* =========================================================
   PROJECT IMAGE
========================================================= */

.portfolio-image {
    position: relative;

    display: block;

    width: 100%;
    height: 245px;

    overflow: hidden;

    background: #eef4fb;

    text-decoration: none;
}


.portfolio-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .55s ease;
}


.portfolio-card:hover .portfolio-image img {
    transform: scale(1.055);
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.portfolio-image-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            to bottom,
            rgba(15,23,42,.10),
            rgba(15,23,42,.68)
        );

    opacity: 0;

    transition:
        opacity .28s ease;
}


.portfolio-card:hover .portfolio-image-overlay {
    opacity: 1;
}


.portfolio-image-overlay span {
    display: inline-flex;

    align-items: center;
    gap: 8px;

    padding: 11px 20px;

    background: #fff;

    color: #2563eb;

    border-radius: 50px;

    font-size: 14px;

    font-weight: 700;

    box-shadow:
        0 10px 30px rgba(0,0,0,.18);
}


.portfolio-image-overlay i {
    transition:
        transform .2s ease;
}


.portfolio-card:hover .portfolio-image-overlay i {
    transform: translateX(3px);
}


/* =========================================================
   CARD BODY
========================================================= */

.portfolio-card-body {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 26px;
}


.portfolio-card-body h3 {
    margin: 0 0 12px;

    color: #172033;

    font-size: 20px;

    font-weight: 800;

    line-height: 1.45;

    letter-spacing: -0.01em;
}


.portfolio-card-body p {
    flex: 1;

    margin: 0 0 20px;

    color: #64748b;

    font-size: 15px;

    line-height: 1.75;
}


/* =========================================================
   VIEW PROJECT
========================================================= */

.portfolio-view {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    width: fit-content;

    color: #2563eb;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    transition:
        color .2s ease;
}


.portfolio-view:hover {
    color: #1d4ed8;
}


.portfolio-view i {
    transition:
        transform .2s ease;
}


.portfolio-view:hover i {
    transform: translateX(5px);
}


/* =========================================================
   DETAIL HERO
========================================================= */

.portfolio-detail-hero {
    position: relative;

    overflow: hidden;

    padding: 55px 0 70px;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(96,165,250,.18),
            transparent 25%
        ),
        radial-gradient(
            circle at 90% 20%,
            rgba(34,211,238,.14),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #0f172a 0%,
            #1e3a8a 55%,
            #2563eb 100%
        );

    color: #fff;
}


.portfolio-detail-hero::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            rgba(255,255,255,.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.035) 1px,
            transparent 1px
        );

    background-size: 38px 38px;

    opacity: .7;

    pointer-events: none;
}


.portfolio-detail-hero::after {
    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    right: -170px;
    top: -180px;

    background:
        radial-gradient(
            circle,
            rgba(56,189,248,.14),
            transparent 68%
        );

    filter: blur(20px);

    pointer-events: none;
}


.portfolio-detail-hero .container {
    position: relative;

    z-index: 2;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.portfolio-back {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 28px;

    color: rgba(255,255,255,.78);

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    transition:
        color .2s ease,
        transform .2s ease;
}


.portfolio-back:hover {
    color: #fff;

    transform: translateX(-4px);
}


.portfolio-back i {
    font-size: 15px;
}


/* =========================================================
   DETAIL TITLE
========================================================= */

.portfolio-detail-hero h1 {
    max-width: 900px;

    margin: 0 0 16px;

    color: #fff;

    font-size: clamp(34px, 5vw, 52px);

    font-weight: 800;

    line-height: 1.18;

    letter-spacing: -0.035em;
}


/* =========================================================
   DETAIL LOCATION
========================================================= */

.portfolio-location {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 18px;

    color: rgba(255,255,255,.75);

    font-size: 14px;
}


.portfolio-location i {
    color: #38bdf8;
}


/* =========================================================
   DETAIL DESCRIPTION
========================================================= */

.portfolio-detail-hero p {
    max-width: 820px;

    margin: 0;

    color: rgba(255,255,255,.82);

    font-size: 16px;

    line-height: 1.8;
}


/* =========================================================
   DETAIL INTRO
   รองรับหากมี Section นี้ในอนาคต
========================================================= */

.portfolio-detail-intro {
    max-width: 850px;

    margin: 0 auto 65px;

    text-align: center;
}


.portfolio-detail-small-title {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 12px;

    color: #2563eb;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.8px;
}


.portfolio-detail-small-title::before,
.portfolio-detail-small-title::after {
    content: "";

    width: 24px;
    height: 1px;

    background: #93c5fd;
}


.portfolio-detail-intro h2 {
    margin: 0 0 14px;

    color: #172033;

    font-size: 32px;

    font-weight: 800;

    letter-spacing: -0.02em;
}


.portfolio-detail-intro p {
    margin: 0;

    color: #64748b;

    font-size: 16px;

    line-height: 1.85;
}


/* =========================================================
   GALLERY
========================================================= */

.portfolio-gallery-item {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    aspect-ratio: 5 / 4;

    overflow: hidden;

    background: #eef4fb;

    border-radius: 22px;

    box-shadow:
        0 8px 25px rgba(15,23,42,.055);

    text-decoration: none;

    transition:
        transform .28s ease,
        box-shadow .28s ease;
}


.portfolio-gallery-item:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 40px rgba(15,23,42,.12);
}


.portfolio-gallery-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    transition:
        transform .5s ease;
}


.portfolio-gallery-item:hover img {
    transform: scale(1.055);
}


.portfolio-gallery-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        rgba(15,23,42,.48);

    color: #fff;

    font-size: 30px;

    opacity: 0;

    transition:
        opacity .25s ease;
}


.portfolio-gallery-item:hover .portfolio-gallery-overlay {
    opacity: 1;
}


/* =========================================================
   IMAGE MODAL
========================================================= */

.portfolio-modal {
    position: relative;

    overflow: hidden;

    background: #050b14;

    border: 0;

    border-radius: 18px;

    box-shadow:
        0 30px 80px rgba(0,0,0,.45);
}


.portfolio-modal .modal-body {
    position: relative;

    padding: 0;

    text-align: center;
}


.portfolio-modal img {
    display: block;

    width: auto;
    max-width: 100%;

    height: auto;
    max-height: 85vh;

    margin: 0 auto;
}


.portfolio-modal-close {
    position: absolute;

    z-index: 10;

    top: 14px;
    right: 14px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 1px solid rgba(255,255,255,.15);

    border-radius: 50%;

    background:
        rgba(15,23,42,.75);

    color: #fff;

    font-size: 17px;

    backdrop-filter: blur(8px);

    transition:
        background .2s ease,
        transform .2s ease;
}


.portfolio-modal-close:hover {
    background: #2563eb;

    color: #fff;

    transform: rotate(90deg);
}


/* =========================================================
   EMPTY STATE
========================================================= */

.portfolio-empty {
    padding: 70px 25px;

    background: #fff;

    border: 1px dashed #cbd5e1;

    border-radius: 24px;
}


.portfolio-empty-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 72px;
    height: 72px;

    margin: 0 auto 20px;

    background: #eff6ff;

    border-radius: 20px;

    color: #2563eb;

    font-size: 32px;
}


.portfolio-empty h3 {
    margin: 0 0 8px;

    color: #172033;

    font-size: 22px;

    font-weight: 800;
}


.portfolio-empty p {
    max-width: 550px;

    margin: 0 auto;

    color: #64748b;

    line-height: 1.8;
}


/* =========================================================
   NOT FOUND
========================================================= */

.portfolio-not-found {
    padding: 80px 25px;

    text-align: center;
}


.portfolio-not-found-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 82px;
    height: 82px;

    margin: 0 auto 22px;

    background: rgba(255,255,255,.08);

    border: 1px solid rgba(255,255,255,.12);

    border-radius: 50%;

    color: #38bdf8;

    font-size: 36px;
}


.portfolio-not-found h1 {
    margin: 0 0 12px;

    color: #fff;

    font-size: 32px;

    font-weight: 800;
}


.portfolio-not-found p {
    margin: 0 0 25px;

    color: rgba(255,255,255,.75);

    line-height: 1.8;
}


.portfolio-not-found .portfolio-view {
    padding: 12px 20px;

    background: #fff;

    border-radius: 12px;

    color: #2563eb;
}


.portfolio-not-found .portfolio-view:hover {
    background: #eff6ff;

    color: #1d4ed8;
}


/* =========================================================
   CTA
========================================================= */

.portfolio-cta {
    padding: 0 0 90px;

    background: #f8fbff;
}


.portfolio-cta-box {
    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 42px 38px;

    background:
        linear-gradient(
            135deg,
            #2563eb 0%,
            #1d4ed8 100%
        );

    border-radius: 30px;

    color: #fff;

    box-shadow:
        0 24px 60px rgba(37,99,235,.20);
}


.portfolio-cta-box::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -100px;
    top: -150px;

    background:
        radial-gradient(
            circle,
            rgba(255,255,255,.14),
            transparent 68%
        );

    pointer-events: none;
}


.portfolio-cta-box > div {
    position: relative;

    z-index: 2;
}


.portfolio-cta-label {
    display: inline-block;

    margin-bottom: 9px;

    color: rgba(255,255,255,.8);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;
}


.portfolio-cta-box h2 {
    margin: 0 0 10px;

    color: #fff;

    font-size: 32px;

    font-weight: 800;

    letter-spacing: -0.02em;
}


.portfolio-cta-box p {
    max-width: 680px;

    margin: 0;

    color: rgba(255,255,255,.9);

    font-size: 15px;

    line-height: 1.8;
}


.portfolio-cta-button {
    position: relative;

    z-index: 2;

    flex-shrink: 0;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 12px 23px;

    background: #fff;

    border: 1px solid #fff;

    color: #2563eb;

    border-radius: 12px;

    font-weight: 700;

    text-decoration: none;

    box-shadow:
        0 10px 25px rgba(0,0,0,.12);

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}


.portfolio-cta-button:hover {
    background: #eff6ff;

    border-color: #eff6ff;

    color: #1d4ed8;

    transform: translateY(-2px);
}


/* =========================================================
   ACCESSIBILITY / FOCUS
========================================================= */

.portfolio-image:focus-visible,
.portfolio-view:focus-visible,
.portfolio-gallery-item:focus-visible,
.portfolio-back:focus-visible,
.portfolio-cta-button:focus-visible,
.portfolio-modal-close:focus-visible {
    outline: 3px solid rgba(56,189,248,.55);

    outline-offset: 3px;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .portfolio-card,
    .portfolio-image img,
    .portfolio-image-overlay,
    .portfolio-gallery-item,
    .portfolio-gallery-item img,
    .portfolio-gallery-overlay,
    .portfolio-view,
    .portfolio-view i,
    .portfolio-modal-close,
    .portfolio-cta-button {
        transition: none !important;
    }

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991.98px) {

    .portfolio-hero {
        padding: 45px 0 65px;
    }


    .portfolio-section {
        padding: 75px 0;
    }


    .portfolio-cta-box {
        align-items: flex-start;

        flex-direction: column;
    }


    .portfolio-cta-button {
        width: auto;
    }

}


@media (max-width: 767.98px) {

    .portfolio-hero {
        padding: 38px 0 55px;

        text-align: center;
    }


    .portfolio-hero-content {
        margin: 0 auto;
    }


    .portfolio-label {
        justify-content: center;
    }


    .portfolio-hero h1 {
        font-size: 38px;
    }


    .portfolio-hero p {
        font-size: 15px;
    }


    .portfolio-section {
        padding: 60px 0;
    }


    .portfolio-section .section-title {
        font-size: 28px;
    }


    .portfolio-image {
        height: 225px;
    }


    .portfolio-card-body {
        padding: 23px;
    }


    .portfolio-card-body h3 {
        font-size: 19px;
    }


    .portfolio-detail-hero {
        padding: 40px 0 55px;
    }


    .portfolio-detail-hero h1 {
        font-size: 32px;
    }


    .portfolio-detail-intro {
        margin-bottom: 50px;
    }


    .portfolio-detail-intro h2 {
        font-size: 28px;
    }


    .portfolio-gallery-item {
        height: 225px;
    }


    .portfolio-cta {
        padding-bottom: 60px;
    }


    .portfolio-cta-box {
        padding: 34px 25px;

        border-radius: 24px;
    }


    .portfolio-cta-box h2 {
        font-size: 26px;
    }


    .portfolio-cta-button {
        width: 100%;

        justify-content: center;
    }


    .portfolio-not-found {
        padding: 60px 20px;
    }


    .portfolio-not-found h1 {
        font-size: 28px;
    }

}


@media (max-width: 576px) {

    .portfolio-hero h1 {
        font-size: 34px;
    }


    .portfolio-label {
        font-size: 11px;

        letter-spacing: 1.7px;
    }


    .portfolio-image {
        height: 210px;
    }


    .portfolio-gallery-item {
        height: 210px;
    }


    .portfolio-detail-hero h1 {
        font-size: 29px;

        line-height: 1.25;
    }


    .portfolio-detail-hero p {
        font-size: 15px;
    }


    .portfolio-location {
        font-size: 13px;
    }


    .portfolio-card-body {
        padding: 21px;
    }


    .portfolio-card-body h3 {
        font-size: 18px;
    }


    .portfolio-card-body p {
        font-size: 14px;
    }


    .portfolio-cta-box {
        padding: 30px 21px;
    }


    .portfolio-cta-box h2 {
        font-size: 24px;
    }


    .portfolio-cta-box p {
        font-size: 14px;
    }


    .portfolio-modal {
        border-radius: 12px;
    }


    .portfolio-modal-close {
        top: 9px;
        right: 9px;

        width: 38px;
        height: 38px;
    }

}



/* =========================================================
   BLOG CARD
========================================================= */

.blog-card {
    padding: 28px 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: .25s;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
}

.blog-tag {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: .85rem;
    font-weight: 700;
    width: fit-content;
    align-self: flex-start;
}

.blog-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}


/* =========================================================
   SHARED PAGINATION
   ใช้ร่วมกันระหว่าง Blog และ Portfolio
========================================================= */

.blog-pagination-wrapper {
    text-align: center;
}

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.page-link-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #334155;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}

a.page-link-custom:hover {
    color: #2563eb;
    border-color: #2563eb;
    background: #eff6ff;
}

.page-link-custom.active {
    color: #fff;
    border-color: #2563eb;
    background: #2563eb;
    cursor: default;
}

.page-link-custom.disabled {
    color: #94a3b8;
    background: #f8fafc;
    cursor: not-allowed;
}

.page-arrow {
    gap: 5px;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    color: #64748b;
}

.pagination-info {
    margin-top: 18px;
    color: #64748b;
    font-size: .9rem;
}


/* =========================================================
   RESPONSIVE PAGINATION
========================================================= */

@media (max-width: 576px) {
    .blog-pagination {
        gap: 5px;
    }

    .page-link-custom {
        min-width: 36px;
        height: 38px;
        padding: 0 9px;
        border-radius: 10px;
        font-size: .9rem;
    }

    .page-arrow {
        padding: 0 10px;
    }

    .pagination-info {
        font-size: .85rem;
    }
}



/* GOOGLE MAP */
.map-section{
  background:#f8fafc;
  padding:50px 0;
}

.map-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(15,23,42,0.07);
}

.map-frame{
  width:100%;
  background:#e2e8f0;
}

.map-frame iframe{
  display:block;
  width:100%;
  height:420px;
  border:0;
}

/* MOBILE */
@media (max-width:767px){

  .map-section{
    padding-top:60px;
    padding-bottom:35px;
  }

  .map-frame iframe{
    height:320px;
  }

}
/* =========================================
   TERMS PAGE
   ========================================= */

.terms-page {
    --terms-primary: #123d70;
    --terms-secondary: #0879c9;
    --terms-text: #344256;
    --terms-muted: #708096;
    --terms-border: #e4eaf2;
    background: #f5f8fc;
    color: var(--terms-text);
    padding-bottom: 76px;
}

.terms-page *,
.terms-page *::before,
.terms-page *::after {
    box-sizing: border-box;
}

.terms-page .terms-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 84px;
    background: linear-gradient(125deg, #0b2345 0%, #123d70 52%, #0879c9 100%);
    color: #fff;
}

.terms-page .terms-hero::before,
.terms-page .terms-hero::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    pointer-events: none;
}

.terms-page .terms-hero::before {
    width: 420px;
    height: 420px;
    right: -100px;
    top: -230px;
}

.terms-page .terms-hero::after {
    width: 300px;
    height: 300px;
    right: 65px;
    bottom: -220px;
}

.terms-page .terms-hero-inner {
    position: relative;
    z-index: 1;
}

.terms-page .terms-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, .23);
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
    color: #e4f2ff;
    font-size: .82rem;
    letter-spacing: .3px;
}

.terms-page .terms-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.3;
    font-weight: 700;
    margin: 0 0 18px;
}

.terms-page .terms-hero-description {
    max-width: 700px;
    color: rgba(255, 255, 255, .82);
    font-size: 1.03rem;
    line-height: 1.9;
    margin: 0;
}

.terms-page .terms-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 27px;
    color: rgba(255, 255, 255, .78);
    font-size: .88rem;
}

.terms-page .terms-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.terms-page .terms-layout {
    display: grid;
    grid-template-columns: 275px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin-top: -30px;
    position: relative;
    z-index: 2;
}

.terms-page .terms-toc,
.terms-page .terms-content-card,
.terms-page .terms-contact-card {
    background: #fff;
    border: 1px solid var(--terms-border);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(22, 52, 87, .055);
}

.terms-page .terms-toc {
    position: sticky;
    top: 100px;
    padding: 23px 17px;
}

.terms-page .terms-toc-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #173d68;
    font-size: 1rem;
    font-weight: 700;
    padding: 0 8px 17px;
    margin-bottom: 7px;
    border-bottom: 1px solid var(--terms-border);
}

.terms-page .terms-toc-heading i {
    color: var(--terms-secondary);
    font-size: 1.15rem;
}

.terms-page .terms-toc-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.terms-page .terms-toc-list a {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 10px 9px;
    color: #5b6b80;
    text-decoration: none;
    font-size: .87rem;
    line-height: 1.55;
    border-radius: 9px;
    transition: background .2s ease, color .2s ease;
}

.terms-page .terms-toc-list a span {
    display: inline-block;
    flex: 0 0 23px;
    min-width: 23px;
    color: #71849b;
    font-size: .75rem;
    font-weight: 700;
    padding-top: 2px;
    visibility: visible;
    opacity: 1;
}

.terms-page .terms-toc-list a:hover {
    color: #086bb5;
    background: #eff7ff;
}

.terms-page .terms-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.terms-page .terms-intro {
    padding: 27px 30px;
    border-radius: 16px;
    background: linear-gradient(115deg, #eaf4ff, #f6faff);
    border: 1px solid #dcecff;
}

.terms-page .terms-intro-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    border-radius: 13px;
    background: #fff;
    color: var(--terms-secondary);
    box-shadow: 0 4px 12px rgba(23, 100, 170, .08);
    font-size: 1.3rem;
}

.terms-page .terms-intro h2 {
    font-size: 1.08rem;
    font-weight: 700;
    color: #173d68;
    margin: 0 0 7px;
}

.terms-page .terms-intro p {
    font-size: .92rem;
    line-height: 1.8;
    color: #60748d;
    margin: 0;
}

.terms-page .terms-content-card {
    padding: 29px 31px;
    scroll-margin-top: 105px;
}

.terms-page .terms-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 17px;
}

.terms-page .terms-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    min-width: 43px;
    flex: 0 0 43px;
    border-radius: 12px;
    background: #edf5ff;
    color: #1266ad;
    font-size: .83rem;
    font-weight: 700;
    line-height: 1;
    visibility: visible;
    opacity: 1;
}

.terms-page .terms-section-heading h2 {
    color: #173958;
    font-size: 1.13rem;
    font-weight: 700;
    line-height: 1.6;
    margin: 5px 0 0;
}

.terms-page .terms-section-body {
    padding-left: 58px;
    font-size: .94rem;
    line-height: 1.95;
    color: #536277;
    overflow-wrap: anywhere;
}

.terms-page .terms-section-body p {
    margin: 0 0 13px;
}

.terms-page .terms-section-body p:last-child {
    margin-bottom: 0;
}

.terms-page .terms-section-body ul {
    padding-left: 21px;
    margin: 10px 0 0;
}

.terms-page .terms-section-body li {
    padding-left: 4px;
    margin-bottom: 8px;
}

.terms-page .terms-section-body li::marker {
    color: #1680cb;
}

.terms-page .terms-section-body a {
    color: #0879c9;
    font-weight: 600;
    text-decoration: none;
}

.terms-page .terms-section-body a:hover {
    text-decoration: underline;
}

.terms-page .terms-contact-card {
    padding: 30px;
    margin-top: 5px;
    background: linear-gradient(135deg, #fff 0%, #f2f8ff 100%);
}

.terms-page .terms-contact-title {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 22px;
}

.terms-page .terms-contact-icon {
    width: 49px;
    height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 49px;
    border-radius: 14px;
    background: #e5f2ff;
    color: #0879c9;
    font-size: 1.35rem;
}

.terms-page .terms-contact-title h2 {
    color: #173958;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 5px;
}

.terms-page .terms-contact-title p {
    color: #718198;
    font-size: .9rem;
    margin: 0;
}

.terms-page .terms-contact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.terms-page .terms-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    min-width: 0;
    border: 1px solid var(--terms-border);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}

.terms-page .terms-contact-item:hover {
    border-color: #a8d5ff;
    transform: translateY(-2px);
}

.terms-page .terms-contact-item > i {
    color: #0879c9;
    font-size: 1.2rem;
}

.terms-page .terms-contact-item div {
    min-width: 0;
}

.terms-page .terms-contact-item small {
    display: block;
    color: #8794a6;
    font-size: .76rem;
    margin-bottom: 3px;
}

.terms-page .terms-contact-item strong {
    display: block;
    color: #29425e;
    font-size: .87rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.terms-page .terms-bottom-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 20px 5px 0;
    font-size: .9rem;
}

.terms-page .terms-bottom-links a {
    color: #176db0;
    font-weight: 600;
    text-decoration: none;
}

.terms-page .terms-bottom-links a:hover {
    text-decoration: underline;
}

.terms-page .terms-bottom-links span {
    color: #b3bfcc;
}

@media (max-width: 991.98px) {
    .terms-page .terms-hero {
        padding: 58px 0 68px;
    }

    .terms-page .terms-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .terms-page .terms-toc {
        position: static;
    }

    .terms-page .terms-toc-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .terms-page .terms-content-card {
        padding: 25px;
    }
}

@media (max-width: 575.98px) {
    .terms-page .terms-hero {
        padding: 45px 0 58px;
    }

    .terms-page .terms-hero h1 {
        font-size: 1.85rem;
    }

    .terms-page .terms-hero-description {
        font-size: .94rem;
    }

    .terms-page .terms-hero-meta {
        flex-direction: column;
        gap: 9px;
    }

    .terms-page .terms-toc {
        padding: 18px 13px;
    }

    .terms-page .terms-toc-list {
        grid-template-columns: 1fr;
    }

    .terms-page .terms-intro,
    .terms-page .terms-content-card,
    .terms-page .terms-contact-card {
        padding: 21px 18px;
        border-radius: 14px;
    }

    .terms-page .terms-section-heading {
        gap: 11px;
    }

    .terms-page .terms-section-number {
        width: 37px;
        height: 37px;
        min-width: 37px;
        flex-basis: 37px;
    }

    .terms-page .terms-section-heading h2 {
        font-size: 1.02rem;
    }

    .terms-page .terms-section-body {
        padding-left: 0;
        font-size: .9rem;
    }

    .terms-page .terms-contact-list {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .terms-page *,
    .terms-page *::before,
    .terms-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}



/* =========================================
   PRIVACY POLICY PAGE
   J&P IT Solution
========================================= */

.privacy-policy-page {
    --privacy-primary: #123b68;
    --privacy-primary-dark: #0a2747;
    --privacy-accent: #18a6c9;
    --privacy-text: #344256;
    --privacy-muted: #718096;
    --privacy-border: #e3eaf2;
    --privacy-surface: #f5f8fc;

    color: var(--privacy-text);
    background: #fff;
    line-height: 1.85;
}

.privacy-policy-page *,
.privacy-policy-page *::before,
.privacy-policy-page *::after {
    box-sizing: border-box;
}

.privacy-policy-page a {
    overflow-wrap: anywhere;
}

/* =========================================
   HERO
========================================= */

.privacy-policy-page .privacy-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 76px 24px 80px;
    background:
        radial-gradient(
            circle at 88% 12%,
            rgba(24, 166, 201, 0.19),
            transparent 32%
        ),
        linear-gradient(
            120deg,
            #091f3b 0%,
            #123b68 58%,
            #176b94 100%
        );
    color: #fff;
}

.privacy-policy-page .privacy-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -180px;
    right: -100px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    box-shadow:
        0 0 0 38px rgba(255, 255, 255, 0.025),
        0 0 0 78px rgba(255, 255, 255, 0.018);
    pointer-events: none;
}

.privacy-policy-page .privacy-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: 10%;
    bottom: -210px;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    pointer-events: none;
}

.privacy-policy-page .privacy-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    text-align: left;
}

.privacy-policy-page .privacy-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 20px;
    color: #91e5f5;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.15em;
}

.privacy-policy-page .privacy-eyebrow::before {
    content: "";
    display: inline-block;
    flex: 0 0 30px;
    width: 30px;
    height: 2px;
    border-radius: 2px;
    background: #40c5e3;
}

.privacy-policy-page .privacy-hero h1 {
    max-width: 900px;
    margin: 0 0 19px;
    color: #fff;
    font-size: clamp(2.15rem, 4.5vw, 3.4rem);
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}

.privacy-policy-page .privacy-hero-description {
    max-width: 760px;
    margin: 0 0 19px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.04rem;
    font-weight: 400;
    line-height: 1.9;
}

.privacy-policy-page .privacy-company-name {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-top: 4px;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
    line-height: 1.8;
    letter-spacing: 0.025em;
}

/* =========================================
   MAIN CONTENT
========================================= */

.privacy-policy-page .privacy-content-section {
    padding: 56px 0 76px;
}

.privacy-policy-page .privacy-intro {
    display: flex;
    align-items: flex-start;
    gap: 19px;
    margin-bottom: 34px;
    padding: 25px 27px;
    border: 1px solid #dceaf3;
    border-radius: 18px;
    background: linear-gradient(135deg, #f4faff, #fff);
}

.privacy-policy-page .privacy-intro-icon {
    display: flex;
    flex: 0 0 50px;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: #e0f4fb;
    color: var(--privacy-primary);
    font-size: 1.55rem;
}

.privacy-policy-page .privacy-intro h2 {
    margin: 0 0 8px;
    color: var(--privacy-primary);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.6;
}

.privacy-policy-page .privacy-intro p {
    margin: 0;
    color: #536477;
    font-size: 0.97rem;
    line-height: 1.9;
}

/* =========================================
   TABLE OF CONTENTS
========================================= */

.privacy-policy-page .privacy-toc {
    margin-bottom: 48px;
    padding: 28px;
    border: 1px solid var(--privacy-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(15, 45, 75, 0.055);
}

.privacy-policy-page .privacy-toc-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 19px;
    border-bottom: 1px solid var(--privacy-border);
}

.privacy-policy-page .privacy-toc-icon {
    display: flex;
    flex: 0 0 45px;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 13px;
    background: var(--privacy-primary);
    color: #fff;
    font-size: 1.35rem;
}

.privacy-policy-page .privacy-toc-header h2 {
    margin: 0 0 2px;
    color: var(--privacy-primary);
    font-size: 1.3rem;
    font-weight: 750;
    line-height: 1.5;
}

.privacy-policy-page .privacy-toc-header p {
    margin: 0;
    color: var(--privacy-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.privacy-policy-page .privacy-toc-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.privacy-policy-page .privacy-toc-list li {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.privacy-policy-page .privacy-toc-list a {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-height: 48px;
    padding: 11px 10px;
    border-radius: 10px;
    color: var(--privacy-text);
    text-decoration: none;
    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}

.privacy-policy-page .privacy-toc-list a:hover {
    background: #f0f7fc;
    color: var(--privacy-primary);
}

.privacy-policy-page .privacy-toc-number {
    display: inline-flex;
    flex: 0 0 29px;
    align-items: center;
    justify-content: center;
    width: 29px;
    min-width: 29px;
    height: 29px;
    border: 1px solid #dce8f2;
    border-radius: 8px;
    background: #f4f8fc;
    color: var(--privacy-primary);
    font-size: 0.76rem;
    font-weight: 750;
    line-height: 1;
    visibility: visible;
    opacity: 1;
}

.privacy-policy-page .privacy-toc-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.91rem;
    font-weight: 550;
    line-height: 1.65;
}

.privacy-policy-page .privacy-toc-list a > i {
    flex: 0 0 auto;
    margin-top: 5px;
    color: #93a7ba;
    font-size: 0.82rem;
}

/* =========================================
   POLICY ARTICLE
========================================= */

.privacy-policy-page .privacy-article {
    width: 100%;
}

.privacy-policy-page .privacy-section {
    scroll-margin-top: 105px;
    margin-bottom: 37px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--privacy-border);
}

.privacy-policy-page .privacy-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.privacy-policy-page .privacy-section h2 {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 20px;
    color: var(--privacy-primary);
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 750;
    line-height: 1.65;
}

.privacy-policy-page .privacy-section-number {
    display: inline-flex;
    flex: 0 0 43px;
    align-items: center;
    justify-content: center;
    width: 43px;
    min-width: 43px;
    height: 43px;
    margin-top: 1px;
    border: 1px solid #d6e9f4;
    border-radius: 12px;
    background: linear-gradient(135deg, #e9f6fc, #f4faff);
    color: var(--privacy-primary);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    visibility: visible;
    opacity: 1;
}

.privacy-policy-page .privacy-section h3 {
    margin: 24px 0 10px;
    color: #244d73;
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.65;
}

.privacy-policy-page .privacy-section p {
    margin: 0 0 15px;
    color: #465669;
    font-size: 0.98rem;
    line-height: 1.95;
}

.privacy-policy-page .privacy-section p:last-child {
    margin-bottom: 0;
}

.privacy-policy-page .privacy-section ul {
    margin: 10px 0 19px;
    padding-left: 24px;
    color: #465669;
}

.privacy-policy-page .privacy-section ul li {
    margin-bottom: 8px;
    padding-left: 4px;
    line-height: 1.85;
}

.privacy-policy-page .privacy-section ul li::marker {
    color: var(--privacy-accent);
}

.privacy-policy-page .privacy-section a {
    color: #14699a;
    text-decoration: underline;
    text-decoration-color: rgba(20, 105, 154, 0.3);
    text-underline-offset: 3px;
}

.privacy-policy-page .privacy-section a:hover {
    color: #0a4770;
    text-decoration-color: currentColor;
}

/* =========================================
   CONTACT DETAILS
========================================= */

.privacy-policy-page .privacy-contact-list {
    padding-left: 0 !important;
    list-style: none;
}

.privacy-policy-page .privacy-contact-list li {
    margin-bottom: 10px;
    padding-left: 0 !important;
}

.privacy-policy-page .privacy-contact-list strong {
    color: #243f5d;
}

.privacy-policy-page .privacy-contact-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 38px;
    padding: 28px;
    border: 1px solid #d8e8f3;
    border-radius: 18px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(24, 166, 201, 0.09),
            transparent 38%
        ),
        #f7fbfe;
}

.privacy-policy-page .privacy-contact-card-icon {
    display: flex;
    flex: 0 0 49px;
    align-items: center;
    justify-content: center;
    width: 49px;
    height: 49px;
    border-radius: 14px;
    background: var(--privacy-primary);
    color: #fff;
    font-size: 1.4rem;
}

.privacy-policy-page .privacy-contact-card-content {
    flex: 1 1 auto;
    min-width: 0;
}

.privacy-policy-page .privacy-contact-card h2 {
    margin: 0 0 8px;
    color: var(--privacy-primary);
    font-size: 1.2rem;
    font-weight: 750;
    line-height: 1.6;
}

.privacy-policy-page .privacy-contact-card p {
    margin: 0 0 18px;
    color: #536477;
    font-size: 0.95rem;
    line-height: 1.85;
}

.privacy-policy-page .privacy-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.privacy-policy-page .privacy-action-primary,
.privacy-policy-page .privacy-action-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.91rem;
    font-weight: 650;
    text-decoration: none;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease;
}

.privacy-policy-page .privacy-action-primary {
    background: var(--privacy-primary);
    color: #fff;
}

.privacy-policy-page .privacy-action-primary:hover {
    background: var(--privacy-primary-dark);
    color: #fff;
}

.privacy-policy-page .privacy-action-secondary {
    border-color: #d4e3ee;
    background: #fff;
    color: var(--privacy-primary);
}

.privacy-policy-page .privacy-action-secondary:hover {
    border-color: #9ec7dc;
    background: #edf7fc;
    color: var(--privacy-primary-dark);
}

/* =========================================
   BOTTOM LINKS
========================================= */

.privacy-policy-page .privacy-bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin-top: 35px;
    padding-top: 23px;
    border-top: 1px solid var(--privacy-border);
}

.privacy-policy-page .privacy-bottom-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--privacy-primary);
    font-size: 0.93rem;
    font-weight: 650;
    text-decoration: none;
}

.privacy-policy-page .privacy-bottom-links a:hover {
    color: var(--privacy-accent);
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 767.98px) {
    .privacy-policy-page .privacy-hero {
        padding: 49px 20px 54px;
    }

    .privacy-policy-page .privacy-hero-content {
        text-align: left;
    }

    .privacy-policy-page .privacy-eyebrow {
        gap: 9px;
        margin-bottom: 15px;
        font-size: 0.68rem;
        letter-spacing: 0.12em;
    }

    .privacy-policy-page .privacy-eyebrow::before {
        flex-basis: 22px;
        width: 22px;
    }

    .privacy-policy-page .privacy-hero h1 {
        margin-bottom: 15px;
        font-size: clamp(1.85rem, 7vw, 2.4rem);
        line-height: 1.4;
    }

    .privacy-policy-page .privacy-hero-description {
        margin-bottom: 15px;
        font-size: 0.95rem;
        line-height: 1.85;
    }

    .privacy-policy-page .privacy-company-name {
        font-size: 0.8rem;
        line-height: 1.8;
    }

    .privacy-policy-page .privacy-content-section {
        padding: 32px 0 48px;
    }

    .privacy-policy-page .privacy-intro {
        gap: 13px;
        margin-bottom: 24px;
        padding: 19px;
        border-radius: 14px;
    }

    .privacy-policy-page .privacy-intro-icon {
        flex-basis: 41px;
        width: 41px;
        height: 41px;
        font-size: 1.3rem;
    }

    .privacy-policy-page .privacy-intro h2 {
        font-size: 1.08rem;
    }

    .privacy-policy-page .privacy-intro p {
        font-size: 0.92rem;
    }

    .privacy-policy-page .privacy-toc {
        margin-bottom: 34px;
        padding: 19px 15px;
        border-radius: 15px;
    }

    .privacy-policy-page .privacy-toc-header {
        gap: 11px;
        margin-bottom: 16px;
        padding-bottom: 15px;
    }

    .privacy-policy-page .privacy-toc-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        border-radius: 11px;
        font-size: 1.2rem;
    }

    .privacy-policy-page .privacy-toc-header h2 {
        font-size: 1.15rem;
    }

    .privacy-policy-page .privacy-toc-header p {
        font-size: 0.84rem;
    }

    .privacy-policy-page .privacy-toc-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
    }

    .privacy-policy-page .privacy-toc-list a {
        gap: 10px;
        padding: 9px 5px;
    }

    .privacy-policy-page .privacy-toc-title {
        font-size: 0.9rem;
    }

    .privacy-policy-page .privacy-section {
        scroll-margin-top: 85px;
        margin-bottom: 28px;
        padding-bottom: 27px;
    }

    .privacy-policy-page .privacy-section h2 {
        gap: 11px;
        margin-bottom: 15px;
        font-size: 1.13rem;
    }

    .privacy-policy-page .privacy-section-number {
        flex-basis: 37px;
        width: 37px;
        min-width: 37px;
        height: 37px;
        border-radius: 10px;
        font-size: 0.76rem;
    }

    .privacy-policy-page .privacy-section p,
    .privacy-policy-page .privacy-section ul {
        font-size: 0.94rem;
    }

    .privacy-policy-page .privacy-contact-card {
        gap: 13px;
        margin-top: 28px;
        padding: 20px 16px;
        border-radius: 14px;
    }

    .privacy-policy-page .privacy-contact-card-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        border-radius: 11px;
        font-size: 1.2rem;
    }

    .privacy-policy-page .privacy-contact-card h2 {
        font-size: 1.08rem;
    }

    .privacy-policy-page .privacy-contact-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .privacy-policy-page .privacy-action-primary,
    .privacy-policy-page .privacy-action-secondary {
        width: 100%;
    }

    .privacy-policy-page .privacy-bottom-links {
        flex-direction: column;
        gap: 14px;
    }
}

/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {
    .privacy-policy-page .privacy-toc-list a,
    .privacy-policy-page .privacy-action-primary,
    .privacy-policy-page .privacy-action-secondary {
        transition: none;
    }
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 767.98px) {
    .privacy-policy-page .privacy-hero {
        padding: 48px 20px 52px;
    }

    .privacy-policy-page .privacy-hero-content {
        text-align: left;
    }

    .privacy-policy-page .privacy-hero h1 {
        font-size: 1.9rem;
    }

    .privacy-policy-page .privacy-hero-description {
        font-size: 0.96rem;
    }

    .privacy-policy-page .privacy-company-name {
        font-size: 0.85rem;
    }

    .privacy-policy-page .privacy-content-section {
        padding: 32px 0 48px;
    }

    .privacy-policy-page .privacy-intro {
        gap: 13px;
        margin-bottom: 24px;
        padding: 19px;
        border-radius: 14px;
    }

    .privacy-policy-page .privacy-intro-icon {
        flex-basis: 41px;
        width: 41px;
        height: 41px;
        font-size: 1.3rem;
    }

    .privacy-policy-page .privacy-intro h2 {
        font-size: 1.08rem;
    }

    .privacy-policy-page .privacy-intro p {
        font-size: 0.92rem;
    }

    .privacy-policy-page .privacy-toc {
        margin-bottom: 34px;
        padding: 19px 15px;
        border-radius: 15px;
    }

    .privacy-policy-page .privacy-toc-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
    }

    .privacy-policy-page .privacy-toc-list a {
        gap: 10px;
        padding: 9px 5px;
    }

    .privacy-policy-page .privacy-toc-title {
        font-size: 0.9rem;
    }

    .privacy-policy-page .privacy-section {
        scroll-margin-top: 85px;
        margin-bottom: 28px;
        padding-bottom: 27px;
    }

    .privacy-policy-page .privacy-section h2 {
        gap: 11px;
        margin-bottom: 15px;
        font-size: 1.13rem;
    }

    .privacy-policy-page .privacy-section-number {
        flex-basis: 37px;
        width: 37px;
        min-width: 37px;
        height: 37px;
        border-radius: 10px;
        font-size: 0.76rem;
    }

    .privacy-policy-page .privacy-section p,
    .privacy-policy-page .privacy-section ul {
        font-size: 0.94rem;
    }

    .privacy-policy-page .privacy-contact-card {
        gap: 13px;
        margin-top: 28px;
        padding: 20px 16px;
        border-radius: 14px;
    }

    .privacy-policy-page .privacy-contact-card-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        border-radius: 11px;
        font-size: 1.2rem;
    }

    .privacy-policy-page .privacy-contact-card h2 {
        font-size: 1.08rem;
    }

    .privacy-policy-page .privacy-contact-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .privacy-policy-page .privacy-action-primary,
    .privacy-policy-page .privacy-action-secondary {
        width: 100%;
    }

    .privacy-policy-page .privacy-bottom-links {
        flex-direction: column;
        gap: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .privacy-policy-page .privacy-toc-list a,
    .privacy-policy-page .privacy-action-primary,
    .privacy-policy-page .privacy-action-secondary {
        transition: none;
    }
}

/* RELATED CCTV SERVICE */
.catalog-installation-related {
    margin-top: 40px;
    margin-bottom: 40px;
}

.catalog-installation-related h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.catalog-installation-related p {
    line-height: 1.8;
}

/* FAQ */
.catalog-installation-faq {
    margin-top: 48px;
    margin-bottom: 48px;
}

.catalog-installation-faq > h2 {
    font-weight: 700;
    margin-bottom: 24px;
}

.catalog-installation-faq-list {
    display: grid;
    gap: 16px;
}

.catalog-installation-faq-item {
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.catalog-installation-faq-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 12px;
}

.catalog-installation-faq-item p {
    line-height: 1.8;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .catalog-installation-faq-item {
        padding: 18px;
    }
}


/* =========================
   Responsive
========================= */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 30px 0 60px;
        text-align: center;
    }

    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.75rem;
    }

    .hero-checklist {
        text-align: left;
        margin-top: 1.25rem;
    }

    .stats-box {
        margin-bottom: 1rem;
    }

    .page-banner {
        padding: 30px 0 60px;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.75rem;
    }

    .hero-section h1,
    .hero-section .display-4,
    .hero-section .display-5 {
        font-size: 2.18rem;
    }

    .icon-card .card-body,
    .info-card .card-body,
    .portal-card .card-body,
    .report-card .card-body,
    .login-card .card-body,
    .admin-card .card-body {
        padding: 1.25rem;
    }

    .footer-section {
        padding-top: 30px;
    }
    /* 🔥 หัวข้อ */
    .footer-section .col-lg-3 .footer-headingline {
        text-align: center;
    }

    /* QR อยู่กลาง */
    .footer-qr {
        display: block;
        margin: 0 auto 10px;
    }

    /* icon อยู่กลาง */
    .footer-social {
        display: flex;
        justify-content: center;
        gap: 10px;
    }


    .table > :not(caption) > * > * {
        padding: 0.85rem 0.82rem;
    }
}
@media (max-width: 576px) {

    .hero-subtitle {
        white-space: normal;
    }

}

/* Preserve existing image layout while serving responsive WebP alternatives. */
picture.site-picture { display: contents; }

.content-next {
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid #dbe4ef;
    border-radius: 1rem;
    background: #f5f8fc;
    color: #16243b;
}
.content-next-links { padding-inline-start: 1.3rem; }
.content-next-links a { display: inline-flex; align-items: center; min-height: 2rem; overflow-wrap: anywhere; color: #1d4ed8; }
.content-next a:focus-visible, .contact-inquiry :focus-visible {
    outline: 3px solid #1d4ed8;
    outline-offset: 3px;
}
.contact-inquiry { scroll-margin-top: 8rem; }
.cms-article-body :is(h2,h3)[id], .cms-news-body :is(h2,h3)[id] { scroll-margin-top: 8rem; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    .navbar .collapsing, .portfolio-modal.fade .modal-dialog { transition: none !important; }
}


/* Public B2B design system. Keep CMS, portal, and legacy utility layouts scoped out. */
:where(.premium-site, .premium-nav, .premium-footer) {
    --jpit-ink: #10233e;
    --jpit-night: #0b1b30;
    --jpit-deep: #122d4a;
    --jpit-blue: #1457b4;
    --jpit-cyan: #9cddff;
    --jpit-muted: #4c6076;
    --jpit-line: #dbe5ef;
    --jpit-wash: #f1f6fb;
    --jpit-radius: 14px;
    --jpit-section: clamp(2.5rem, 4.5vw, 4.25rem);
    --jpit-shadow: 0 10px 30px rgb(15 35 61 / 8%);
}

.premium-site { color: var(--jpit-ink); }
:where(.premium-site, .premium-nav, .premium-footer) :is(a, button, input, select, textarea):focus-visible {
    outline: 3px solid #2970c3;
    outline-offset: 3px;
}
.premium-site .btn { border-radius: 9px; font-weight: 600; min-height: 44px; }
.premium-site .btn-primary { --bs-btn-bg: var(--jpit-blue); --bs-btn-border-color: var(--jpit-blue); }
.premium-site .section-title { letter-spacing: -.025em; margin-bottom: .4rem; }
.premium-site .content-next { border-color: var(--jpit-line); border-radius: var(--jpit-radius); }
.premium-footer.footer-section {
    background: var(--jpit-night);
    border-top: 3px solid #2982c9;
}
/* Footer legal links - accessibility contrast */
.premium-footer a[href="/terms"],
.premium-footer a[href="/privacy-policy"] {
    color: #e2e8f0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.premium-footer a[href="/terms"]:hover,
.premium-footer a[href="/privacy-policy"]:hover {
    color: #ffffff;
}
.premium-footer.footer-section::before { display: none; }
.premium-footer .footer-title { font-size: 1.4rem; font-weight: 700; }
.premium-footer .footer-contact a { color: #e1efff; overflow-wrap: anywhere; text-underline-offset: 3px; }

.premium-kicker {
    color: var(--jpit-blue);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    margin: 0 0 .9rem;
}
.premium-kicker span {
    display: inline-block;
    vertical-align: middle;
    width: 1.4em;
    margin-inline: .4em;
    border-top: 1px solid currentColor;
}
.premium-hero,
.premium-proof {
    min-height: 0;
    color: #fff;
    background: radial-gradient(ellipse at 86% 16%, #1c4164, transparent 58%), var(--jpit-night);
}
.premium-hero-grid,
.premium-proof-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: clamp(1.75rem, 5vw, 5rem);
    padding-block: clamp(1.25rem, 2.2vw, 2rem);
}
.premium-hero .premium-kicker,
.premium-proof .premium-kicker { color: var(--jpit-cyan); }
.premium-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.2;
    letter-spacing: -.045em;
    font-weight: 750;
    margin-bottom: .85rem;
    text-wrap: balance;
}
.premium-hero h1 em { display: block; color: var(--jpit-cyan); font-style: normal; }
.premium-hero-lead,
.premium-proof p:not(.premium-kicker) { color: #d3e3f3; line-height: 1.75; max-width: 54ch; }
.premium-hero-lead { font-size: clamp(1.02rem, 1.45vw, 1.2rem); margin-bottom: 1rem; }
.premium-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.premium-actions .btn,
.premium-proof .btn { padding: .75rem 1rem; }
.premium-hero .btn-primary {
    --bs-btn-bg: #9cddff;
    --bs-btn-border-color: #9cddff;
    --bs-btn-color: #0b1b30;
    --bs-btn-hover-bg: #c6eeff;
    --bs-btn-hover-border-color: #c6eeff;
    --bs-btn-hover-color: #0b1b30;
    background: var(--bs-btn-bg);
    color: var(--bs-btn-color);
}
.premium-hero .btn-primary:hover { background: var(--bs-btn-hover-bg); color: var(--bs-btn-hover-color); }
.premium-hero :focus-visible,
.premium-proof :focus-visible { outline-color: var(--jpit-cyan); }
.premium-hero-media {
    margin: 0;
    padding: .55rem;
    background: rgb(219 238 255 / 8%);
    border: 1px solid rgb(219 238 255 / 24%);
    border-radius: var(--jpit-radius);
}
.premium-hero-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 7 / 5;
    object-fit: cover;
    display: block;
    border-radius: 9px;
}
.premium-hero-media figcaption {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    padding: .75rem .45rem .25rem;
    color: #e8f3ff;
    font-size: .82rem;
}
.premium-hero-media figcaption span { color: var(--jpit-cyan); letter-spacing: .08em; }
.premium-paths { background: var(--jpit-wash); border-bottom: 1px solid var(--jpit-line); }
.premium-paths .container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.premium-paths a {
    display: flex;
    gap: .65rem;
    align-items: center;
    padding: .9rem clamp(.45rem, 1.5vw, 1.3rem);
    min-height: 54px;
    color: var(--jpit-ink);
    text-decoration: none;
    font-weight: 650;
}
.premium-paths a + a { border-inline-start: 1px solid var(--jpit-line); }
.premium-paths a:hover { background: #e5eef8; text-decoration: underline; }
.premium-paths span { color: var(--jpit-blue); font-size: .75rem; }
.premium-paths b { margin-inline-start: auto; color: var(--jpit-blue); }
.premium-home .premium-home-band { padding-block: var(--jpit-section) !important; }
.premium-home .premium-home-band .card {
    border: 1px solid var(--jpit-line) !important;
    border-radius: var(--jpit-radius);
    box-shadow: none !important;
}
.premium-home .premium-home-band .icon-box { background: var(--jpit-wash); color: var(--jpit-blue); }
.premium-proof h2,
.premium-section-heading h2 {
    font-weight: 750;
    letter-spacing: -.03em;
    font-size: clamp(1.65rem, 3.05vw, 3.2rem);
    text-wrap: balance;
}
.premium-proof h2 { color: #fff; }
.premium-proof-topics { list-style: none; margin: 0; padding: 0; }
.premium-proof-topics li {
    display: flex;
    align-items: center;
    gap: .85rem;
    border-top: 1px solid #52708e;
    padding: 1rem 0;
    font-weight: 650;
}
.premium-proof-topics li:last-child { border-bottom: 1px solid #52708e; }
.premium-proof-topics span { color: var(--jpit-cyan); font-size: .8rem; }
.premium-products { padding-block: var(--jpit-section); background: var(--jpit-wash); }
.premium-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.premium-section-heading p:last-child { margin: 0; color: var(--jpit-muted); }
.premium-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.premium-product {
    border: 1px solid var(--jpit-line);
    border-radius: var(--jpit-radius);
    overflow: hidden;
    background: #fff;
}
.premium-product img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: contain; padding: 1rem; }
.premium-product-copy { padding: 1.1rem; border-top: 1px solid var(--jpit-line); }
.premium-product-copy .premium-kicker { margin-bottom: .35rem; }
.premium-product h3 { font-size: 1.08rem; line-height: 1.45; overflow-wrap: anywhere; }
.premium-product a { color: var(--jpit-ink); text-underline-offset: 3px; }

.premium-site :is(.premium-page-hero, .portfolio-hero, .portfolio-detail-hero, .catalog-hero) {
    border-bottom: 1px solid #365a7d;
}
.premium-site .premium-page-hero {
    background: radial-gradient(ellipse at 83% 20%, #1b4266, transparent 66%), var(--jpit-night);
    padding-block: clamp(1.75rem, 3vw, 2.75rem) !important;
}
.premium-site :is(.premium-page-hero, .portfolio-hero, .portfolio-detail-hero) h1 { text-wrap: balance; }
.premium-service > section:first-child:not(.premium-page-hero),
.premium-editorial > section.endpoint-hero {
    border-bottom: 2px solid #4984b6;
}
.premium-service :is(.service-card, .problem-card, .feature-card, .step-card),
.premium-portfolio .portfolio-card,
.premium-editorial :is(.blog-card, .premium-editorial-card),
.premium-contact :is(.contact-card, .form-card, .map-card) {
    border: 1px solid var(--jpit-line) !important;
    border-radius: var(--jpit-radius) !important;
    box-shadow: var(--jpit-shadow);
}
.premium-service :is(.service-card, .problem-card, .feature-card, .step-card) h3 { color: var(--jpit-ink); }
.premium-portfolio .portfolio-card-body { border-top: 1px solid var(--jpit-line); }
.premium-portfolio .portfolio-gallery-item { border-radius: var(--jpit-radius); }
.premium-editorial .premium-editorial-article :is(.cms-article-body, .cms-news-body) {
    color: var(--jpit-ink);
    line-height: 1.82;
}
.premium-editorial .premium-editorial-article :is(.cms-article-body, .cms-news-body) h2 {
    border-inline-start: 3px solid var(--jpit-blue);
    padding-inline-start: .8rem;
    margin-block-start: 2.25rem;
    scroll-margin-top: 6rem;
}
.premium-editorial-article .editorial-toc {
    margin: 1.6rem 0 2rem;
    padding: clamp(1rem, 3vw, 1.65rem);
    background: var(--jpit-wash);
    border: 1px solid var(--jpit-line);
    border-radius: var(--jpit-radius);
    color: var(--jpit-ink);
}
.premium-editorial-article .editorial-toc .editorial-toc-title {
    margin: 0 0 .7rem;
    color: var(--jpit-ink);
    font-size: 1.15rem;
    font-weight: 700;
}
.premium-editorial-article .editorial-toc :is(ol, ul) {
    margin: 0;
    padding-inline-start: 1.35rem;
}
.premium-editorial-article .editorial-toc ul { margin: .15rem 0 .35rem; }
.premium-editorial-article .editorial-toc li { margin: .3rem 0; }
.premium-editorial-article .editorial-toc li::marker { color: var(--jpit-muted); }
.premium-editorial-article .editorial-toc a {
    color: var(--jpit-blue);
    line-height: 1.5;
    text-underline-offset: .2em;
    overflow-wrap: anywhere;
}
.premium-editorial-article .editorial-toc a:is(:hover, :active) { color: var(--jpit-night); }
.premium-editorial .premium-editorial-article :is(.cms-article-body, .cms-news-body) :is(h2, h3, span)[id] {
    scroll-margin-top: 6rem;
}
.premium-editorial-article :is(h2, h3):target { text-decoration: underline; text-underline-offset: .2em; }
.premium-contact #contact-inquiry { scroll-margin-top: 6rem; }
.premium-contact .form-card :is(input, select, textarea) { border-color: #aabacd; }
.premium-contact .form-card :is(input, select) { min-height: 44px; }
.premium-contact .form-card label { color: var(--jpit-ink); font-weight: 650; }
.premium-contact .map-section { padding-block: 2rem; }
.premium-contact-channels {
    background: rgb(224 241 255 / 7%);
    border: 1px solid #52708e;
    border-radius: var(--jpit-radius);
}
.premium-contact-channels a {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .8rem;
    min-height: 44px;
    border-top: 1px solid #52708e;
    color: #fff;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}
.premium-contact-channels a span { min-width: 4rem; color: var(--jpit-cyan); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .premium-site :is(.premium-product, .service-card, .portfolio-card, .blog-card, .premium-editorial-card) {
        transition: border-color .18s ease, box-shadow .18s ease;
    }
    .premium-site :is(.premium-product, .service-card, .portfolio-card, .blog-card, .premium-editorial-card):is(:hover, :focus-within) {
        border-color: #8fb5dc !important;
        box-shadow: 0 14px 34px rgb(15 35 61 / 12%);
    }
}
@media (max-width: 991.98px) {
    .premium-hero-grid, .premium-proof-grid { grid-template-columns: minmax(0, 1fr); }
    .premium-hero-media { max-width: 34rem; }
    .premium-hero h1 em { display: inline; }
    .premium-paths .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .premium-paths a:nth-child(3) { border-inline-start: none; }
    .premium-paths a:nth-child(n+3) { border-top: 1px solid var(--jpit-line); }
}
@media (max-width: 575.98px) {
    .premium-hero-grid { gap: 1.45rem; }
    .premium-hero-media {
        display: grid;
        grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
        align-items: center;
    }
    .premium-hero-media img { aspect-ratio: 4 / 3; }
    .premium-hero-media figcaption {
        display: grid;
        justify-content: start;
        padding: .45rem .7rem;
        font-size: .9rem;
    }
    .premium-hero-media figcaption span { font-size: .72rem; }
    .premium-paths a { font-size: .88rem; gap: .4rem; }
    .premium-product-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .premium-site :is(.btn, .premium-product, .service-card, .portfolio-card, .blog-card, .premium-editorial-card) {
        transition: none !important;
    }
}
/* ==========================================
   HOMEPAGE HERO — MOBILE RESPONSIVE
   J&P IT Solution
========================================== */

@media (max-width: 575.98px) {

    .premium-home .premium-hero-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .premium-home .premium-hero h1 {
        font-size: clamp(1.9rem, 7.5vw, 2.35rem);
        line-height: 1.3;
        letter-spacing: -0.025em;
        margin-bottom: 18px;
    }

    .premium-home .premium-hero h1 em {
        display: block;
        font-style: normal;
    }

    .premium-home .premium-hero-lead {
        font-size: 0.97rem;
        line-height: 1.85;
        margin-bottom: 24px;
    }

    .premium-home .premium-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .premium-home .premium-actions .btn {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        min-height: 50px;
        padding: 12px 16px;
        text-align: center;
    }

    /* Full width hero image */
    .premium-home .premium-hero-media {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 8px;
        border-radius: 16px;
    }

    .premium-home .premium-hero-media img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        border-radius: 10px;
    }

    .premium-home .premium-hero-media figcaption {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 6px 5px;
        font-size: 0.85rem;
    }

    .premium-home .premium-hero-media figcaption span {
        font-size: 0.72rem;
    }

}
.premium-project-photo {
    margin: 0;
    border: 1px solid #52708e;
    border-radius: var(--jpit-radius);
    overflow: hidden;
    max-width: 32rem;
}
.premium-project-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    object-position: center 46%;
}
.premium-project-photo figcaption { padding: .7rem 1rem; color: #d3e3f3; font-size: .9rem; }
.premium-service > section:first-child:not(.premium-page-hero) h1 {
    letter-spacing: -.035em;
    text-wrap: balance;
}
.premium-service > section[aria-label="สารบัญเนื้อหา"] a { text-underline-offset: 3px; }
.premium-catalog .catalog-card .table :is(th, td) { vertical-align: top; }


/* ======================================================
   BLOG & NEWS CARD — SHARED DESIGN
   ใช้รูปแบบเดียวกันทั้งหน้าบทความและหน้าข่าว
====================================================== */

/* Blog card */
.blog-card,
.premium-editorial-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: .25s ease;
}

/* Hover */
.blog-card:hover,
.premium-editorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.10);
}

/* Blog image */
.blog-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 18px;
}

/* News image */
.premium-editorial-card > a:first-child img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover;
}

/* Blog spacing */
.blog-card {
    padding: 0 0 24px;
}

.blog-card > .blog-tag,
.blog-card > h2,
.blog-card > p {
    margin-left: 24px;
    margin-right: 24px;
}

.blog-card > .blog-tag {
    margin-top: 4px;
}

/* Title: maximum 2 lines */
.blog-card > h2,
.premium-editorial-card h2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.6em;
    line-height: 1.3;
}

/* Description: maximum 4 lines */
.blog-card > p,
.premium-editorial-card > div > p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    line-height: 1.65;
    min-height: 6.6em;
}

/* News content */
.premium-editorial-card > div.p-4 {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Read more stays at bottom */
.premium-editorial-card > div.p-4 > a:last-child {
    margin-top: auto;
    padding-top: 12px;
}


/* Mobile */
@media (max-width: 575.98px) {
    .blog-card {
        padding-bottom: 20px;
    }

    .blog-card > .blog-tag,
    .blog-card > h2,
    .blog-card > p {
        margin-left: 18px;
        margin-right: 18px;
    }
}

/* ======================================================
   BLOG CARD — EQUAL HEIGHT & READ MORE
====================================================== */

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.6em;
    line-height: 1.3;
}

.blog-card-summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    min-height: 6.6em;
    line-height: 1.65;
}

.blog-read-more {
    display: block;
    margin-top: auto;
    margin-left: 20px;
    margin-right: 20px;
    padding-top: 18px;
    color: #2563eb;
    font-weight: 600;
}

/* Shared navigation. Bootstrap owns disclosure state and keyboard dropdown behavior. */
.site-main-nav {
    --site-nav-bar-size: 4.5rem;
    --site-nav-motion: 160ms ease;
    --site-nav-item-size: .9rem;
    padding: 0;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}
.site-main-nav .site-nav-shell {
    min-height: var(--site-nav-bar-size);
    max-width: 85rem;
    padding-inline: clamp(1rem, 2.1vw, 2rem);
    gap: .75rem;
}
.site-main-nav .navbar-brand {
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
}
.site-main-nav .navbar-brand img {
    display: block;
    height: 3rem;
    width: auto;
}
.site-main-nav .navbar-collapse { min-width: 0; }
.site-main-nav .navbar-nav {
    --bs-nav-link-padding-x: .55rem;
    --bs-nav-link-padding-y: 0;
    margin-inline-start: auto;
    align-items: center;
    gap: .2rem;
}
.site-main-nav :is(.nav-link, .site-nav-action) {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    position: relative;
    white-space: nowrap;
    font-size: var(--site-nav-item-size);
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
    transition: color var(--site-nav-motion), background-color var(--site-nav-motion), border-color var(--site-nav-motion);
}
.site-main-nav .nav-link {
    color: var(--jpit-ink);
    background: transparent;
    border: 0;
    border-radius: 4px;
}
.site-main-nav .nav-link:is(:hover, :focus-visible, .show, .active, [aria-current]) { color: var(--jpit-blue); }
.site-main-nav .nav-link:is(.active, [aria-current])::before {
    content: "";
    position: absolute;
    inset-inline: var(--bs-nav-link-padding-x);
    bottom: .28rem;
    border-bottom: 1px solid currentColor;
    pointer-events: none;
}
.site-main-nav .dropdown-toggle::after {
    flex: 0 0 auto;
    width: .37rem;
    height: .37rem;
    margin: -.2rem 0 0 .48rem;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
    transition: transform var(--site-nav-motion);
}
.site-main-nav .dropdown-toggle[aria-expanded="true"]::after { transform: translateY(.2rem) rotate(225deg); }
.site-main-nav .dropdown-menu {
    margin-top: 0;
    padding: .35rem;
    border: 1px solid var(--jpit-line);
    border-radius: 9px;
    background: #fff;
    box-shadow: var(--jpit-shadow);
}
.site-main-nav .dropdown-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    padding: .45rem .7rem;
    border-radius: 5px;
    color: var(--jpit-ink);
    font-size: var(--site-nav-item-size);
    font-weight: 500;
    line-height: 1.25;
    transition: color var(--site-nav-motion), background-color var(--site-nav-motion);
}
.site-main-nav .dropdown-item:is(:hover, :focus-visible, :active, [aria-current]) {
    background: var(--jpit-wash);
    color: var(--jpit-blue);
}
.site-main-nav .dropdown-item[aria-current] { text-decoration: underline; text-underline-offset: .2em; }
.site-main-nav .company-item img {
    width: 2rem;
    height: 1.6rem;
    object-fit: contain;
}
.site-main-nav .site-nav-action {
    justify-content: center;
    padding: 0 .8rem;
    border: 1px solid transparent;
    border-radius: 7px;
}
.site-main-nav .site-nav-contact {
    color: #fff;
    background: var(--jpit-blue);
    border-color: var(--jpit-blue);
    font-weight: 600;
}
.site-main-nav .site-nav-contact:is(:hover, :focus-visible) {
    background: var(--jpit-deep);
    border-color: var(--jpit-deep);
}
.site-main-nav .site-nav-secondary {
    color: var(--jpit-muted);
    border-color: var(--jpit-line);
}
.site-main-nav .site-nav-secondary:is(:hover, :focus-visible, [aria-current]) {
    color: var(--jpit-blue);
    background: var(--jpit-wash);
    border-color: var(--jpit-blue);
}
.site-main-nav .site-nav-action[aria-current] { text-decoration: underline; text-underline-offset: .22em; }
.site-main-nav :is(a, button):focus-visible { outline-offset: -2px; }
.site-main-nav .site-nav-contact:focus-visible { outline-color: #fff; }
.site-main-nav .navbar-toggler {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--jpit-line);
    border-radius: 7px;
    color: var(--jpit-ink);
    box-shadow: none;
    transition: background-color var(--site-nav-motion);
}
.site-main-nav .navbar-toggler:is(:hover, [aria-expanded="true"]) { background: var(--jpit-wash); }
.site-nav-toggle-icon { display: grid; width: 19px; gap: 4px; }
.site-nav-toggle-icon::before,
.site-nav-toggle-icon::after,
.site-nav-toggle-icon span {
    content: "";
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transition: transform var(--site-nav-motion), opacity var(--site-nav-motion);
}
.navbar-toggler[aria-expanded="true"] .site-nav-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .site-nav-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }
.navbar-toggler[aria-expanded="true"] .site-nav-toggle-icon span { opacity: 0; }

@media (min-width: 1200px) {
    .site-main-nav .navbar-toggler { display: none; }
    .site-main-nav .navbar-collapse.collapsing {
        height: auto !important;
        overflow: visible;
        transition: none;
    }
    .site-main-nav .navbar-nav .nav-link { padding-inline: var(--bs-nav-link-padding-x); }
    .site-main-nav .site-nav-actions-start { margin-inline-start: .45rem; }
    .site-main-nav .site-nav-action { margin-inline-start: .2rem; }
    .site-main-nav .dropdown-menu.show { animation: site-nav-appear var(--site-nav-motion); }
}
@keyframes site-nav-appear { from { opacity: .35; } to { opacity: 1; } }

@media (max-width: 1199.98px) {
    .site-main-nav {
        --site-nav-bar-size: 4.125rem;
        --site-nav-item-size: .97rem;
    }
    .site-main-nav .navbar-brand img { height: 2.65rem; }
    .site-main-nav .navbar-collapse {
        position: absolute;
        inset: 100% 0 auto;
        max-height: calc(100vh - var(--site-nav-bar-size) - 1px);
        max-height: calc(100dvh - var(--site-nav-bar-size) - 1px);
        background: #fff;
        box-shadow: var(--jpit-shadow);
    }
    .site-main-nav .navbar-collapse.show {
        overflow-y: auto;
        overscroll-behavior-y: contain;
        border-bottom: 1px solid var(--jpit-line);
    }
    .site-main-nav .collapsing { transition: height var(--site-nav-motion); }
    .site-main-nav .navbar-nav {
        max-width: 42rem;
        margin-inline: auto;
        padding: .65rem clamp(1rem, 3vw, 1.75rem) .85rem;
        align-items: stretch;
    }
    .site-main-nav .navbar-nav :is(.nav-link, .site-nav-action) {
        width: 100%;
        padding-inline: .65rem;
        white-space: normal;
    }
    .site-main-nav .site-nav-mobile-contact { margin-inline-start: auto; }
    .site-main-nav .nav-link:is(.active, [aria-current])::before {
        inset-inline: .65rem auto;
        width: 1.3rem;
    }
    .site-main-nav .dropdown-toggle { justify-content: space-between; }
    .site-main-nav .dropdown-toggle::after { margin-inline-end: .2rem; }
    .site-main-nav .dropdown-menu {
        margin: 0 .4rem .35rem;
        box-shadow: none;
    }
}
@media (max-width: 767.98px) {
    .site-main-nav .site-nav-contact-footer {
        margin-block-start: .65rem;
        padding-block-start: .85rem;
        border-top: 1px solid var(--jpit-line);
    }
    .site-main-nav .site-nav-contact-footer .site-nav-contact {
        min-height: 48px;
        padding-block: .65rem;
        text-align: center;
    }
}
@media (prefers-reduced-motion: reduce) {
    .site-main-nav :is(.nav-link, .site-nav-action, .navbar-toggler, .dropdown-item),
    .site-main-nav .dropdown-toggle::after,
    .site-nav-toggle-icon::before,
    .site-nav-toggle-icon::after,
    .site-nav-toggle-icon span { transition: none; }
    .site-main-nav .dropdown-menu.show { animation: none; }
}

/* ======================================================
   SAFE SPACING REFINEMENTS — PUBLIC PREMIUM SITE ONLY
   Keep legacy pages, CMS, portal, admin and PDF tools unchanged.
====================================================== */
@media (min-width: 768px) {
    :where(.premium-site) {
        --jpit-section: clamp(2.5rem, 4vw, 3.75rem);
    }

    .premium-site :is(.premium-hero-grid, .premium-proof-grid) {
        padding-block: clamp(1.25rem, 2vw, 1.75rem);
        gap: clamp(1.5rem, 4vw, 4rem);
    }

    .premium-site .premium-page-hero {
        padding-block: clamp(1.5rem, 2.5vw, 2.25rem) !important;
    }

    .premium-site :is(.portfolio-hero, .portfolio-detail-hero, .catalog-hero) {
        padding-block: clamp(1.5rem, 2.5vw, 2.25rem);
    }
}

@media (max-width: 767.98px) {
    :where(.premium-site) {
        --jpit-section: clamp(1.9rem, 6vw, 2.75rem);
    }

    .premium-site :is(.premium-hero-grid, .premium-proof-grid) {
        padding-block: 1.5rem;
        gap: 1.25rem;
    }

    .premium-site .premium-page-hero {
        padding-block: 1.5rem !important;
    }

    .premium-site :is(.portfolio-hero, .portfolio-detail-hero, .catalog-hero) {
        padding-block: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .premium-site :is(.premium-section-heading, .premium-section-heading h2) {
        margin-bottom: 1rem;
    }

    .premium-site .premium-section-heading {
        gap: .65rem;
    }
}
