/* ============================================
   POIG — Professional Editorial Redesign
   Colors: Purple (#421B61) + Orange (#FE6F03) — from the POIG mark
   Fonts: DM Serif Display + Inter
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Purple ramp */
  --purple-950: #170a29;
  --purple-900: #22103c;
  --purple-800: #2f1550;
  --purple-700: #421b61;   /* brand primary */
  --purple-600: #55278a;
  --purple-500: #7443b8;
  --purple-100: #efe8f8;
  --purple-50:  #f8f6fc;

  /* Orange ramp */
  --orange-700: #c94e00;
  --orange-600: #e0620a;
  --orange-500: #fe6f03;   /* brand primary */
  --orange-400: #ff9142;
  --orange-100: #fff1e3;

  /* Neutrals */
  --ink:        #1a1626;
  --ink-soft:   #514c68;
  --muted:      #6f6a86;
  --paper:      #fffefc;
  --off:        #faf8fc;
  --white:      #ffffff;

  --line:       rgba(66, 27, 97, 0.12);
  --line-soft:  rgba(66, 27, 97, 0.07);

  /* Shadows — tinted with ink, not pure black */
  --shadow-xs: 0 1px 2px rgba(23, 10, 41, 0.05);
  --shadow-sm: 0 1px 3px rgba(23, 10, 41, 0.06), 0 1px 2px rgba(23, 10, 41, 0.04);
  --shadow-md: 0 6px 20px -6px rgba(23, 10, 41, 0.12);
  --shadow-lg: 0 20px 46px -14px rgba(23, 10, 41, 0.18);
  --shadow-orange: 0 6px 16px -4px rgba(254, 111, 3, 0.28);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 76px;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--sans);
  background: var(--off);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--orange-500); color: #fff; }

/* ============================================
   Navigation — solid, professional, persistent
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.3s ease, height 0.3s ease;
}

body.scrolled .navbar {
  box-shadow: 0 1px 0 rgba(23, 10, 41, 0.05), 0 12px 32px -16px rgba(23, 10, 41, 0.18);
  height: 68px;
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: contain;
  transition: transform 0.2s ease, height 0.2s ease, width 0.2s ease;
}

body.scrolled .nav-brand img {
  height: 38px;
  width: 38px;
}

.nav-brand:hover img { transform: scale(1.06); }

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

.nav-links a {
  position: relative;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover { color: var(--purple-700); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--purple-700);
  background: var(--white);
  border: 1.5px solid var(--purple-700);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--purple-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.nav-cta i { font-size: 0.7rem; transition: transform 0.25s ease; }
.nav-cta:hover i { transform: translateX(3px); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: var(--purple-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-hamburger:hover { background: var(--purple-100); }

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--purple-700);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  overflow-y: auto;
  max-height: calc(100vh - var(--nav-h));
  padding: 12px 0 32px;
}

body.scrolled .nav-drawer {
  top: 68px;
  max-height: calc(100vh - 68px);
}

.nav-drawer.open {
  display: block;
  animation: drawerIn 0.22s ease;
}

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

.drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 28px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.12s;
}

.drawer-item:hover { background: var(--purple-50); }

.drawer-item .d-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--purple-50);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--purple-700);
}

.drawer-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 28px 0;
  border-top: 1px solid var(--line-soft);
  margin-top: 12px;
}

.drawer-ctas .nav-cta { justify-content: center; padding: 14px 20px; }
.drawer-ctas .btn-outline {
  justify-content: center;
  padding: 14px 20px;
  color: var(--purple-700);
  border-color: var(--line);
}
.drawer-ctas .btn-outline:hover {
  background: var(--purple-50);
  border-color: var(--purple-500);
}

.drawer-social {
  display: flex;
  gap: 8px;
  padding: 20px 28px 0;
  justify-content: center;
}

.drawer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--purple-50);
  border: 1px solid var(--line-soft);
  color: var(--purple-700);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.drawer-social a:hover { background: var(--purple-700); color: #fff; }

.nav-spacer { height: var(--nav-h); }

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  padding: 88px 5% 80px;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 780px 420px at 82% -10%, rgba(66, 27, 97, 0.06) 0%, transparent 65%),
    radial-gradient(ellipse 620px 380px at 6% 100%, rgba(254, 111, 3, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.hero-pattern { display: none; }

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 800px 500px at 50% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 760px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 28px;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.hero-logo:hover { transform: scale(1.05); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 12px;
  border-radius: var(--radius-full);
  background: var(--purple-50);
  border: 1px solid var(--line);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--purple-700);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-500);
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.2vw, 3.7rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 16px;
}

.hero h1 .serif-accent {
  font-family: var(--serif);
  font-style: italic;
  color: var(--purple-700);
}

.hero-desc {
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-cue { display: none; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 1.5px solid transparent;
  font-family: var(--sans);
}

.btn-primary {
  background: var(--purple-700);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--purple-800);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: var(--white);
  color: var(--purple-700);
  border-color: var(--line);
}

.btn-outline:hover {
  background: var(--purple-50);
  border-color: var(--purple-500);
}

.btn-orange { background: var(--orange-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn-orange:hover { background: var(--orange-600); box-shadow: var(--shadow-md); }

.btn-sm { padding: 10px 20px; font-size: 0.76rem; }

/* ============================================
   Stats — unified floating card
   ============================================ */
