/* ============================================
   TITUS-GLOVER CAMPAIGN — DESIGN SYSTEM
   Primary Blue · Red Accents · White
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
  --npp-red: #ed1c24;
  --npp-red-dark: #c41218;
  --npp-blue: #1b4098;
  --npp-blue-dark: #0f2d6e;
  --npp-blue-light: #2a5bc4;
  --blue: var(--npp-blue);
  --blue-dark: var(--npp-blue-dark);
  --blue-light: var(--npp-blue-light);
  --red: var(--npp-red);
  --red-dark: var(--npp-red-dark);
  --white: #ffffff;
  --off-white: #f8fafc;
  --gray-50: #f1f5f9;
  --gray-100: #e2e8f0;
  --gray-300: #94a3b8;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --shadow: 0 4px 24px rgba(0, 51, 153, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 51, 153, 0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --nav-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 5rem 0; }
.section-light { background: var(--off-white); }

.section-header { text-align: center; margin-bottom: 3rem; }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--blue-dark);
}

.section-subtitle {
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 1rem auto 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== BUTTONS ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}

.btn-white:hover {
  background: var(--off-white);
  color: var(--blue-dark);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  border-color: #25d366;
}

.btn-whatsapp:hover {
  background: #1da851;
  color: var(--white);
}

.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.82rem; }
.btn-danger { background: var(--red); color: var(--white); border-color: var(--red); }

/* ========== NAVIGATION ========== */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow var(--transition);
}

.navbar.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-dark);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--npp-blue);
  background: var(--white);
}

.nav-logo span { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-700);
}

.nav-links a:hover { color: var(--blue); }

.nav-cta { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-dark);
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== HERO ========== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(237, 28, 36, 0.55) 0%,
      rgba(237, 28, 36, 0.15) 18%,
      rgba(255, 255, 255, 0.08) 50%,
      rgba(27, 64, 152, 0.75) 82%,
      rgba(15, 45, 110, 0.92) 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 1.25rem 5rem;
}

.hero-portrait-wrap {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}

.hero-portrait {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255,255,255,0.2);
}

.hero-portrait-accent {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 60%;
  height: 60%;
  border: 3px solid var(--red);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.hero-slogan {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.hero-message {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 2;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ========== STATS ========== */

.stats-bar {
  background: linear-gradient(90deg, var(--npp-red) 0%, var(--npp-red) 33%, var(--white) 33%, var(--white) 66%, var(--npp-blue) 66%, var(--npp-blue) 100%);
  padding: 2.5rem 0;
  position: relative;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 45, 110, 0.88);
}

.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item { color: var(--white); }

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ========== TIMELINE ========== */

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--npp-red), var(--white), var(--npp-blue));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 2rem;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  background: var(--npp-red);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--npp-blue);
  transform: translateX(-5.5px);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* ========== ABOUT ========== */

.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3rem;
  align-items: start;
}

.about-image-wrap { position: sticky; top: calc(var(--nav-height) + 2rem); }

.about-image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-block {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-100);
}

.about-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.about-block h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.about-block p { color: var(--gray-700); font-size: 0.95rem; }

/* ========== MISSION & VISION ========== */

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.mv-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
}

.mv-card-accent { border-top-color: var(--red); }

.mv-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--blue-dark);
  margin-bottom: 1.25rem;
}

.mv-content {
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.75;
}

.mv-content p + p { margin-top: 1rem; }

/* ========== ACHIEVEMENTS ========== */

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.achievement-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--red);
  transition: transform var(--transition), box-shadow var(--transition);
}

.achievement-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.achievement-icon {
  width: 48px;
  height: 48px;
  background: var(--off-white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--blue);
}

.achievement-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.achievement-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ========== VALUES ========== */

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.value-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.value-card:hover { transform: translateY(-3px); }

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
}

/* ========== GALLERY ========== */

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.gallery-filter {
  padding: 0.5rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: 2px solid var(--gray-100);
  background: var(--white);
  color: var(--gray-700);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}

