/* ============================================
   사단법인 경기서북부 다문화센터 - 메인 스타일시트
   디자인 컨셉: 기독교 정신 기반 따뜻함, 블루/베이지 톤
   ============================================ */

/* ===== CSS Variables ===== */
:root {
  /* Primary Colors - 신뢰감 있는 블루 */
  --primary: #2B5DAE;
  --primary-dark: #1E4480;
  --primary-light: #4A7DD4;
  --primary-bg: #EBF0F9;

  /* Warm Colors - 따뜻한 베이지/골드 */
  --warm: #D4A853;
  --warm-dark: #B8913A;
  --warm-light: #F5E6C8;
  --warm-bg: #FDF8EE;

  /* Accent - 사랑/환영의 느낌 */
  --accent: #E07B5F;
  --accent-light: #F4C2B5;

  /* Neutrals */
  --text-primary: #2D3748;
  --text-secondary: #4A5568;
  --text-light: #718096;
  --text-white: #FFFFFF;
  --bg-white: #FFFFFF;
  --bg-light: #F7F8FA;
  --bg-cream: #FFFBF2;
  --border: #E2E8F0;
  --border-light: #EDF2F7;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Typography */
  --font-main: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Noto Sans KR', sans-serif;
  --font-serif: 'Noto Serif KR', Georgia, serif;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-main);
  color: var(--text-primary);
  background-color: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ===== Utility Classes ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: var(--space-md);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--warm));
  margin: var(--space-md) auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}

.text-primary { color: var(--primary); }
.text-warm { color: var(--warm-dark); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.text-light { color: var(--text-light); }

.bg-primary { background-color: var(--primary); }
.bg-warm { background-color: var(--warm-bg); }
.bg-light { background-color: var(--bg-light); }
.bg-cream { background-color: var(--bg-cream); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ===== Header & Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Fallback for icon-based logo (admin page) */
.logo-icon i {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  border-radius: var(--radius-md);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text .org-type {
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.logo-text .org-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-links a {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background-color: var(--primary-bg);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn-phone-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-xl);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-phone-header:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(43,93,174,0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

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

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a3a6e 0%, #2B5DAE 40%, #4A7DD4 100%);
  overflow: hidden;
  margin-top: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(212,168,83,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-badge i {
  color: var(--warm);
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: white;
  line-height: 1.25;
  margin-bottom: var(--space-lg);
  max-width: 700px;
}

.hero h1 .highlight {
  color: var(--warm);
  position: relative;
}

.hero-verse {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  margin-bottom: var(--space-md);
  max-width: 500px;
  line-height: 1.6;
}

.hero-verse-ref {
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--warm);
  font-style: normal;
  font-weight: 600;
  margin-bottom: var(--space-2xl);
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stat {
  text-align: left;
}

.hero-stat .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--warm);
}

.hero-stat .label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43,93,174,0.35);
}

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

.btn-warm:hover {
  background: var(--warm-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,168,83,0.35);
}

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

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

.btn-outline-primary {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

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

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

.btn-white:hover {
  background: var(--primary-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== Quick Info Bar ===== */
.quick-info {
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-lg) 0;
}

.quick-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.quick-info-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.quick-info-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quick-info-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.quick-info-text h4 {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.quick-info-text p {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* ===== Card Styles ===== */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

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

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: var(--space-md);
}

.card-body {
  padding: var(--space-xl);
}

.card-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.card-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  font-size: 0.78rem;
  font-weight: 600;
}

.tag-blue {
  background: var(--primary-bg);
  color: var(--primary);
}

.tag-warm {
  background: var(--warm-light);
  color: var(--warm-dark);
}

.tag-green {
  background: #E6F9ED;
  color: #1B8C4A;
}

.tag-red {
  background: #FEECEC;
  color: #C53030;
}

/* ===== Program Cards ===== */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

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

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

.program-card-header {
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--primary-bg), white);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.program-card-header .program-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.program-card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.program-card-body {
  padding: var(--space-xl);
}

.program-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.program-meta-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.program-meta-item i {
  color: var(--primary);
  width: 18px;
  text-align: center;
  margin-top: 3px;
  flex-shrink: 0;
}

.program-status {
  margin-top: var(--space-md);
  text-align: center;
}

/* ===== Notice/Timeline ===== */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.notice-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
}

.notice-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.notice-item .pin {
  color: var(--accent);
  font-size: 0.9rem;
}

.notice-item .category {
  flex-shrink: 0;
}

.notice-item .title {
  flex: 1;
  font-weight: 500;
  color: var(--text-primary);
}

.notice-item .date {
  font-size: 0.85rem;
  color: var(--text-light);
  flex-shrink: 0;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--warm));
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-2xl);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--primary);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item .year {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.timeline-item .event {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== Donation Section ===== */
.donation-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.account-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-light);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-md) 0;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.account-info {
  display: flex;
  flex-direction: column;
}

