/* PWDT Redesign — 2026
   Note: This stylesheet intentionally overrides the legacy template for a fresh, modern look.
*/
:root{
  --brand: #48904E;        /* extracted from logo */
  --brand-2:#1f3d24;
  --ink:#0b1220;
  --text:#1a2433;
  --muted:#5b6677;
  --bg:#f6f8fb;
  --surface:#ffffff;
  --line: rgba(11,18,32,.10);
  --shadow: 0 18px 45px rgba(11,18,32,.10);
  --shadow-soft: 0 10px 25px rgba(11,18,32,.08);
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color:var(--text);
  background:
    radial-gradient(1100px 650px at 12% -10%, rgba(72,144,78,.22), transparent 55%),
    radial-gradient(900px 520px at 110% 10%, rgba(72,144,78,.16), transparent 58%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

img{max-width:100%; height:auto}
a{color:inherit}
.container{
  width:min(var(--container), calc(100% - 40px));
  margin-inline:auto;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  padding:.9rem 1.1rem;
  border-radius: 999px;
  border:1px solid transparent;
  text-decoration:none;
  font-weight: 650;
  letter-spacing:.2px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  cursor:pointer;
}
.btn-primary{
  background: linear-gradient(135deg, var(--brand) 0%, #63b26a 55%, #3b7c43 100%);
  color:white;
  box-shadow: 0 14px 35px rgba(72,144,78,.28);
}
.btn-primary:hover{transform: translateY(-2px); box-shadow: 0 18px 45px rgba(72,144,78,.34)}
.btn-ghost{
  background: rgba(255,255,255,.55);
  border-color: rgba(11,18,32,.14);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover{transform: translateY(-2px); box-shadow: var(--shadow-soft)}
.btn-dark{
  background: linear-gradient(135deg, #0b1220 0%, #12233a 100%);
  color:white;
  box-shadow: 0 16px 40px rgba(11,18,32,.24);
}
.pill{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.45rem .75rem;
  border-radius:999px;
  background: rgba(72,144,78,.10);
  color: var(--brand-2);
  border:1px solid rgba(72,144,78,.18);
  font-weight:650;
  font-size:.9rem;
}

.topbar{
  position:sticky;
  top:0;
  z-index:999;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(11,18,32,.08);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap:14px;
}
.brand{
  display:flex; align-items:center; gap:.75rem;
  min-width: 220px;
  text-decoration:none;
}
.brand img{width:44px; height:44px; border-radius: 12px; background:white; padding:6px; box-shadow: 0 10px 25px rgba(11,18,32,.10)}
.brand strong{display:block; font-size:.98rem; line-height:1.1}
.brand span{display:block; font-size:.78rem; color:var(--muted); line-height:1.1}

.nav-links{
  display:flex;
  align-items:center;
  gap: 18px;
}
.nav-links a{
  text-decoration:none;
  color: rgba(26,36,51,.92);
  font-weight:650;
  font-size:.95rem;
  padding:.5rem .35rem;
  border-radius: 12px;
  position:relative;
}
.nav-links a::after{
  content:"";
  position:absolute;
  left:.4rem; right:.4rem;
  bottom:.25rem;
  height:2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), transparent);
  opacity:0;
  transform: translateY(2px);
  transition: opacity .18s ease, transform .18s ease;
}
.nav-links a:hover::after{opacity:1; transform: translateY(0)}
.nav-cta{display:flex; align-items:center; gap:10px}

.burger{
  display:none;
  width:44px; height:44px;
  border-radius: 14px;
  border:1px solid rgba(11,18,32,.12);
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(12px);
}
.burger svg{width:22px; height:22px}
.mobile-panel{
  display:none;
  padding: 6px 0 16px;
}
.mobile-panel a{
  display:block;
  text-decoration:none;
  padding: 12px 12px;
  border-radius: 14px;
  font-weight: 650;
  color: rgba(26,36,51,.95);
}
.mobile-panel a:hover{background: rgba(72,144,78,.08)}

.hero{
  padding: 56px 0 26px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 26px;
  align-items:stretch;
}
.hero-card{
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.62));
  border: 1px solid rgba(11,18,32,.10);
  position:relative;
}
.hero-card .media{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.03);
}
.hero-card .overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 450px at 10% 0%, rgba(72,144,78,.55), transparent 55%),
    linear-gradient(90deg, rgba(11,18,32,.80) 0%, rgba(11,18,32,.35) 55%, rgba(11,18,32,.10) 100%);
}
.hero-content{
  position:relative;
  padding: 44px 38px;
  color: white;
}
.hero-content h1{
  margin: 14px 0 10px;
  font-size: clamp(2rem, 2.2vw + 1.2rem, 3.1rem);
  line-height:1.05;
  letter-spacing:-.6px;
}
.hero-content p{
  margin: 0 0 18px;
  max-width: 58ch;
  color: rgba(255,255,255,.92);
  font-size: 1.05rem;
  line-height:1.55;
}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap}
.hero-mini{
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(11,18,32,.10);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  display:flex;
  flex-direction:column;
  gap: 14px;
}
.kpi{
  border-radius: 18px;
  padding: 14px 14px;
  border:1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.75);
}
.kpi strong{display:block; font-size:1.15rem}
.kpi span{display:block; color: var(--muted); margin-top:4px; font-size:.92rem}
.kpi small{display:block; margin-top:8px; color: rgba(26,36,51,.86)}
.kpi .dot{width:10px;height:10px;border-radius:50%; background: var(--brand); display:inline-block; margin-right:8px}

