/* Components: hero blocks, buttons, contact form, gallery, news, etc. */

/* Images */
img {
  max-width: 100%;
  height: auto;
}

/* Content photos (keep them from feeling oversized on wide screens) */
img.content-photo {
  width: 100%;
  max-width: 720px;
  display: block;
  margin: 1rem auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.difference {
  margin-top: 0.5rem;
  padding: 1.5rem;
  background: #f5f8ff;
  border-radius: 8px;
  text-align: center;
}

.difference h1 {
  margin-bottom: 0.25rem;
}

.difference p {
  margin: 0;
  font-size: 1.1rem;
}

.headerbutton{
  background: var(--brand-red);
  color:#fff;
  border:none;
  border-radius:999px;
  padding:0.55rem 1.25rem;
  font-size:1rem;
  font-weight:700;
  letter-spacing:0.3px;
  box-shadow: var(--shadow);
}


.headerbutton:hover{
  background: var(--brand-red-dark);
  color:#fff;
}


.headerbutton:active {
  background-color: #3e8e41;
  box-shadow: 0 2px #666;
  transform: translateY(2px);
}

.contactdetails {
  margin: 1rem 0;
  border-radius: 10px;
  background-color: #f5f5f5;
  padding: 1rem;
}

.contactdetails p, .contactdetails h3 {
  margin: 0 0 0.5rem 0;
}

.contact-form {
  max-width: 600px;
  margin-top: 1rem;
}

.form-row {
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
}

.form-row label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.form-row input,
.form-row textarea {
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  font: inherit;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  visibility: hidden;
}

/* Gallery */

.gallerydetails {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  background-color: #f5f5f5;
}

.gallerynav {
  margin-bottom: 1rem;
  text-align: left;
}

.galleryselector {
  font-size: 1rem;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallerycolumn {
  flex: 1 1 calc(25% - 10px);
  margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
  .gallerycolumn {
    flex: 1 1 50%;
  }
}

@media screen and (max-width: 480px) {
  .gallerycolumn {
    flex: 1 1 100%;
  }
}

/* News */

.news-filters {
  margin: 1rem 0 2rem 0;
  padding: 0.75rem;
  border-radius: 6px;
  background: #f5f5f5;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.news-filters label {
  font-size: 0.9rem;
}

.news-filters select,
.news-filters input[type="text"] {
  margin-left: 0.35rem;
  padding: 0.25rem 0.4rem;
}

.news-clear-filters {
  margin-left: 0.5rem;
  font-size: 0.85rem;
}

.news-year {
  margin-top: 2rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.25rem;
}

.news-item {
  margin: 1rem 0 1.5rem 0;
}

.news-meta {
  font-size: 0.85rem;
  color: #555;
}

/* Sidebar subscribe */
.sidenav-subscribe {
  margin-top: 1.5rem;
  padding: 1rem 16px 0 40px; /* match nav link indent */
  color: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.sidenav-subscribe h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.sidenav-subscribe .muted {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.subscribe-form .subscribe-row{
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.subscribe-form input[type="email"]{
  flex: 1 1 auto;
  min-width: 0; /* prevent overflow on narrow screens */
  padding: 0.5rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.subscribe-form button{
  flex: 0 0 auto;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

@media (max-width: 360px){
  .subscribe-form .subscribe-row{
    flex-direction: column;
    align-items: stretch;
  }
}

/* Testimonials */

.testimonial-list {
  margin-top: 1rem;
}

.testimonial-item {
  margin-bottom: 1.5rem;
  overflow-wrap: anywhere;
}

.testimonial-item p {
  margin-bottom: 0.4rem;
}

.divider {
  border: 0;
  border-top: 1px solid rgba(0,0,0,0.2);
  margin: 1.25rem 0;
  width: 100%;
  max-width: 100%;
}

/* Simple page spacing */

.page {
  padding-top: 1rem;
  padding-bottom: 2rem;
}


/* Home: hero, latest news preview, donate block */
.hero-card{
  padding: 1.25rem;
  background: var(--brand-purple-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.hero-subtitle{ color: var(--muted); margin-top: 0.25rem; }
.hero-note{ color: var(--muted); margin-top: 0.5rem; }
.hero-image{ 
  max-height: 150px; }

/* Hero/brand banner image */
.hero-image {
  width: 100%;
  max-width: 500px;
  display: block;
  margin: 0.5rem auto 1rem auto;
}


.home-latest-news, .home-donate{
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.news-preview-list{
  list-style:none;
  padding-left:0;
  margin: 1rem 0;
  display:grid;
  gap: 1rem;
}
.news-date{
  margin: 0 0 0.25rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.donate-actions{
  display:flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.btn{
  display:inline-block;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  text-decoration:none;
  font-weight:700;
  border: none;
  cursor: pointer;
}
.btn-donate{
  background: var(--brand-red);
  color:#fff;
}
.btn-donate:hover{
  background: var(--brand-red-dark);
  color:#fff;
  text-decoration:none;
}
.btn-outline{
  border: 2px solid var(--brand-purple);
  color: var(--brand-purple);
  background: transparent;
}
.btn-outline:hover{
  background: var(--brand-purple-soft);
  color: var(--brand-purple-dark);
  text-decoration:none;
}
.donate-small{
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}


/* News archive polish */
.news-filters{
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.news-filters input[type="text"],
.news-filters select{
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  min-width: 180px;
}

.news-list{
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
  display: grid;
  gap: 1rem;
}

.news-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.news-card h3{
  margin-top: 0;
}

.news-meta{
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.5rem 0;
}

.news-article{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.news-article 
.news-article figure{
  margin: 1rem 0;
}

.news-article figcaption{
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

article.news-card{ display:block; }


/* Print-friendly articles/pages */
@media print{
  .layout-sidebar, .site-header, .site-footer, .sidenav, .headerbutton{ display: none !important; }
  body{ background: #fff !important; }
  .news-article, .news-card, .home-latest-news, .home-donate, .hero-card{
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
  a{ color: #000 !important; text-decoration: underline; }
}

/* Cookie consent banner (minimal, accessible) */
.cookie-banner{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  background: #f5f5f5;
  border-top: 1px solid #ddd;
  z-index: 9999;
}

.cookie-banner p{ margin: 0 0 0.75rem 0; }

.cookie-banner__actions{
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Make the "Manage cookies" action look like a low-emphasis link (not a button) */
.cookie-banner__manage{
  align-self: center;
  padding: 0.25rem 0.1rem;
  font-weight: 600;
  text-decoration: underline;
}

.cookie-banner__manage:hover{
  text-decoration: none;
}

/* Donate page layout: compact provider cards into columns */
.donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.donate-grid .card {
  height: 100%;
}

.donate-grid .btn,
.donate-grid .btn-primary {
  width: 100%;
  text-align: center;
}


/* === History page polish (scan-friendly, minimal) === */
.page-history .history-hero { margin-top: 1rem; }
.page-history .history-intro { max-width: 70ch; }
.page-history .history-sections { margin-top: 1.25rem; display: grid; gap: 1rem; }

.page-history details.history-section {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
}


.page-history details.history-section > summary strong {
  display: inline-block;
  padding-right: 0.25rem;
}

.page-history .history-list {
  margin: 0.75rem 0 0.25rem;
  padding-left: 1.25rem;
}

.page-history .history-list li { margin: 0.35rem 0; }

/* Optional: 2-column lists on wider screens */
@media (min-width: 900px) {
  .page-history .history-list {
    columns: 2;
    column-gap: 2rem;
  }
  .page-history .history-list li { break-inside: avoid; }
}

/* Prevent any accidental horizontal overflow lines when zooming */
main hr, .page hr { max-width: 100%; }

.page-history .history-heading {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}
