﻿@charset "UTF-8";
/* =============================================================
   hero.css — Consolidated stylesheet for all OOU GoGreen pages
   ============================================================= */

:root {
    /* == ค่าตั้งต้น (Root) == */
    --bg-color:   #FAFAFA;
    --text-dark:  #2C302E;
    --text-light: #7A807D;
    --glam-green: #3A5A40;
    --glam-gold:  #C5A880;
    --white:      #FFFFFF;

    /* == ชุดสีฝ่ายต่างๆ == */
    --green-900: #1a3a20;
    --green-800: #2d4a33;
    --green-700: #3A5A40;
    --green-600: #4a7a54;
    --green-400: #6B8F71;
    --green-100: #d4ede0;
    --green-50:  #ffffff;
    --gold:      #C5A880;
    --gold-pale: #f5ecd8;
    --text:      #1e2e20;
    --muted:     #5a7a5e;
    --border:    #e0ebe2;
    --radius:    16px;
    --shadow:    0 4px 24px rgba(0,0,0,0.08);
}

/* ป้องกัน horizontal overflow ทั้งหน้า
   body overflow-x:hidden อย่างเดียวไม่พอเมื่อมี position:sticky/fixed */
html {
    overflow-x: clip;
    max-width: 100%;
}

body {
    font-family: 'Anuphan', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: clip;
    max-width: 100%;
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(197, 168, 128, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 60%, rgba(58, 90, 64, 0.06) 0%, transparent 40%);
    background-attachment: fixed;
}

/* --- Header (Glassmorphism) --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* กำหนด width ให้ไม่เกิน viewport — ป้องกัน sticky header ล้นขอบ */
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    padding: 0 60px;
    height: 70px;
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 4px 28px rgba(0,0,0,0.07), inset 0 1px 0 rgba(255,255,255,0.9);
    position: sticky;
    top: 0;
    z-index: 200;
    gap: 32px;
}

/* --- Navbar --- */
.main-nav { display: flex; align-items: center; flex: 1; justify-content: center; }

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-list > li { position: relative; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    height: 70px;
}

.nav-link:hover,
.has-dropdown:hover > .nav-link {
    color: var(--glam-green);
    background: rgba(58, 90, 64, 0.07);
}

.nav-arrow {
    font-size: 0.65rem;
    opacity: 0.5;
    transition: transform 0.25s;
    display: inline-block;
}

/* --- Dropdown --- */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 220px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}

.has-dropdown:hover .nav-arrow { transform: rotate(180deg); }

.dropdown li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.88rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 400;
    transition: background 0.15s, color 0.15s;
    border-radius: 6px;
    margin: 0 6px;
}

.dropdown li a:hover {
    background: rgba(58, 90, 64, 0.08);
    color: var(--glam-green);
}

/* caret notch above dropdown */
.dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(255, 255, 255, 0.96);
}

/* --- Header logo (right side) --- */
.header-logo { flex-shrink: 0; }

/* --- Hamburger button (hidden on desktop) --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    order: 3;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--glam-green);
    border-radius: 2px;
    transition: all 0.3s;
}

/* --- Mobile styles --- */
@media (max-width: 900px) {
    header { padding: 0 20px; }

    .nav-toggle { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(197, 168, 128, 0.2);
        padding: 12px 0 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav.open { display: flex; }

    .nav-list { flex-direction: column; gap: 0; }

    .nav-link {
        height: auto;
        padding: 12px 24px;
        justify-content: space-between;
        border-radius: 0;
    }

    /* dropdown becomes inline block on mobile */
    .has-dropdown .dropdown {
        position: static;
        transform: none;
        min-width: 100%;
        border: none;
        border-left: 3px solid rgba(197, 168, 128, 0.4);
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        backdrop-filter: none;
        padding: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, visibility 0.3s;
    }

    .has-dropdown .dropdown::before { display: none; }

    .has-dropdown.open .dropdown {
        visibility: visible;
        max-height: 300px;
    }

    .dropdown li a { padding: 10px 36px; }
}

.logo-text {
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--glam-green);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text span {
    color: var(--glam-gold);
    font-weight: 300;
}

/* --- Content Section --- */
.why-section {
    max-width: 1100px;
    margin: 0 auto 100px auto;
    padding: 0 20px;
    display: flex;
    gap: 60px;
    align-items: center;
}

.why-img {
    flex: 1;
    position: relative;
}

.why-img img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.why-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--glam-gold);
    border-radius: 16px;
    z-index: -1;
}

.why-content {
    flex: 1;
}

.why-content h2 {
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--glam-green);
    margin-bottom: 20px;
    line-height: 1.4;
}

.why-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 300;
}

.why-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.why-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.6;
}

.why-list li::before {
    content: '✧';
    position: absolute;
    left: 0;
    color: var(--glam-gold);
    font-size: 1.2rem;
}

/* --- Navigation Menu Cards --- */
.nav-container {
    max-width: 1200px;
    margin: 0 auto 100px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-dark);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.menu-card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.5s ease;
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
}

.menu-card:hover {
    box-shadow: 0 20px 40px rgba(58, 90, 64, 0.08);
}

.menu-img {
    height: 280px;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease;
}

/* =============================================================
   Styles moved from admin/flight_index.php
   Location: admin/flight_index.php <style> block
   These rules control the Flight Travel admin table, modal, and UI
   ============================================================= */

/* ── Page layout ─────────────────────────────── */
.fl-wrap           { max-width: 1200px; margin: 2rem auto; padding: 0 1.5rem; }
.fl-controls       { display: flex; align-items: center; justify-content: space-between;
                     flex-wrap: wrap; gap: .75rem; margin-bottom: 1.2rem; }
.fl-controls h2    { margin: 0; font-size: 1.15rem; color: var(--green-700);
                     display: flex; align-items: center; gap: .45rem; }

/* ── Summary strip ────────────────────────────── */
.fl-summary        { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.fl-stat           { flex: 1; min-width: 160px; background: #fff;
                     border: 1px solid var(--border); border-radius: 12px;
                     padding: 1rem 1.25rem; text-align: center;
                     box-shadow: 0 1px 6px rgba(58,90,64,.05); }
.fl-stat .s-num    { font-size: 1.6rem; font-weight: 700; color: var(--green-700); line-height: 1; }
.fl-stat .s-label  { font-size: .8rem; color: var(--muted); margin-top: .3rem; }

/* ── Filter / search bar ─────────────────────── */
.fl-filter         { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center;
                     background: #fff; border: 1px solid var(--border); border-radius: 10px;
                     padding: .65rem 1rem; margin-bottom: 1rem; }
.fl-filter input   { flex: 1; min-width: 200px; border: 1px solid var(--border);
                     border-radius: 8px; padding: .42rem .85rem;
                     font-family: 'Anuphan', sans-serif; font-size: .88rem; }
.fl-filter input:focus { outline: none; border-color: var(--green-700); }
.fl-filter select  { border: 1px solid var(--border); border-radius: 8px;
                     padding: .42rem .8rem; font-family: 'Anuphan', sans-serif;
                     font-size: .88rem; background: #fff; }

/* ── Table ────────────────────────────────────── */
.fl-table-wrap     { overflow-x: auto; }
.fl-table          { width: 100%; border-collapse: collapse; background: #fff;
                     border-radius: 12px; overflow: hidden;
                     box-shadow: 0 2px 12px rgba(0,0,0,.06);
                     border: 1px solid var(--border); }
.fl-table th       { background: #f5f6f8; font-weight: 600; color: var(--green-700);
                     font-size: .84rem; padding: .525rem .675rem;
                     text-align: left; border-bottom: 2px solid var(--border);
                     white-space: nowrap; }
.fl-table td       { padding: .4875rem .675rem; border-bottom: 1px solid #eef3f0;
                     vertical-align: middle; font-size: .88rem; }
.fl-table tr:last-child td { border-bottom: none; }
.fl-table tr:hover td      { background: #f9fdf9; }

.route-cell        { font-weight: 600; white-space: nowrap; }
.iata-badge        { display: inline-block; background: var(--green-50);
                     color: var(--green-700); border: 1px solid var(--border);
                     border-radius: 6px; padding: .1rem .5rem;
                     font-size: .82rem; font-weight: 700; letter-spacing: .04em; }
.carbon-chip       { display: inline-block; background: #fff7ed;
                     color: #92400e; border: 1px solid #fcd34d;
                     border-radius: 8px; padding: .15rem .6rem; font-size: .82rem;
                     font-weight: 600; white-space: nowrap; }
.dist-text         { color: var(--muted); font-size: .82rem; margin-top: .15rem; }

.empty-row td      { text-align: center; color: #a0b0a5; padding: 3rem; font-size: .92rem; }

/* ── Modal ────────────────────────────────────── */
.fl-modal-overlay  { display: none; position: fixed; inset: 0;
                     background: rgba(0,0,0,.45); z-index: 1000;
                     justify-content: center; align-items: center; }
.fl-modal-overlay.show { display: flex; }
.fl-modal          { background: #fff; border-radius: 14px; padding: 2rem;
                     width: 680px; max-width: 96vw; max-height: 92vh;
                     overflow-y: auto;
                     box-shadow: 0 8px 40px rgba(0,0,0,.18); }
.fl-modal h3       { font-size: 1.12rem; font-weight: 700; color: var(--green-700);
                     margin: 0 0 1.4rem; display: flex; align-items: center; gap: .45rem; }
.fl-modal-close    { position: absolute; top: .6rem; right: .8rem;
                     background: none; border: none; cursor: pointer;
                     color: #9ca3af; font-size: 1.2rem; line-height: 1;
                     padding: .2rem .4rem; border-radius: 6px; }
.fl-modal-close:hover { background: #f3f4f6; color: #374151; }

/* ── Form elements inside modal ──────────────── */
.fl-form-row       { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fl-form-group     { margin-bottom: 1rem; }
.fl-form-group label { display: block; font-size: .85rem; font-weight: 600;
                      color: var(--green-700); margin-bottom: .35rem; }
.fl-form-group input,
.fl-form-group select { width: 100%; border: 1px solid #d0ddd2; border-radius: 8px;
                       padding: .52rem .85rem; font-family: 'Anuphan', sans-serif;
                       font-size: .92rem; transition: .2s; box-sizing: border-box; }
.fl-form-group input:focus,
.fl-form-group select:focus {
    outline: none; border-color: var(--green-700);
    box-shadow: 0 0 0 3px rgba(58,90,64,.12);
}
.fl-form-group .form-hint { font-size: .78rem; color: #9ca3af; margin-top: .25rem; }

/* Select2 theme override to match form style */
.select2-container .select2-selection--single {
    height: 38px; border: 1px solid #d0ddd2; border-radius: 8px;
    display: flex; align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px; padding-left: .85rem; font-family: 'Anuphan', sans-serif;
    font-size: .92rem; color: #1e2e20;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(58,90,64,.12);
}
.select2-dropdown { border: 1px solid #d0ddd2; border-radius: 8px;
                    font-family: 'Anuphan', sans-serif; font-size: .9rem; }
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--green-700);
}

/* ── Form footer ──────────────────────────────── */
.fl-form-footer    { display: flex; gap: .75rem; justify-content: flex-end;
                     margin-top: 1.2rem; padding-top: 1rem;
                     border-top: 1px solid #eef3f0; }

/* ── Calc preview inside modal ───────────────── */
.calc-preview      { background: var(--green-50); border: 1px solid var(--border);
                     border-radius: 10px; padding: .85rem 1rem;
                     margin-bottom: 1rem; font-size: .88rem; color: var(--green-700);
                     min-height: 2.6rem; }
.calc-preview strong { color: #1e2e20; }

/* ── DT helpers ──────────────────────────────── */
.dt-top-bar        { display: flex; justify-content: space-between; align-items: center;
                     flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.dt-page-size      { font-size: .85rem; color: var(--muted); }
.dt-page-size select { margin: 0 .3rem; padding: .25rem .5rem; border-radius: 6px;
                      border: 1px solid var(--border); font-family: 'Anuphan', sans-serif; }
.dt-search input   { border: 1px solid var(--border); border-radius: 8px;
                     padding: .38rem .85rem; font-family: 'Anuphan', sans-serif;
                     font-size: .88rem; }
.dt-bottom-bar     { display: flex; justify-content: space-between; align-items: center;
                     flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.dt-info           { font-size: .83rem; color: var(--muted); }
.dt-pagination     { display: flex; gap: .25rem; flex-wrap: wrap; }
.dt-page-btn       { background: #fff; border: 1px solid var(--border); border-radius: 6px;
                     padding: .25rem .6rem; font-size: .82rem; cursor: pointer;
                     font-family: 'Anuphan', sans-serif; }
.dt-page-btn:hover { background: var(--green-50); border-color: var(--green-700); }
.dt-page-btn.dt-active { background: var(--green-700); color: #fff;
                         border-color: var(--green-700); }
.dt-page-btn:disabled  { opacity: .4; cursor: not-allowed; }
.dt-dots           { padding: .25rem .3rem; font-size: .82rem; color: var(--muted); }

@media (max-width: 640px) {
    .fl-form-row   { grid-template-columns: 1fr; }
}

/* End flight_index.php styles */


.menu-card:hover .menu-img {
    transform: scale(1.05);
}

.img-wrapper {
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.menu-content {
    padding: 35px 30px;
    background-color: var(--white);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
}

.menu-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--glam-green);
    font-weight: 500;
    line-height: 1.4;
}

.menu-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 300;
}

.btn-elegant {
    align-self: flex-start;
    font-size: 0.9rem;
    color: var(--glam-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-elegant::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: var(--glam-gold);
    transition: width 0.3s ease;
}

.menu-card:hover .btn-elegant::after {
    width: 100%;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--white);
    border-top: 1px solid rgba(0,0,0,0.05);
    color: var(--text-light);
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .hero-banner h1 { font-size: 2rem; }
    .hero-banner { padding: 60px 20px; }
    .why-section { flex-direction: column; gap: 40px; }
    .why-img img { height: 350px; }
    header { padding: 15px 20px; }
}

.hero-container {
    /* ลบ padding ข้างออก — banner ควรเต็มความกว้าง viewport
       ข้อความ hero มี padding ของตัวเอง (padding: 90px 24px ใน .hero-banner) */
    padding: 0;
    margin: 0;
    overflow: hidden;  /* กัน banner-slides ที่ scale เกินจาก transform ล้นออกมา */
    max-width: 100%;
}

/* Reduce overall hero height by ~25% (from 100vh -> 75vh) */
.hero-banner {
    position: relative;
    min-height: 75vh;
    width: 100%;
    padding: 90px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: 80px; /* ensure content below (why-section) doesn't overlap */
}

/* Background layer (image) - animated slow zoom for subtle motion */
/* Slide layers: multiple absolutely-positioned backgrounds that fade/zoom */
.banner-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.04);
    animation: slideFade 18s ease-in-out infinite;
    will-change: opacity, transform;
    z-index: 0;
}

/* stagger slides: 3 slides -> each offset by 6s */
.banner-slides .banner-slide:nth-child(1) { animation-delay: 0s; }
.banner-slides .banner-slide:nth-child(2) { animation-delay: 6s; }
.banner-slides .banner-slide:nth-child(3) { animation-delay: 12s; }

/* Dark overlay — sits above slides but below text content */
.banner-slides::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0.60));
    z-index: 1;
    pointer-events: none;
}

/* Bring content above banner-slides (z:0) and overlay (z:1) */
.hero-banner > *:not(.banner-slides) {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 800ms ease forwards;
}

.hero-tag {
    font-size: 1rem;
    color: var(--glam-gold);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
    font-weight: 500;
    animation-delay: 150ms;
}

.hero-banner h1 {
    color: var(--white);
    font-size: 3.2rem;
    font-weight: 300;
    line-height: 1.2;
    margin: 0 auto 20px auto;
    max-width: 900px;
    animation-delay: 350ms;
}

.hero-banner h1 strong {
    font-weight: 600;
    color: var(--glam-gold);
}

.hero-banner p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.95);
    font-weight: 300;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.6;
    animation-delay: 550ms;
}

