:root {
  --primary: #1B3A8C;
  --primary-dark: #0F2460;
  --primary-light: #2855C8;
  --accent: #F5C518;
  --green: #2E8B57;
  --red: #ED1C24;
  /* Thairath Red */
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --bg: #F0F2F5;
  --bg-card: #FFFFFF;
  --border: #E1E4E8;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 8px;
  --radius-lg: 12px;
  --font-th: 'Noto Sans Thai', sans-serif;
  --font-en: 'Inter', sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1500px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-th);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

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

a:hover {
  color: var(--primary-light);
}

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

ul {
  list-style: none;
}

input,
textarea,
select {
  font-family: var(--font-th);
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}

.section-sm {
  padding: 48px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.text-center {
  text-align: center;
}

.gap-2 {
  gap: 16px;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--primary);
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 48px;
}

.text-primary {
  color: var(--primary);
}

.text-muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font-th);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.btn-donate {
  background: linear-gradient(135deg, #DC2626, #B91C1C);
  color: #fff;
}

.btn-donate:hover {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: #fff;
  transform: translateY(-1px);
}

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

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

.btn-green {
  background: var(--green);
  color: #fff;
}

.btn-green:hover {
  background: #236B43;
  color: #fff;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 14px;
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.85rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
  justify-content: center;
}

/* ===== HEADER ===== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto minmax(300px, 1fr);
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.logo img {
  width: 44px;
  height: 44px;
}

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

.logo-th {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.logo-en {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-en);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
}

#main-nav {
  display: flex;
  justify-content: center;
  height: var(--header-h);
  margin: 0 20px;
}

#nav-list {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 100%;
}

#nav-list li {
  display: flex;
  align-items: stretch;
}

#nav-list a {
  display: flex;
  align-items: center;
  padding: 0 15px; /* ปรับลดลงเพื่อให้เมนูไม่เบียดกันเกินไป */
  font-size: 1.05rem; /* ปรับให้ดูเพรียวและสมดุล (Just Right Size) */
  color: var(--text);
  font-weight: 600; /* ใช้ความหนาปานกลางให้ดูพรีเมียม */
  position: relative;
  transition: color 0.2s ease;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

#nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#nav-list a:hover {
  color: var(--red);
}

#nav-list a:hover::after,
#nav-list a.active::after {
  transform: scaleX(1);
}

#nav-list a.active {
  color: var(--red);
}

.top-bar {
  background: #f8f9fa;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px; /* Space between Label, Ticker, and Actions */
}

.ticker-label {
  background: var(--red);
  color: #fff;
  padding: 3px 12px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  flex-shrink: 0;
  z-index: 10;
}

.ticker {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 32px;
  display: flex;
  align-items: center;
}

.ticker-scroll {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.ticker-content {
  white-space: nowrap;
  display: inline-block;
  font-weight: 500;
  color: var(--text);
  position: absolute;
  left: 100%;
  will-change: transform;
}







.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.search-trigger {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
}

.search-trigger:hover {
  background: #f0f2f5;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.btn-user {
  background: none;
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 8px;
  font-family: var(--font-th);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--primary);
  position: relative;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: 48px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 180px;
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  display: none;
}

#user-menu {
  position: relative;
}

#user-menu:hover .user-dropdown {
  display: block;
}

.user-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-size: 0.9rem;
}

.user-dropdown a:hover {
  background: var(--bg);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0A1931 0%, #153462 50%, #185ADB 100%);
  color: #fff;
  padding: 120px 0;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at right bottom, rgba(245, 197, 24, 0.15), transparent 70%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 197, 24, 0.2);
  border: 1px solid rgba(245, 197, 24, 0.5);
  color: #fff;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.25rem;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat .number {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-en);
  line-height: 1;
  margin-bottom: 8px;
}