.account-info .bank {
  font-size: 0.85rem;
  color: var(--text-light);
}

.account-info .number {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.account-info .holder {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.btn-copy:hover {
  background: var(--primary-dark);
}

.btn-copy.copied {
  background: #38A169;
}

/* ===== Form Styles ===== */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.form-label .required {
  color: var(--accent);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font-main);
  color: var(--text-primary);
  background: white;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43,93,174,0.15);
}

.form-control::placeholder {
  color: var(--text-light);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.form-check input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--primary);
}

/* ===== Map / Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-info-item {
  display: flex;
  gap: var(--space-md);
}

.contact-info-item .icon-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 2px;
}

.contact-info-item p {
  font-weight: 600;
  color: var(--text-primary);
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== Footer ===== */
.footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand .logo-text-footer {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
}

.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  padding: 4px 0;
  color: rgba(255,255,255,0.6);
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.82rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
  color: white;
}

/* ===== Page Header (Sub pages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: var(--space-3xl) 0 var(--space-2xl);
  margin-top: 72px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-md);
}

.page-header .breadcrumb a {
  color: rgba(255,255,255,0.6);
}

.page-header .breadcrumb a:hover {
  color: white;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-sm);
}

.page-header .description {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
}

/* ===== Tab Navigation ===== */
.tab-nav {
  display: flex;
  gap: 4px;
  background: var(--bg-light);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2xl);
  overflow-x: auto;
}

.tab-btn {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: var(--transition);
  flex: 1;
  text-align: center;
}

.tab-btn:hover {
  color: var(--primary);
  background: white;
}

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

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* ===== Organization Chart ===== */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

.org-level {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.org-card {
  text-align: center;
  padding: var(--space-lg) var(--space-xl);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border-light);
  min-width: 160px;
  transition: var(--transition);
}

.org-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.org-card.president {
  border-color: var(--primary);
  background: var(--primary-bg);
}

.org-card .role {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.org-card .name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.org-connector {
  width: 2px;
  height: 30px;
  background: var(--border);
  margin: 0 auto;
}

/* ===== Floating Phone Button (Mobile) ===== */
.floating-phone {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  font-size: 1.5rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(43,93,174,0.4);
  transition: var(--transition);
  animation: pulse-phone 2s infinite;
}

.floating-phone:hover {
  transform: scale(1.1);
  background: var(--primary-dark);
}

@keyframes pulse-phone {
  0%, 100% { box-shadow: 0 4px 20px rgba(43,93,174,0.4); }
  50% { box-shadow: 0 4px 30px rgba(43,93,174,0.6); }
}

/* ===== Admin Page ===== */
.admin-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: calc(100vh - 72px);
  margin-top: 72px;
}

.admin-sidebar {
  background: var(--text-primary);
  color: white;
  padding: var(--space-xl);
}

.admin-sidebar h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  color: rgba(255,255,255,0.6);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  margin-bottom: 4px;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(255,255,255,0.1);
  color: white;
}

.admin-main {
  padding: var(--space-2xl);
  background: var(--bg-light);
}

.admin-card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-lg);
}

.admin-card h2 {
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-light);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.admin-table th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--text-secondary);
}

.admin-table tr:hover {
  background: var(--primary-bg);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.admin-stat-card {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.admin-stat-card .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.admin-stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ===== Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-light);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--bg-light);
  color: var(--text-primary);
}

.modal-body {
  padding: var(--space-xl);
}

.modal-footer {
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

/* ===== Toast Notification ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-primary);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 0.93rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  opacity: 0;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.toast.success {
  background: #38A169;
}

.toast.error {
  background: #E53E3E;
}

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

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.6rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .nav-links,
  .header-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* Mobile Navigation */
  .mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 999;
    padding: var(--space-xl);
    overflow-y: auto;
  }

  .mobile-nav.active {
    display: block;
    animation: fadeIn 0.3s ease;
  }

  .mobile-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
  }

  .mobile-nav a:hover,
  .mobile-nav a.active {
    color: var(--primary);
    background: var(--primary-bg);
    border-radius: var(--radius-sm);
  }

  .mobile-nav .mobile-cta {
    margin-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }

  .hero {
    min-height: auto;
    padding: var(--space-3xl) 0;
    margin-top: 64px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-stats {
    gap: var(--space-lg);
  }

  .hero-stat .number {
    font-size: 1.5rem;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  .quick-info-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .floating-phone {
    display: flex;
  }

  .account-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .tab-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    flex: 0 0 auto;
  }

  .org-level {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .hero-verse {
    font-size: 1rem;
  }

  .btn-lg {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.4rem;
  }
}

/* ===== Print Styles ===== */
@media print {
  .header,
  .floating-phone,
  .footer,
  .hero-cta,
  .btn {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: black;
  }

  .page-header {
    margin-top: 0;
    background: none;
    color: black;
    padding: 0;
  }

  .page-header h1 {
    color: black;
  }
}