.stats-bar {
  display: flex;
  max-width: 1020px;
  margin: -48px auto 0;
  padding: 0 5%;
  position: relative;
  z-index: 5;
}

.stats-bar {
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: var(--white);
  overflow: hidden;
}

.stat-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--white);
  padding: 36px 20px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: var(--line-soft);
}

.stat-item:hover { background: var(--purple-50); }

.stat-number {
  display: block;
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--purple-700);
  line-height: 1.2;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  text-align: center;
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 128px 5% 108px;
  position: relative;
}

.section-alt {
  background: var(--white);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
}

.section-header {
  text-align: left;
  margin-bottom: 60px;
  max-width: 620px;
}

.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange-600);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-subtitle::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange-500);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}

.section-title .serif-accent {
  font-family: var(--serif);
  font-style: italic;
  color: var(--purple-700);
}

.section-line { display: none; }

.section-header.centered {
  text-align: center;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.section-header.centered .section-subtitle { justify-content: center; }

/* ============================================
   About
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.about-card:hover { box-shadow: var(--shadow-md); }

.card-icon { margin-bottom: 20px; }

.card-icon i {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-50);
  border-radius: 14px;
  font-size: 1.25rem;
  color: var(--purple-700);
}

.about-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.85;
  margin-bottom: 14px;
}

.about-card p:last-child { margin-bottom: 0; }
.about-card strong { color: var(--purple-700); font-weight: 700; }

.vision-card {
  background: linear-gradient(160deg, var(--purple-900) 0%, var(--purple-700) 100%);
  border-radius: var(--radius-lg);
  padding: 44px 38px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.vision-card::before {
  content: '\201C';
  position: absolute;
  top: -0.15em;
  right: 0.25em;
  font-family: var(--serif);
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  pointer-events: none;
}

.vision-card .card-icon i {
  background: rgba(254, 111, 3, 0.16);
  color: var(--orange-400);
}

.vision-card h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 14px;
  position: relative;
}

.vision-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
  line-height: 1.85;
  position: relative;
}

/* ============================================
   Services
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  counter-reset: service;
}

.service-card {
  counter-increment: service;
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-card::after {
  content: counter(service, decimal-leading-zero);
  position: absolute;
  top: 22px;
  right: 26px;
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--line);
  font-weight: 400;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--orange-100);
}

.service-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-50);
  border-radius: 15px;
  font-size: 1.25rem;
  color: var(--purple-700);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--purple-700);
  color: white;
}

.service-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ============================================
   Team
   ============================================ */
.team-category { margin-bottom: 56px; }
.team-category:last-child { margin-bottom: 0; }

.team-category-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 28px;
  color: var(--ink);
}