.gallery-filter:hover,
.gallery-filter.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-100);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,34,102,0.7), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-title {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--gray-500);
}

/* ========== NEWS ========== */

.news-featured {
  margin-bottom: 2.5rem;
}

.featured-article {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border-left: 5px solid var(--red);
}

.featured-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.featured-content { padding: 2.5rem; }

.featured-content time {
  font-size: 0.82rem;
  color: var(--gray-500);
}

.featured-content h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--blue-dark);
  margin: 0.75rem 0;
  line-height: 1.25;
}

.featured-content p {
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.7;
}

.featured-visual {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.featured-visual span {
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(255,255,255,0.15);
  font-weight: 800;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.news-card:hover { transform: translateY(-3px); }

.news-card time {
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 500;
}

.news-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--blue-dark);
  margin: 0.6rem 0;
  line-height: 1.3;
}

.news-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gray-100);
  background: var(--white);
  color: var(--gray-700);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.page-btn:hover,
.page-btn.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ========== EVENTS ========== */

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
  transition: transform var(--transition);
}

.event-card.featured { border-top-color: var(--red); }

.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.event-date-block {
  background: var(--blue);
  color: var(--white);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.event-card.featured .event-date-block { background: var(--red); }

.event-day {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.event-month {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.event-body { padding: 1.5rem; }

.event-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.event-location {
  font-size: 0.82rem;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.event-body p {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* ========== CTA BAND ========== */

.cta-band {
  background: linear-gradient(135deg, var(--npp-blue-dark) 0%, var(--npp-blue) 50%, var(--npp-red) 100%);
  padding: 4rem 0;
}

/* ========== DONATE ========== */

.donate-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.donate-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      var(--npp-red) 0%,
      var(--npp-red) 28%,
      var(--white) 28%,
      var(--white) 72%,
      var(--npp-blue) 72%,
      var(--npp-blue) 100%);
  opacity: 0.95;
}

.donate-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.15) 0%, transparent 70%);
}

.donate-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
}

.donate-logo-wrap {
  margin-bottom: 1.5rem;
}

.donate-npp-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.donate-label {
  color: var(--npp-blue-dark);
  background: rgba(255,255,255,0.9);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
}

.donate-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--npp-blue-dark);
  margin: 1rem 0 0.75rem;
}

.donate-message {
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.donate-number-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  box-shadow: 0 12px 48px rgba(27, 64, 152, 0.18);
  border: 2px solid var(--npp-blue);
  margin-bottom: 1.25rem;
  width: 100%;
}

.donate-number-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--npp-red);
  margin-bottom: 0.5rem;
}

.donate-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  color: var(--npp-blue);
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  transition: color var(--transition);
}

.donate-number:hover {
  color: var(--npp-red);
}

.donate-hint {
  font-size: 0.88rem;
  color: var(--gray-700);
  max-width: 420px;
}

.donate-copied {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--npp-blue-dark);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}


.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white);
  margin-bottom: 0.5rem;
}

.cta-inner p {
  color: rgba(255,255,255,0.85);
  max-width: 480px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ========== CONTACT ========== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.contact-card h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.contact-card p,
.contact-card a {
  font-size: 0.95rem;
  color: var(--gray-700);
}

.form-success {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #dcfce7;
  color: #166534;
  border-radius: var(--radius);
  font-size: 0.88rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--off-white);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--blue);
  color: var(--white);
}

/* ========== AI SECTION ========== */

.ai-section { background: linear-gradient(160deg, var(--npp-blue-dark), var(--npp-blue) 60%, var(--npp-red)); }

.ai-section-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 3rem;
}

.ai-section .section-label { color: rgba(255,255,255,0.7); }
.ai-section .section-title { color: var(--white); }

.ai-section-desc {
  color: rgba(255,255,255,0.75);
  margin: 1rem 0 1.5rem;
  max-width: 480px;
}

