﻿/* ============================================================
   USEPHA Portal — Design público profissional
   ============================================================ */
:root {
  --p-brand: #4b2c20;
  --p-brand-mid: #5c3a2a;
  --p-brand-deep: #2f1a14;
  --p-gold: #c4a35a;
  --p-gold-soft: #e8d5a3;
  --p-bg: #f6f1ec;
  --p-bg-alt: #efe8e1;
  --p-surface: #ffffff;
  --p-text: #2a1f1a;
  --p-muted: #6b5a52;
  --p-line: #e2d8cf;
  --p-font: 'DM Sans', system-ui, sans-serif;
  --p-display: 'Fraunces', Georgia, serif;
  --p-ease: cubic-bezier(.22, 1, .36, 1);
  --p-shadow: 0 18px 40px rgba(47, 26, 20, .08);
  --p-radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

::selection {
  background: rgba(196, 163, 90, .35);
  color: var(--p-brand-deep);
}

body.portal-body {
  margin: 0;
  font-family: var(--p-font);
  color: var(--p-text);
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(196, 163, 90, .07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 40%, rgba(75, 44, 32, .04), transparent 50%),
    var(--p-bg);
  font-size: 1.05rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--p-brand-mid); text-decoration: none; }
a:hover { color: var(--p-brand); }

img { max-width: 100%; height: auto; }

.p-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--p-gold);
  color: var(--p-brand-deep);
  padding: .65rem 1rem;
  font-weight: 600;
  z-index: 9999;
}
.p-skip:focus { left: 1rem; top: 1rem; }

/* —— Nav —— */
.p-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.15rem 0;
  transition: background .35s var(--p-ease), padding .35s, box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.p-nav.scrolled {
  background: rgba(47, 26, 20, .97);
  padding: .7rem 0;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
  border-bottom-color: rgba(196, 163, 90, .15);
}
.p-nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.p-logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: #fff !important;
  flex-shrink: 0;
}
.p-logo img {
  height: 50px;
  width: 50px;
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 4px;
}

/* Ícones leves (substitui Bootstrap Icons CDN) */
.p-icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.15em;
  background: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
.p-icon-menu {
  width: 1.5rem;
  height: 1.5rem;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M2 3h12v1.5H2zm0 4.25h12v1.5H2zm0 4.25h12V13H2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M2 3h12v1.5H2zm0 4.25h12v1.5H2zm0 4.25h12V13H2z'/%3E%3C/svg%3E");
}
.p-icon-arrow {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M1 8h11.3L8.2 3.9 9.3 2.8 15 8.5l-5.7 5.7-1.1-1.1L12.3 9H1z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M1 8h11.3L8.2 3.9 9.3 2.8 15 8.5l-5.7 5.7-1.1-1.1L12.3 9H1z'/%3E%3C/svg%3E");
}
.p-icon-pin {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 0a5 5 0 0 0-5 5c0 3.5 5 11 5 11s5-7.5 5-11a5 5 0 0 0-5-5zm0 7.5A2.5 2.5 0 1 1 8 2.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 0a5 5 0 0 0-5 5c0 3.5 5 11 5 11s5-7.5 5-11a5 5 0 0 0-5-5zm0 7.5A2.5 2.5 0 1 1 8 2.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}
.p-icon-phone {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M3.7 1.3 5.6.7l2 4.8-1.6.7a10 10 0 0 0 4.8 4.8l.7-1.6 4.8 2-.6 1.9a1.5 1.5 0 0 1-1.6 1C7 14 2 9 1.7 2.9a1.5 1.5 0 0 1 2-1.6z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M3.7 1.3 5.6.7l2 4.8-1.6.7a10 10 0 0 0 4.8 4.8l.7-1.6 4.8 2-.6 1.9a1.5 1.5 0 0 1-1.6 1C7 14 2 9 1.7 2.9a1.5 1.5 0 0 1 2-1.6z'/%3E%3C/svg%3E");
}
.p-icon-mail {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M0 3.5A1.5 1.5 0 0 1 1.5 2h13A1.5 1.5 0 0 1 16 3.5v9a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 0 12.5zm1.5-.5 6.5 4.5L14.5 3zm0 2.2V13h13V5.2L8 9.7z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M0 3.5A1.5 1.5 0 0 1 1.5 2h13A1.5 1.5 0 0 1 16 3.5v9a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 0 12.5zm1.5-.5 6.5 4.5L14.5 3zm0 2.2V13h13V5.2L8 9.7z'/%3E%3C/svg%3E");
}