.team-category-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}

.team-category-title .serif-accent {
  font-family: var(--serif);
  font-style: italic;
  color: var(--orange-600);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}

.active-team-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  padding: 0 0 16px;
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--line);
}

.team-avatar {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 14px;
  border-radius: 0;
  overflow: hidden;
  background: var(--purple-50);
}

.team-avatar .team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.team-card:hover .team-avatar .team-photo { transform: scale(1.05); }

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 2rem;
  font-family: var(--sans);
}

.avatar-placeholder.sm { font-size: 1.5rem; }

.team-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 14px 4px;
}

.team-card p {
  display: inline-block;
  font-size: 0.66rem;
  color: var(--purple-700);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--purple-50);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin: 0 14px;
}

/* ============================================
   Activities
   ============================================ */
.activities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.activity-card {
  position: relative;
  cursor: pointer;
  user-select: none;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.activity-card:hover { box-shadow: var(--shadow-md); border-color: var(--line); }
.activity-card.expanded { border-color: var(--orange-100); box-shadow: var(--shadow-md); }
.activity-card.expanded .activity-expand-hint i { transform: rotate(180deg); }

.activity-preview { display: flex; flex-direction: column; }

.activity-date {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  background: var(--purple-50);
  color: var(--purple-700);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
  order: 2;
}

.activity-icon {
  font-size: 1.15rem;
  color: white;
  margin-bottom: 16px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--purple-700);
  display: flex;
  align-items: center;
  justify-content: center;
  order: 1;
}

.activity-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 10px;
  order: 3;
}

.activity-datetime {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
  order: 4;
}

.activity-datetime i { color: var(--orange-500); width: 14px; }

.activity-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 6px;
  white-space: pre-line;
  order: 5;
}

.activity-expand-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange-600);
  opacity: 0.75;
  transition: var(--transition);
  order: 6;
}

.activity-card:hover .activity-expand-hint { opacity: 1; }

.activity-expand-hint i { transition: transform 0.3s ease; font-size: 0.65rem; }

.activity-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease;
  opacity: 0;
  margin-top: 0;
}

.activity-card.expanded .activity-details {
  max-height: 2500px;
  opacity: 1;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.activity-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.activity-photo {
  width: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
  aspect-ratio: 16 / 10;
  background: var(--off);
  cursor: pointer;
  transition: var(--transition);
}

.activity-photo:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }

.photo-placeholder {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  background: var(--off);
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #ccc;
}

/* ============================================
   News Carousel
   ============================================ */
.news-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
}

.news-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 200px;
}

.news-track > .news-card { display: none; animation: fadeIn 0.4s ease; }
.news-track > .news-card.active { display: block; }

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

.carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--purple-700);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.carousel-arrow:hover {
  background: var(--purple-700);
  color: white;
  border-color: var(--purple-700);
  transform: scale(1.06);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background: var(--orange-500);
  width: 22px;
  border-radius: var(--radius-full);
}

.carousel-dot:hover { background: var(--purple-500); }

.news-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.news-card:hover { box-shadow: var(--shadow-md); }

.news-card-main-photo {
  width: 100%;
  display: block;
  cursor: pointer;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.news-card-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px 12px 0;
  flex-wrap: wrap;
}

.news-card-thumbs img {
  width: 64px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.news-card-thumbs img:hover { opacity: 0.75; }

.news-card-body { padding: 30px 34px 34px; }

.news-card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px;
}

.news-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.85;
  white-space: pre-line;
  margin-bottom: 0;
}

/* ============================================
   Events
   ============================================ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  max-width: 820px;
  margin: 0 auto;
}

.event-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.event-icon {
  font-size: 1.5rem;
  color: white;
  margin: 0 auto 16px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--purple-700);
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 10px;
}

.event-datetime {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--purple-700);
  font-weight: 600;
  margin-bottom: 14px;
}

.event-datetime i { color: var(--orange-500); }

.event-desc {
  margin-bottom: 20px !important;
  font-size: 0.87rem;
  color: var(--ink-soft);
  white-space: pre-line;
  line-height: 1.75;
}

/* ============================================
   Contact
   ============================================ */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 820px;
  margin: 0 auto;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-card:hover { box-shadow: var(--shadow-md); }