.ai-section-orb {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-light), var(--red));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
}

/* ========== FOOTER ========== */

.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand span { color: var(--red); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 0.78rem;
  opacity: 0.5;
}

/* ========== MODAL ========== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.modal-content img {
  max-height: 85vh;
  border-radius: var(--radius);
}

.modal-caption {
  text-align: center;
  color: var(--white);
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ========== AI CHAT WIDGET ========== */

.ai-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.ai-fab:hover { transform: scale(1.08); }
.ai-fab.hidden { display: none; }
.ai-fab-icon { width: 26px; height: 26px; fill: currentColor; }

.ai-panel {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: min(400px, calc(100vw - 2rem));
  height: min(560px, calc(100vh - 3rem));
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1501;
  display: flex;
  flex-direction: column;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  overflow: hidden;
}

.ai-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
}

.ai-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--blue);
  color: var(--white);
}

.ai-panel-title { display: flex; align-items: center; gap: 0.75rem; }
.ai-panel-title h4 { font-size: 0.95rem; }
.ai-panel-title span { font-size: 0.72rem; opacity: 0.8; }

.ai-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.ai-panel-actions { display: flex; gap: 0.35rem; }

.ai-panel-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
}

.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ai-message {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
}

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

.ai-message.user {
  align-self: flex-end;
  background: var(--blue);
  color: var(--white);
}

.ai-message.assistant {
  align-self: flex-start;
  background: var(--off-white);
  color: var(--gray-900);
}

.ai-message.error {
  align-self: center;
  background: #fef2f2;
  color: var(--red);
  font-size: 0.82rem;
}

.ai-typing {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--gray-500);
  padding: 0.5rem;
}

.ai-typing-dots { display: flex; gap: 3px; }
.ai-typing-dots span {
  width: 6px; height: 6px;
  background: var(--gray-300);
  border-radius: 50%;
  animation: bounce 1.4s infinite;
}
.ai-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.5rem;
}

.ai-suggestion {
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  border-radius: 50px;
  cursor: pointer;
  color: var(--gray-700);
  transition: all var(--transition);
}

.ai-suggestion:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.ai-input-area {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--gray-100);
}

.ai-input {
  flex: 1;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  resize: none;
  max-height: 100px;
}

.ai-input:focus { outline: none; border-color: var(--blue); }

.ai-send {
  width: 40px;
  height: 40px;
  background: var(--blue);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-send:disabled { opacity: 0.5; cursor: not-allowed; }
.ai-send svg { width: 18px; height: 18px; fill: var(--white); }

/* ========== FORMS (shared) ========== */

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-900);
  transition: border-color var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.form-textarea { resize: vertical; min-height: 80px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 0.35rem;
}

/* ========== ADMIN ========== */

.admin-page {
  background:
    linear-gradient(180deg, rgba(27, 64, 152, 0.04) 0%, transparent 280px),
    var(--off-white);
  min-height: 100vh;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, var(--npp-blue-dark) 0%, var(--npp-blue) 70%, var(--npp-red) 160%);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(15, 45, 110, 0.25);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.admin-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.admin-topbar h1 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.2;
}

.admin-topbar h1 span { color: #ffb4b7; }

.admin-brand-sub {
  font-size: 0.72rem;
  opacity: 0.75;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.admin-status {
  display: none;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

@media (min-width: 640px) {
  .admin-status { display: inline-block; }
}

.admin-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.65rem 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  overflow-x: auto;
  position: sticky;
  top: 64px;
  z-index: 99;
  scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar { display: none; }

.admin-tabs a {
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-500);
  border-radius: 50px;
  white-space: nowrap;
  transition: all var(--transition);
}

.admin-tabs a:hover {
  color: var(--npp-blue);
  background: var(--off-white);
}

.admin-tabs a.active {
  color: var(--white);
  background: var(--npp-blue);
  box-shadow: 0 4px 12px rgba(27, 64, 152, 0.25);
}

.admin-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.admin-welcome {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--npp-blue) 0%, var(--npp-blue-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.admin-welcome::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--npp-red);
  opacity: 0.35;
}

.admin-welcome h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  position: relative;
  z-index: 1;
}