.p-news-link .p-icon { margin-left: .25rem; }
.loc .p-icon { margin-right: .3rem; }
.p-nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.p-nav-links a {
  color: rgba(255, 255, 255, .78);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .01em;
  transition: color .2s;
  white-space: nowrap;
}
.p-nav-links a:hover { color: #fff; }
.p-nav-links a.is-active { color: #fff; }
.p-nav-links a.is-active::after {
  content: '';
  display: block;
  height: 2px;
  margin-top: 4px;
  background: var(--p-gold);
  border-radius: 1px;
}
.p-nav-links .p-btn-nav {
  background: var(--p-gold);
  color: var(--p-brand-deep) !important;
  padding: .5rem 1.1rem;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: .02em;
}
.p-nav-links .p-btn-nav:hover { background: var(--p-gold-soft); }
.p-nav-links .p-btn-nav::after { display: none !important; }
.p-nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 4px;
  color: #fff;
  font-size: 1.45rem;
  padding: .3rem .55rem;
  line-height: 1;
  cursor: pointer;
}

.p-nav-end {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-shrink: 0;
  margin-left: .35rem;
}

.p-lang {
  position: relative;
  z-index: 1200;
}
.p-lang summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .4rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: .38rem .7rem .38rem .55rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  user-select: none;
  background: rgba(255, 255, 255, .1);
  transition: background .2s, border-color .2s, color .2s;
}
.p-lang summary::-webkit-details-marker,
.p-lang summary::marker { display: none; content: ''; }
.p-lang summary:hover,
.p-lang[open] summary {
  background: rgba(196, 163, 90, .22);
  border-color: var(--p-gold);
  color: var(--p-gold-soft);
}
.p-lang-globe {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  flex-shrink: 0;
}
.p-lang-caret {
  width: .65rem;
  height: .65rem;
  display: block;
  opacity: .8;
  transition: transform .2s;
}
.p-lang[open] .p-lang-caret { transform: rotate(180deg); }
.p-lang-code {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
}
.p-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 196px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .24);
  padding: .4rem;
  overflow: hidden;
}
.p-lang-menu a {
  display: flex !important;
  align-items: center;
  gap: .65rem;
  padding: .55rem .7rem;
  color: var(--p-text) !important;
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0;
  border-radius: 7px;
}
.p-lang-menu a::after { display: none !important; }
.p-lang-menu a:hover {
  background: var(--p-bg-alt);
  color: var(--p-brand) !important;
}
.p-lang-menu a.is-active {
  color: var(--p-brand) !important;
  font-weight: 700;
  background: rgba(196, 163, 90, .14);
}
.p-lang-item-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: .15rem .3rem;
  border-radius: 4px;
  background: var(--p-bg-alt);
  color: var(--p-brand);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.p-lang-menu a.is-active .p-lang-item-code {
  background: var(--p-gold);
  color: var(--p-brand-deep);
}

/* —— Hero —— */
.p-hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  color: #fff;
  overflow: hidden;
  background: var(--p-brand-deep);
}
.p-hero-photo {
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center 28%;
  transform: scale(1.03);
  will-change: transform;
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .p-hero-photo {
    animation: heroZoom 28s ease-in-out alternate infinite;
  }
}
.p-hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(47, 26, 20, .88) 0%, rgba(47, 26, 20, .55) 48%, rgba(47, 26, 20, .72) 100%),
    linear-gradient(to top, rgba(47, 26, 20, .9) 0%, transparent 42%);
}
@keyframes heroZoom {
  from { transform: scale(1.04); }
  to { transform: scale(1.1); }
}

