/* ============================================================
   HPD MODERN THEME  v2  —  กองสร้างเสริมสุขภาพ
   Design system: soft gradients, layered shadows, glassmorphism
   ============================================================ */

:root {
    --primary: #0B5FFF;
    --primary-dark: #0A47C2;
    --primary-light: #E8F1FF;
    --teal: #00C9A7;
    --teal-dark: #00A88B;
    --accent: #FF6B6B;

    --ink: #0F172A;
    --dark: #1A1F36;
    --body: #4A5568;
    --muted: #718096;
    --gray-50: #F7F9FC;
    --gray-100: #F1F5FB;
    --gray-200: #E5EAF3;
    --gray-300: #D5DCE9;
    --white: #FFFFFF;

    --grad-primary: linear-gradient(135deg, #0B5FFF 0%, #00C9A7 100%);
    --grad-primary-soft: linear-gradient(135deg, #E8F1FF 0%, #E0FFF8 100%);
    --grad-dark: linear-gradient(135deg, #101733 0%, #1E2A4A 100%);

    --sh-sm: 0 2px 8px rgba(16,24,40,0.06);
    --sh-md: 0 6px 20px rgba(16,24,40,0.08);
    --sh-lg: 0 14px 40px rgba(16,24,40,0.10);
    --sh-xl: 0 24px 60px rgba(16,24,40,0.14);
    --sh-blue: 0 10px 30px rgba(11,95,255,0.28);

    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --r-pill: 999px;
}

:root {
    --bs-primary: #0B5FFF;
    --bs-primary-rgb: 11,95,255;
    --bs-light: #F1F5FB;
    --bs-dark: #1A1F36;
}

body {
    font-family: 'Prompt', 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--body);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1,h2,h3,h4,h5,h6 {
    font-family: 'Prompt', sans-serif;
    font-weight: 700;
    line-height: 1.28;
    color: var(--ink);
    letter-spacing: -0.015em;
}
p { color: var(--body); }
a { text-decoration: none; }
::selection { background: rgba(11,95,255,0.16); color: var(--ink); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--teal));
    border-radius: var(--r-pill);
    border: 2px solid var(--gray-100);
}

.text-primary { color: var(--primary) !important; }
.bg-primary { background: var(--grad-primary) !important; }
.bg-light { background: var(--gray-100) !important; }

/* ---------- Topbar ---------- */
.topbar {
    background: var(--ink);
    color: rgba(255,255,255,0.72);
    font-size: 12.5px;
    padding: 0.45rem 0;
    letter-spacing: 0.2px;
}
.topbar small { color: rgba(255,255,255,0.72) !important; }
.topbar small.fa, .topbar i { color: var(--teal) !important; }
.topbar a { color: rgba(255,255,255,0.8); }
.topbar a:hover { color: #fff; }
.topbar .btn-sm-square {
    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.14);
    transition: all .25s ease;
}
.topbar .btn-sm-square:hover {
    background: var(--grad-primary) !important;
    border-color: transparent;
    transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
.navbar {
    background: rgba(255,255,255,0.86) !important;
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    box-shadow: var(--sh-sm);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.3rem 0;
}
.navbar .navbar-brand { height: auto; padding: 0.35rem 0; }
.navbar .navbar-brand img {
    height: 96px;
    width: auto;
    object-fit: contain;
    transition: all .3s ease;
    background: #ffffff;
    border-radius: 8px;
    padding: 6px 10px;
}
.navbar .navbar-nav .nav-link {
    color: var(--ink);
    font-weight: 500;
    font-size: 14.5px;
    padding: 0.55rem 1.05rem;
    border-radius: var(--r-pill);
    transition: all .25s ease;
    text-transform: none;
    margin: 0 2px;
    position: relative;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}
.navbar .dropdown-toggle::after { margin-left: 6px; }
.navbar .dropdown-menu {
    border: 1px solid var(--gray-200);
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
    padding: 0.5rem;
    min-width: 250px;
    margin-top: 0.5rem;
}
.navbar .dropdown-item {
    padding: 0.55rem 0.9rem;
    border-radius: var(--r-xs);
    font-size: 14px;
    color: var(--body);
    transition: all .2s ease;
}
.navbar .dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 1.15rem;
}
.navbar .navbar-toggler {
    border: 1px solid var(--gray-200);
    border-radius: var(--r-sm);
    padding: 0.45rem 0.6rem;
    background: var(--gray-50);
}
.navbar .navbar-toggler:focus { box-shadow: 0 0 0 4px rgba(11,95,255,0.12); }

.navbar .navbar-collapse > a.btn-primary {
    height: auto !important;
    margin-left: 0.75rem;
    border-radius: var(--r-pill) !important;
    padding: 0.7rem 1.6rem !important;
    font-weight: 600;
    font-size: 14px;
    background: var(--grad-primary);
    border: none;
    color: #fff;
    box-shadow: var(--sh-blue);
    transition: all .3s ease;
}
.navbar .navbar-collapse > a.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(11,95,255,0.38);
}