/* menu cards and why-img entrance animation to reduce static feel */
.menu-card {
    animation: floatIn 700ms ease forwards;
}

.why-img img {
    transform: scale(1.02);
    animation: imgZoomIn 12s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.02); }
    to   { transform: scale(1.08); }
}

@keyframes slideFade {
    0%   { opacity: 0; transform: scale(1.04); }
    8%   { opacity: 1; transform: scale(1.05); }
    30%  { opacity: 1; transform: scale(1.08); }
    38%  { opacity: 0; transform: scale(1.09); }
    100% { opacity: 0; transform: scale(1.09); }
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes imgZoomIn {
    from { transform: scale(1.02); }
    to   { transform: scale(1.06); }
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 60px 16px;
        min-height: 60vh;
    }
    .hero-banner h1 { font-size: 2rem; }
}



.transition-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff; 
    padding: 40px 20px;
    margin: -50px auto 60px auto; /* ดึงแถบนี้ขึ้นไปซ้อนทับขอบล่างของ Hero Banner เล็กน้อยเพื่อความสมูท */
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* เพิ่มเงาให้ดูลอยขึ้นมา */
    position: relative;
    z-index: 10;
    gap: 40px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 600;
    color: #2e7d32; /* สีเขียวรักษ์โลก (สามารถเปลี่ยนเป็นสีม่วง มช. ได้ถ้าต้องการ) */
    margin-bottom: 5px;
    font-family: 'Anuphan', sans-serif;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.stat-divider {
    width: 1px;
    height: 70px;
    background-color: #eaeaea;
}

/* ปรับให้รองรับหน้าจอมือถือ */
@media (max-width: 768px) {
    .transition-stats {
        flex-direction: column;
        margin: -30px 20px 40px 20px; /* ลดระยะขอบซ้ายขวาบนมือถือ */
        gap: 20px;
        padding: 30px 20px;
    }
    .stat-divider {
        width: 60%;
        height: 1px;
    }
}
/* =============================================================
   BODY VARIANTS
   ============================================================= */