.p-hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 7.5rem 1.5rem 5.5rem;
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}
.p-hero-brand {
  font-family: var(--p-display);
  font-size: clamp(3.2rem, 10vw, 5.4rem);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.03em;
  margin: 0 0 .9rem;
  text-shadow: 0 4px 32px rgba(0, 0, 0, .4);
}
.p-hero-tag {
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--p-gold-soft);
  margin: 0 0 1.15rem;
  font-weight: 600;
}
.p-hero-line {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  color: rgba(255, 255, 255, .88);
  max-width: 520px;
  margin: 0 auto 2.4rem;
  font-weight: 400;
  line-height: 1.55;
}
.p-hero-cta {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  justify-content: center;
}
.p-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .9rem 1.7rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: .94rem;
  letter-spacing: .01em;
  border: 1.5px solid transparent;
  transition: transform .25s var(--p-ease), background .2s, border-color .2s, color .2s, box-shadow .25s;
}
.p-btn:hover { transform: translateY(-2px); color: inherit; }
.p-btn-gold {
  background: var(--p-gold);
  color: var(--p-brand-deep) !important;
  box-shadow: 0 8px 24px rgba(196, 163, 90, .28);
}
.p-btn-gold:hover { background: var(--p-gold-soft); }
.p-btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .4);
  color: #fff !important;
}
.p-btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
}
.p-btn-solid {
  background: var(--p-brand);
  color: #fff !important;
}
.p-btn-solid:hover { background: var(--p-brand-deep); color: #fff !important; }

.p-hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .45);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  animation: bounceSoft 2.4s ease infinite;
  z-index: 1;
}
.p-hero-scroll::before {
  content: '';
  display: block;
  width: 1px;
  height: 28px;
  margin: 0 auto .65rem;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .5));
}
@keyframes bounceSoft {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}

.p-hero-brand { animation: riseIn 1s var(--p-ease) both; }
.p-hero-tag { animation: riseIn 1s var(--p-ease) .1s both; }
.p-hero-line { animation: riseIn 1s var(--p-ease) .18s both; }
.p-hero-cta { animation: riseIn 1s var(--p-ease) .28s both; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Impact —— */
.p-impact {
  background: var(--p-brand-deep);
  color: #fff;
  padding: 2.85rem 0;
  border-top: 1px solid rgba(196, 163, 90, .2);
}
.p-impact-grid {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.p-impact-item {
  text-align: center;
  position: relative;
}
.p-impact-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -.75rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, .1);
}
.p-impact-num {
  font-family: var(--p-display);
  font-size: clamp(2.1rem, 4vw, 2.85rem);
  font-weight: 700;
  color: var(--p-gold);
  line-height: 1;
  margin-bottom: .4rem;
}
.p-impact-label {
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .65;
  font-weight: 500;
}