/* ---------- Page title (index hero heading) ---------- */
.page-title-section {
    background:
        radial-gradient(60% 120% at 50% 0%, #EAF2FF 0%, rgba(255,255,255,0) 70%),
        var(--white);
    padding: 3.25rem 0 1.5rem;
    text-align: center;
    position: relative;
}
.page-title-section h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.35rem;
    display: inline-block;
}
.page-title-section h3 {
    font-size: clamp(0.95rem, 1.6vw, 1.25rem);
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0;
}

/* ---------- Hero carousel ---------- */
.header {
    width: auto;
    border-radius: var(--r-xl);
    overflow: hidden;
    margin: 0 clamp(0.75rem, 2vw, 2rem) 3.5rem;
    box-shadow: var(--sh-xl);
    position: relative;
    background: linear-gradient(150deg, #081A3E 0%, #0B3FA8 58%, #0B5FFF 100%);
}
.header::before {
    content: "";
    position: absolute;
    left: -12%; top: -40%;
    width: 560px; height: 560px;
    background: radial-gradient(circle, rgba(0,201,167,0.26) 0%, rgba(0,201,167,0) 70%);
    pointer-events: none;
    z-index: 1;
}
/* left text column */
.header > .row > .col-lg-6:first-child { position: relative; z-index: 2; }
.header h1.display-4 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.18;
    text-shadow: 0 3px 18px rgba(0,0,0,0.18);
}
.header p.text-light { color: rgba(255,255,255,0.8) !important; }
.header .border-start { border-left: 3px solid rgba(255,255,255,0.4) !important; }
.header h2[data-toggle="counter-up"] { font-weight: 800; color: #fff; }
.header-carousel .owl-carousel-item { position: relative; }
.header-carousel .owl-carousel-item img {
    width: 100%;
    height: clamp(320px, 48vw, 560px);
    object-fit: cover;
    display: block;
}
.header-carousel .owl-carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,16,38,0.10) 0%, rgba(10,16,38,0.72) 100%);
    pointer-events: none;
}
.header-carousel .owl-carousel-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1.5rem 1.6rem;
    text-align: left;
    z-index: 2;
}
.header-carousel .owl-carousel-text h1 {
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.01em;
    margin: 0;
    padding: 0.5rem 1.15rem;
    background: rgba(10,16,38,0.42);
    border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--r-pill);
    text-shadow: none;
}
.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 3;
    width: auto;
    height: auto;
    pointer-events: none;
}
.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next { pointer-events: auto; }
.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: var(--r-pill);
    font-size: 20px;
    backdrop-filter: blur(8px);
    transition: all .3s ease;
}
.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--grad-primary);
    border-color: transparent;
    transform: translateY(-2px);
}
.header-carousel .owl-dots {
    position: absolute;
    bottom: 22px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 3;
}
.header-carousel .owl-dot {
    width: 9px; height: 9px; margin: 0;
    background: rgba(255,255,255,0.45);
    border: none; border-radius: var(--r-pill);
    transition: all .3s ease;
}
.header-carousel .owl-dot.active {
    width: 26px;
    background: var(--grad-primary);
}

/* ---------- Section headers ---------- */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .badge {
    display: inline-block;
    padding: 0.42rem 1.05rem;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(11,95,255,0.18);
    border-radius: var(--r-pill);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}
.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin: 0;
    position: relative;
    display: inline-block;
}
.section-header h2::after {
    content: "";
    display: block;
    width: 56px; height: 4px;
    margin: 0.9rem auto 0;
    border-radius: var(--r-pill);
    background: var(--grad-primary);
}

.text-center .d-inline-block.border.rounded-pill,
p.d-inline-block.border.rounded-pill {
    border: 1px solid rgba(11,95,255,0.18) !important;
    background: var(--primary-light);
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.42rem 1.05rem !important;
    border-radius: var(--r-pill) !important;
}