.contact-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 22px;
}

.contact-card h3 i {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--purple-50);
  color: var(--purple-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  margin-right: 0;
}

.social-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--off);
  border: 1px solid var(--line-soft);
  text-decoration: none;
  color: var(--purple-700);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
  white-space: nowrap;
}

.social-link:hover {
  background: var(--purple-700);
  color: white;
  border-color: var(--purple-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.social-link i { font-size: 0.95rem; }

.contact-card .btn { margin-bottom: 12px; width: 100%; justify-content: center; }
.contact-card .btn-primary { color: #fff; }

.contact-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--off);
  border: 1px solid var(--line-soft);
  text-decoration: none;
  color: var(--purple-700);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.contact-email:hover {
  background: var(--purple-700);
  color: white;
  border-color: var(--purple-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.copy-badge {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange-500);
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.copy-badge.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-3px);
}

/* ============================================
   Footer
   ============================================ */
footer {
  background: var(--purple-950);
  color: rgba(255, 255, 255, 0.8);
  padding: 72px 5% 0;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-700), var(--orange-500), var(--purple-700));
  opacity: 0.8;
}

.footer-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background:
    radial-gradient(ellipse 500px 400px at 90% 0%, rgba(116, 67, 184, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 5% 100%, rgba(254, 111, 3, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.footer-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .footer-logo img {
  height: 44px;
  border-radius: 50%;
}

.footer-brand .footer-logo span {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  color: #fff;
}

.footer-brand .footer-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  font-style: italic;
  max-width: 30ch;
}

.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 0;
  transition: color 0.18s, transform 0.18s;
}

.footer-col a:hover {
  color: var(--orange-400);
  transform: translateX(3px);
}

.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-social {
  display: flex;
  gap: 6px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}

.footer-social a:hover {
  background: var(--orange-500);
  color: #fff;
  transform: translateY(-2px);
}

.btn-admin-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn-admin-login:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-1px);
}

/* ============================================
   Scroll Animations
   ============================================ */
.section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.stats-bar {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

.stats-bar.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Photo Preview
   ============================================ */
.photo-preview-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 5, 18, 0.94);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.photo-preview-overlay.active { display: flex; }

.photo-preview-img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 10px;
  cursor: default;
  box-shadow: var(--shadow-lg);
}

.photo-preview-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 2.4rem;
  color: white;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
}

.photo-preview-close:hover { opacity: 1; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .activities-grid { grid-template-columns: 1fr; }
  .contact-content { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .hero { padding: 128px 5% 72px; min-height: 82vh; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero-logo { width: 84px; height: 84px; }
  .hero-scroll-cue { display: none; }
  .stats-bar { flex-wrap: wrap; margin-top: -36px; }
  .stat-item { flex: 1 1 50%; }
  .stat-item:nth-child(2)::after { display: none; }
  .stat-item:nth-child(1)::after, .stat-item:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .stat-number { font-size: 2rem; }
  .section { padding: 76px 5% 64px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .active-team-grid { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }
  .events-grid { grid-template-columns: 1fr; }
  .news-carousel { gap: 8px; }
  .carousel-arrow { width: 36px; height: 36px; font-size: 0.8rem; }
  .news-card-body { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-social { justify-content: center; }
  .section-header { text-align: center; max-width: 100%; }
  .section-header .section-subtitle { justify-content: center; }
}

@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; max-width: 300px; }
  .services-grid { grid-template-columns: 1fr; }
  .social-links { grid-template-columns: 1fr; }
  .about-card, .vision-card, .service-card, .activity-card, .contact-card, .event-card { padding: 28px 24px; }
}
