/* plan-dept1: styles extracted from index.php, project.php, tracking.php */

/* From plan-dept1/index.php */
/* ── Hero ─────────────────────────────────── */
.dept1-hero {
  background: linear-gradient(135deg, #071a0c 0%, #0f2e14 55%, #1a4020 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.dept1-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(197,168,128,.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.06) 0%, transparent 50%);
}
.dept1-hero .inner { position: relative; max-width: 720px; margin: 0 auto; }
.dept1-hero .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px; padding: .35rem 1rem;
  font-size: .88rem; letter-spacing: .05em; margin-bottom: 1rem;
}
.dept1-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; line-height: 1.25;
  margin: 0 0 1rem;
}
.dept1-hero h1 strong { color: #C5A880; }
.dept1-hero p {
  font-size: 1.05rem; opacity: .85; line-height: 1.65; margin: 0;
}
.pill-row { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.pill {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px; padding: .4rem 1rem;
  font-size: .85rem; display: flex; align-items: center; gap: .4rem;
}
/* ── Main wrap ────────────────────────────── */
.main-content { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; }
.section-heading {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: #3A5A40;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: .6rem;
}
.section-heading::after {
  content: ''; flex: 1; height: 1px; background: #d4ede0;
}
/* ── Tracking cards ───────────────────────── */
.tracking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.tracking-card {
  background: #fff;
  border: 1px solid #e0ebe2;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.tracking-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(58,90,64,.14);
  border-color: #6B8F71;
}
.card-top {
  background: linear-gradient(135deg, #2d4a33, #4a7a54);
  padding: 1.4rem 1.5rem 1.2rem;
  position: relative; overflow: hidden;
}
.card-top::after {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 100px; height: 100px;
  background: rgba(255,255,255,.06); border-radius: 50%;
}
.card-top .icon {
  display: block; margin-bottom: .5rem;
  width: 36px; height: 36px; color: #fff;
}
.card-top .order {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,.15); color: #fff;
  font-size: .75rem; border-radius: 20px; padding: .2rem .6rem;
  font-weight: 600;
}
.card-body { padding: 1.25rem 1.5rem; flex: 1; }
.card-body .c-title {
  font-size: 1rem; font-weight: 700; color: #1e2e20;
  line-height: 1.4; margin-bottom: .6rem;
}
.card-body .c-desc {
  font-size: .88rem; color: #5a7a5e; line-height: 1.6;
}
.card-footer {
  padding: .9rem 1.5rem;
  border-top: 1px solid #eef3f0;
  display: flex; align-items: center; justify-content: space-between;
}
.proj-count {
  background: #d4ede0; color: #1a3a20;
  border-radius: 12px; padding: .2rem .7rem;
  font-size: .82rem; font-weight: 600;
}
.card-link-text {
  color: #3A5A40; font-size: .88rem; font-weight: 600;
  display: flex; align-items: center; gap: .3rem;
}
/* ── Empty state ──────────────────────────── */
.empty-state {
  text-align: center; padding: 4rem 1rem; color: #6b8f71;
}
.empty-state .e-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .5rem; }
.empty-state p  { font-size: .92rem; }

/* From plan-dept1/project.php */
/* ── Breadcrumb ───────────────────────────── */
.breadcrumb-bar {
  background: #fff; border-bottom: 1px solid #e0ebe2;
  padding: .6rem 2rem; font-size: .85rem;
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
}
.breadcrumb-bar a { color: #3A5A40; text-decoration: none; }
.breadcrumb-bar a:hover { text-decoration: underline; }
.breadcrumb-bar .sep { color: #9ca3af; }
.breadcrumb-bar .cur { color: #1e2e20; font-weight: 600; }
/* ── Project header ───────────────────────── */
.project-hero {
  background: linear-gradient(135deg, #071a0c 0%, #0f2e14 55%, #1a4020 100%);
  padding: 2.5rem 2rem 2rem;
  color: #fff;
  position: relative; overflow: hidden;
}
.project-hero::before {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px;
  background: rgba(197,168,128,.08); border-radius: 50%;
}
.project-hero .inner { position: relative; max-width: 860px; margin: 0 auto; }
.project-hero .tracking-ref {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px; padding: .3rem .9rem;
  font-size: .82rem; text-decoration: none; color: #fff;
  margin-bottom: .9rem; transition: .2s;
}
.project-hero .tracking-ref:hover { background: rgba(255,255,255,.2); }
.project-hero h1 {
  font-size: clamp(1.1rem, 2.5vw, 1.65rem);
  font-weight: 700; line-height: 1.35;
  margin: 0 0 1rem;
}
.status-bar {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
}
.status-pill {
  border-radius: 14px; padding: .3rem .9rem;
  font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: .3rem;
}
.info-chip {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px; padding: .3rem .85rem;
  font-size: .85rem; display: flex; align-items: center; gap: .3rem;
}
/* ── Main wrap ────────────────────────────── */
.main-content { max-width: 860px; margin: 0 auto; padding: 2.5rem 1.5rem; }
/* ── Detail cards ─────────────────────────── */
.detail-section {
  background: #fff; border-radius: 14px;
  border: 1px solid #e0ebe2;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(58,90,64,.07);
  margin-bottom: 1.5rem;
}
.detail-section-header {
  background: #f0faf4; padding: .85rem 1.5rem;
  border-bottom: 1px solid #e0ebe2;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #3A5A40;
  display: flex; align-items: center; gap: .5rem;
}
.detail-section-body { padding: 1.5rem; }
.detail-text { font-size: .97rem; color: #374151; line-height: 1.75; white-space: pre-wrap; }
/* ── Info grid ────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.info-item {
  background: #f9fdf9; border: 1px solid #e0ebe2;
  border-radius: 10px; padding: 1rem;
}
.info-item .i-label { font-size: .78rem; font-weight: 700; color: #6b8f71; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }
.info-item .i-value { font-size: .97rem; font-weight: 600; color: #1e2e20; }
/* From plan-dept1/tracking.php */
/* ── Breadcrumb ───────────────────────────── */
/* (breadcrumb already defined above) */
/* ── Tracking banner ──────────────────────── */
.tracking-banner {
  background: linear-gradient(135deg, #071a0c 0%, #0f2e14 50%, #1a4020 100%);
  padding: 2.5rem 2rem 2rem;
  color: #fff;
  position: relative; overflow: hidden;
}
.tracking-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(197,168,128,.12) 0%, transparent 60%);
}
.tracking-banner .inner { position: relative; max-width: 900px; margin: 0 auto; }
.tracking-banner .t-icon  { font-size: 2.8rem; display: block; margin-bottom: .75rem; }
.tracking-banner .t-tag   {
  display: inline-block; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25); border-radius: 20px;
  padding: .25rem .85rem; font-size: .82rem; margin-bottom: .75rem;
}
.tracking-banner h1 {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 700; line-height: 1.3; margin: 0 0 .8rem;
}
.tracking-banner p  { font-size: .95rem; opacity: .85; line-height: 1.6; margin: 0; max-width: 700px; }
/* ── Main wrap ────────────────────────────── */
.main-content { max-width: 1000px; margin: 0 auto; padding: 2.5rem 1.5rem; }
/* ── Projects table ───────────────────────── */
.proj-table-wrap {
  background: #fff; border-radius: 14px;
  border: 1px solid #e0ebe2;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(58,90,64,.07);
}
.proj-table {
  width: 100%; border-collapse: collapse;
}
.proj-table th {
  background: #f0faf4; font-weight: 600; color: #2d4a33;
  font-size: .85rem; padding: .85rem 1.2rem;
  text-align: left; border-bottom: 2px solid #d4ede0;
}
.proj-table td {
  padding: 1rem 1.2rem; border-bottom: 1px solid #eef3f0;
  vertical-align: middle;
}
.proj-table tr:last-child td { border-bottom: none; }
.proj-table tr:hover td { background: #f9fdf9; }
.proj-num { color: #9ca3af; font-size: .85rem; font-weight: 600; }
.proj-title {
  font-size: .97rem; font-weight: 700; color: #1e2e20;
  text-decoration: none; line-height: 1.4;
  transition: color .2s;
}
.proj-title:hover { color: #3A5A40; }
.proj-desc { font-size: .85rem; color: #6b8f71; margin-top: .3rem; line-height: 1.5; }
.status-pill {
  border-radius: 12px; padding: .2rem .75rem;
  font-size: .82rem; font-weight: 600; white-space: nowrap;
}
.timeline-text { font-size: .88rem; color: #4b5563; }
.detail-link {
  display: inline-flex; align-items: center; gap: .3rem;
  background: #f0faf4; color: #2d4a33;
  border: 1px solid #a8d5b5; border-radius: 8px;
  padding: .35rem .85rem; font-size: .85rem;
  text-decoration: none; font-weight: 600;
  transition: .2s;
}
.detail-link:hover { background: #d4ede0; border-color: #6B8F71; }
/* ── Empty ────────────────────────────────── */
.empty-state {
  text-align: center; padding: 3rem 1rem; color: #6b8f71;
  font-size: .92rem;
}
/* ── Nav row ──────────────────────────────── */
/* .back-row { margin-top: 1.5rem; }
.btn-back {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #f0faf4; color: #2d4a33;
  border: 1px solid #a8d5b5; border-radius: 8px;
  padding: .5rem 1.2rem; font-size: .9rem;
  text-decoration: none; font-weight: 600;
  transition: .2s;
}
.btn-back:hover { background: #d4ede0; } */


.pr5-hero {
    position: relative;
    overflow: hidden;
    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-building07.jpg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 80px 24px 64px;
    text-align: center;
    color: #fff;
}

.d1-stack {
            display: grid;
            gap: 1rem;
        }
        .d1-block {
            border-radius: 14px;
            background: #fff;
            border: 1px solid rgba(0, 0, 0, .06);
            box-shadow: 0 8px 24px rgba(11, 42, 22, .08);
            overflow: hidden;
        }
        .d1-block-head {
            padding: .9rem 1rem;
            border-bottom: 1px solid rgba(0, 0, 0, .06);
            background: linear-gradient(135deg, #f7faf7 0%, #eef6ef 100%);
        }
        .d1-block-title {
            margin: 0;
            color: #000000;
            font-size: 1rem;
            line-height: 1.45;
        }
        .d1-block-body {
            padding: .95rem 1rem;
            display: grid;
            gap: .8rem;
        }
        .d1-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: .7rem;
        }
        .d1-box {
            background: #f8faf8;
            border: 1px solid #e2eae5;
            border-radius: 10px;
            padding: .6rem .7rem;
        }
        .d1-k {
            font-size: .74rem;
            font-weight: 700;
            color: #6a7f70;
            margin-bottom: .2rem;
        }
        .d1-v {
            font-size: .89rem;
            line-height: 1.5;
            color: #203327;
            white-space: pre-line;
        }
        .d1-divider {
            border-top: 1px dashed #d6e2da;
            padding-top: .8rem;
        }
        .d1-empty {
            border: 1px dashed #d6e1d9;
            border-radius: 12px;
            background: #f8faf8;
            color: #6f8173;
            padding: .9rem;
        }
        .d1-back {
            display: inline-flex;
            align-items: center;
            gap: .4rem;
            text-decoration: none;
            color: var(--glam-green);
            font-weight: 700;
        }

        .d1-card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
            gap: 1rem;
        }
        .d1-strategy-card {
            display: block;
            text-decoration: none;
            color: inherit;
            border-radius: 16px;
            border: 1px solid rgba(0, 0, 0, .06);
            background: #fff;
            box-shadow: 0 10px 26px rgba(11, 42, 22, .08);
            overflow: hidden;
            transition: transform .16s ease, box-shadow .16s ease;
        }
        .d1-strategy-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 16px 36px rgba(11, 42, 22, .12);
        }
        .d1-card-head {
            padding: 1rem 1rem .85rem;
            background: linear-gradient(135deg, #f7faf7 0%, #edf6ef 100%);
            border-bottom: 1px solid rgba(0, 0, 0, .05);
        }
        .d1-card-no {
            display: inline-flex;
            align-items: center;
            gap: .35rem;
            padding: .2rem .55rem;
            border-radius: 999px;
            background: #000000;
            color: white;
            font-size: .78rem;
            font-weight: 700;
        }
        .d1-card-title {
            margin: .65rem 0 .35rem;
            font-size: 1.05rem;
            line-height: 1.4;
            color: #000000;
        }
        .d1-card-theme {
            color: #5f7365;
            font-size: .9rem;
            line-height: 1.4;
        }
        .d1-card-body {
            padding: .9rem 1rem 1rem;
            display: grid;
            gap: .8rem;
        }
        .d1-card-desc {
            margin: 0;
            color: #384a3d;
            font-size: .9rem;
            line-height: 1.55;
            min-height: 68px;
        }
        .d1-meta-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: .6rem;
        }
        .d1-meta-box {
            background: #f8faf8;
            border: 1px solid #e2eae5;
            border-radius: 10px;
            padding: .55rem .65rem;
        }
        .d1-meta-k {
            font-size: .72rem;
            font-weight: 700;
            color: #6a7f70;
            margin-bottom: .2rem;
        }
        .d1-meta-v {
            font-size: .86rem;
            color: #203327;
            line-height: 1.45;
        }
        .d1-card-stats {
            display: flex;
            gap: .45rem;
            flex-wrap: wrap;
        }
        .d1-pill {
            display: inline-flex;
            align-items: center;
            border-radius: 999px;
            background: #eff5f1;
            color: #2a4834;
            font-size: .78rem;
            font-weight: 600;
            padding: .2rem .6rem;
        }
        .d1-card-action {
            margin-top: .1rem;
            font-size: .86rem;
            color: darkgray;
            font-weight: 700;
        }
        .d1-empty {
            border: 1px dashed #d6e1d9;
            border-radius: 12px;
            background: #f8faf8;
            color: #6f8173;
            padding: 1rem;
            text-align: center;
        }


    .pr5-detail-hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* background: linear-gradient(135deg, var(--green-900), var(--green-700)); */
        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-building07.jpg);
        background-size: cover;
        background-position: center;
        color: var(--white);
        padding: 3rem 2rem 2.5rem;
        text-align: center;
    }