.section{
  padding: 62px 0;
}
.section .section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.h-eyebrow{color: var(--brand-2); font-weight: 800; letter-spacing:.14em; font-size:.78rem; text-transform:uppercase}
.h-title{
  margin: 8px 0 0;
  font-size: clamp(1.55rem, 1.4vw + 1.1rem, 2.25rem);
  letter-spacing:-.4px;
  color: var(--ink);
}
.h-sub{margin: 10px 0 0; color: var(--muted); max-width: 70ch; line-height:1.6}

.grid-2{display:grid; grid-template-columns: 1fr 1fr; gap: 22px}
.card{
  border-radius: var(--radius);
  background: rgba(255,255,255,.78);
  border:1px solid rgba(11,18,32,.10);
  box-shadow: var(--shadow-soft);
  overflow:hidden;
}
.card-pad{padding: 22px}
.card h3{margin: 0 0 10px; color: var(--ink); letter-spacing:-.2px}
.card p{margin: 0; color: var(--muted); line-height:1.7}
.card:hover{transform: translateY(-2px)}
.card{transition: transform .18s ease, box-shadow .18s ease}

.split{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  align-items:stretch;
}
.photo{
  border-radius: var(--radius-lg);
  overflow:hidden;
  position:relative;
  min-height: 320px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11,18,32,.10);
}
.photo::after{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(800px 400px at 20% 0%, rgba(72,144,78,.35), transparent 60%),
              linear-gradient(180deg, transparent 0%, rgba(11,18,32,.25) 100%);
}
.photo img{width:100%; height:100%; object-fit:cover; display:block}

.feature-list{display:grid; gap: 10px; margin-top: 14px}
.feature{
  display:flex; gap: 10px; align-items:flex-start;
  padding: 12px 12px;
  border-radius: 16px;
  border:1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.70);
}
.feature i{color: var(--brand); font-size:1.05rem; margin-top:2px}
.feature div{color: var(--muted); line-height:1.55}

.chips{display:flex; flex-wrap:wrap; gap: 10px; margin-top: 14px}
.chip{
  padding: .5rem .7rem;
  border-radius: 999px;
  border:1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.72);
  color: rgba(26,36,51,.92);
  font-weight: 650;
  font-size: .92rem;
}

