/* Public site redesign system */
.site-shell {
  background: #f4f7fb;
}

/* remove top padding so hero touches the navbar */
.site-shell.py-5 {
  padding-top: 0 !important;
}

.page-hero {
  position: relative;
  overflow: hidden;
  /* break out of .container to go full-width */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: 0;
  border-radius: 0;
  background:
    /* very faint grid — barely visible texture */
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px),
    /* radial blobs — slightly larger and softer */
    radial-gradient(circle 320px at 85% 15%, rgba(66,165,245,0.22) 0%, transparent 70%),
    radial-gradient(circle 280px at 8% 85%, rgba(100,181,246,0.16) 0%, transparent 70%),
    radial-gradient(circle 200px at 45% -5%, rgba(144,202,249,0.14) 0%, transparent 70%),
    radial-gradient(circle 150px at 92% 75%, rgba(187,222,251,0.10) 0%, transparent 70%),
    radial-gradient(circle 180px at 60% 100%, rgba(30,136,229,0.12) 0%, transparent 70%),
    /* base gradient — deep midnight blue */
    linear-gradient(135deg, #020b1a 0%, #0c2340 25%, #0d3b66 50%, #10456e 70%, #155d8a 90%, #1a6fa0 100%);
  background-size:
    60px 60px,
    60px 60px,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%;
  color: #fff;
  padding: 80px 48px 72px;
  margin-bottom: 36px;
  box-shadow: 0 8px 40px rgba(13, 71, 161, 0.25);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* inner text container to keep content aligned with page grid */
.page-hero > * {
  max-width: 1140px;
  width: 100%;
}

/* abstract organic blob - top right */
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -50px;
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, rgba(66,165,245,0.14), rgba(144,202,249,0.06));
  border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
  transform: rotate(15deg);
  pointer-events: none;
  animation: heroFloat 20s ease-in-out infinite;
}

/* abstract organic blob - bottom left */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -70px;
  left: -40px;
  width: 340px;
  height: 340px;
  background: linear-gradient(225deg, rgba(30,136,229,0.12), rgba(100,181,246,0.05));
  border-radius: 55% 45% 50% 50% / 40% 55% 45% 60%;
  transform: rotate(-20deg);
  pointer-events: none;
  animation: heroFloat 25s ease-in-out infinite reverse;
}

@keyframes heroFloat {
  0%, 100% { transform: rotate(15deg) translate(0, 0); }
  50% { transform: rotate(18deg) translate(10px, -8px); }
}

.page-hero h1,
.page-hero h2,
.page-hero h3,
.page-hero p {
  position: relative;
  z-index: 1;
  color: #fff;
}

.page-hero h1,
.page-hero h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.page-hero .lead {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  max-width: 700px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .page-hero {
    padding: 52px 20px 48px;
    min-height: 200px;
    border-radius: 0;
  }
  .page-hero h1,
  .page-hero h2 {
    font-size: 1.6rem;
  }
  .page-hero .lead {
    font-size: 1rem;
  }
}

.page-section {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  padding: 28px;
}

.site-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 8px;
}

.site-section-subtitle {
  color: #445658;
  margin-bottom: 20px;
}

.site-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.site-card .card-body {
  padding: 1.2rem;
}

.site-sidebar {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.site-sidebar .sidebar-title {
  margin-bottom: 12px;
  font-weight: 700;
  color: #000000;
}

.site-list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-list-clean li {
  border-bottom: 1px solid #f1f5f9;
  padding: 10px 0;
}

.site-list-clean li:last-child {
  border-bottom: none;
}

.site-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 600;
}

.site-media-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.site-search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.site-search-row .form-control {
  flex: 1;
  min-width: 220px;
}

.site-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 20px;
  color: #64748b;
  text-align: center;
  background: #f8fafc;
}

.site-detail-content {
  color: #334155;
  line-height: 1.8;
}

.site-stacked > * + * {
  margin-top: 14px;
}

@media (max-width: 992px) {
  .page-hero {
    padding: 36px 24px;
    margin-bottom: 22px;
  }

  .page-section {
    padding: 20px;
  }

  .site-media-thumb {
    height: 190px;
  }
}

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

.site-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.site-brand .brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #cd5b13;
  line-height: 1;
}

.site-brand .brand-subtitle {
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1;
}

#topbar {
  background: #020912;
  color: #e5e7eb;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

#topbar .contact-info i,
#topbar .contact-info i a,
#topbar .contact-info i span {
  color: #e5e7eb;
}

#topbar .contact-info i {
  color: #cd5b13;
}