.hero-stat .label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

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

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-tag {
  display: inline-block;
  background: #EFF4FF;
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  padding: 0 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== VISION SECTION ===== */
.vision-section {
  background: #fff;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.vision-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.vision-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.vision-badge {
  display: inline-block;
  background: #EFF4FF;
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.vision-content h2 {
  color: var(--primary);
  margin-bottom: 20px;
}

.vision-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.vision-points {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vision-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.vision-point-icon {
  width: 36px;
  height: 36px;
  background: #EFF4FF;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.vision-point-text h4 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 2px;
}

.vision-point-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== PROGRAMS ===== */
.programs-section {
  background: var(--bg);
}

/* ===== FUNDING GAP ===== */
.funding-section {
  background: linear-gradient(135deg, #0F2460, #1B3A8C);
  color: #fff;
}

.funding-section .section-title {
  color: #fff;
}

.funding-section .section-sub {
  color: rgba(255, 255, 255, 0.7);
}

.funding-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.funding-card h4 {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 1rem;
}

.funding-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.progress-bar {
  background: rgba(255, 255, 255, 0.15);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #F97316);
  border-radius: 4px;
  transition: width 1s ease;
}

.funding-amounts {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.funding-amounts strong {
  color: #fff;
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

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

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

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 58, 140, 0.6);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
}

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

/* ===== NEWS ===== */
.news-section {
  background: #fff;
}

/* ===== CONTACT/CTA SECTION ===== */
.cta-section {
  background: var(--bg);
  text-align: center;
}

.cta-box {
  background: linear-gradient(135deg, #0F2460, #1B3A8C);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  color: #fff;
}

.cta-box h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  font-size: 1rem;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  color: var(--primary);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: #EFF4FF;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group label .required {
  color: var(--red);
  margin-left: 3px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font-th);
  color: var(--text);
  background: #fff;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 58, 140, 0.1);
}

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

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

.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-error {
  color: var(--red);
  font-size: 0.85rem;
  margin-top: -12px;
  margin-bottom: 12px;
}

.form-success {
  color: var(--green);
  font-size: 0.9rem;
  text-align: center;
  padding: 12px;
  background: #ECFDF5;
  border-radius: 8px;
}

/* ===== DONATE PAGE ===== */
.donate-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.amount-btn {
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-family: var(--font-th);
}

.amount-btn:hover,
.amount-btn.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.payment-method {
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.payment-method.selected {
  border-color: var(--primary);
  background: #EFF4FF;
}

.payment-method img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin: 0 auto 6px;
}

.payment-method span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  display: block;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
}

.modal-close:hover {
  color: var(--text);
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}

.auth-tab {
  padding: 10px 20px;
  background: none;
  border: none;
  font-family: var(--font-th);
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  background: var(--text);
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  max-width: 320px;
  box-shadow: var(--shadow-hover);
  animation: slideUp 0.3s ease;
}

.toast.success {
  background: var(--green);
}

.toast.error {
  background: var(--red);
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== LOADING ===== */
.loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e8f0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb-sep {
  color: var(--border);
}

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, #0F2460, #1B3A8C);
  color: #fff;
  padding: 60px 0 48px;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 10px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.stats-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.stat-item {
  padding: 24px 16px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-en);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== FOOTER ===== */
#site-footer {
  background: #0F1F4A;
  color: rgba(255, 255, 255, 0.8);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding: 60px 20px 40px;
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  font-family: var(--font-en);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-light);
  color: #fff;
}

.footer-links h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

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

.footer-links a:hover {
  color: #fff;
}

.footer-contact h4 {
  color: #fff;
  margin-bottom: 16px;
}

.footer-contact p {
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.btn-donate-footer {
  background: var(--red);
  color: #fff;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.btn-donate-footer:hover {
  background: #EF4444;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 768px) {

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

  .stats-bar-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .donate-amounts {
    grid-template-columns: repeat(2, 1fr);
  }

  .payment-methods {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 20px 28px;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

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

@media (max-width: 1400px) {
  #main-nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: #fff;
    padding: 24px 20px;
    overflow-y: auto;
    z-index: 99;
  }

  #main-nav.open {
    display: block;
  }

  #nav-list {
    flex-direction: column;
    gap: 4px;
  }

  #nav-list a {
    padding: 12px;
    font-size: 1rem;
    display: block;
  }

  .hamburger {
    display: flex;
  }

  .header-actions .btn-outline {
    display: none;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
  }
  
  #main-nav {
    margin: 0;
  }
}