/* ---------- Service cards ---------- */
.service-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    padding: 2.25rem 1.9rem;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.service-item::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}
.service-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--sh-xl);
    border-color: transparent;
}
.service-item:hover::before { transform: scaleX(1); }

.service-item > .d-inline-flex,
.team-item .d-inline-flex {
    width: 62px; height: 62px;
    border-radius: var(--r-md) !important;
    background: var(--grad-primary) !important;
    box-shadow: var(--sh-blue);
    transition: transform .35s ease;
}
.service-item:hover > .d-inline-flex { transform: rotate(-6deg) scale(1.06); }
.service-item > .d-inline-flex i {
    color: #fff !important;
    font-size: 24px;
}
.service-item h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.75rem;
}
.service-item p {
    color: var(--body);
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 1rem;
}
.service-item .btn {
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 0;
}
.service-item .btn i {
    color: var(--primary) !important;
    transition: transform .3s ease;
}
.service-item .btn-primary i {
    color: #fff !important;
}
.service-item .btn:hover { color: var(--primary-dark); }
.service-item .btn:hover i { transform: translateX(4px); }

/* ---------- Team / activity cards ---------- */
.team-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    overflow: hidden;
    height: 100%;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.team-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--sh-xl);
}
.team-item > .overflow-hidden,
.team-item img { border-radius: 0; }
.team-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .5s ease;
}
.team-item:hover img { transform: scale(1.06); }
.team-item .team-text {
    position: relative;
    height: auto !important;
    margin: 0 !important;
    padding: 1.4rem 1.2rem 1.6rem !important;
    text-align: center;
    background: var(--white) !important;
}
.team-item:hover .team-text {
    height: auto !important;
    margin-top: 0 !important;
}
.team-item .team-text h5,
.team-item .team-text h6 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.35rem;
}
.team-item .team-text p {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.team-item .team-social { opacity: 1 !important; }
.team-item .team-social .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 1.05rem;
    border-radius: var(--r-pill);
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    transition: all .3s ease;
}
.team-item .team-social .btn:hover {
    background: var(--grad-primary);
    color: #fff;
}

