/* Shared page chrome: page.php, manual.php, page-reports.php */

.pg-hero {
    background: linear-gradient(128deg, var(--pg-primary-dark) 0%, var(--pg-primary) 45%, var(--pg-teal) 100%);
    color: #fff;
    padding: 3.5rem 0 4rem;
}
.pg-hero h1 {
    font-size: clamp(1.45rem, 3.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.85rem;
    line-height: 1.35;
}
.pg-hero h1 > i {
    margin-right: .35rem;
    opacity: .9;
}
.pg-hero .sub {
    opacity: .9;
    max-width: 36rem;
    line-height: 1.65;
    font-size: .95rem;
    margin: 0;
}
.pg-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.75rem;
}
/* WCAG AA: พื้นขาว + ตัวอักษรเขียวเข้ม — ไม่ใช้ทอง/ส้ม+ขาว */
.pg-hero a.pg-btn-primary,
.pg-hero .pg-btn-primary,
a.pg-btn-primary,
.pg-btn-primary {
    background: #fff !important;
    background-image: none !important;
    border: 2px solid #fff !important;
    color: #1b4332 !important;
    font-weight: 700;
    border-radius: 8px;
    padding: .65rem 1.5rem;
    transition: background .2s, border-color .2s, box-shadow .2s, transform .15s;
}
.pg-hero .pg-btn-primary:hover,
.pg-btn-primary:hover {
    background: #f0f7f4 !important;
    border-color: #f0f7f4 !important;
    color: #1b4332 !important;
    box-shadow: 0 6px 20px rgba(0,0,0,.18);
    transform: translateY(-1px);
    text-decoration: none;
}
.pg-hero .pg-btn-secondary,
.pg-btn-secondary {
    background: transparent !important;
    border: 2px solid rgba(255,255,255,.9) !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 8px;
    padding: .65rem 1.5rem;
    transition: background .2s, border-color .2s, box-shadow .2s;
}
.pg-hero .pg-btn-secondary:hover,
.pg-btn-secondary:hover {
    background: rgba(255,255,255,.14) !important;
    border-color: #fff !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
    text-decoration: none;
}
.pg-hero .btn.pg-btn-primary:focus,
.pg-hero .btn.pg-btn-secondary:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,.45);
}

.pg-sec {
    padding: 6rem 0;
}
.pg-sec.alt {
    background: var(--pg-surface);
}
.pg-sec h2 {
    color: var(--pg-primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 2rem;
}
.pg-sec h2 > i {
    color: var(--pg-teal);
    margin-right: .35rem;
}
.pg-sec-intro {
    color: var(--pg-primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 2rem;
}
.pg-sec-intro > i {
    color: var(--pg-teal);
    margin-right: .35rem;
}

.pg-btn-primary.btn-lg,
.pg-btn-secondary.btn-lg {
    padding: .75rem 1.65rem;
    font-size: 1.05rem;
}

/* ปุ่มหลัก Hero — คลาสเฉพาะ ไม่ผูก Bootstrap (กันพื้นทอง+ตัวขาว) */
.pg-hero-cta-primary {
    display: inline-block;
    background: #ffffff !important;
    background-image: none !important;
    border: 2px solid #ffffff !important;
    color: #1b4332 !important;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.4;
    border-radius: 8px;
    padding: .75rem 1.65rem;
    text-decoration: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: background .2s, box-shadow .2s, transform .15s;
}
.pg-hero-cta-primary:hover,
.pg-hero-cta-primary:focus {
    background: #f0f7f4 !important;
    border-color: #f0f7f4 !important;
    color: #1b4332 !important;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}
.pg-hero-cta-secondary {
    display: inline-block;
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 8px;
    padding: .75rem 1.65rem;
    text-decoration: none !important;
    transition: background .2s, border-color .2s, box-shadow .2s;
}
.pg-hero-cta-secondary:hover,
.pg-hero-cta-secondary:focus {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* Desktop: กริดบริการ 3 คอลัมน์ — ไม่ใช้สไลด์ (CSS อย่างเดียวก็ทำงาน) */
@media (min-width: 992px) {
    #pgSvcCarousel {
        padding: 0;
        margin: 0;
    }
    #pgSvcCarousel .pg-svc-nav,
    #pgSvcCarousel .pg-svc-dots-wrap {
        display: none !important;
    }
    #pgSvcCarousel .pg-svc-viewport {
        overflow: visible;
        min-height: 0;
        padding: 0;
        margin: 0;
    }
    #pgSvcCarousel .pg-svc-track {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.35rem 1.3rem;
        transform: none !important;
        transition: none;
        margin: 0;
        align-items: stretch;
    }
    #pgSvcCarousel .pg-svc-item {
        width: auto !important;
        max-width: none !important;
        flex: none !important;
        padding: 0;
        margin-bottom: 0;
        display: flex;
        align-items: stretch;
    }
    #pgSvcCarousel .pg-card {
        min-height: 320px;
        height: 100%;
    }
}