.programs{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.program{
  padding: 18px 16px;
  border-radius: 18px;
  border:1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-soft);
}
.program h4{margin:0 0 8px; color: var(--ink)}
.program ul{margin:0; padding-left: 18px; color: var(--muted); line-height:1.7}
.program .tag{margin-top:10px}

.projects{
  display:grid;
  grid-template-columns: repeat(2,1fr);
  gap: 16px;
}
.project{
  display:grid;
  grid-template-columns: 1fr;
  border-radius: var(--radius-lg);
  overflow:hidden;
  border:1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.80);
  box-shadow: var(--shadow);
}
.project .thumb{
  height: 220px;
  background-size: cover;
  background-position: center;
}
.project .body{padding: 18px 18px 20px}
.meta{display:flex; gap: 14px; flex-wrap:wrap; margin-top: 10px; color: var(--muted); font-weight: 650}
.meta span{display:flex; align-items:center; gap: 8px}
.meta i{color: var(--brand)}

.gallery-hero{
  padding: 40px 0 18px;
}
.gallery-grid{
  columns: 3;
  column-gap: 14px;
}
.gitem{
  break-inside: avoid;
  margin: 0 0 14px;
  border-radius: 18px;
  overflow:hidden;
  border:1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
  position:relative;
}
.gitem img{width:100%; display:block}
.gcap{
  position:absolute; left:12px; right:12px; bottom:12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(11,18,32,.55);
  color:white;
  backdrop-filter: blur(10px);
  font-weight: 650;
  opacity:0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}
.gitem:hover .gcap{opacity:1; transform: translateY(0)}
.gallery-actions{
  display:flex; gap: 12px; flex-wrap:wrap;
  justify-content:center;
  margin-top: 14px;
}
.hidden{display:none !important}

.lightbox{
  position:fixed; inset:0;
  background: rgba(11,18,32,.78);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 24px;
  z-index: 9999;
}
.lightbox.open{display:flex}
.lightbox figure{
  margin:0;
  width: min(1080px, 92vw);
  border-radius: 20px;
  overflow:hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
}
.lightbox img{width:100%; height:auto; display:block}
.lightbox .bar{
  display:flex; justify-content:space-between; align-items:center;
  padding: 10px 12px;
  color: rgba(255,255,255,.92);
  font-weight: 650;
}
.icon-btn{
  width:40px; height:40px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color:white;
  cursor:pointer;
}
.icon-btn:hover{background: rgba(255,255,255,.12)}

.form{
  display:grid;
  gap: 12px;
}
.input, textarea{
  width:100%;
  border-radius: 16px;
  border:1px solid rgba(11,18,32,.14);
  background: rgba(255,255,255,.80);
  padding: 12px 12px;
  font: inherit;
  outline:none;
  transition: box-shadow .18s ease, border-color .18s ease;
}
textarea{min-height: 140px; resize: vertical}
.input:focus, textarea:focus{
  border-color: rgba(72,144,78,.55);
  box-shadow: 0 0 0 4px rgba(72,144,78,.18);
}
.form-row{display:grid; grid-template-columns: 1fr 1fr; gap: 12px}

.footer{
  margin-top: 50px;
  background: radial-gradient(1200px 520px at 10% 0%, rgba(72,144,78,.30), transparent 55%),
              linear-gradient(180deg, #0b1220 0%, #070c14 100%);
  color: rgba(255,255,255,.90);
  padding: 44px 0 26px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 18px;
}
.footer a{text-decoration:none}
.footer a:hover{text-decoration:underline}
.footer small{color: rgba(255,255,255,.72)}
.footer .brand img{background: rgba(255,255,255,.92)}
.footer .muted{color: rgba(255,255,255,.72)}
.hr{
  height:1px; background: rgba(255,255,255,.12);
  margin: 18px 0;
}
.copy{
  display:flex; justify-content:space-between; align-items:center;
  gap: 12px; flex-wrap:wrap;
  font-size: .92rem;
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr; }
  .split{grid-template-columns: 1fr}
  .programs{grid-template-columns: 1fr}
  .projects{grid-template-columns: 1fr}
  .gallery-grid{columns: 2}
  .footer-grid{grid-template-columns: 1fr}
}
@media (max-width: 820px){
  .nav-links{display:none}
  .burger{display:inline-flex; align-items:center; justify-content:center}
  .mobile-panel{display:block}
  .form-row{grid-template-columns: 1fr}
}
@media (max-width: 520px){
  .hero-content{padding: 34px 18px}
  .gallery-grid{columns: 1}
}