/* ---------- Feature / vision band ---------- */
.feature-section {
    width: auto;
    background: var(--grad-dark);
    border-radius: var(--r-xl);
    margin: 3.5rem clamp(0.75rem, 2vw, 2rem);
    overflow: hidden;
    box-shadow: var(--sh-xl);
    position: relative;
}
.feature-section::before {
    content: "";
    position: absolute;
    top: -40%; right: -10%;
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(0,201,167,0.22) 0%, rgba(0,201,167,0) 70%);
    pointer-events: none;
}
.feature-section .feature-text h1 {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.feature-section .feature-text p { color: rgba(255,255,255,0.78); }
.feature-section img { object-fit: cover; }
.feature-section .rounded-circle {
    border-radius: var(--r-md) !important;
    background: rgba(255,255,255,0.10) !important;
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    width: 52px !important; height: 52px !important;
}
.feature-section .rounded-circle i { color: #fff !important; }
.feature-section h5 { color: #fff !important; font-size: 0.98rem; font-weight: 600; }
.feature-section .feature-text h1 { color: #fff !important; }
.feature-section p.text-white-50,
.feature-section p.text-white { color: rgba(255,255,255,0.72) !important; }

/* ---------- Buttons ---------- */
.btn {
    border-radius: var(--r-pill);
    font-weight: 600;
    padding: 0.72rem 1.6rem;
    transition: all .3s ease;
    border: none;
    letter-spacing: 0.01em;
}
.btn-primary {
    background: var(--grad-primary) !important;
    color: #fff !important;
    box-shadow: var(--sh-blue);
}
.btn-primary i {
    color: #fff !important;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(11,95,255,0.4);
    color: #fff !important;
}
.btn-outline-primary {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover { background: var(--primary); color: #fff; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
    background:
        radial-gradient(70% 130% at 85% 10%, rgba(0,201,167,0.30) 0%, rgba(0,201,167,0) 60%),
        linear-gradient(135deg, #081A3E 0%, #0B3FA8 60%, #0B5FFF 100%);
    border-radius: 0 0 var(--r-xl) var(--r-xl);
    margin-bottom: 3rem !important;
    padding: 5rem 0 4rem !important;
    position: relative;
}
.page-header h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: clamp(1.8rem, 4vw, 3rem);
}
.page-header .breadcrumb { background: transparent; margin: 0; }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }
.page-header .breadcrumb a { color: rgba(255,255,255,0.85); }
.page-header .breadcrumb .active { color: var(--teal) !important; }

/* ---------- Footer ---------- */
.footer {
    width: auto;
    background: var(--grad-dark);
    color: rgba(255,255,255,0.66);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: "";
    position: absolute;
    top: -60%; left: -8%;
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(11,95,255,0.20) 0%, rgba(11,95,255,0) 70%);
    pointer-events: none;
}
.footer h5 {
    color: #fff;
    font-weight: 700;
    font-size: 1.02rem;
    margin-bottom: 1.3rem;
    position: relative;
    padding-bottom: 0.6rem;
}
.footer h5::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 34px; height: 3px;
    border-radius: var(--r-pill);
    background: var(--grad-primary);
}
.footer p { color: rgba(255,255,255,0.66); font-size: 14px; }
.footer i { color: var(--teal); }
/* footer links: chevron absolutely positioned so wrapped Thai text
   aligns under the text (a flex row would let the text overflow the column) */
.footer .btn.btn-link {
    display: block;
    position: relative;
    padding: 0.34rem 0 0.34rem 18px;
    color: rgba(255,255,255,0.66);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    text-align: left;
    text-transform: none;
    white-space: normal;
    transition: color .25s ease;
}
.footer .btn.btn-link::before {
    position: absolute;
    left: 0;
    top: 0.34rem;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--teal);
    line-height: 1.55;
    transition: transform .25s ease;
}
.footer .btn.btn-link:hover {
    color: #fff;
    letter-spacing: 0;
    box-shadow: none;
}
.footer .btn.btn-link:hover::before {
    transform: translateX(3px);
}

.footer .btn-social {
    width: 42px; height: 42px;
    border-radius: var(--r-pill);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
    margin-right: 8px;
    transition: all .3s ease;
}
.footer .btn-social i { color: #fff; }
.footer .btn-social:hover {
    background: var(--grad-primary);
    border-color: transparent;
    transform: translateY(-3px);
}
.footer .copyright {
    border-top: 1px solid rgba(255,255,255,0.10);
    padding: 1.5rem 0;
    font-size: 13px;
    position: relative;
}
.footer .copyright a { color: var(--teal); }
.footer input.form-control {
    height: 52px;
    border-radius: var(--r-pill) !important;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    color: #fff;
}
.footer input.form-control::placeholder { color: rgba(255,255,255,0.45); }
.footer input.form-control:focus {
    background: rgba(255,255,255,0.12);
    border-color: var(--teal);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(0,201,167,0.18);
}
.footer button.btn-primary { border-radius: var(--r-pill) !important; }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    right: 28px; bottom: 28px;
    width: 52px; height: 52px;
    border-radius: var(--r-pill) !important;
    background: var(--grad-primary) !important;
    color: #fff !important;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--sh-blue);
    transition: all .3s ease;
    z-index: 999;
}
.back-to-top:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 16px 36px rgba(11,95,255,0.45);
    color: #fff;
}

/* ---------- Forms ---------- */
.form-control, .form-select {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--r-sm);
    padding: 0.8rem 1.05rem;
    font-size: 14.5px;
    color: var(--ink);
    background: var(--white);
    transition: all .25s ease;
}
.form-control::placeholder { color: var(--muted); }
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(11,95,255,0.12);
    background: var(--white);
}