.admin-welcome p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 0.35rem;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

.admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(27, 64, 152, 0.06);
  scroll-margin-top: 140px;
}

.admin-card-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-100);
}

.admin-card-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--npp-blue), var(--npp-blue-dark));
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.admin-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--blue-dark);
  margin: 0;
  padding: 0;
  border: none;
}

.admin-card-desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
  line-height: 1.5;
}

.label-hint {
  font-weight: 400;
  color: var(--gray-500);
  font-size: 0.8rem;
}

.admin-form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding-top: 0.5rem;
}

.btn-admin-outline {
  background: transparent;
  color: var(--npp-blue);
  border: 2px solid var(--gray-100);
}

.btn-admin-outline:hover {
  border-color: var(--npp-blue);
  background: var(--off-white);
  color: var(--npp-blue-dark);
}

.admin-empty {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--gray-500);
  font-size: 0.85rem;
  background: var(--off-white);
  border-radius: var(--radius);
  margin-top: 1rem;
}

.upload-zone {
  border: 2px dashed rgba(27, 64, 152, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  background: rgba(27, 64, 152, 0.02);
}

.upload-zone:hover {
  border-color: var(--npp-blue);
  background: rgba(27, 64, 152, 0.05);
}

.upload-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-zone p { font-size: 0.9rem; color: var(--gray-700); }
.upload-zone p strong { color: var(--npp-blue); }
.upload-zone small { display: block; margin-top: 0.35rem; font-size: 0.78rem; color: var(--gray-500); }
.upload-zone-compact { padding: 1.15rem; }

.image-preview { margin-top: 0.75rem; display: none; }
.image-preview.visible { display: block; }
.image-preview img {
  max-height: 140px;
  border-radius: var(--radius);
  border: 2px solid var(--gray-100);
  box-shadow: var(--shadow);
}

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.admin-gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid var(--gray-100);
}

.admin-gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.admin-gallery-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  background: var(--npp-red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.announcement-list {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.announcement-admin-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
}

.announcement-admin-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--npp-blue-dark);
}

.announcement-admin-info p { font-size: 0.82rem; color: var(--gray-500); }
.announcement-admin-info time { font-size: 0.75rem; color: var(--gray-300); display: block; margin-top: 0.35rem; }
.announcement-admin-actions { display: flex; gap: 0.5rem; flex-shrink: 0; align-items: flex-start; }

.admin-footer {
  text-align: center;
  padding: 2rem 0 1rem;
  color: var(--gray-500);
  font-size: 0.78rem;
}

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--blue-dark);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  z-index: 9999;
  opacity: 0;
  transition: all var(--transition);
  pointer-events: none;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--red); }

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-portrait-wrap { max-width: 320px; }
  .hero-message { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrap { position: static; max-width: 360px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .featured-article { grid-template-columns: 1fr; }
  .featured-visual { min-height: 120px; }
  .ai-section-card { grid-template-columns: 1fr; text-align: center; }
  .ai-section-visual { display: flex; justify-content: center; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--gray-100);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--gray-50);
    font-size: 1rem;
  }

  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .mv-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
  .section { padding: 3.5rem 0; }
  .hero-scroll { display: none; }

  .ai-panel {
    bottom: 0; right: 0; left: 0;
    width: 100%;
    height: min(100vh, 100dvh);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .ai-fab { bottom: 1.25rem; right: 1.25rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .hero-name { font-size: 1.85rem; }
  .admin-content { padding: 1rem; }
  .admin-tabs { top: 64px; padding: 0.5rem 1rem; }
  .admin-card { padding: 1.25rem; }
  .admin-brand-sub { display: none; }
  .announcement-admin-item { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
