:root {
    --landing-navy-900: #031e3a;
    --landing-navy-800: #0a2f55;
    --landing-navy-700: #124779;
    --landing-gold-500: #e3ab38;
    --landing-gold-400: #f4c861;
    --landing-ink: #1d2735;
    --landing-muted: #5d6a7a;
    --landing-paper: #f6f9fc;
    --landing-card: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.landing-body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--landing-ink);
    background: var(--landing-paper);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    letter-spacing: -0.02em;
    color: #13243a;
}

p {
    color: var(--landing-muted);
    line-height: 1.65;
}

.landing-container {
    width: min(1120px, calc(100% - 2.2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: rgba(3, 30, 58, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.nav-wrap {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    text-decoration: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.brand strong {
    display: block;
    font-weight: 800;
    line-height: 1.05;
}

.brand span {
    display: block;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.74);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-nav a,
.site-nav .nav-link-btn {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.site-nav a:hover {
    color: #fff;
}

.site-nav .nav-link-btn {
    border: 0;
    background: transparent;
    padding: 0;
}

.site-nav .nav-link-btn:hover,
.site-nav .nav-link-btn:focus {
    color: #fff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
}

.lang-dropdown-toggle {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.4rem 0.85rem;
}

.lang-dropdown-toggle:hover,
.lang-dropdown-toggle:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.nav-dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(9, 32, 60, 0.98);
    backdrop-filter: blur(10px);
}

.nav-dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.86rem;
}

.nav-dropdown-menu .dropdown-item:hover,
.nav-dropdown-menu .dropdown-item:focus {
    background: rgba(227, 171, 56, 0.2);
    color: #fff;
}

.btn-login,
.btn-primary-solid,
.btn-secondary-outline {
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-login {
    border: 1px solid rgba(227, 171, 56, 0.62);
    background: rgba(227, 171, 56, 0.12);
    color: #ffe5ad;
    padding: 0.46rem 0.84rem;
    font-size: 0.82rem;
}

.btn-login:hover {
    background: rgba(227, 171, 56, 0.24);
    color: #fff3d3;
}

.hero-section {
    position: relative;
    min-height: 84vh;
    display: flex;
    align-items: center;
    background-image: url("/assets/bgimage.jpg");
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(3, 30, 58, 0.87) 8%, rgba(7, 45, 80, 0.78) 52%, rgba(3, 30, 58, 0.68) 100%),
        radial-gradient(circle at 10% 20%, rgba(227, 171, 56, 0.22), transparent 38%);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr;
    gap: 2rem;
    align-items: center;
    padding: 2.4rem 0;
}

.hero-copy h1 {
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    margin-bottom: 1rem;
}

.hero-copy p {
    color: rgba(245, 250, 255, 0.92);
    font-size: 1.03rem;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    font-weight: 800;
    color: var(--landing-gold-400);
    margin-bottom: 0.85rem;
}

.hero-actions {
    margin-top: 1.2rem;
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.btn-primary-solid {
    background: linear-gradient(135deg, var(--landing-gold-500) 0%, #cf8f18 100%);
    color: #1f1d16;
    padding: 0.73rem 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-primary-solid:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.btn-secondary-outline {
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    padding: 0.73rem 1.2rem;
    background: rgba(255, 255, 255, 0.08);
}

.btn-secondary-outline:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.trust-line {
    margin-top: 0.8rem;
    display: block;
    color: rgba(255, 246, 222, 0.88);
    font-weight: 600;
}

.hero-stat-card {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 1.15rem 1.2rem;
    animation: floatIn 700ms ease both;
}

.hero-stat-card h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
}

.hero-stat-card ul {
    margin: 0;
    padding-left: 1.15rem;
}

.hero-stat-card li {
    color: #eef5ff;
    margin-bottom: 0.45rem;
}

.section-block {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 1rem;
}

.section-heading h2 {
    font-size: clamp(1.4rem, 2.6vw, 2.2rem);
    margin-bottom: 0.35rem;
}

.lead-text {
    max-width: 880px;
}

.section-why {
    background: linear-gradient(180deg, #eef6ff 0%, #f8fbff 100%);
}

.feature-grid,
.services-grid {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.service-card,
.audience-card,
.steps-grid article {
    background: var(--landing-card);
    border: 1px solid #d8e5f3;
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(15, 43, 78, 0.05);
}

.feature-card,
.service-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover,
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 43, 78, 0.12);
}

.feature-card::before,
.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.feature-grid .feature-card:nth-child(1) {
    background: linear-gradient(145deg, #f5fbff 0%, #e7f5ff 100%);
    border-color: #b8daf8;
}

.feature-grid .feature-card:nth-child(1)::before {
    background: #3a87d6;
}

.feature-grid .feature-card:nth-child(2) {
    background: linear-gradient(145deg, #fff8f0 0%, #ffefd9 100%);
    border-color: #f3cf9f;
}

.feature-grid .feature-card:nth-child(2)::before {
    background: #d98a21;
}

.feature-grid .feature-card:nth-child(3) {
    background: linear-gradient(145deg, #f4fff8 0%, #def5e8 100%);
    border-color: #b6dfca;
}

.feature-grid .feature-card:nth-child(3)::before {
    background: #2f9772;
}

.feature-grid .feature-card:nth-child(4) {
    background: linear-gradient(145deg, #f8f5ff 0%, #ede5ff 100%);
    border-color: #c9bbea;
}

.feature-grid .feature-card:nth-child(4)::before {
    background: #6b53b7;
}

.services-grid .service-card:nth-child(1) {
    background: linear-gradient(145deg, #f4faff 0%, #e4f2ff 100%);
    border-color: #bdd9f8;
}

.services-grid .service-card:nth-child(1)::before {
    background: #2f81cd;
}

.services-grid .service-card:nth-child(2) {
    background: linear-gradient(145deg, #fff8f2 0%, #ffe9d9 100%);
    border-color: #efc6a5;
}

.services-grid .service-card:nth-child(2)::before {
    background: #d37a2a;
}

.services-grid .service-card:nth-child(3) {
    background: linear-gradient(145deg, #f2fff7 0%, #d9f4e4 100%);
    border-color: #a8d7bd;
}

.services-grid .service-card:nth-child(3)::before {
    background: #2f8f67;
}

.services-grid .service-card:nth-child(4) {
    background: linear-gradient(145deg, #f7f4ff 0%, #e8e0ff 100%);
    border-color: #c3b5ec;
}

.services-grid .service-card:nth-child(4)::before {
    background: #6e53bd;
}

.services-grid .service-card:nth-child(5) {
    background: linear-gradient(145deg, #fffaf2 0%, #f9eecf 100%);
    border-color: #ead39c;
}

.services-grid .service-card:nth-child(5)::before {
    background: #ba8d1f;
}

.services-grid .service-card:nth-child(6) {
    background: linear-gradient(145deg, #f3fcff 0%, #dff0f7 100%);
    border-color: #b4d2e0;
}

.services-grid .service-card:nth-child(6)::before {
    background: #3a7a9c;
}

.feature-card h3,
.service-card h3,
.audience-card h3,
.steps-grid h4 {
    font-size: 1.02rem;
    margin-bottom: 0.4rem;
}

.section-two-sides {
    background: #fff;
}

.two-side-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.steps-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.steps-grid article span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #0c4e8c;
    background: #e8f2ff;
    padding: 0.28rem 0.58rem;
    margin-bottom: 0.55rem;
}

.section-partner {
    background: linear-gradient(135deg, #0a2f55 0%, #103d6f 75%, #1a4d80 100%);
}

.partner-wrap {
    display: grid;
    grid-template-columns: 1.45fr auto;
    gap: 1rem;
    align-items: center;
}

.section-partner .eyebrow,
.section-partner h2,
.section-partner p {
    color: #fff;
}

.section-cta {
    background: #f5f9ff;
}

.contact-details-box {
    max-width: 820px;
    margin: 1rem auto 0;
    background: #fff;
    border: 1px solid #d8e5f3;
    border-radius: 12px;
    padding: 0.95rem 1rem;
    box-shadow: 0 8px 20px rgba(15, 43, 78, 0.05);
    text-align: left;
}

.contact-details-box p,
.contact-details-box strong,
.contact-details-box a {
    color: #28405f;
}

.cta-wrap {
    text-align: center;
    max-width: 800px;
}

.cta-wrap .hero-actions {
    justify-content: center;
}

.site-footer {
    background: #091d34;
    color: rgba(255, 255, 255, 0.88);
    padding: 2.4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 1rem;
}

.site-footer h5,
.site-footer h6 {
    color: #fff;
    margin-bottom: 0.6rem;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    display: block;
    margin-bottom: 0.42rem;
}

.site-footer a:hover {
    color: #fff;
}

.login-modal-content {
    border: 1px solid #d6e3f1;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(245, 250, 255, 0.97));
    color: #21344d;
    box-shadow: 0 20px 45px rgba(9, 31, 56, 0.2);
    }
}
    /* Employer Portal CSS Section */
    .employer-portal {
        background-color: #f5f9ff;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .employer-portal h2 {
        color: #0a2f55;
    }

    .employer-portal p {
        color: #5d6a7a;
    }

    .employer-portal a {
        color: #124779;
        text-decoration: underline;
    }

    .employer-portal a:hover {
        color: #031e3a;
    }

.login-input {
    border: 1px solid #c8d9ea;
    background: #ffffff;
    color: #21344d;
}

.login-input:focus {
    border-color: rgba(23, 98, 170, 0.75);
    box-shadow: 0 0 0 0.2rem rgba(23, 98, 170, 0.18);
    background: #ffffff;
    color: #21344d;
}

.login-input::placeholder {
    color: #7d8ea3;
}

#staffLoginModal .modal-title,
#staffLoginModal .form-label,
#staffLoginModal .form-check-label {
    color: #1e324b;
}

#staffLoginModal .text-light-emphasis {
    color: #5f7289 !important;
}

#staffLoginModal .btn-close {
    filter: none;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .site-nav {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .partner-wrap,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .landing-container {
        width: min(1120px, calc(100% - 1.3rem));
    }

    .hero-section {
        min-height: 78vh;
    }

    .feature-grid,
    .services-grid,
    .two-side-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .nav-actions {
        gap: 0.35rem;
    }

    .lang-dropdown {
        display: none;
    }

    .btn-login {
        padding: 0.42rem 0.66rem;
        font-size: 0.75rem;
    }
}

/* ================================================================
   EMPLOYER PORTAL  —  ep-* namespace
   ================================================================ */

/* ── Base ─────────────────────────────────────────────────────── */
body.ep-body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: #1d2735;
    background: #f4f7fc;
}

body.ep-body.lang-th,
body.ep-body.lang-th * {
    font-family: "Sarabun", "Manrope", "Segoe UI", sans-serif;
}

.ep-container {
    width: min(1160px, calc(100% - 2.4rem));
    margin: 0 auto;
}

/* ── Header ───────────────────────────────────────────────────── */
.ep-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: rgba(3, 26, 52, 0.93);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ep-header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(1160px, calc(100% - 2.4rem));
    margin: 0 auto;
}

.ep-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: #fff;
}

.ep-brand img {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    object-fit: contain;
}

.ep-brand strong {
    display: block;
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.1;
}

.ep-brand [data-i18n] {
    display: block;
    font-size: 0.73rem;
    color: rgba(255,255,255,0.68);
}

.ep-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ep-badge {
    background: rgba(227,171,56,0.16);
    border: 1px solid rgba(227,171,56,0.42);
    color: #f4c861;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.28rem 0.8rem;
    white-space: nowrap;
}

.ep-lang-toggle {
    display: inline-flex;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;
    overflow: hidden;
}

.ep-lang-btn {
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.72);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.56rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.ep-lang-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.ep-lang-btn.ep-lang-active {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.ep-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background-image: url("/assets/bgimage.jpg");
    background-size: cover;
    background-position: center 35%;
    overflow: hidden;
}

.ep-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(112deg, rgba(2, 20, 44, 0.93) 0%, rgba(4, 34, 68, 0.84) 50%, rgba(2, 20, 44, 0.76) 100%),
        radial-gradient(ellipse at 5% 15%, rgba(227,171,56,0.28), transparent 40%),
        radial-gradient(ellipse at 80% 80%, rgba(56,120,227,0.16), transparent 45%);
    z-index: 0;
}

.ep-hero-bg-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        radial-gradient(circle 600px at 75% 50%, rgba(56, 140, 240, 0.1), transparent),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.ep-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
    padding: 3rem 0 3.5rem;
}

/* Left */
.ep-hero-left { }

.ep-eyebrow {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: #f4c861;
    margin-bottom: 1rem;
    display: block;
}

.ep-eyebrow-dark { color: #e3ab38; }

.ep-hero-title {
    font-family: "Plus Jakarta Sans", "Sarabun", "Segoe UI", sans-serif;
    color: #fff;
    font-size: clamp(2rem, 4.2vw, 3.3rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
}

.ep-hero-sub {
    color: rgba(235, 245, 255, 0.88);
    font-size: 1.04rem;
    line-height: 1.68;
    margin-bottom: 2rem;
}

/* Feature list */
.ep-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.ep-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.ep-feature-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(227,171,56,0.18);
    border: 1px solid rgba(227,171,56,0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f4c861;
}

.ep-feature-icon svg {
    width: 20px;
    height: 20px;
}

.ep-feature-list li strong {
    display: block;
    color: #fff;
    font-size: 0.94rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.ep-feature-list li span {
    color: rgba(225, 238, 255, 0.78);
    font-size: 0.86rem;
    line-height: 1.45;
}

/* Trust pills */
.ep-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.ep-trust-pill {
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.22);
    color: rgba(245, 252, 255, 0.9);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
}

/* ── Login card ────────────────────────────────────────────────── */
.ep-login-wrap {
    position: relative;
}

.ep-login-card {
    background: #fff;
    border-radius: 20px;
    box-shadow:
        0 0 0 1px rgba(14, 50, 100, 0.08),
        0 24px 60px rgba(5, 18, 44, 0.36),
        0 4px 14px rgba(5, 18, 44, 0.16);
    padding: 2.4rem 2rem;
    animation: ep-card-in 0.55s cubic-bezier(0.22,0.9,0.4,1) both;
}

@keyframes ep-card-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.ep-login-card-header {
    text-align: center;
    margin-bottom: 1.6rem;
}

.ep-login-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a2f55 0%, #124779 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.9rem;
}

.ep-login-avatar svg {
    width: 28px;
    height: 28px;
    color: #f4c861;
}

.ep-login-card-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0d2240;
    margin-bottom: 0.3rem;
}

.ep-login-card-header p {
    font-size: 0.87rem;
    color: #637488;
    margin: 0;
}

/* Alerts */
.ep-alert-danger,
.ep-alert-success {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    font-size: 0.84rem;
    margin-bottom: 1.1rem;
}

.ep-alert-danger {
    background: #fff1f0;
    border: 1px solid #ffccc7;
    color: #c0392b;
}

.ep-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.ep-alert-danger svg,
.ep-alert-success svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Fields */
.ep-field {
    margin-bottom: 1.1rem;
}

.ep-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #344054;
    margin-bottom: 0.4rem;
}

.ep-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ep-input-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8fa3be;
    pointer-events: none;
    display: flex;
}

.ep-input-icon svg {
    width: 17px;
    height: 17px;
}

.ep-input {
    width: 100%;
    padding: 0.68rem 2.7rem 0.68rem 2.45rem;
    border: 1.5px solid #d0dae8;
    border-radius: 10px;
    font-size: 0.92rem;
    font-family: inherit;
    color: #1d2735;
    background: #f8fafd;
    transition: border-color 0.18s, box-shadow 0.18s;
    outline: none;
}

.ep-input:focus {
    border-color: #124779;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(18,71,121,0.12);
}

.ep-toggle-pw {
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.2rem;
    cursor: pointer;
    color: #8fa3be;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: color 0.15s;
}

.ep-toggle-pw:hover { color: #344054; }

.ep-toggle-pw svg {
    width: 18px;
    height: 18px;
}

/* Remember + submit */
.ep-remember-row {
    margin-bottom: 1.3rem;
}

.ep-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    font-size: 0.83rem;
    color: #4f6278;
    user-select: none;
}

.ep-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ep-checkbox-mark {
    width: 17px;
    height: 17px;
    border-radius: 4px;
    border: 2px solid #c8d5e3;
    background: #fff;
    flex-shrink: 0;
    position: relative;
    transition: background 0.15s, border-color 0.15s;
}

.ep-checkbox-label input:checked + .ep-checkbox-mark {
    background: #124779;
    border-color: #124779;
}

.ep-checkbox-label input:checked + .ep-checkbox-mark::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 0px;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(40deg);
}

.ep-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.82rem 1.2rem;
    border: none;
    border-radius: 11px;
    background: linear-gradient(135deg, #0a3264 0%, #124779 100%);
    color: #fff;
    font-size: 0.97rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: filter 0.18s, transform 0.18s, box-shadow 0.18s;
    box-shadow: 0 4px 14px rgba(9,40,85,0.38);
    letter-spacing: 0.01em;
    margin-bottom: 1.1rem;
}

.ep-submit-btn svg {
    width: 17px;
    height: 17px;
}

.ep-submit-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(9,40,85,0.44);
}

.ep-submit-btn:active {
    transform: translateY(0);
    filter: brightness(0.97);
}

.ep-login-help {
    text-align: center;
    font-size: 0.8rem;
    color: #7a8ea4;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.ep-help-link {
    color: #124779;
    font-weight: 700;
    text-decoration: none;
}

.ep-help-link:hover {
    text-decoration: underline;
}

/* Decorative status badges */
.ep-status-badges {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 1.2rem;
}

.ep-status-badge {
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.81rem;
    backdrop-filter: blur(8px);
}

.ep-badge-warn {
    background: rgba(253, 186, 36, 0.14);
    border: 1px solid rgba(253,186,36,0.3);
    color: rgba(255,250,235,0.9);
}

.ep-badge-ok {
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52,211,153,0.3);
    color: rgba(235,255,248,0.9);
}

.ep-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ep-dot-warn { background: #fbbf24; box-shadow: 0 0 6px #fbbf24; }
.ep-dot-ok   { background: #34d399; box-shadow: 0 0 6px #34d399; }

.ep-status-badge strong {
    display: block;
    font-weight: 700;
    font-size: 0.82rem;
}

.ep-status-badge span {
    display: block;
    font-size: 0.74rem;
    opacity: 0.8;
}

/* ── Stats strip ──────────────────────────────────────────────── */
.ep-stats-strip {
    background: linear-gradient(90deg, #031e3a 0%, #0a2f55 100%);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 1.6rem 0;
}

.ep-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.ep-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.6rem 1rem;
}

.ep-stat-divider {
    border-left: 1px solid rgba(255,255,255,0.12);
}

.ep-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: #f4c861;
    line-height: 1;
    font-family: "Plus Jakarta Sans", sans-serif;
    margin-bottom: 0.3rem;
}

.ep-stat-label {
    font-size: 0.78rem;
    color: rgba(200,220,240,0.82);
    font-weight: 500;
}

/* ── Feature cards ────────────────────────────────────────────── */
.ep-features-section {
    padding: 5rem 0;
    background: #f4f7fc;
}

.ep-section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 3rem;
}

.ep-section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-family: "Plus Jakarta Sans", "Sarabun", sans-serif;
    color: #0d2240;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
}

.ep-section-sub {
    color: #5d7085;
    font-size: 0.97rem;
    line-height: 1.6;
    margin: 0;
}

.ep-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.ep-card {
    background: #fff;
    border: 1px solid rgba(12, 48, 96, 0.08);
    border-radius: 16px;
    padding: 1.7rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(5,20,50,0.07);
}

.ep-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(5,20,50,0.12);
}

.ep-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.ep-card-icon svg { width: 24px; height: 24px; }

.ep-icon-blue   { background: #eff6ff; color: #1d6fdd; }
.ep-icon-amber  { background: #fffbeb; color: #d97706; }
.ep-icon-green  { background: #f0fdf4; color: #16a34a; }
.ep-icon-purple { background: #faf5ff; color: #7c3aed; }
.ep-icon-teal   { background: #f0fdfa; color: #0d9488; }
.ep-icon-rose   { background: #fff1f2; color: #e11d48; }

.ep-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0d2240;
    margin-bottom: 0.5rem;
    font-family: "Plus Jakarta Sans","Sarabun",sans-serif;
}

.ep-card p {
    font-size: 0.86rem;
    color: #5d7085;
    line-height: 1.55;
    margin: 0;
}

/* ── CTA ──────────────────────────────────────────────────────── */
.ep-cta-section {
    background: linear-gradient(120deg, #031e3a 0%, #0c3060 100%);
    padding: 4.5rem 0;
}

.ep-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.ep-cta-inner h2 {
    font-family: "Plus Jakarta Sans","Sarabun",sans-serif;
    color: #fff;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.ep-cta-inner p {
    color: rgba(210,230,255,0.82);
    font-size: 0.94rem;
    margin: 0;
}

.ep-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #e3ab38 0%, #cf8f18 100%);
    color: #1c1604;
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 0.82rem 1.8rem;
    text-decoration: none;
    white-space: nowrap;
    transition: filter 0.18s, transform 0.18s;
    box-shadow: 0 4px 14px rgba(180,110,0,0.36);
}

.ep-cta-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    color: #1c1604;
}

/* ── Footer ───────────────────────────────────────────────────── */
.ep-footer {
    background: #020f1e;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.ep-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.ep-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.86);
    font-weight: 700;
    font-size: 0.9rem;
}

.ep-footer-brand img {
    border-radius: 6px;
    object-fit: contain;
}

.ep-footer-copy {
    color: rgba(180,200,220,0.6);
    font-size: 0.78rem;
    margin: 0;
}

.ep-footer-staff-link {
    color: rgba(180,210,250,0.75);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
}

.ep-footer-staff-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ep-hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2.5rem 0 3rem;
    }

    .ep-login-wrap {
        max-width: 460px;
        margin: 0 auto;
        width: 100%;
    }

    .ep-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ep-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .ep-stat-divider:nth-child(3) {
        border-left: none;
    }
}

@media (max-width: 640px) {
    .ep-hero {
        min-height: unset;
        padding: 1.5rem 0;
    }

    .ep-hero-title {
        font-size: 1.9rem;
    }

    .ep-badge { display: none; }

    .ep-cards-grid {
        grid-template-columns: 1fr;
    }

    .ep-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ep-login-card {
        padding: 1.8rem 1.4rem;
    }

    .ep-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .ep-footer-inner {
        flex-direction: column;
        text-align: center;
    }
}