/* ==========================================================
   Leadership (clean + consistent)
   ========================================================== */

.leadership-section{
  padding: 70px 0;
}

.leadership-row{
  display:flex !important;
  flex-wrap:wrap;
  gap:24px;
  justify-content:center;
}

/* Cards (default desktop: 4 per row) */
.leadership-row .leader-card{
  flex: 0 0 calc(25% - 24px);
  max-width: calc(25% - 24px);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(11,18,32,.10);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 18px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}

.leadership-row .leader-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.leadership-row .leader-card img{
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  background: linear-gradient(135deg, rgba(72,144,78,.18), rgba(11,18,32,.06));
  box-shadow: 0 18px 40px rgba(11,18,32,.14);
  border: 1px solid rgba(11,18,32,.10);
  margin-bottom: 14px;
}

/* Text */
.leadership-row .leader-card h4{
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: 1.05rem;
}
.leadership-row .leader-card p{
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

/* Tablet: 3 per row */
@media (max-width: 992px){
  .leadership-row .leader-card{
    flex: 0 0 calc(33.333% - 24px);
    max-width: calc(33.333% - 24px);
  }
}

/* Mobile: 2 per row */
@media (max-width: 600px){
  .leadership-row{
    gap: 16px;
  }
  .leadership-row .leader-card{
    flex: 0 0 calc(50% - 16px);
    max-width: calc(50% - 16px);
  }
}

/* ==========================================================
   Chairman (CENTERED, same size as others)
   Requires: <div class="leader-break"></div> after Chairman in HTML
   ========================================================== */

.leadership-row .leader-card:first-of-type{
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Divider line / row break (place right after chairman card) */
.leadership-row .leader-break{
  flex: 0 0 100%;
  height: 2px;
  margin: 18px 0 26px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  border-radius: 2px;
}


/* ==========================================================
   Mobile polish patch (iPhone/phones)
   - fixes cramped header/brand text
   - prevents button overflow
   - improves hero text sizing/spacing
   ========================================================== */

/* Extra overflow safety (some iPhones still scroll if a child is wider) */
body{overflow-x:hidden}

@media (max-width: 600px){
  /* Header: let items wrap instead of squeezing */
  .nav{flex-wrap:wrap; padding: 10px 0;}

  /* Brand block: remove large minimum width on small screens */
  .brand{min-width: 0; flex: 1 1 auto;}
  .brand strong{font-size: .92rem; line-height: 1.15;}
  .brand span{font-size: .74rem;}

  /* CTA buttons: allow wrapping and make buttons slightly smaller */
  .nav-cta{flex: 1 1 100%; justify-content:flex-end; flex-wrap:wrap; gap:8px;}
  .btn{padding: .75rem .95rem; font-size: .95rem;}

  /* Hero: reduce text size a bit more on phones */
  .hero{padding: 34px 0 18px;}
  .hero-content{padding: 28px 16px;}
  .hero-content h1{
    font-size: clamp(1.55rem, 5.2vw + 0.8rem, 2.25rem);
    line-height: 1.08;
  }
  .hero-content p{font-size: 1rem; line-height: 1.55; max-width: 42ch;}

  /* Hero buttons: full width looks cleaner on iPhone */
  .hero-actions{gap:10px;}
  .hero-actions .btn{width:100%;}
}

@media (max-width: 420px){
  /* Even tighter phones */
  .container{width: min(var(--container), calc(100% - 28px));}
  .btn{padding: .70rem .90rem; font-size: .92rem;}
}