/* —— Sections —— */
.p-section {
  padding: clamp(3.75rem, 8vw, 6rem) 0;
  position: relative;
}
.p-section-alt {
  background: var(--p-bg-alt);
}
.p-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.p-eyebrow {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--p-gold);
  margin: 0 0 .75rem;
}
.p-section-head {
  margin-bottom: 2.75rem;
  max-width: 540px;
}
.p-section-head h2 {
  font-family: var(--p-display);
  font-size: clamp(1.85rem, 3.5vw, 2.45rem);
  font-weight: 700;
  color: var(--p-brand);
  margin: 0 0 .65rem;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.p-section-head p {
  margin: 0;
  color: var(--p-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s var(--p-ease), transform .75s var(--p-ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* —— Mission —— */
.p-mission {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3.5rem;
  align-items: center;
}
.p-mission-visual {
  aspect-ratio: 4/3;
  border-radius: var(--p-radius);
  position: relative;
  overflow: hidden;
  background: var(--p-brand-deep);
  box-shadow: var(--p-shadow);
}
.p-mission-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.p-mission-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.75rem 1.5rem;
  color: #fff;
  font-family: var(--p-display);
  font-size: 1.15rem;
  line-height: 1.4;
  background: linear-gradient(transparent, rgba(47, 26, 20, .92));
  margin: 0;
  pointer-events: none;
}
.p-mission h2 {
  font-family: var(--p-display);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  color: var(--p-brand);
  margin: 0 0 1.1rem;
  line-height: 1.15;
}
.p-mission > div > p {
  color: var(--p-muted);
  margin: 0 0 1.15rem;
  font-size: 1.08rem;
}
.p-mission-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
}
.p-mission-list li {
  padding: .8rem 0;
  border-bottom: 1px solid var(--p-line);
  display: flex;
  gap: .85rem;
  align-items: center;
  font-weight: 500;
  font-size: .98rem;
}
.p-mission-list li:first-child { border-top: 1px solid var(--p-line); }
.p-mission-list li span {
  width: 7px;
  height: 7px;
  background: var(--p-gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* —— Gallery —— */
.p-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .65rem;
}
.p-gallery-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--p-brand-deep);
  cursor: pointer;
}
.p-gallery-item:focus-visible {
  outline: 2px solid var(--p-gold);
  outline-offset: 3px;
}
.p-gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.p-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s var(--p-ease);
}
.p-gallery-item:hover img { transform: scale(1.05); }
.p-gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .9rem 1rem;
  background: linear-gradient(transparent, rgba(47, 26, 20, .88));
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s, transform .35s;
  pointer-events: none;
}
.p-gallery-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox */
.p-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(20, 12, 8, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 4rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.p-lightbox.is-open { opacity: 1; visibility: visible; }
.p-lightbox[hidden] { display: none !important; }
.p-lightbox.is-open[hidden] { display: flex !important; }
.p-lightbox-figure {
  margin: 0;
  max-width: min(960px, 100%);
  max-height: 85vh;
  text-align: center;
}
.p-lightbox-figure img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .45);
}
.p-lightbox-figure figcaption {
  color: rgba(255, 255, 255, .85);
  margin-top: .9rem;
  font-size: .95rem;
  font-weight: 500;
}
.p-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: .75;
  padding: .25rem .5rem;
}
.p-lightbox-close:hover { opacity: 1; }
.p-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.p-lightbox-nav:hover { background: rgba(255, 255, 255, .18); }
.p-lightbox-prev { left: 1rem; }
.p-lightbox-next { right: 1rem; }

/* —— News —— */
.p-news-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.5rem;
}
.p-news-featured {
  background: var(--p-surface);
  border: 1px solid var(--p-line);
  overflow: hidden;
  min-height: 400px;
  transition: box-shadow .3s var(--p-ease), border-color .25s;
}
.p-news-featured:hover {
  border-color: rgba(75, 44, 32, .25);
  box-shadow: var(--p-shadow);
}
.p-news-featured a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.p-news-photo {
  height: 220px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  transition: transform .6s var(--p-ease);
}
.p-news-featured:hover .p-news-photo { transform: scale(1.03); }
.p-news-featured-body {
  padding: 1.6rem 1.75rem 1.85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.p-news-side { display: flex; flex-direction: column; gap: 1rem; }
.p-news-item {
  background: var(--p-surface);
  border: 1px solid var(--p-line);
  border-left: 3px solid var(--p-brand);
  overflow: hidden;
  flex: 1;
  transition: border-color .25s, transform .25s var(--p-ease);
}
.p-news-item:hover {
  border-left-color: var(--p-gold);
  transform: translateX(3px);
}
.p-news-item.has-thumb a {
  display: grid;
  grid-template-columns: 108px 1fr;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.p-news-item.has-thumb a > div:last-child { padding: 1.05rem 1.15rem; }
.p-news-thumb {
  background-size: cover;
  background-position: center;
  min-height: 100%;
}
.p-news-meta {
  font-size: .7rem;
  color: var(--p-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .5rem;
  font-weight: 600;
}
.p-news-title {
  font-family: var(--p-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--p-text);
  margin: 0 0 .5rem;
  line-height: 1.28;
}
.p-news-featured .p-news-title { font-size: 1.7rem; }
.p-news-side .p-news-title { font-size: 1.05rem; }
.p-news-excerpt {
  color: var(--p-muted);
  font-size: .95rem;
  margin: 0 0 1.15rem;
  flex: 1;
}
.p-news-link {
  font-weight: 600;
  font-size: .88rem;
  color: var(--p-brand-mid);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: auto;
}
.p-news-link i { transition: transform .25s var(--p-ease); }
.p-news-featured:hover .p-news-link i,
.p-news-item:hover .p-news-link i { transform: translateX(4px); }

/* —— Participate —— */
.p-participate-banner { max-width: 100%; }
.p-areas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: .7rem;
  margin-top: 1.85rem;
}
.p-area {
  background: transparent;
  border: 1px solid var(--p-line);
  border-bottom: 2px solid var(--p-gold);
  padding: 1.2rem 1rem;
  text-align: center;
  color: var(--p-text) !important;
  font-weight: 600;
  font-size: .86rem;
  letter-spacing: .01em;
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--p-ease);
}
.p-area:hover,
.p-area.is-active {
  background: var(--p-brand);
  border-color: var(--p-brand);
  color: #fff !important;
  transform: translateY(-2px);
}

/* —— Courses / Events / Projects —— */
.p-list {
  display: grid;
  border-top: 1px solid var(--p-line);
}
.p-list-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--p-line);
  transition: padding-left .3s var(--p-ease);
}
.p-list-row:hover { padding-left: .4rem; }
.p-list-row h3 {
  font-family: var(--p-display);
  font-size: 1.22rem;
  margin: 0 0 .35rem;
  font-weight: 600;
}
.p-list-meta {
  font-size: .86rem;
  color: var(--p-muted);
}
.p-list-status {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--p-brand);
  white-space: nowrap;
  padding: .4rem .75rem;
  border: 1px solid var(--p-line);
  background: var(--p-surface);
}