/* ---------- Contact info cards ---------- */
.container-xxl .bg-light.rounded.d-flex,
.container-xxl .bg-light.rounded {
    border-radius: var(--r-lg) !important;
    border: 1px solid var(--gray-200);
    background: var(--white) !important;
    box-shadow: var(--sh-sm);
    transition: all .3s ease;
}
.container-xxl .bg-light.rounded.d-flex:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-lg);
}
.container-xxl .bg-light .rounded-circle {
    border-radius: var(--r-md) !important;
    background: var(--grad-primary) !important;
    box-shadow: var(--sh-blue);
    width: 56px !important; height: 56px !important;
}
.container-xxl .bg-light .rounded-circle i { color: #fff !important; }

/* Hero mission points (replaces fabricated stats) */
.hpd-points { margin-top: 0.5rem; }
.hpd-points > [class*="col-"] { display: flex; }
.hpd-point {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    height: 100%;
    padding: 14px 15px;
    border-radius: var(--r-md);
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all .3s ease;
}
.hpd-point:hover {
    background: rgba(255,255,255,0.13);
    border-color: rgba(255,255,255,0.28);
    transform: translateY(-3px);
}
.hpd-point > i {
    flex: 0 0 auto;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--r-sm);
    background: linear-gradient(135deg, #00C9A7 0%, #0B5FFF 100%);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 6px 18px rgba(0,201,167,0.28);
}
.hpd-point h6 {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
}
.hpd-point span {
    color: rgba(255,255,255,0.68);
    font-size: 12.5px;
    line-height: 1.3;
    display: block;
}
@media (max-width: 575.98px) {
    .hpd-point { padding: 12px 13px; }
    .hpd-point > i { width: 40px; height: 40px; font-size: 16px; }
}

/* ---------- Download page quick nav ---------- */
.download-quicknav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2.5rem;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--r-md);
    border: 1px solid var(--gray-200);
}
.download-quicknav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .25s ease;
}
.download-quicknav-btn i {
    color: var(--primary);
    font-size: 0.95rem;
}
.download-quicknav-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.download-quicknav-btn:hover i {
    color: #fff;
}

/* ---------- Download page sections ---------- */
.download-section {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--gray-200);
}
.download-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.download-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.5rem;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--r-md);
    color: #fff;
}
.download-section-header i {
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.18);
    border-radius: var(--r-sm);
    flex: 0 0 auto;
}
.download-section-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

/* ---------- Stats (header counters) ---------- */
.header h2[data-toggle="counter-up"] { font-weight: 800; color: #fff; }
.header .border-start { border-left: 3px solid rgba(255,255,255,0.35) !important; }

/* ---------- Utilities ---------- */
.rounded { border-radius: var(--r-md) !important; }
.rounded-pill { border-radius: var(--r-pill) !important; }
.shadow-sm { box-shadow: var(--sh-sm) !important; }

@keyframes hpdFadeUp {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes hpdFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

html { scroll-behavior: smooth; }

.footer input.form-control + button { height: 42px; padding: 0 1.2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .navbar .navbar-brand img { height: 76px; }
    .navbar .navbar-collapse {
        border-top: 1px solid var(--gray-200);
        margin-top: 0.5rem;
        padding-top: 0.75rem;
    }
    .navbar .navbar-nav .nav-link { padding: 0.7rem 0.9rem; margin: 2px 0; }
    .navbar .navbar-collapse > a.btn-primary { margin: 0.6rem 0 0; width: 100%; text-align: center; }
    .page-header { border-radius: 0 0 var(--r-lg) var(--r-lg); padding: 3.5rem 0 3rem !important; }
    .feature-section { margin: 2.5rem 0.75rem; }
    .header { margin: 0 0.75rem 2.5rem; }
}

@media (max-width: 767.98px) {
    .navbar .navbar-brand img { height: 60px; }
    .page-title-section { padding: 2.25rem 0 1rem; }
    .page-title-section h3 { letter-spacing: 0.08em; }
    .section-header { margin-bottom: 2rem; }
    .service-item { padding: 1.75rem 1.4rem; }
    .team-item img { height: 200px; }
    .header-carousel .owl-nav { display: none; }
    .back-to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
    .footer { border-radius: var(--r-lg) var(--r-lg) 0 0; }
}

/* keep footer bottom text clear of the floating back-to-top button */
@media (min-width: 768px) {
    .footer .copyright .row > div:last-child { padding-right: 72px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}

/* ---------- Spinner safety net ----------
   #spinner.show เป็น overlay ขาว w-100 vh-100 ที่ main.js เป็นตัวถอด .show ออกให้
   ถ้า jQuery หรือ CDN โหลดไม่ขึ้น main.js จะ throw แล้ว .show จะค้าง = บล็อกทั้งหน้า
   ตัวนี่เป็น timeout ฝั่ง CSS ทำให้หน้าที่ไม่มี JS ยังใช้งานได้ (ปกติ .show ถูกถอดใน ~1ms
   จึงไม่มีผลกับการทำงานปกติเลย) */
@keyframes hpd-spinner-timeout {
    to { opacity: 0; visibility: hidden; }
}
#spinner.show {
    animation: hpd-spinner-timeout .35s ease-out 3s forwards;
}
