/**
 * Phase 6.1 — Enterprise public portal (Thai-first, mobile-first)
 */
:root {
    --hf-pe-green: #0d6b4f;
    --hf-pe-green-light: #7cc6b6;
    --hf-pe-blue: #1a5f8a;
    --hf-pe-gray: #f4f7f6;
    --hf-pe-text: #1e2a28;
    --hf-pe-radius: 1rem;
}

.hf-public-body {
    font-family: 'Sarabun', 'Prompt', system-ui, sans-serif;
    color: var(--hf-pe-text);
    background: #fff;
}

.hf-topbar {
    background: linear-gradient(90deg, var(--hf-pe-green), var(--hf-pe-blue));
    color: #fff;
}

.hf-navbar {
    background: #fff;
    box-shadow: 0 2px 16px rgba(13, 107, 79, 0.08);
}

.hf-hero--enterprise {
    min-height: 420px;
    background: linear-gradient(135deg, rgba(13, 107, 79, 0.92), rgba(26, 95, 138, 0.88));
    color: #fff;
    padding: 4rem 0 3rem;
}

.hf-hero--enterprise .hf-hero-actions .btn {
    min-height: 48px;
    font-size: 1.05rem;
    border-radius: 999px;
    padding: 0.65rem 1.35rem;
}

.hf-kpi-grid .hf-stat-card {
    border: 1px solid rgba(124, 198, 182, 0.35);
    border-radius: var(--hf-pe-radius);
    padding: 1.25rem;
    background: #fff;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hf-kpi-grid .hf-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 107, 79, 0.12);
}

.hf-section-enterprise {
    padding: 3rem 0;
}

.hf-section-enterprise:nth-child(even) {
    background: var(--hf-pe-gray);
}

.hf-card-enterprise-public {
    border: none;
    border-radius: var(--hf-pe-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    height: 100%;
}

.hf-card-enterprise-public img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.hf-committee-card {
    text-align: center;
    padding: 1.5rem 1rem;
}

.hf-committee-card .hf-committee-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--hf-pe-green-light);
}

.hf-committee-card .hf-committee-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: var(--hf-pe-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--hf-pe-green);
}

.hf-public-footer {
    background: #0f2d26;
    color: rgba(255, 255, 255, 0.88);
    padding: 3rem 0 1.5rem;
}

.hf-public-footer a {
    color: var(--hf-pe-green-light);
    text-decoration: none;
}

.hf-public-footer a:hover {
    color: #fff;
}

.hf-download-row {
    border-radius: var(--hf-pe-radius);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background: #fff;
}

.hf-gallery-lightbox-trigger {
    cursor: zoom-in;
}

img.hf-lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.hf-lazy.loaded {
    opacity: 1;
}

@media (max-width: 767.98px) {
    .hf-hero--enterprise {
        min-height: auto;
        padding: 2.5rem 0 2rem;
    }
    .hf-hero--enterprise h1 {
        font-size: 1.65rem;
    }
    .hf-hero--enterprise .hf-hero-actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hf-kpi-grid .hf-stat-card:hover {
        transform: none;
    }
}