.p-events {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}
.p-event {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 1.2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--p-line);
  transition: opacity .25s;
}
.p-event:hover { opacity: .88; }
.p-event-date {
  text-align: center;
  background: var(--p-brand);
  color: #fff;
  padding: .85rem .5rem;
}
.p-event-date .day {
  font-family: var(--p-display);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}
.p-event-date .mon {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .8;
  margin-top: .25rem;
  display: block;
}
.p-event h3 {
  font-family: var(--p-display);
  font-size: 1.12rem;
  margin: 0 0 .4rem;
  line-height: 1.3;
}
.p-event p { margin: 0; font-size: .86rem; color: var(--p-muted); }

.p-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.p-project {
  padding: 1.5rem 0 0;
  border-top: 2px solid var(--p-gold);
}
.p-project h3 {
  font-family: var(--p-display);
  font-size: 1.28rem;
  margin: 0 0 .65rem;
  line-height: 1.25;
}
.p-project p {
  color: var(--p-muted);
  font-size: .95rem;
  margin: 0 0 .85rem;
  line-height: 1.55;
}
.p-project .loc {
  font-size: .82rem;
  font-weight: 600;
  color: var(--p-brand-mid);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

/* —— Partners —— */
.p-partners {
  padding: 2.5rem 0;
  border-top: 1px solid var(--p-line);
  border-bottom: 1px solid var(--p-line);
  background: var(--p-surface);
}
.p-partners-label {
  text-align: center;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--p-muted);
  margin: 0 0 1.25rem;
}
.p-partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem 1.75rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.p-partners-row span {
  font-size: .92rem;
  font-weight: 600;
  color: var(--p-brand-mid);
  opacity: .75;
  letter-spacing: .02em;
}