body.page-home {
    background-image:
        radial-gradient(circle at 15% 10%, rgba(197,168,128,0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 60%, rgba(58,90,64,0.06) 0%, transparent 40%);
    background-attachment: fixed;
}
body.admin-page { background: #f0f4f1; min-height: 100vh; }
body.login-page {
    background: linear-gradient(135deg, #1a2e1d 0%, #3A5A40 60%, #5a7a60 100%);
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
}

/* =============================================================
   UNIFIED FOOTER
   ============================================================= */
footer {
    text-align: center; padding: 28px 20px; font-size: 0.78rem; color: #9aaa9e;
    border-top: 1px solid var(--border); background: var(--green-50);
}
body.page-home footer {
    padding: 40px 20px; background-color: var(--white);
    border-top: 1px solid rgba(0,0,0,0.05); color: var(--text-light);
    font-weight: 300; font-size: 0.9rem; letter-spacing: 1px;
}

/* =============================================================
   PLAN-DEPT SHARED
   ============================================================= */
.site-header {
    background: rgba(255,255,255,0.52); backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.65);
    padding: 0 48px; height: 68px; display: flex; align-items: center;
    justify-content: space-between; position: sticky; top: 0; z-index: 200;
    box-shadow: 0 4px 28px rgba(0,0,0,0.07), inset 0 1px 0 rgba(255,255,255,0.9);
}
.header-brand { display: flex; align-items: center; gap: 10px; }
.header-brand .logo { font-size: 1.15rem; font-weight: 500; letter-spacing: 0.3px; color: #2C302E; }
.header-brand .divider { opacity: 0.35; font-size: 1.2rem; color: #2C302E; }
.header-brand .dept { font-size: 0.88rem; opacity: 0.7; font-weight: 300; color: #2C302E; }
.header-badge { background: var(--gold); color: var(--green-900); padding: 6px 18px; border-radius: 30px; font-size: 0.8rem; font-weight: 600; }
.nav-chain { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; }
.nav-chain a { color: #5a7a5e; text-decoration: none; transition: color .15s; }
.nav-chain a:hover { color: #1e2e20; }
.nav-chain .sep { color: #c5d5c8; }
.nav-chain .cur { color: #3A5A40; font-weight: 500; }
.breadcrumb {
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 11px 48px; font-size: 0.82rem; color: #353535;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--green-700); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.section-eyebrow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 3px; color: var(--muted); margin: 44px 0 16px; font-weight: 400; }
/* =============================================================
   PLAN-DEPT INDEX PAGES
   ============================================================= */
.hero { position: relative; min-height: 540px; background-color: var(--green-800); background-image: url('../banner.jpg'); background-size: cover; background-position: center 40%; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(26,58,32,0.90) 0%, rgba(45,74,51,0.82) 50%, rgba(58,90,64,0.72) 100%); }
.hero-dots { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px); background-size: 32px 32px; }
.hero-content { position: relative; z-index: 2; padding: 40px 24px; max-width: 720px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(197,168,128,0.18); border: 1px solid rgba(197,168,128,0.45); color: #e8d5b4; padding: 7px 22px; border-radius: 40px; font-size: 0.82rem; letter-spacing: 1.5px; margin-bottom: 24px; text-transform: uppercase; }
.hero-title { font-size: clamp(1.8rem,5vw,3.1rem); font-weight: 300; color: #fff; line-height: 1.3; margin-bottom: 20px; }
.hero-title strong { font-weight: 700; color: #a5d6a7; display: block; margin-top: 4px; }
.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,0.82); font-weight: 300; line-height: 1.8; max-width: 520px; margin: 0 auto 32px; }
.hero-sub em { color: #c8e6c9; font-style: normal; font-weight: 400; }
.hero-mrv-row, .hero-pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-pill { padding: 8px 20px; border-radius: 30px; font-size: 0.88rem; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); color: #fff; font-weight: 400; }
.hero-pill span { opacity: 0.65; font-size: 0.78rem; }
.main-wrap { max-width: 900px; margin: 0 auto; padding: 0 20px 100px; }
.section-label { text-align: center; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 3px; color: var(--muted); margin: 52px 0 28px; font-weight: 400; }
.theme-card { background: #fff; border-radius: 24px; box-shadow: 0 8px 48px rgba(0,0,0,0.12); overflow: hidden; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; text-decoration: none; color: inherit; display: block; }
.theme-card:hover { box-shadow: 0 20px 64px rgba(0,0,0,0.18); }
.tc-head { background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 60%, var(--green-700) 100%); padding: 36px 44px; display: flex; align-items: flex-start; gap: 24px; position: relative; overflow: hidden; }
.tc-head::after { content: '\1F331'; position: absolute; right: 32px; top: 50%; transform: translateY(-50%); font-size: 5rem; opacity: 0.08; pointer-events: none; }
.tc-num-badge { width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; background: rgba(197,168,128,0.15); border: 2px solid rgba(197,168,128,0.5); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tc-num-badge .t-num { font-size: 1.8rem; font-weight: 700; color: var(--gold); line-height: 1; }
.tc-num-badge .t-lbl { font-size: 0.6rem; color: rgba(197,168,128,0.6); letter-spacing: 2px; text-transform: uppercase; }
.tc-meta { color: #fff; }
.tc-tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2.5px; color: #a5d6a7; margin-bottom: 8px; }
.tc-title { font-size: 1.55rem; font-weight: 400; line-height: 1.35; }
.tc-title strong { font-weight: 600; }
.tc-subtitle { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin-top: 6px; font-weight: 300; }
.tc-body { padding: 36px 44px; }
.tc-desc { color: var(--muted); font-size: 0.98rem; line-height: 1.85; margin-bottom: 28px; max-width: 580px; }
.tc-stats { display: flex; gap: 36px; margin-bottom: 32px; }
.tc-stat-item { text-align: center; }
.tc-stat-item .stat-n { font-size: 2.2rem; font-weight: 700; color: var(--green-700); line-height: 1; }
.tc-stat-item .stat-l { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.btn-enter { display: inline-flex; align-items: center; gap: 12px; background: linear-gradient(135deg,var(--green-700),var(--green-800)); color: #fff; padding: 14px 34px; border-radius: 50px; font-family: 'Anuphan',sans-serif; font-size: 1rem; font-weight: 500; border: none; cursor: pointer; text-decoration: none; transition: all .2s; }
.btn-enter:hover { background: linear-gradient(135deg,var(--green-600),var(--green-700)); transform: scale(1.03); }
.btn-enter .arrow { font-size: 1.3rem; transition: transform .2s; }
.theme-card:hover .btn-enter .arrow { transform: translateX(5px); }
.mrv-pills-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.mpill { padding: 9px 22px; border-radius: 40px; font-size: 0.88rem; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.mpill .en { font-size: 0.72rem; opacity: 0.65; }
.mpill-m { background: #e8f5e9; color: #1b5e20; }
.mpill-r { background: #e3f2fd; color: #0d47a1; }
.mpill-v { background: #fff8e1; color: #e65100; }
.gp-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.gp-pill { padding: 9px 22px; border-radius: 40px; font-size: 0.88rem; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.gp-pill-a { background: #e8f5e9; color: #1b5e20; }
.gp-pill-b { background: #e3f2fd; color: #0d47a1; }
.gp-pill-c { background: #fff8e1; color: #e65100; }
.info-strip { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.info-strip-item { background: #fff; border-radius: var(--radius); padding: 20px 22px; border-left: 4px solid var(--green-700); box-shadow: var(--shadow); }
.info-strip-item .isl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); margin-bottom: 6px; }
.info-strip-item .isv { font-size: 0.95rem; font-weight: 500; color: var(--text); line-height: 1.5; }
/* =============================================================
   PLAN-DEPT THEME BANNER + PROJECT/TOPIC LIST SHARED
   ============================================================= */
.theme-banner {  background: linear-gradient(135deg, rgba(11, 31, 15, 0.65) 0%, rgba(26, 58, 34, 0.5) 60%, rgba(13, 43, 20, 0.7) 100%), url(../css/img/img-building01.jpg); }


.theme-banner::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.banner-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.banner-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(197,168,128,0.15); border: 1px solid rgba(197,168,128,0.35); color: #e8d5b4; padding: 6px 18px; border-radius: 30px; font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }
.banner-inner h1 { font-size: clamp(1.6rem,4vw,2.6rem); font-weight: 300; color: #fff; line-height: 1.3; margin-bottom: 12px; }
.banner-inner h1 strong { font-weight: 700; color: #a5d6a7; }
.banner-inner p { color: rgba(255,255,255,0.72); font-size: 1rem; max-width: 580px; line-height: 1.75; }
.content-wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.list-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.list-header h2 { font-size: 1.2rem; font-weight: 500; }
.count-badge { background: var(--green-700); color: #fff; padding: 4px 16px; border-radius: 20px; font-size: 0.8rem; }

/* MRV Flow (dept1 theme1) */
.mrv-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; background: #fff; border-radius: var(--radius); box-shadow: 0 2px 16px rgba(0,0,0,0.06); overflow: hidden; margin-bottom: 48px; }
.mrv-step { padding: 28px 26px; }
.mrv-sep { display: flex; align-items: center; justify-content: center; padding: 0 6px; color: #c5d5c8; font-size: 1.5rem; background: #f8faf8; }
.mrv-m { background: #f1faf3; } .mrv-r { background: #f0f7ff; } .mrv-v { background: #fffbf0; }
.mrv-step-icon { font-size: 1.9rem; margin-bottom: 10px; }
.mrv-step-en { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 2px; color: #9aaa9e; margin-bottom: 5px; }
.mrv-step-th { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.mrv-step-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.65; }

/* Project list (dept1) */
.project-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 60px; }
.project-card { background: #fff; border-radius: var(--radius); box-shadow: 0 2px 14px rgba(0,0,0,0.06); overflow: hidden; display: flex; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.project-card:hover { box-shadow: 0 6px 28px rgba(58,90,64,0.14); }
.pc-accent { width: 84px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px 0; }
.pc-accent .num { font-size: 2rem; font-weight: 700; color: #fff; line-height: 1; }
.pc-accent .num-sub { font-size: 0.62rem; letter-spacing: 1.5px; color: rgba(255,255,255,0.55); text-transform: uppercase; margin-top: 3px; }
.acc-1 { background: linear-gradient(170deg,#2d6a4f,#3A5A40); }
.acc-2 { background: linear-gradient(170deg,#b45309,#c47a1a); }
.acc-3 { background: linear-gradient(170deg,#1565c0,#1976d2); }
.acc-4 { background: linear-gradient(170deg,#880e4f,#ad1457); }
.acc-5 { background: linear-gradient(170deg,#4a148c,#6a1b9a); }
.pc-body { flex: 1; padding: 20px 28px; display: flex; align-items: center; gap: 16px; }
.pc-main { flex: 1; }
.sec-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.73rem; padding: 3px 12px; border-radius: 20px; font-weight: 500; margin-bottom: 9px; }
.sb-1 { background: #e8f5e9; color: #1b5e20; } .sb-2 { background: #fff3e0; color: #bf360c; }
.sb-3 { background: #e3f2fd; color: #0d47a1; } .sb-4 { background: #fce4ec; color: #880e4f; }
.sb-5 { background: #f3e5f5; color: #6a1b9a; }
.pc-main h3 { font-size: 1.02rem; font-weight: 500; line-height: 1.45; color: var(--text); }
.pc-meta { display: flex; gap: 12px; margin-top: 7px; font-size: 0.78rem; color: var(--muted); }
.pc-arrow { color: var(--gold); font-size: 1.5rem; flex-shrink: 0; transition: transform .2s; }
.project-card:hover .pc-arrow { transform: translateX(5px); }

/* KPI Section (dept1 theme1) */
.kpi-wrap { margin-bottom: 80px; }
.kpi-header-box { background: linear-gradient(135deg,var(--green-700),var(--green-800)); border-radius: var(--radius) var(--radius) 0 0; padding: 22px 32px; color: #fff; }
.kpi-header-box h2 { font-size: 1.15rem; font-weight: 500; }
.kpi-header-box p { font-size: 0.82rem; opacity: 0.7; margin-top: 4px; font-weight: 300; }
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 4px 20px rgba(0,0,0,0.07); overflow: hidden; }
.kpi-item { padding: 24px 28px; display: flex; gap: 16px; align-items: flex-start; border-bottom: 1px solid #f0f4f1; }
.kpi-item:nth-child(odd) { border-right: 1px solid #f0f4f1; }
.kpi-item:nth-last-child(-n+2) { border-bottom: none; }
.kpi-icon-box { width: 46px; height: 46px; border-radius: 12px; background: var(--green-50); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; flex-shrink: 0; }
.kpi-text h4 { font-size: 0.92rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.kpi-text p { font-size: 0.8rem; color: var(--muted); margin-top: 5px; line-height: 1.5; }
/* =============================================================
   PROJECT DETAIL PAGES (dept1 & dept4)
   ============================================================= */
.project-header { position: relative; overflow: hidden; padding: 52px 48px 60px; }
.project-header::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.ph-inner { max-width: 840px; margin: 0 auto; position: relative; z-index: 1; }
.ph-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.ph-num { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.35); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.ph-section-badge { padding: 5px 16px; border-radius: 30px; font-size: 0.78rem; font-weight: 500; border: 1px solid rgba(255,255,255,0.25); }
.project-header h1 { font-size: clamp(1.5rem,4vw,2.2rem); font-weight: 400; color: #fff; line-height: 1.4; margin-bottom: 14px; }
.project-header h1 strong { font-weight: 700; }
.project-header .ph-desc { color: rgba(255,255,255,0.75); font-size: 1rem; line-height: 1.8; max-width: 620px; }
.ph-act-count { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.85); padding: 7px 18px; border-radius: 30px; font-size: 0.84rem; }
.hdr-1 { background: linear-gradient(135deg,#1b5e20 0%,#2d6a4f 50%,#3A5A40 100%); }
.hdr-2 { background: linear-gradient(135deg,#7f3300 0%,#b45309 50%,#c47a1a 100%); }
.hdr-3 { background: linear-gradient(135deg,#0d47a1 0%,#1565c0 50%,#1976d2 100%); }
.hdr-4 { background: linear-gradient(135deg,#4a0030 0%,#880e4f 50%,#ad1457 100%); }
.hdr-5 { background: linear-gradient(135deg,#310060 0%,#4a148c 50%,#6a1b9a 100%); }
.sb-1-inv { background: rgba(165,214,167,0.2); color: #c8e6c9; }
.sb-2-inv { background: rgba(255,204,128,0.2); color: #ffe0b2; }
.sb-3-inv { background: rgba(144,202,249,0.2); color: #bbdefb; }
.sb-4-inv { background: rgba(248,187,208,0.2); color: #fce4ec; }
.sb-5-inv { background: rgba(206,147,216,0.2); color: #f3e5f5; }
.page-header { padding: 52px 48px 60px; position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.page-header .ph-inner { max-width: 900px; }
.ph-tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 16px; border-radius: 30px; font-size: 0.78rem; border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.85); margin-bottom: 16px; }
.page-header h1 { font-size: clamp(1.5rem,4vw,2.3rem); font-weight: 400; color: #fff; line-height: 1.35; margin-bottom: 12px; }
.page-header h1 strong { font-weight: 700; }
.page-header .ph-desc { color: rgba(255,255,255,0.72); font-size: 0.98rem; line-height: 1.8; max-width: 640px; }
.hdr-catalog { background: linear-gradient(135deg,#1b5e20 0%,#2d6a4f 55%,#3A5A40 100%); }
.hdr-tor     { background: linear-gradient(135deg,#0d47a1 0%,#1565c0 55%,#1976d2 100%); }
.hdr-3r      { background: linear-gradient(135deg,#bf360c 0%,#e64a19 55%,#ff7043 100%); }
.act-count-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.act-count-row h2 { font-size: 1.15rem; font-weight: 500; }
.act-total { background: var(--green-700); color: #fff; padding: 4px 16px; border-radius: 20px; font-size: 0.8rem; }
.activity-list { position: relative; display: flex; flex-direction: column; gap: 16px; }
.activity-list::before { content: ''; position: absolute; left: 28px; top: 28px; bottom: 28px; width: 2px; background: var(--green-100); pointer-events: none; }
.act-card { background: #fff; border-radius: var(--radius); box-shadow: 0 2px 14px rgba(0,0,0,0.06); overflow: hidden; display: flex; transition: transform .2s, box-shadow .2s; }
.act-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.1); }
.act-dot-col { width: 58px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; padding-top: 28px; gap: 4px; position: relative; }
.act-dot { width: 14px; height: 14px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--green-400); position: relative; z-index: 1; flex-shrink: 0; }
.act-step-num { font-size: 0.62rem; color: var(--muted); letter-spacing: 1px; }
.act-main { flex: 1; padding: 22px 24px 22px 0; }
.act-icon-title { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.act-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.icon-1 { background: #e8f5e9; } .icon-2 { background: #fff3e0; } .icon-3 { background: #e3f2fd; } .icon-4 { background: #fce4ec; } .icon-5 { background: #f3e5f5; }
.act-title { font-size: 1rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.act-detail { font-size: 0.88rem; color: var(--muted); line-height: 1.7; padding-left: 56px; }
.nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; gap: 12px; flex-wrap: wrap; }
.btn-back, .btn-next, .btn-prev { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 50px; font-size: 0.9rem; font-weight: 500; font-family: 'Anuphan',sans-serif; cursor: pointer; text-decoration: none; border: none; transition: all .2s; }
.btn-back { background: var(--green-50); color: var(--green-700); border: 1px solid var(--border); }
.btn-back:hover { background: var(--green-100); }
.btn-nav-group { display: flex; gap: 10px; }
.btn-prev, .btn-next { background: #fff; color: var(--green-700); border: 1px solid var(--border); }
.btn-prev:hover, .btn-next:hover { background: var(--green-50); border-color: var(--green-400); }
.btn-prev.hidden, .btn-next.hidden { visibility: hidden; }
.not-found { max-width: 500px; margin: 80px auto; text-align: center; padding: 20px; }
.not-found .nf-icon { font-size: 4rem; margin-bottom: 20px; }
.not-found h2 { font-size: 1.3rem; color: var(--text); margin-bottom: 10px; }
.not-found p { color: var(--muted); margin-bottom: 24px; }
/* =============================================================
   PLAN-DEPT4 THEME1 — Lifecycle flow, topic cards, tips
   ============================================================= */
.lifecycle-flow { display: grid; grid-template-columns: repeat(5,1fr); background: #fff; border-radius: var(--radius); box-shadow: 0 2px 16px rgba(0,0,0,0.06); overflow: hidden; margin-bottom: 48px; }
.lc-step { padding: 22px 16px; text-align: center; position: relative; border-right: 1px solid var(--border); }
.lc-step:last-child { border-right: none; }
.lc-step::after { content: '->'; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); font-size: 1rem; color: #c5d5c8; z-index: 1; pointer-events: none; }
.lc-step:last-child::after { display: none; }
.lc-step-icon { font-size: 1.7rem; margin-bottom: 8px; }
.lc-step-th { font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.lc-step-en { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.lc-s1 { background: #f1faf3; } .lc-s2 { background: #e3f2fd; } .lc-s3 { background: #fff3e0; } .lc-s4 { background: #fce4ec; } .lc-s5 { background: #f3e5f5; }
.topic-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 60px; }
.topic-card { background: #fff; border-radius: var(--radius); box-shadow: 0 2px 14px rgba(0,0,0,0.06); overflow: hidden; text-decoration: none; color: inherit; display: flex; transition: transform .2s ease, box-shadow .2s ease; }
.topic-card:hover { box-shadow: 0 6px 28px rgba(58,90,64,0.14); }
.tc-accent { width: 92px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 0; }
.tc-accent .t-icon { font-size: 2rem; margin-bottom: 6px; }
.tc-accent .t-num { font-size: 0.65rem; letter-spacing: 2px; color: rgba(255,255,255,0.6); text-transform: uppercase; }
.acc-catalog { background: linear-gradient(160deg,#1b5e20,#2d6a4f); }
.acc-tor     { background: linear-gradient(160deg,#0d47a1,#1565c0); }
.acc-3r      { background: linear-gradient(160deg,#e65100,#f57c00); }
.tc-body-card { flex: 1; padding: 22px 28px; display: flex; align-items: center; gap: 16px; }
.tc-main { flex: 1; }
.tc-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.73rem; padding: 3px 12px; border-radius: 20px; font-weight: 500; margin-bottom: 9px; }
.tb-catalog { background: #e8f5e9; color: #1b5e20; }
.tb-tor     { background: #e3f2fd; color: #0d47a1; }
.tb-3r      { background: #fff3e0; color: #bf360c; }
.tc-main h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.45; color: var(--text); }
.tc-main p  { font-size: 0.85rem; color: var(--muted); margin-top: 8px; line-height: 1.65; }
.tc-chips { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.tc-chip { font-size: 0.72rem; padding: 3px 10px; border-radius: 10px; background: #f4f4f4; color: #5a6a5c; border: 1px solid #e8e8e8; }
.tc-arrow { color: var(--gold); font-size: 1.5rem; flex-shrink: 0; transition: transform .2s; }
.topic-card:hover .tc-arrow { transform: translateX(5px); }
.tips-wrap { margin-bottom: 80px; }
.tips-header { background: linear-gradient(135deg,#2d6a4f,#3A5A40); border-radius: var(--radius) var(--radius) 0 0; padding: 22px 32px; color: #fff; }
.tips-header h2 { font-size: 1.1rem; font-weight: 500; }
.tips-header p { font-size: 0.82rem; opacity: 0.7; margin-top: 4px; }
.tips-grid { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 4px 20px rgba(0,0,0,0.07); overflow: hidden; }
.tip-item { padding: 22px 26px; display: flex; gap: 14px; align-items: flex-start; border-bottom: 1px solid #f0f4f1; }
.tip-item:nth-child(odd) { border-right: 1px solid #f0f4f1; }
.tip-item:nth-last-child(-n+2) { border-bottom: none; }
.tip-icon-box { width: 44px; height: 44px; border-radius: 12px; background: var(--green-50); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.tip-text h4 { font-size: 0.92rem; font-weight: 600; color: var(--text); }
.tip-text p { font-size: 0.8rem; color: var(--muted); margin-top: 5px; line-height: 1.55; }

/* =============================================================
   PLAN-DEPT4 PROJECT — Catalog, TOR Templates, 3R Principles
   ============================================================= */
.filter-bar { background: #fff; border-radius: var(--radius); box-shadow: 0 2px 12px rgba(0,0,0,0.06); padding: 18px 22px; margin-bottom: 16px; display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.filter-group { display: flex; flex-direction: column; gap: 5px; min-width: 180px; }
.filter-group label { font-size: 0.75rem; color: var(--muted); font-weight: 400; text-transform: uppercase; letter-spacing: 1px; }
.filter-group select, .filter-group input { font-family: 'Anuphan',sans-serif; font-size: 0.88rem; padding: 8px 12px; border: 1px solid #dde8df; border-radius: 8px; background: #fafafa; color: var(--text); outline: none; transition: border-color .2s; min-width: 160px; }
.filter-group select:focus, .filter-group input:focus { border-color: var(--green-700); }
.filter-reset { padding: 8px 18px; border-radius: 8px; font-size: 0.82rem; background: #fff; border: 1px solid var(--border); color: var(--muted); cursor: pointer; font-family: 'Anuphan',sans-serif; align-self: flex-end; transition: all .2s; }
.filter-reset:hover { background: #f5f5f5; }
.catalog-result { font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; }
.catalog-table-wrap { background: #fff; border-radius: var(--radius); box-shadow: 0 2px 14px rgba(0,0,0,0.06); overflow: hidden; }
.catalog-table { width: 100%; border-collapse: collapse; }
.catalog-table thead th { background: var(--green-700); color: #fff; padding: 13px 16px; font-size: 0.82rem; font-weight: 500; text-align: left; }
.catalog-table tbody tr { border-bottom: 1px solid #f0f4f1; transition: background .15s; }
.catalog-table tbody tr:last-child { border-bottom: none; }
.catalog-table tbody tr:hover { background: #f5faf6; }
.catalog-table td { padding: 13px 16px; font-size: 0.88rem; vertical-align: middle; }
.cat-badge { display: inline-block; padding: 3px 11px; border-radius: 12px; font-size: 0.75rem; font-weight: 500; }
.std-pill { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 0.72rem; background: #f0faf4; color: var(--green-700); border: 1px solid #c8e6c9; margin: 2px 2px 2px 0; }
.no-results { padding: 40px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.tor-intro { background: #fff; border-radius: var(--radius); box-shadow: 0 2px 12px rgba(0,0,0,0.06); padding: 24px 28px; margin-bottom: 28px; border-left: 4px solid #1565c0; }
.tor-intro h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.tor-intro p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }
.tor-intro ul { margin: 10px 0 0 20px; font-size: 0.88rem; color: var(--muted); line-height: 1.8; }
.tor-block { margin-bottom: 20px; }
.tor-block-head { background: #1565c0; color: #fff; padding: 14px 22px; border-radius: var(--radius) var(--radius) 0 0; display: flex; align-items: center; justify-content: space-between; }
.tor-block-head h3 { font-size: 0.95rem; font-weight: 500; }
.btn-copy { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 20px; font-size: 0.78rem; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: #fff; cursor: pointer; font-family: 'Anuphan',sans-serif; transition: background .2s; }
.btn-copy:hover { background: rgba(255,255,255,0.25); }

/* =============================================================
   OOU_GO_GREEN index.php — Unbrew-inspired layout (ub-*)
   Stats / About / Vision / Mission (cards) / Goals / Footer
   ============================================================= */

/* ── Floating counter stats bar ─────────────────────────────── */
.ub-stats-wrap {
    padding: 0 24px;
    margin: -44px auto 0;
    max-width: 1060px;
    position: relative;
    z-index: 20;
}
.ub-stats {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0px 24px 48px -13px rgba(0,0,0,0.12);
    display: flex;
    align-items: stretch;
}
.ub-counter {
    flex: 1;
    text-align: center;
    padding: 36px 20px;
    border-right: 1px solid #f3f3f3;
    transition: background .2s;
}
.ub-counter:last-child { border-right: none; }
.ub-counter:hover { background: #f9fbf9; }
.ub-counter-icon { font-size: 1.8rem; line-height: 1; margin-bottom: 10px; }
.ub-counter-num {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--glam-green);
    line-height: 1;
    margin-bottom: 8px;
}
.ub-counter-lbl {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    font-weight: 500;
}

/* ── Section base ───────────────────────────────────────────── */
.ub-section { padding: 90px 0; }
.ub-section-light { background: #f9fbf9; }
.ub-section-dark {
    background: linear-gradient(45deg, #1a3a22 0%, #3A5A40 100%);
}
.ub-container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Section heading (centered) ────────────────────────────── */
.ub-section-head {
    text-align: center;
    margin-bottom: 60px;
}
.ub-subheading {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--glam-gold);
    margin-bottom: 12px;
}
.ub-subheading-light { color: rgba(197,168,128,0.75); }
.ub-section-head h2 {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--glam-green);
    line-height: 1.35;
    margin: 0 0 16px 0;
}
.ub-section-head p {
    font-size: 1.02rem;
    color: var(--text-light);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ── About: 2-column image + text ──────────────────────────── */
.ub-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.ub-col-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0px 24px 48px -13px rgba(0,0,0,0.10);
    display: block;
}
.ub-col-text .ub-subheading { text-align: left; }
.ub-col-text h2 {
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--glam-green);
    line-height: 1.35;
    margin-bottom: 20px;
}
.ub-col-text h2 strong { font-weight: 700; }
.ub-col-text p {
    font-size: 1.02rem;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 28px;
    font-weight: 300;
}
/* Unbrew-style asymmetric pill button */
.ub-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--glam-green);
    color: #fff;
    border-radius: 40px 40px 40px 0;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .3s ease;
    box-shadow: 0px 24px 36px -11px rgba(0,0,0,0.12);
    letter-spacing: 0.3px;
}
.ub-btn:hover {
    border-radius: 0 40px 40px 40px;
    background: var(--green-600);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ── Vision: dark full-width with centred blockquote ────────── */
.ub-vision-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.ub-vision-h2 {
    font-size: 2.2rem;
    font-weight: 300;
    color: #fff;
    margin: 0 0 36px 0;
}
.ub-quote {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.9;
    font-weight: 300;
    font-style: italic;
    margin: 0;
    padding: 0 40px;
    border: none;
    position: relative;
}
.ub-quote::before {
    content: '\201C';
    font-size: 7rem;
    color: rgba(197,168,128,0.18);
    position: absolute;
    top: -20px;
    left: 0;
    line-height: 1;
    font-family: Georgia, serif;
}

/* ── Mission: Unbrew service cards (hover fills green) ──────── */
.ub-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}
.ub-service-card {
    background: #fff;
    border-radius: 8px;
    padding: 32px 24px 28px;
    text-align: center;
    box-shadow: 0px 24px 48px -13px rgba(0,0,0,0.05);
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
    z-index: 0;
    cursor: default;
}
.ub-service-card::after {
    content: '';
    position: absolute;
    bottom: -100%;
    right: -15%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.10);
    z-index: -1;
    opacity: 0;
    transform: rotate(50deg);
    transition: all .5s ease;
}
.ub-service-card:hover { background: var(--glam-green); box-shadow: 0px 5px 14px -6px rgba(0,0,0,0.22); }
.ub-service-card:hover::after { bottom: -70%; right: 0; opacity: 1; }
.ub-service-card:hover .ub-svc-icon { background: #fff; }
.ub-service-card:hover .ub-svc-icon span { color: var(--glam-green); }
.ub-service-card:hover .ub-svc-num { color: rgba(255,255,255,0.5); }
.ub-service-card:hover .ub-svc-title { color: #fff; }
.ub-service-card:hover .ub-svc-text { color: rgba(255,255,255,0.85); }

.ub-svc-num {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--glam-gold);
    font-weight: 600;
    margin-bottom: 14px;
    transition: color .3s;
}
.ub-svc-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e8f5ee;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s;
}
.ub-svc-icon span { font-size: 2.2rem; color: var(--glam-green); line-height: 1; transition: color .3s; }
.ub-svc-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    transition: color .3s;
}
.ub-svc-text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.75;
    transition: color .3s;
}

/* ── Goals: 2-column feature grid (icon + h3 + text) ───────── */
.ub-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px 48px;
}
.ub-feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.ub-feat-icon {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #e8f5ee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    line-height: 1;
    box-shadow: 0px 12px 24px -8px rgba(58,90,64,0.10);
    transition: transform .25s;
}
.ub-feature-item:hover .ub-feat-icon { transform: translateY(-4px); }
.ub-feat-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px 0;
    line-height: 1.4;
}
.ub-feat-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.75;
    margin: 0;
    font-weight: 300;
}
.ub-feat-bar {
    height: 6px;
    background: #e0f0e4;
    border-radius: 999px;
    margin-top: 12px;
    overflow: hidden;
    max-width: 240px;
}
.ub-feat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--glam-green), var(--green-600));
    border-radius: 999px;
}
.ub-feat-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(197,168,128,0.08);
    color: var(--glam-gold);
    border: 1px solid rgba(197,168,128,0.2);
    font-size: 0.78rem;
    font-weight: 600;
}

/* ── Footer (Unbrew light multi-col + dark bottom bar) ──────── */
.ub-footer {
    background: linear-gradient(135deg, #f0f7f1, #e8f5ee);
    padding: 64px 0 0;
    position: relative;
    overflow: hidden;
}
.ub-footer::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -160px;
    width: 600px;
    height: 480px;
    border-radius: 50%;
    background: rgba(58,90,64,0.04);
    pointer-events: none;
}
.ub-footer-inner {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px 56px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 52px;
    position: relative;
    z-index: 1;
}
.ub-footer-logo {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--glam-green);
    margin-bottom: 16px;
    display: block;
}
.ub-footer-logo span { color: var(--glam-gold); font-weight: 300; }
.ub-footer-brand p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.75;
    margin: 0;
}
.ub-footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--glam-green);
    margin-bottom: 22px;
    letter-spacing: 0.3px;
}
.ub-footer-col ul { list-style: none; padding: 0; margin: 0; }
.ub-footer-col ul li { margin-bottom: 10px; }
.ub-footer-col ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color .2s, padding-left .2s;
    display: inline-block;
}
.ub-footer-col ul li a::before { content: '▸ '; font-size: 0.65em; opacity: 0.5; }
.ub-footer-col ul li a:hover { color: var(--glam-green); padding-left: 4px; }

.ub-footer-bottom {
    background: var(--green-900);
    padding: 18px 24px;
    margin-top: 0;
}
.ub-footer-bottom-inner {
    max-width: 1060px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .ub-two-col { grid-template-columns: 1fr; gap: 40px; }
    .ub-features { grid-template-columns: 1fr; }
    .ub-footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .ub-section-head h2, .ub-col-text h2, .ub-vision-h2 { font-size: 1.9rem; }
    .ub-quote { font-size: 1.1rem; padding: 0 20px; }
}
@media (max-width: 600px) {
    .ub-stats { flex-wrap: wrap; }
    .ub-counter { flex-basis: 50%; border-right: none; border-bottom: 1px solid #f3f3f3; }
    .ub-counter:nth-child(odd) { border-right: 1px solid #f3f3f3; }
    .ub-services { grid-template-columns: 1fr; }
    .ub-section { padding: 60px 0; }
    .ub-counter-num { font-size: 2.2rem; }
}

/* end ub-* layout */
.btn-copy.copied { background: rgba(76,175,80,0.4); }
.tor-text { background: #f8fbff; border: 1px solid #d0e4f7; border-top: none; border-radius: 0 0 var(--radius) var(--radius); padding: 22px 24px; font-size: 0.88rem; line-height: 1.9; color: var(--text); white-space: pre-wrap; font-family: 'Anuphan',sans-serif; }
.tor-text .highlight { color: #1565c0; font-weight: 600; }
.tor-text .placeholder { background: #fff9c4; padding: 0 4px; border-radius: 3px; font-style: italic; color: #f57f17; font-size: 0.82rem; }
.principle-intro { background: linear-gradient(135deg,#fff8f0,#fff3e0); border-radius: var(--radius); padding: 24px 28px; border-left: 4px solid #e64a19; margin-bottom: 32px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.principle-intro p { font-size: 0.95rem; color: var(--text); line-height: 1.85; }
.principle-intro strong { color: #bf360c; }
.r3-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 36px; }
.r3-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 14px rgba(0,0,0,0.07); transition: transform .2s, box-shadow .2s; }
.r3-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.12); }
.r3-head { padding: 24px 20px 16px; text-align: center; }
.r3-icon { font-size: 2.8rem; margin-bottom: 10px; }
.r3-en { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.r3-th { font-size: 1rem; font-weight: 400; }
.r3-body { padding: 14px 18px 20px; }
.r3-body p { font-size: 0.85rem; color: var(--muted); line-height: 1.7; margin-bottom: 12px; }
.r3-list { list-style: none; }
.r3-list li { font-size: 0.83rem; color: var(--text); padding: 5px 0; border-bottom: 1px solid #f5f5f5; display: flex; align-items: flex-start; gap: 8px; }
.r3-list li:last-child { border-bottom: none; }
.r3-list li::before { content: 'o'; flex-shrink: 0; margin-top: 1px; }
.r3-reduce .r3-head { background: linear-gradient(135deg,#e8f5e9,#f1faf3); }
.r3-reduce .r3-en { color: #1b5e20; } .r3-reduce .r3-th { color: #2e7d32; }
.r3-reduce .r3-list li::before { color: #2e7d32; }
.r3-reuse .r3-head { background: linear-gradient(135deg,#e3f2fd,#f0f8ff); }
.r3-reuse .r3-en { color: #0d47a1; } .r3-reuse .r3-th { color: #1565c0; }
.r3-reuse .r3-list li::before { color: #1565c0; }
.r3-recycle .r3-head { background: linear-gradient(135deg,#fff8e1,#fffbf0); }
.r3-recycle .r3-en { color: #e65100; } .r3-recycle .r3-th { color: #ef6c00; }
.r3-recycle .r3-list li::before { color: #ef6c00; }
.label-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 36px; }
.label-card { background: #fff; border-radius: var(--radius); box-shadow: 0 2px 12px rgba(0,0,0,0.06); padding: 20px 16px; text-align: center; transition: transform .2s; }
.label-card:hover { transform: translateY(-3px); }
.label-card .lc-icon { font-size: 2.2rem; margin-bottom: 10px; }
.label-card .lc-name { font-size: 0.92rem; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.label-card .lc-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.55; }
.lifecycle-table-wrap { background: #fff; border-radius: var(--radius); box-shadow: 0 2px 14px rgba(0,0,0,0.06); overflow: hidden; margin-bottom: 36px; }
.lifecycle-table { width: 100%; border-collapse: collapse; }
.lifecycle-table thead th { background: #bf360c; color: #fff; padding: 12px 18px; font-size: 0.82rem; font-weight: 500; text-align: left; }
.lifecycle-table tbody td { padding: 12px 18px; font-size: 0.87rem; border-bottom: 1px solid #f5f5f5; vertical-align: top; line-height: 1.6; }
.lifecycle-table tbody tr:last-child td { border-bottom: none; }
.lifecycle-table tbody tr:hover { background: #fff8f0; }
.lifecycle-table .stage { font-weight: 600; color: var(--text); }
.lifecycle-table .impact { color: #c62828; font-size: 0.82rem; }
.lifecycle-table .action { color: #1b5e20; font-size: 0.85rem; }
/* =============================================================
   DASHBOARD PAGE
   ============================================================= */
.page-hero {
    position: relative;
    background-image: url('img/banner.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 60px 80px;
    text-align: center;
    overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(135deg, rgba(45,74,51,0.85) 0%, rgba(58,90,64,0.75) 100%);
 }
.page-hero h1, .page-hero p { position: relative; z-index: 2; }
.page-hero h1 { font-size: 2.4rem; font-weight: 300; margin: 0 0 10px; letter-spacing: 1px; }
.page-hero p  { font-size: 1.05rem; opacity: 0.82; font-weight: 300; margin: 0; }
.dash-filter-bar { background: #fff; border-bottom: 1px solid #eee; padding: 14px 60px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; position: sticky; top: 70px; z-index: 150; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.filter-chip { font-size: 0.78rem; color: #7A807D; padding: 4px 12px; background: #f4f4f4; border-radius: 20px; font-weight: 400; }
.dash-filter-group { display: flex; align-items: center; gap: 7px; }
.dash-filter-group label { font-size: 0.82rem; color: #7A807D; white-space: nowrap; }
.dash-filter-group select { font-family: 'Anuphan',sans-serif; font-size: 0.88rem; padding: 7px 12px; border: 1px solid #e0e0e0; border-radius: 8px; background: #fafafa; color: #2C302E; cursor: pointer; outline: none; transition: border-color .2s; }
.dash-filter-group select:focus { border-color: #3A5A40; }
.tab-nav { background: #fff; padding: 0 60px; display: flex; gap: 0; border-bottom: 1px solid #eee; overflow-x: auto; position: sticky; top: 118px; z-index: 140; }
.tab-btn { font-family: 'Anuphan',sans-serif; font-size: 0.88rem; padding: 15px 20px; border: none; background: none; cursor: pointer; color: #7A807D; border-bottom: 2px solid transparent; white-space: nowrap; transition: all .2s; font-weight: 400; }
.tab-btn:hover { color: #3A5A40; }
.tab-btn.active { color: #3A5A40; border-bottom-color: #3A5A40; font-weight: 500; }
.tab-content { max-width: 1300px; margin: 0 auto; padding: 36px 20px 80px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.dash-section-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: #7A807D; margin: 32px 0 14px; }
.kpi-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.kpi-card { flex: 1; min-width: 150px; background: #fff; border-radius: 14px; padding: 22px 18px; box-shadow: 0 2px 14px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.04); text-align: center; }
.kpi-icon  { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.kpi-value { font-size: 1.7rem; font-weight: 500; color: #3A5A40; display: block; line-height: 1.1; }
.kpi-unit  { font-size: 0.75rem; color: #7A807D; display: block; margin: 3px 0; }
.kpi-label { font-size: 0.82rem; color: #2C302E; }
.kpi-change { font-size: 0.74rem; margin-top: 5px; display: block; }
.kpi-change.good { color: #2e7d32; }
.kpi-change.bad  { color: #c62828; }
.chart-grid      { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.chart-grid.full { grid-template-columns: 1fr; }
.chart-grid.wide { grid-template-columns: 2fr 1fr; }
.chart-card { background: #fff; border-radius: 14px; padding: 26px 24px; box-shadow: 0 2px 14px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.04); }
.chart-card h3 { font-size: 0.95rem; font-weight: 500; color: #2C302E; margin: 0 0 20px; }
.chart-card h3 small { font-size: 0.75rem; color: #7A807D; font-weight: 300; margin-left: 6px; }
.chart-wrap { position: relative; height: 300px; width: 100%; }
.chart-wrap.sm { height: 230px; }
.chart-wrap.lg { height: 380px; }
.target-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 16px; margin-bottom: 24px; }
.target-card { background: #fff; border-radius: 14px; padding: 20px 22px; box-shadow: 0 2px 14px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.04); }
.target-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.target-name { font-size: 0.9rem; font-weight: 500; color: #2C302E; }
.target-pct { font-size: 1.15rem; font-weight: 600; }
.t-bar-bg { height: 7px; background: #f0f0f0; border-radius: 4px; overflow: hidden; margin-bottom: 7px; }
.t-bar-fill { height: 100%; border-radius: 4px; transition: width .8s ease; }
.t-bar-fill.green { background: linear-gradient(90deg,#3A5A40,#6B8F71); }
.t-bar-fill.gold  { background: linear-gradient(90deg,#C5A880,#D4A853); }
.t-bar-fill.over  { background: linear-gradient(90deg,#2e7d32,#43a047); }
.target-desc { font-size: 0.74rem; color: #7A807D; }
.no-data-banner { text-align: center; padding: 40px 20px; background: #fff8e1; border: 1px solid #ffe082; border-radius: 14px; color: #795548; font-size: 0.95rem; margin-bottom: 24px; }
.no-data-banner a { color: #3A5A40; font-weight: 500; }
.chart-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2px; color: #7A807D; margin: 0 0 2px; }

/* =============================================================
    DASHBOARD PUBLIC PAGE
   ============================================================= */
.fuel-loc-filter,.fuel-type-filter,.fuel-veh-filter,.paper-loc-filter,.plastic-loc-filter,.plastic-type-filter { 
   display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
    margin: .5rem 0 1rem;
}


/* ---- Water public tab (from dashboard.php) ---- */
.water-loc-filter { display:flex; flex-wrap:wrap; gap:.35rem; align-items:center; margin:.5rem 0 1rem; }
.water-loc-filter label { font-size:.8rem; color:#555; margin-right:.3rem; }
.wloc-btn {
    background:#f0f7f2; border:1px solid #c5ddc8; border-radius:14px;
    padding:.22rem .65rem; font-size:.78rem; cursor:pointer;
    font-family:'Anuphan',sans-serif; transition: all .15s;
}
.wloc-btn.active, .wloc-btn:hover { background:#1a7a4a; color:#fff; border-color:#1a7a4a; }
.water-data-section { margin-top:1.5rem; background:#fff; border:1px solid #d8ede2; border-radius:10px; overflow:hidden; }
.wds-header { display:flex; align-items:center; justify-content:space-between; padding:.6rem 1rem; border-bottom:1px solid #d8ede2; background:#f5fbf7; }
.wds-header h3 { margin:0; font-size:.9rem; color:#1a7a4a; }
.wy-tabs { display:flex; gap:.3rem; flex-wrap:wrap; }
.wy-tab { background:none; border:1px solid #c5ddc8; border-radius:14px; padding:.2rem .6rem; font-size:.75rem; cursor:pointer; font-family:'Anuphan',sans-serif; }
.wy-tab.active { background:#1a7a4a; color:#fff; border-color:#1a7a4a; }
.wds-body { overflow-x:auto; padding: 0; }
.wst { width:100%; border-collapse:collapse; font-size:.82rem; }
.wst th { background:#e7f3ed; padding:.3rem .45rem; font-weight:600; text-align:center; border:1px solid #d0e8d8; white-space:nowrap; }
.wst td { padding:.28rem .45rem; border:1px solid #e8f5ee; text-align:right; }
.wst .wst-loc { text-align:left; font-weight:500; white-space:nowrap; }
.wst .wst-val { color:#2c5c38; }
.wst .wst-zero { color:#ccc; }
.wst .wst-total { font-weight:700; background:#f0faf4; }
.wst tr.wst-grand td { background:#e7f3ed; font-weight:700; border-top:2px solid #b8dcc6; }
.wst tr.wst-grand td:first-child { text-align:left; }

/* =============================================================
   ADMIN INDEX PAGE
   ============================================================= */
.admin-header { background: linear-gradient(135deg,#2d4a33,#3A5A40); color: #fff; padding: 0 32px; height: 60px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 12px rgba(0,0,0,0.2); gap: 12px; }
.header-logo { font-size: 1.1rem; font-weight: 500; letter-spacing: 0.5px; }
.header-logo span { opacity: 0.7; font-weight: 300; font-size: 0.9rem; margin-left: 10px; }
.admin-header .header-logo { min-width: 0; flex: 1 1 auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.admin-header .header-logo span { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.header-right { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 0 1 auto; }
.header-right > * { min-width: 0; max-width: 100%; }
.user-badge { font-size: 0.82rem; background: rgba(255,255,255,0.15); padding: 5px 12px; border-radius: 20px; }
.btn-logout { font-family: 'Anuphan',sans-serif; font-size: 0.82rem; padding: 6px 14px; background: rgba(255,255,255,0.18); color: #fff; border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; cursor: pointer; text-decoration: none; transition: background .2s; }
.btn-logout:hover { background: rgba(255,255,255,0.28); }
.cat-tabs { background: #fff; border-bottom: 1px solid #e0e8e1; padding: 0 32px; display: flex; gap: 0; overflow-x: auto; position: sticky; top: 60px; z-index: 190; }
.cat-tab { font-family: 'Anuphan',sans-serif; font-size: 0.88rem; padding: 14px 18px; border: none; background: none; cursor: pointer; color: #7A807D; border-bottom: 2px solid transparent; white-space: nowrap; transition: all .2s; font-weight: 400; display: flex; align-items: center; gap: 6px; }
.cat-tab:hover { color: #3A5A40; }
.cat-tab.active { color: #3A5A40; border-bottom-color: #3A5A40; font-weight: 500; }
.cat-tab .badge { font-size: 0.68rem; background: #bebebe; color: #fff; border-radius: 10px; padding: 1px 7px; min-width: 18px; text-align: center; }
.controls-bar { background: #fff; border-bottom: 1px solid #e0e8e1; padding: 12px 32px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; position: sticky; top: 114px; z-index: 180; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.ctrl-group { display: flex; align-items: center; gap: 8px; }
.ctrl-group label { font-size: 0.82rem; color: #7A807D; white-space: nowrap; }
.ctrl-group select { font-family: 'Anuphan',sans-serif; font-size: 0.88rem; padding: 7px 12px; border: 1.5px solid #e0e0e0; border-radius: 8px; background: #fafafa; color: #2C302E; cursor: pointer; outline: none; transition: border-color .2s; }
.ctrl-group select:focus { border-color: #3A5A40; }
.unit-chip { font-size: 0.82rem; color: #0f0f0f;
    background: #f1f1f1; padding: 5px 12px; border-radius: 20px; font-weight: 500; }
.ctrl-spacer { flex: 1; }
.btn-save-all { font-family: 'Anuphan',sans-serif; font-size: 0.88rem; padding: 8px 20px; background: linear-gradient(135deg,#3A5A40,#5a7a60); color: #fff; border: none; border-radius: 10px; cursor: pointer; font-weight: 500; transition: opacity .2s, transform .15s; }
.btn-save-all:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-save-all:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-dashboard { font-family: 'Anuphan',sans-serif; font-size: 0.82rem; padding: 7px 16px; background: #fff; color: #353535; border: 1.5px solid #3A5A40; border-radius: 10px; cursor: pointer; text-decoration: none; transition: background .2s; }
.btn-dashboard:hover { background: #eef5ef; }
.admin-header .user-badge,
.admin-header .btn-dashboard,
.admin-header .btn-logout {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-header .user-badge .icon-mini,
.admin-header .btn-dashboard .icon-mini,
.admin-header .btn-logout .icon-mini { flex: 0 0 auto; }
.info-bar { padding: 10px 32px; font-size: 0.8rem; color: #7A807D; background: #f8fbf8; border-bottom: 1px solid #e8eee8; }
.info-bar strong { color: #353535; }
.table-wrap { padding: 24px 32px 80px; overflow-x: auto; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 20px rgba(0,0,0,0.07); min-width: 1200px; }
.data-table thead tr { background: linear-gradient(135deg,#3A5A40,#4a6e50); color: #fff; }
.data-table th { padding: 13px 8px; font-size: 0.78rem; font-weight: 500; text-align: center; white-space: nowrap; letter-spacing: 0.3px; }
.data-table th.col-building { text-align: left; padding-left: 20px; width: 200px; }
.data-table th.col-total { background: rgba(255,255,255,0.1); }
.data-table th.col-actions { width: 90px; }
.data-table tbody tr { border-bottom: 1px solid #f0f4f1; transition: background .15s; }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: #f8fbf8; }
.data-table td { padding: 8px 4px; text-align: center; vertical-align: middle; }
.data-table td.col-building { padding: 8px 10px 8px 20px; text-align: left; font-size: 0.88rem; font-weight: 500; color: #2C302E; white-space: nowrap; }
.data-table td.col-total { font-size: 0.82rem; color: #3A5A40; font-weight: 500; padding: 8px 10px; background: #f8fbf8; }
.data-table td.col-actions { padding: 6px 8px; }
.month-input { width: 90px; padding: 4px 4px; border: 1.5px solid #e0e0e0; border-radius: 5px; font-family: 'Anuphan',sans-serif; font-size: 0.72rem; text-align: left; color: #2C302E; background: #fafafa; outline: none; transition: border-color .2s, background .2s; }
.month-input:focus { border-color: #3A5A40; background: #fff; }
.month-input.dirty { border-color: #C5A880; background: #fffbf5; }
.month-input.saved { border-color: #3A5A40; background: #f0f8f1; }

.text-input-table {
    width: 100px;
    padding: 4px 4px;
    border: 1.5px solid #e0e0e0;
    border-radius: 5px;
    font-family: 'Anuphan', sans-serif;
    font-size: 0.72rem;
    text-align: left;
    color: #2C302E;
    background: #fafafa;
    outline: none;
    transition: border-color .2s, background .2s;
}

.btn-row-save, .btn-row-del, .btn-row-edit { font-family: 'Anuphan',sans-serif; font-size: 0.78rem; padding: 4px 8px; border: none; border-radius: 4px; cursor: pointer; transition: opacity .2s; }
.btn-row-save {     background: linear-gradient(135deg, #ffffff, #ffffff);
color: #222222;border: 1px solid gray; }
.btn-row-save:hover { opacity: 0.9; }
.btn-row-save:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-row-del { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; padding: 4px 8px; border-radius: 4px; }
.btn-row-del:hover { background: #fee2e2; }
/* Row edit button copied from admin-shared small-edit styling */
/* .btn-row-edit {
    width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center; gap: 1px;
    border-radius: 6px; border: 1px solid #a5d6a7; cursor: pointer;
    font-family: 'Anuphan', sans-serif; font-size: 0.78rem; line-height: 1; transition: background .15s, opacity .15s; padding: 0; text-decoration: none;
    background: #e8f5e9; color: #2d6a2d;
} */
.btn-row-edit { background: #ebf8ff; color: #2687dc; border: 1px solid #84d0e8; padding: 4px 8px; border-radius: 4px; }
.btn-row-edit:hover { background: #a5c3d6; color: #fff; }
.loading-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.25); z-index: 999; align-items: center; justify-content: center; }
.loading-overlay.show { display: flex; }
.loading-spinner { width: 44px; height: 44px; border: 4px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; bottom: 30px; right: 30px; background: #2C302E; color: #fff; padding: 13px 20px; border-radius: 12px; font-size: 0.9rem; box-shadow: 0 6px 24px rgba(0,0,0,0.25); opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s; z-index: 9999; pointer-events: none; max-width: 340px; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.ok  { background: #2e7d32; }
.toast.err { background: #c62828; }

/* =============================================================
   ADMIN LOGIN PAGE
   ============================================================= */
.login-wrap { width: 100%; max-width: 400px; padding: 20px; }
.login-card { background: rgba(255,255,255,0.97); border-radius: 20px; padding: 48px 40px 40px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); text-align: center; }
.login-logo { font-size: 3rem; margin-bottom: 10px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }
.login-card h1 { font-size: 1.5rem; font-weight: 500; color: #2C302E; margin-bottom: 4px; }
.login-card .sub { font-size: 0.82rem; color: #7A807D; margin-bottom: 28px; font-weight: 300; }
.alert { display: flex; align-items: flex-start; gap: 10px; background: #fef2f2; border: 1px solid #fca5a5; color: #dc2626; border-radius: 10px; padding: 10px 14px; font-size: 0.85rem; margin-bottom: 18px; text-align: left; }
.alert svg { flex-shrink: 0; }
.alert svg.h-5.w-5 { width: 20px; height: 20px; }
.alert svg.h-4.w-4 { width: 16px; height: 16px; }
.alert .flex-1 { flex: 1 1 0%; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.alert-error { background: #fef2f2; border-color: #fca5a5; color: #dc2626; }
.alert-dismiss { flex-shrink: 0; background: none; border: none; padding: 2px; margin: 0; line-height: 0; color: inherit; opacity: .6; cursor: pointer; }
.alert-dismiss:hover { opacity: 1; }
.field { text-align: left; margin-bottom: 16px; }
.field label { display: block; font-size: 0.8rem; color: #7A807D; margin-bottom: 6px; font-weight: 400; }
.field input { width: 100%; padding: 11px 14px; border: 1.5px solid #e0e0e0; border-radius: 10px; font-family: 'Anuphan',sans-serif; font-size: 0.95rem; color: #2C302E; background: #fafafa; transition: border-color .2s; outline: none; }
.field input:focus { border-color: #3A5A40; background: #fff; }
.btn-login { width: 100%; padding: 13px; background: linear-gradient(135deg,#3A5A40,#5a7a60); color: #fff; border: none; border-radius: 12px; font-family: 'Anuphan',sans-serif; font-size: 1rem; font-weight: 500; cursor: pointer; margin-top: 8px; letter-spacing: 0.5px; transition: opacity .2s, transform .15s; }
.btn-login:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-login:active { transform: translateY(0); }
.back-link { display: block; margin-top: 20px; font-size: 0.8rem; color: #7A807D; text-decoration: none; }
.back-link:hover { color: #3A5A40; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 760px) {
    .site-header { padding: 0 16px; }
    .header-brand .dept { display: none; }
    .breadcrumb { padding: 11px 16px; }
    .theme-banner { padding: 40px 16px 48px; }
    .mrv-flow { grid-template-columns: 1fr; }
    .mrv-sep { display: none; }
    .mrv-step { border-bottom: 1px solid var(--border); }
    .kpi-grid { grid-template-columns: 1fr; }
    .kpi-item:nth-child(odd) { border-right: none; }
    .kpi-item:nth-last-child(-n+2) { border-bottom: 1px solid #f0f4f1; }
    .kpi-item:last-child { border-bottom: none; }
    .pc-accent { width: 68px; }
    .pc-body { padding: 16px; }
    .lifecycle-flow { grid-template-columns: 1fr 1fr; }
    .lc-step::after { display: none; }
    .tips-grid { grid-template-columns: 1fr; }
    .tip-item:nth-child(odd) { border-right: none; }
    .tip-item:nth-last-child(-n+2) { border-bottom: 1px solid #f0f4f1; }
    .tip-item:last-child { border-bottom: none; }
    .tc-accent { width: 72px; }
    .project-header, .page-header { padding: 36px 16px 40px; }
    .activity-list::before { left: 22px; }
    .act-dot-col { width: 46px; }
    .act-detail { padding-left: 44px; }
    .r3-grid { grid-template-columns: 1fr; }
    .label-grid { grid-template-columns: 1fr 1fr; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .hero { min-height: 420px; }
    .tc-head { padding: 24px 20px; gap: 16px; }
    .tc-body { padding: 24px 20px; }
    .tc-stats { gap: 20px; }
    .info-strip { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .dash-filter-bar { padding: 12px 16px; top: 70px; }
    .tab-nav { padding: 0 12px; top: 116px; }
    .page-hero { padding: 40px 20px 60px; }
    .page-hero h1 { font-size: 1.8rem; }
    .chart-grid, .chart-grid.wide { grid-template-columns: 1fr; }

    .admin-header {
        height: auto;
        min-height: 60px;
        padding: 10px 16px;
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .admin-header .header-logo { flex: 1 1 220px; }
    .admin-header .header-right {
        flex: 1 1 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 8px;
    }
    .admin-header .user-badge,
    .admin-header .btn-dashboard,
    .admin-header .btn-logout {
        max-width: min(48vw, 260px);
        font-size: .78rem;
        padding: 5px 10px;
    }
}
@media (max-width: 768px) {
    .admin-header { padding: 10px 14px; }
    .admin-header .header-right { justify-content: flex-start; gap: 6px; }
    .admin-header .user-badge,
    .admin-header .btn-dashboard,
    .admin-header .btn-logout {
        max-width: 100%;
        font-size: .74rem;
        padding: 4px 8px;
    }
    .cat-tabs, .controls-bar, .table-wrap, .info-bar { padding-left: 16px; padding-right: 16px; }
    .header-logo span { display: none; }
}
/* =============================================================
   PLAN-DEPT5 — OOU Go Green Update (PR) — ฝ่ายที่ 5
   ============================================================= */

/* == ภาพรวม: 3 การ์ดหลัก == */
.pr5-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 2.5rem auto 3rem;
    padding: 0 1.5rem;
}
.pr5-big-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    border-radius: 24px;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow);
    padding: 2.5rem 1.75rem 2rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s, box-shadow 0.22s;
}
.pr5-big-card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}
.pr5-big-icon  { font-size: 3.5rem; margin-bottom: 1rem; }
.pr5-big-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-700);
    text-align: center;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}
.pr5-big-desc {
    font-size: 0.92rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.65;
    flex: 1;
}
.pr5-big-count {
    margin: 1.2rem 0 0.5rem;
    background: var(--green-50);
    color: var(--green-700);
    border-radius: 20px;
    padding: 0.35rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 700;
}
.pr5-big-arrow {
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: 0.3rem;
}

/* == แถวตัวกรอง == */
.pr5-filter-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.pr5-filter-select {
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: 'Anuphan', sans-serif;
    font-size: 0.9rem;
    background: var(--white);
    color: var(--text);
}
.pr5-filter-reset {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: #fde8d8;
    color: #8a3500;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}
.pr5-result-count {
    margin-left: auto;
    font-size: 0.88rem;
    color: var(--muted);
}

/* == ป้ายแสดงสถานะ (Badges) == */
.pr5-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.pr5-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.18rem 0.65rem;
    border-radius: 3px;
    font-size: 0.78rem;
    font-weight: 600;
    background: transparent;
    border: 1px solid #C5A880;
    color: #C5A880;
}
.badge-cert,
.badge-free,
.badge-paid,
.badge-online,
.badge-onsite,
.badge-hybrid,
.badge-type   { background: transparent; border-color: #C5A880; color: #C5A880; }

/* == ตารางหลักสูตร == */
.pr5-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
}
.pr5-course-card {
    background: var(--white);
    border-radius: 16px;
    border: 1.5px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pr5-course-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.11);
}
.pr5-course-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.pr5-course-img-ph {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--green-100), var(--green-50));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}
.pr5-course-body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pr5-course-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.5rem;
    flex: 1;
}
.pr5-course-desc {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 1rem;
}
.pr5-course-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: auto;
}
.btn-course-detail {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    color: var(--green-700);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    background: var(--green-50);
}
.btn-register {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1.1rem;
    background: var(--glam-gold);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-register:hover { background: #a88960; }
.btn-register-lg { padding: 0.75rem 2rem; font-size: 1rem; margin-top: 1rem; }

/* == ส่วนหัวหน้าละเอียดหลักสูตร == */
.pr5-detail-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, var(--green-900), var(--green-700));
    color: var(--white);
    padding: 3rem 2rem 2.5rem;
    text-align: center;
}
.pr5-detail-cover {
    width: 100%;
    max-height: 340px;
    overflow: hidden;
    margin-bottom: -3rem;
}
.pr5-detail-cover img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    display: block;
    opacity: 0.7;
}
.pr5-detail-hero-body {
    position: relative;
    z-index: 1;
    padding: 2rem;
}
.pr5-detail-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
    line-height: 1.3;
}
.pr5-detail-subtitle {
    font-size: 1rem;
    opacity: 0.85;
    margin: 0.5rem 0 0;
}

/* == ตารางมาตรการ == */
.pr5-measure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}
.pr5-measure-card {
    background: var(--white);
    border-radius: 16px;
    border: 1.5px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pr5-measure-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.11);
}
.pr5-measure-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}
.pr5-measure-img-ph {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, var(--green-100), var(--green-50));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}
.pr5-measure-body {
    padding: 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pr5-measure-icon-badge {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}
.pr5-measure-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.4rem;
}
.pr5-measure-desc {
    font-size: 0.87rem;
    color: var(--muted);
    line-height: 1.5;
    flex: 1;
}
.pr5-measure-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.8rem;
    font-size: 0.87rem;
    color: var(--glam-green);
    font-weight: 600;
}

/* == ส่วนหัวหน้ารายละเอียด == */
.pr5-detail-header {
    background: linear-gradient(135deg, var(--green-900), var(--green-700));
    color: var(--white);
    padding: 3rem 2rem 2.5rem;
    text-align: center;
}
.pr5-detail-icon-large { font-size: 4rem; margin-bottom: 0.75rem; }
.pr5-detail-sub {
    font-size: 0.9rem;
    opacity: 0.75;
    margin-top: 0.5rem;
}

/* == หัวข้อ section == */
.pr5-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--green-700);
    margin: 2rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pr5-section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--border);
    margin-left: 0.5rem;
}

/* == กล่องคำอธิบาย == */
.pr5-desc-block {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 1.4rem 1.6rem;
    line-height: 1.85;
    color: var(--text);
    font-size: 0.97rem;
}

/* == ตาราง Gallery == */
.pr5-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.pr5-gallery-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--green-50);
}
.pr5-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}
.pr5-gallery-item:hover img { transform: scale(1.06); }
.pr5-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.68));
    color: var(--white);
    padding: 0.6rem 0.8rem 0.5rem;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s;
}
.pr5-gallery-item:hover .pr5-gallery-caption { opacity: 1; }

/* == Lightbox (คลิกขยายภาพ) == */
.pr5-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.pr5-lightbox.active { display: flex; }
.pr5-lightbox-img {
    max-width: 92vw;
    max-height: 82vh;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
}
.pr5-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}
.pr5-lightbox-caption {
    margin-top: 0.75rem;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    text-align: center;
    max-width: 70vw;
}

/* == ภาพปกกิจกรรม == */
.pr5-activity-cover {
    position: relative;
    max-height: 380px;
    overflow: hidden;
}
.pr5-activity-cover img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    display: block;
}
.pr5-activity-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.6) 100%);
}
.pr5-activity-cover-text {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    color: var(--white);
}
.pr5-activity-cover-text h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* == แถวข้อมูล Meta กิจกรรม == */
.pr5-activity-meta-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}
.pr5-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--green-50);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.35rem 1rem;
    font-size: 0.88rem;
    color: var(--text);
}

/* == ตารางกิจกรรม == */
.pr5-activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
}
.pr5-activity-card {
    background: var(--white);
    border-radius: 16px;
    border: 1.5px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pr5-activity-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.11);
}
.pr5-activity-img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    display: block;
}
.pr5-activity-img-ph {
    width: 100%;
    height: 175px;
    background: linear-gradient(135deg, var(--gold-pale), #fff5e6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}
.pr5-activity-body {
    padding: 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pr5-activity-date {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}
.pr5-activity-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.4rem;
    flex: 1;
}
.pr5-activity-desc {
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.5;
}
.pr5-activity-dept {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.18rem 0.65rem;
    margin-top: 0.6rem;
    width: fit-content;
}
.pr5-activity-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.7rem;
    font-size: 0.87rem;
    color: var(--gold);
    font-weight: 600;
}

/* == สถานะว่าง (ไม่มีข้อมูล) == */
.pr5-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted);
}
.pr5-empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }

/* == ส่วน Admin == */
.pr5-admin-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.pr5-admin-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.pr5-admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.pr5-admin-table th {
    background: var(--green-700);
    color: var(--white);
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.88rem;
    white-space: nowrap;
}
.pr5-admin-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    vertical-align: middle;
}
.pr5-admin-table tr:last-child td { border-bottom: none; }
.pr5-admin-table tr:hover td { background: var(--green-50); }
.pr5-thumb {
    width: 60px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    display: block;
}
.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.4rem;
    background: var(--green-700);
    color: var(--white);
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: 'Anuphan', sans-serif;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-add:hover { background: var(--green-800); }
.btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.11rem 0.28rem;
    background: #dce9fe;
    color: #1a48a0;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 0.625rem;
    font-family: 'Anuphan', sans-serif;
    text-decoration: none;
    margin-bottom: 0.1rem;
}
.btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.11rem 0.28rem;
    background: #fde8d8;
    color: #8a3500;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 0.625rem;
    font-family: 'Anuphan', sans-serif;
}
.btn-cancel {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.1rem;
    background: var(--green-50);
    color: var(--muted);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: 'Anuphan', sans-serif;
}
.toggle-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: 'Anuphan', sans-serif;
}
.toggle-status.active   { background: #d1f0e0; color: #1a6e3e; }
.toggle-status.inactive { background: #f0f0f0; color: #888; }

/* == Modal ของ Admin == */
.pr5-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    align-items: center;
    justify-content: center;
}
.pr5-modal-overlay.active { display: flex; }
.pr5-modal {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    width: 92%;
    max-width: 660px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.pr5-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    color: var(--green-700);
}
.pr5-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    color: var(--muted);
    z-index: 1100;
    pointer-events: auto;
    line-height: 1;
    padding: 0;
    transition: background 0.12s ease, transform 0.08s ease;
}
.pr5-modal-close:hover { background: rgba(0,0,0,0.06); transform: translateY(-1px); }
.pr5-modal-close:focus { outline: 3px solid rgba(58,90,64,0.12); outline-offset: 2px; }
.pr5-form-group {
    margin-bottom: 0.8rem;
}
.pr5-form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
}
.pr5-form-group input[type=text],
.pr5-form-group input[type=url],
.pr5-form-group input[type=date],
.pr5-form-group input[type=number],
.pr5-form-group textarea,
.pr5-form-group select {
    width: 100%;
    padding: 0.55rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: 'Anuphan', sans-serif;
    font-size: 0.72rem;
    background: var(--white);
    box-sizing: border-box;
    color: var(--text);
}
.pr5-form-group textarea { min-height: 90px; resize: vertical; }
.pr5-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.2rem;
}
.pr5-form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}
.pr5-form-check input[type=checkbox] { width: 15px; height: 15px; cursor: pointer; }
.pr5-modal-footer {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Custom autocomplete (dept4_items.php) */
.ac-wrap {
    position: relative;
    min-width: 0;
}
.ac-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 220px;
    overflow-y: auto;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    z-index: 1200;
}
.ac-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
    background: transparent;
}
.ac-item + .ac-item { border-top: 1px solid #eef3f0; }
.ac-item:hover,
.ac-item.active {
    background: #f1f7f2;
}

/* == ตาราง Gallery ของ Admin == */
.pr5-gallery-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
}
.pr5-gallery-admin-item {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--white);
    position: relative;
}
.pr5-gallery-admin-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.pr5-btn-del-img {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(160,0,0,0.85);
    color: var(--white);
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* == Responsive == */
@media (max-width: 760px) {
    .pr5-overview-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .pr5-course-grid   { grid-template-columns: 1fr; }
    .pr5-measure-grid  { grid-template-columns: 1fr 1fr; }
    .pr5-activity-grid { grid-template-columns: 1fr; }
    .pr5-gallery-grid  { grid-template-columns: 1fr 1fr; }
    .pr5-form-row      { grid-template-columns: 1fr; }
    .pr5-detail-title  { font-size: 1.5rem; }
    .pr5-activity-cover-text h1 { font-size: 1.4rem; }
}
@media (max-width: 500px) {
    .pr5-measure-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   DataTable — ใช้ร่วมกันทุกหน้า admin
   ========================================================== */
.dt-top-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:.75rem}
.dt-page-size{display:flex;align-items:center;gap:.45rem;font-size:.85rem;color:var(--muted)}
.dt-page-size select{padding:.3rem .6rem;border:1.5px solid var(--border);border-radius:7px;font-family:inherit;font-size:.85rem;background:var(--white);cursor:pointer}
.dt-search{position:relative}
.dt-search::before{content:"🔍";position:absolute;left:.55rem;top:50%;transform:translateY(-50%);font-size:.75rem;pointer-events:none}
.dt-search input{padding:.42rem .9rem .42rem 2rem;border:1.5px solid var(--border);border-radius:8px;font-family:inherit;font-size:.88rem;outline:none;min-width:200px;background:var(--white)}
.dt-search input:focus{border-color:#22c55e}
.dt-bottom-bar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin-top:.75rem}
.dt-info{font-size:.82rem;color:var(--muted)}
.dt-pagination{display:flex;gap:.3rem;align-items:center}
.dt-page-btn{min-width:32px;height:32px;padding:0 6px;border:1.5px solid var(--border);background:var(--white);border-radius:7px;cursor:pointer;font-size:.82rem;font-family:inherit;line-height:1}
.dt-page-btn:hover:not(:disabled){background:#f0fdf4;border-color:#86efac}
.dt-page-btn.dt-active{background:#2d6a4f;color:#fff;border-color:#2d6a4f;font-weight:700}
.dt-page-btn:disabled{opacity:.35;cursor:default}
.dt-dots{color:var(--muted);padding:0 3px;line-height:32px;font-size:.9rem}
th[data-sort]{cursor:pointer;user-select:none;white-space:nowrap}
th[data-sort]::after{content:" ⇅";font-size:.68rem;color:#adb5bd;font-weight:400}
th[data-sort].dt-asc::after{content:" ↑";color:#2d6a4f}
th[data-sort].dt-desc::after{content:" ↓";color:#2d6a4f}
.dt-no-result td{text-align:center;padding:2rem;color:var(--muted);font-size:.9rem}

/* ==========================================================
   PR Admin Index (dept5_index.php) — Landing page ฝ่ายที่ 5
   ========================================================== */
.pr-index-wrap { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }
.pr-page-title { font-size: 1.5rem; font-weight: 700; color: #353535; margin: 0 0 0.25rem; }
.pr-page-sub { color: #6d6d6d; font-size: 0.9rem; margin: 0 0 2rem; }

/* Stat Cards */
.pr-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2.5rem; }
.pr-stat-card {
    background: var(--white); border: 1.5px solid var(--border); border-radius: 16px;
    padding: 1.5rem 1.75rem; text-decoration: none; color: inherit;
    display: flex; align-items: center; gap: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.04); transition: box-shadow .2s, transform .15s;
}
.pr-stat-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.10); }
.pr-stat-icon { font-size: 2.5rem; line-height: 1; }
.pr-stat-count { font-size: 2.2rem; font-weight: 700; line-height: 1; }
.pr-stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 0.2rem; }
.pr-stat-action { font-size: 0.78rem; color: var(--green-600, #2d6a4f); margin-top: 0.35rem; font-weight: 600; }

/* Section Panels */
.pr-panels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pr-panel { background: var(--white); border: 1.5px solid var(--border); border-radius: 14px; overflow: hidden; }
.pr-panel-head {
    padding: 0.85rem 1.25rem; display: flex; align-items: center;
    justify-content: space-between; border-bottom: 1px solid var(--border);
}
.pr-panel-head h3 { font-size: 1rem; font-weight: 600; margin: 0; color: var(--green-700, #2d6a4f); }
.pr-panel-head a { font-size: 0.78rem; color: var(--green-600, #2d6a4f); text-decoration: none; font-weight: 600; }
.pr-panel-head a:hover { text-decoration: underline; }
.pr-panel-list { list-style: none; margin: 0; padding: 0; }
.pr-panel-list li {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.65rem 1.25rem; border-bottom: 1px solid var(--border); font-size: 0.88rem;
}
.pr-panel-list li:last-child { border-bottom: none; }
.pr-panel-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.pr-panel-list li .status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-left: 0.5rem; }
.pr-panel-list li .status-dot.on  { background: #22c55e; }
.pr-panel-list li .status-dot.off { background: #d1d5db; }
.pr-panel-empty { padding: 2rem; text-align: center; color: var(--muted); font-size: 0.88rem; }

/* Quick Actions */
.pr-quick-actions { margin-bottom: 2rem; }
.pr-quick-actions h2 {
    font-size: 0.78rem; font-weight: 600; color: var(--muted); margin: 0 0 0.9rem;
    text-transform: uppercase; letter-spacing: .06em;
}
.pr-quick-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.pr-quick-btn {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.55rem 1.1rem; border-radius: 10px; font-family: 'Anuphan', sans-serif;
    font-size: 0.88rem; font-weight: 600; text-decoration: none; transition: background .15s;
}
.pr-quick-btn.btn-courses    { background: #ede9fe; color: #5b21b6; }
.pr-quick-btn.btn-courses:hover    { background: #ddd6fe; }
.pr-quick-btn.btn-measures   { background: #dcfce7; color: #166534; }
.pr-quick-btn.btn-measures:hover   { background: #bbf7d0; }
.pr-quick-btn.btn-activities { background: #fef9c3; color: #854d0e; }
.pr-quick-btn.btn-activities:hover { background: #fef08a; }
.pr-quick-btn.btn-view { background: var(--green-50, #f0fdf4); color: var(--green-700, #15803d); border: 1.5px solid var(--border); }
.pr-quick-btn.btn-view:hover { background: var(--green-100, #dcfce7); }

@media (max-width: 900px) {
    .pr-stat-grid, .pr-panels-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .pr-stat-grid { grid-template-columns: 1fr 1fr; }
}

/* Outline SVG icon defaults (feather) */
.icon, .ub-counter-icon i[data-feather], .ub-svc-icon i[data-feather] {
    width: 28px;
    height: 28px;
    display: inline-block;
    vertical-align: middle;
    color: var(--glam-green);
}
.icon-mini { width:10px; height:10px; }
/* ── Drop Zone ──────────────────────────────── */
.drop-zone {
  position:relative; border:2px dashed #a8d5b5; border-radius:10px;
  padding:1rem; text-align:center; cursor:pointer;
  background:#f8fcf9; transition:.2s; user-select:none;
}
.drop-zone:hover, .drop-zone--over {
  border-color:#3A5A40; background:#f0faf4;
}
.drop-zone__input { display:none; }
.drop-zone__prompt {
  display:flex; flex-direction:column; align-items:center; gap:.35rem;
  color:#6b8f71; font-size:.83rem; pointer-events:none;
}
.drop-zone__prompt svg { width:26px; height:26px; color:#3A5A40; }
.drop-zone__prompt u { color:#3A5A40; }
.drop-zone__thumb {
  margin-top:.5rem; font-size:.8rem; color:#2d4a33; font-weight:600; word-break:break-all;
}
.drop-zone__thumb img {
  max-height:72px; border-radius:7px; border:1px solid #d4ede0;
  display:block; margin:0 auto .2rem;
}