#header {
  background: rgba(255, 255, 255, 0.98);
}

.navbar .btn-donate {
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
}

#footer {
  background: #020912;
  color: #cbd5e1;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

#footer .footer-top {
  padding-top: 56px;
  padding-bottom: 26px;
}

#footer h3,
#footer h4,
#footer h5,
#footer p,
#footer a,
#footer li,
#footer strong {
  color: #cbd5e1;
}

#footer a:hover {
  color: #f8fafc;
}

#footer .footer-links ul li {
  border-bottom: 1px dashed rgba(148, 163, 184, 0.2);
  padding: 8px 0;
}

#footer .footer-links ul li:last-child {
  border-bottom: none;
}

#footer .social-links a {
  background: #0a1628;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

#footer .social-links a:hover {
  background: #cd5b13;
  border-color: #cd5b13;
}

.impact-modal .modal-content {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.28);
}

.impact-modal .modal-header {
  background: linear-gradient(to left, #f59e0b, #cd5b13);
  color: #f8fafc;
  padding: 1rem 1.25rem;
  border-bottom: 0;
}

.impact-modal .modal-body {
  background: #f8fafc;
  padding: 1.25rem;
}

.impact-modal .modal-title {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.impact-modal .summary-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  height: 100%;
}

.impact-modal .summary-card h6 {
  margin-bottom: 8px;
  color: #000000;
  font-weight: 700;
}

.impact-modal .summary-card p,
.impact-modal .summary-card li {
  color: #475569;
  font-size: 0.92rem;
}

.impact-modal .summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.impact-modal .summary-list li {
  border-bottom: 1px dashed #cbd5e1;
  padding: 6px 0;
}

.impact-modal .summary-list li:last-child {
  border-bottom: none;
}

.impact-modal .modal-cta {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
}

.btn-sponsor {
  background: #020912;
  color: #f8fafc;
  border-radius: 999px;
  padding: 7px 12px;
  border: 1px solid #1a2a3e;
  font-weight: 700;
}

.btn-sponsor:hover {
  background: #000000;
  color: #ffffff;
}

.home-badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-custom-badge {
  background: linear-gradient(to left, #f59e0b, #cd5b13);
  color: #fff;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 18px rgba(205, 91, 19, 0.28);
}

.home-custom-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(205, 91, 19, 0.32);
}

.home-read-more-link {
  background-color: transparent;
  border: 1px solid #fff;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.home-read-more-link:hover {
  background-color: #fff;
  color: #cd5b13;
}

.home-project-header {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1f2937;
}

.home-team-image {
  height: 350px;
  width: 100%;
  object-fit: cover;
}

.home-testimonials-note {
  font-size: 0.95rem;
  color: #e2e8f0;
}

.home-details-content {
  display: none;
  color: #64748b;
  font-size: 0.92rem;
}

.home-toggle-details:checked + label + .home-details-content {
  display: block;
}

.home-toggle-details:checked + label::after {
  content: ' Less';
}

.home-more-btn::after {
  content: ' More';
}

.home-contact-form {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  padding: 1.25rem;
}

.home-sponsor-box {
  width: 140px;
  height: 100px;
  overflow: hidden;
}

.home-sponsor-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* High-contrast homepage refresh */
.site-shell #why-us {
  background: #020912;
}

.site-shell #why-us .content {
  background: #040e1c;
  border: 1px solid #0a1628;
  border-radius: 14px;
  padding: 28px;
}

.site-shell #why-us h3,
.site-shell #why-us p {
  color: #e5e7eb;
}

.site-shell #impact-overview {
  background: #e2e8f0;
}

.site-shell #impact-overview .section-title h2 {
  color: #000000;
}

.site-shell #impact-overview .section-title p {
  color: #445658;
}

.site-shell #chairman-message,
.site-shell #translation-projects,
.site-shell #team,
.site-shell #contact,
.site-shell #sponsors {
  background: #f8fafc;
}

.site-shell #chairman-message .content,
.site-shell #translation-projects .icon-boxes,
.site-shell #team .member,
.site-shell #contact .php-email-form,
.site-shell #contact .info-box,
.site-shell #sponsors .container {
  color: #1f2937;
}

.site-shell .section-title h2 {
  color: #000000;
}

.site-shell .section-title p {
  color: #445658;
}