/* —— Donate —— */
.p-donate {
  position: relative;
  overflow: hidden;
  background: var(--p-brand-deep);
  color: #fff;
  padding: clamp(4.25rem, 10vw, 6.25rem) 1.5rem;
  text-align: center;
}
.p-donate-bg {
  position: absolute;
  inset: 0;
  background-image: var(--donate-img);
  background-size: cover;
  background-position: center;
}
.p-donate-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(47, 26, 20, .92) 0%, rgba(75, 44, 32, .84) 100%);
}
.p-donate-inner {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 0 auto;
}
.p-donate h2 {
  font-family: var(--p-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin: 0 0 .85rem;
  line-height: 1.15;
}
.p-donate p {
  opacity: .82;
  max-width: 440px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.55;
}
.p-donate-actions {
  display: flex;
  gap: .85rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* —— Contact —— */
.p-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.p-contact-card {
  background: var(--p-surface);
  border: 1px solid var(--p-line);
  border-radius: 14px;
  padding: 1.7rem 1.45rem 1.45rem;
  box-shadow: 0 10px 28px rgba(47, 26, 20, .05);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform .2s var(--p-ease), box-shadow .2s var(--p-ease);
}
.p-contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(47, 26, 20, .09);
}
.p-contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(196, 163, 90, .18);
  color: var(--p-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.05rem;
  flex-shrink: 0;
}
.p-contact-icon .p-icon {
  width: 1.3rem;
  height: 1.3rem;
  color: var(--p-gold);
}
.p-contact-card h3 {
  font-family: var(--p-display);
  font-size: 1.18rem;
  margin: 0 0 .55rem;
  color: var(--p-brand);
}
.p-contact-card p {
  margin: 0;
  color: var(--p-muted);
  font-size: .95rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.p-contact-phones {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.p-contact-phones a,
.p-contact-card a {
  color: var(--p-brand-mid);
  font-weight: 600;
}
.p-contact-phones a:hover,
.p-contact-card a:hover { color: var(--p-brand); }
.p-contact-action {
  margin-top: auto;
  padding-top: 1rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--p-gold) !important;
  text-transform: uppercase;
}
.p-contact-action + .p-contact-action {
  margin-top: .2rem;
  padding-top: 0;
}
.p-contact-action:hover { color: var(--p-brand) !important; }

/* —— Footer —— */
.p-footer {
  background: #160e0a;
  color: rgba(255, 255, 255, .62);
  padding: 3.75rem 0 1.5rem;
  font-size: .9rem;
}
.p-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr;
  gap: 2.5rem;
  margin-bottom: 2.75rem;
}
.p-footer-logo {
  height: 68px;
  width: auto;
  background: #fff;
  padding: .45rem .7rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  display: block;
}
.p-footer-brand-text {
  max-width: 280px;
  line-height: 1.55;
  margin: 0;
  font-size: .9rem;
}
.p-footer h4 {
  color: #fff;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 1.1rem;
  font-weight: 700;
}
.p-footer a { color: var(--p-gold); }
.p-footer-links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.p-footer-links a {
  color: rgba(255, 255, 255, .62);
  font-size: .9rem;
  transition: color .2s;
}
.p-footer-links a:hover { color: var(--p-gold); }
.p-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 1.35rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .82rem;
}
.p-footer-bottom a {
  color: rgba(255, 255, 255, .5);
}
.p-footer-bottom a:hover { color: var(--p-gold); }

.p-empty {
  color: var(--p-muted);
  padding: 2rem 0;
  font-style: italic;
}

.mt-1 { margin-top: .35rem; }
.mt-2 { margin-top: .65rem; }
.mt-4 { margin-top: 1.5rem; }