@media (max-width: 480px) {
  .stats-bar-inner {
    grid-template-columns: 1fr 1fr;
  }

  .donate-amounts {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-box {
    padding: 36px 20px;
  }
}

/* ===== NEWS PORTAL (NEWSPAPER STYLE) ===== */
.news-portal-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.news-hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  aspect-ratio: 21/9;
  background: #000;
  display: block;
}

.news-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 0.5s ease;
}

.news-hero-slider:hover .news-hero-img {
  transform: scale(1.03);
}

.news-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: #fff;
}

.news-hero-content h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 12px;
}

.news-hero-content .meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  gap: 16px;
}

.sidebar-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 3px solid var(--primary);
  padding-bottom: 8px;
  margin-top: 40px;
}

.news-main .sidebar-title {
  margin-top: 0;
}

.trending-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.trending-item:last-child {
  border-bottom: none;
}

.trending-img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.trending-info h4 {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}

.trending-info .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.news-tag {
  background: var(--accent);
  color: var(--text);
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}



/* ===== EDITORIAL COMPONENTS ===== */
.serif {
  font-family: 'Inter', serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.editorial-hero {
  background: #fff !important;
  color: var(--text) !important;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.editorial-hero h1 {
  color: var(--primary);
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.cat-tab {
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cat-tab.active,
.cat-tab:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.editorial-card {
  border: none;
  box-shadow: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding-bottom: 24px;
}

.editorial-card:hover {
  transform: none;
  box-shadow: none;
}

.editorial-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 16px;
}

.editorial-card .card-img {
  height: 200px;
  transition: transform 0.5s ease;
}

.editorial-card:hover .card-img {
  transform: scale(1.05);
}

.mt-5 {
  margin-top: 40px !important;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.font-bold {
  font-weight: 700;
}

.btn-danger-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}

.btn-danger-outline:hover {
  background: var(--red);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: var(--text);
}

.btn-accent:hover {
  background: #E5B810;
}

/* ===== PREMIUM GALLERY & TIMELINE ===== */
.timeline-wrapper {
  position: relative;
  padding-left: 0;
}

.timeline-section {
  position: relative;
}

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

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.gallery-item-overlay h4 {
  color: #fff;
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.gallery-item-overlay small {
  color: rgba(255,255,255,0.7);
}

.gallery-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}

/* Animations */
@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Category Tabs Adjustment */
.gallery-filters {
  display: flex;
  justify-content: center;
}

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

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }
  
  .page-hero h1 {
    font-size: 2.5rem !important;
  }
}

/* ===== ADMIN UI ENHANCEMENTS ===== */
.unread-row {
  background-color: #FFF9E6 !important; /* Soft gold for unread */
  position: relative;
}

.unread-row td:first-child {
  border-left: 4px solid var(--accent);
}

.unread-row strong {
  color: var(--primary);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-new, .badge-pending {
  background: #FEF3C7;
  color: #92400E;
}

.badge-read, .badge-approved {
  background: #D1FAE5;
  color: #065F46;
}

.badge-archived, .badge-rejected {
  background: #F3F4F6;
  color: #374151;
}

.badge-active {
  background: #DBEAFE;
  color: #1E40AF;
}

/* ===== ENHANCED VOLUNTEER FORM STYLES ===== */
.photo-preview {
  width: 150px;
  height: 150px;
  border: 2px dashed var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  background: #f9fafb;
  transition: var(--transition);
  text-align: center;
  color: var(--text-muted);
}

.photo-preview:hover {
  border-color: var(--primary);
  background: #fff;
  color: var(--primary);
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f3f4f6;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.checkbox-item:hover {
  background: #e5e7eb;
}

.checkbox-item input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}