.site-shell #translation-projects .icon-box,
.site-shell #contact .info-box,
.site-shell #team .member,
.site-shell #sponsors .home-sponsor-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.site-shell #translation-projects .title a,
.site-shell #translation-projects .description,
.site-shell #team .member-info h4,
.site-shell #team .member-info span,
.site-shell #contact .info-box h3,
.site-shell #contact .info-box p,
.site-shell #sponsors small {
  color: #1f2937;
}

.site-shell #testimonials {
  background: linear-gradient(160deg, #020912 0%, #0a1628 100%);
}

.site-shell #testimonials .section-title h2,
.site-shell #testimonials .section-title p,
.site-shell #testimonials .testimonial-item h3,
.site-shell #testimonials .testimonial-item h4,
.site-shell #testimonials .testimonial-item p {
  color: #f8fafc;
}

.site-shell #testimonials .testimonial-item {
  background: rgba(2, 9, 18, 0.66);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.site-shell #contact .php-email-form button[type=submit] {
  background: #cd5b13;
  color: #fff;
  border: 0;
}

.site-shell #contact .php-email-form button[type=submit]:hover {
  background: #a34810;
}

.site-shell .home-testimonials-note {
  color: #cbd5e1;
}

.home-sponsor-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.audio-modal-search .form-control {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  min-height: 44px;
}

.audio-modal-search .form-control:focus {
  border-color: #cd5b13;
  box-shadow: 0 0 0 0.2rem rgba(205, 91, 19, 0.15);
}

.audio-modal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audio-modal-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.audio-modal-meta h6 {
  color: #000000;
  font-weight: 700;
}

.audio-modal-meta small {
  color: #64748b;
}

.audio-modal-player-wrap {
  width: 100%;
}

.audio-modal-player {
  width: 100%;
}

/* FAQ accordion — orange accents */
.site-shell .accordion-button {
  font-weight: 600;
  color: #1e293b;
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: none;
}

.site-shell .accordion-button:not(.collapsed) {
  color: #cd5b13;
  background: #fff7f0;
  box-shadow: none;
}

.site-shell .accordion-button:focus {
  border-color: rgba(205, 91, 19, 0.3);
  box-shadow: 0 0 0 0.2rem rgba(205, 91, 19, 0.12);
}

.site-shell .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23cd5b13'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.site-shell .accordion-body {
  color: #475569;
  line-height: 1.7;
  padding: 8px 20px 20px;
}

.site-shell .accordion-item.site-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

/* Shared modern category sidebar (News + Projects, list + detail) */
.modern-sidebar {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.modern-sidebar .sidebar-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 16px;
  margin-bottom: 0;
  border-bottom: none;
 
}

.modern-sidebar .sidebar-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f0f5ff;
  color: #1565c0;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.modern-sidebar .sidebar-title {
  color: #1e293b;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.modern-sidebar .sidebar-subtitle {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.4;
}

.modern-sidebar .category-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
}

.modern-sidebar .category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.2s ease;
}

.modern-sidebar .category-item:hover {
  background: #f0f5ff;
  border-color: #dbeafe;
  transform: translateX(3px);
}

.modern-sidebar .category-item:hover .category-dot {
  transform: scale(1.3);
}

.modern-sidebar .category-item:hover .category-name {
  color: #cd5b13;
}

.modern-sidebar .category-content {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.modern-sidebar .category-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #1976d2;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.modern-sidebar .category-name {
  color: #334155;
  font-weight: 500;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.modern-sidebar .category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  border-radius: 6px;
  padding: 0 7px;
  background: #eff6ff;
  color: #1565c0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.modern-sidebar .category-item:hover .category-count {
  background: #cd5b13;
  color: #fff;
}

/* =========================================================
   MOBILE RESPONSIVE — 576px and below
========================================================= */

@media (max-width: 576px) {
  .page-hero {
    padding: 28px 18px;
    margin-bottom: 16px;
    border-radius: 12px;
  }

  .page-hero h1 {
    font-size: 1.5rem;
  }

  .page-hero h2 {
    font-size: 1.3rem;
  }

  .page-section {
    padding: 16px;
  }

  .site-section-title {
    font-size: 1.2rem;
  }

  .site-media-thumb {
    height: 160px;
  }

  .site-search-row .form-control {
    min-width: 0;
    width: 100%;
  }

  .site-card .card-body {
    padding: 1rem;
    word-break: break-word;
  }

  .home-team-image {
    height: 220px;
  }

  .home-sponsor-box {
    width: 110px;
    height: 80px;
  }

  .home-contact-form {
    padding: 1rem;
  }

  .modern-sidebar {
    position: static;
    margin-bottom: 20px;
  }

  /* Ensure images never overflow */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Prevent horizontal overflow */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