/* —— Inner pages —— */
.p-nav.solid {
  background: rgba(47, 26, 20, .97);
  position: relative;
  padding: .85rem 0;
}
.p-page {
  padding: 3.25rem 0 5rem;
  min-height: 62vh;
}
.p-page-title {
  font-family: var(--p-display);
  font-size: clamp(1.9rem, 3.5vw, 2.55rem);
  color: var(--p-brand);
  margin: 0 0 .55rem;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.p-page-lead {
  color: var(--p-muted);
  margin: 0 0 2.25rem;
  max-width: 520px;
  font-size: 1.05rem;
  line-height: 1.6;
}
.p-interest-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.p-form-card {
  background: var(--p-surface);
  border: 1px solid var(--p-line);
  padding: 2rem 1.85rem;
  box-shadow: var(--p-shadow);
}
.p-form-card label {
  display: block;
  font-weight: 600;
  font-size: .82rem;
  margin-bottom: .4rem;
  color: var(--p-text);
  letter-spacing: .01em;
}
.p-form-card input,
.p-form-card select,
.p-form-card textarea {
  width: 100%;
  padding: .72rem .9rem;
  border: 1px solid var(--p-line);
  border-radius: 4px;
  font-family: inherit;
  font-size: .95rem;
  margin-bottom: 1.05rem;
  background: #faf8f6;
  color: var(--p-text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.p-form-card input:focus,
.p-form-card select:focus,
.p-form-card textarea:focus {
  outline: none;
  border-color: var(--p-brand-mid);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(75, 44, 32, .12);
}
.p-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.p-form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
.p-alert {
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  border-radius: 4px;
  font-size: .92rem;
  line-height: 1.45;
}
.p-alert-ok {
  background: #f3ebe3;
  color: var(--p-brand);
  border: 1px solid #dccfc3;
}
.p-alert-err {
  background: #fdecea;
  color: #9b2c2c;
  border: 1px solid #f5c6c2;
}
.p-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  font-size: .9rem;
}
.p-check input { width: auto; margin: 0; }

.p-article { max-width: 720px; }
.p-article-meta {
  font-size: .85rem;
  color: var(--p-muted);
  margin-bottom: 1.75rem;
}
.p-article-cat {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--p-gold);
  margin-bottom: .85rem;
}
.p-article-body {
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 1.08rem;
}
.p-article-lead {
  font-size: 1.18rem;
  color: var(--p-muted);
  margin-bottom: 1.75rem;
  line-height: 1.65;
  border-left: 3px solid var(--p-gold);
  padding-left: 1.15rem;
}
.p-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.35rem;
}
.p-related a {
  border-top: 2px solid var(--p-gold);
  padding-top: .9rem;
  color: var(--p-text);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.35;
  transition: color .2s;
}
.p-related a:hover { color: var(--p-brand-mid); }
.p-article-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin-bottom: 1.85rem;
  display: block;
}
.p-article-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.p-btn-outline {
  border: 1.5px solid var(--p-line);
  color: var(--p-text) !important;
  background: transparent;
}
.p-btn-outline:hover {
  border-color: var(--p-brand);
  color: var(--p-brand) !important;
}
.p-btn-block {
  width: 100%;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.p-related-title {
  font-family: var(--p-display);
  color: var(--p-brand);
  font-size: 1.4rem;
  margin: 3rem 0 0;
}
.p-page-narrow {
  max-width: 560px;
}
.p-footer-mini .p-footer-bottom {
  border: 0;
  padding: 0;
}

/* Responsive (portal-specific; responsive.css adds more) */
@media (max-width: 991.98px) {
  .p-nav-toggle { display: block; }
  .p-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(47, 26, 20, .98);
    flex-direction: column;
    padding: 1.25rem 1.5rem 1.5rem;
    gap: 1rem;
    align-items: flex-start;
  }
  .p-nav-links.open { display: flex; }
  .p-nav-links a.is-active::after { display: none; }
  .p-mission { grid-template-columns: 1fr; gap: 2rem; }
  .p-mission-visual { min-height: 240px; order: -1; }
  .p-news-grid { grid-template-columns: 1fr; }
  .p-areas { grid-template-columns: repeat(2, 1fr); }
  .p-events { grid-template-columns: 1fr; }
  .p-projects { grid-template-columns: 1fr; }
  .p-impact-grid { grid-template-columns: repeat(2, 1fr); }
  .p-impact-item:not(:last-child)::after { display: none; }
  .p-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .p-contact-card {
    padding: 1.45rem 1.25rem 1.3rem;
  }
  .p-interest-layout { grid-template-columns: 1fr; gap: 2rem; }
  .p-gallery { grid-template-columns: repeat(2, 1fr); }
  .p-gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16/9;
  }
}

@media (max-width: 575.98px) {
  .p-areas { grid-template-columns: 1fr 1fr; }
  .p-list-row { grid-template-columns: 1fr; gap: .55rem; }
  .p-gallery { grid-template-columns: 1fr; }
  .p-gallery-item:nth-child(1) { grid-column: span 1; }
  .p-news-item.has-thumb a { grid-template-columns: 80px 1fr; }
  .p-form-row, .p-form-row-3 { grid-template-columns: 1fr; }
  .p-related { grid-template-columns: 1fr; }
  .p-lightbox { padding: 3rem 1rem; }
  .p-lightbox-nav { width: 40px; height: 40px; font-size: 1.8rem; }
  .p-lightbox-prev { left: .35rem; }
  .p-lightbox-next { right: .35rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
