/* Base Variables */
:root {
  --primary-color: #276749; 
  --secondary-color: #f6e05e; 
  --accent-color: #c6f6d5; 
  --text-dark: #1a202c;
  --text-light: #f7fafc;
  --bg-color: #ffffff;
  --bg-alt: #f1f5f9;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-color);
  line-height: 1.7;
  font-size: 16px;
}

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

a {
  color: var(--primary-color);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}

a:hover, a:focus {
  color: #1c4532;
  background-color: var(--secondary-color);
  text-decoration: none;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--text-dark);
  color: var(--text-light);
  padding: 12px 24px;
  z-index: 9999;
  font-weight: bold;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  background: var(--secondary-color);
  color: var(--text-dark);
}

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

/* Layout */
.container {
  width: 100%;
  max-width: 1200px; 
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

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

/* Header & Navigation (Distinct from previous version) */
.site-header {
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md); 
  transition: all 0.3s ease;
}

.site-header:hover {
  box-shadow: var(--shadow-lg); 
}

.header-inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.brand:hover, .brand:focus {
  background-color: transparent;
}

.brand-logo {
  height: 70px;
  border-radius: 4px;
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  border: 2px solid transparent;
  background-color: rgba(226, 232, 240, 0.7); 
  transition: all 0.2s ease;
}

.main-nav a:hover, .main-nav a:focus {
  background-color: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-2px); 
}

.main-nav a[aria-current="page"] {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Hero Section */
.hero {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
  border-bottom: 8px solid var(--secondary-color);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #ecc94b;
  color: var(--text-dark);
}

.btn-secondary {
  background-color: #ffffff; 
  color: var(--primary-color); 
  border-color: #ffffff;
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: #e2e8f0; 
  border-color: #e2e8f0;
  color: var(--primary-color);
}

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

.btn-dark:hover, .btn-dark:focus {
  background-color: #2d3748;
  color: var(--text-light);
}

/* Content Blocks */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.info-panel {
  background: var(--bg-color);
  border-left: 6px solid var(--primary-color);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border-radius: 0 8px 8px 0;
}

.info-panel h2, .info-panel h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.info-panel p {
  margin-bottom: 20px;
}

.info-panel:last-child {
  margin-bottom: 0;
}

/* text and pictures appear together */
.feature-split {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
  margin: 60px 0;
}

.feature-split > * {
  flex: 1;
}

.feature-image {
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

/* Typography and Lists */
.page-title {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary-color);
}

ul.styled-list {
  list-style-type: none;
  margin-top: 15px; 
  margin-bottom: 20px;
}

ul.styled-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}

ul.styled-list li::before {
  content: "→";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Forms */
.form-wrapper {
  background: var(--bg-color);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  max-width: 600px;
  margin: 0 auto;
}

.form-field {
  margin-bottom: 25px;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--accent-color);
}

/* Footer */
.site-footer {
  background-color: var(--text-dark);
  color: var(--text-light);
  padding: 40px 0;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-content p {
  opacity: 0.8;
  font-size: 0.9rem;
}



/* Menu Button */
.menu-button {
  display: none;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.2s;
}

.menu-button:hover {
  background-color: #1c4532;
}


@media (max-width: 850px) {
  

  .header-inner {
    flex-wrap: wrap;
  }


  .brand {
    flex: 1; 
  }

  
  .brand-logo {
    height: 50px; 
  }
  .brand-text {
    font-size: 1.2rem;
  }


  .menu-button {
    display: block;
  }


  .main-nav {
    width: 100%; 
    display: none; 
    margin-top: 15px;
  }

  .main-nav ul {
    flex-direction: column; 
    gap: 5px;
  }

  .main-nav a {
    width: 100%; 
    text-align: center;
    padding: 12px;
  }

  
  #menu-toggle-checkbox:checked ~ .main-nav {
    display: block;
    animation: fadeIn 0.3s ease-in-out; 
  }

  .feature-split {
    flex-direction: column;
    margin: 30px 0;
  }
  
  .feature-split > * {
    width: 100%; 
  }


  .hero h1 {
    font-size: 1.8rem;
  }
  .hero {
    padding: 40px 0;
  }
}


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



/* index page */

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

  margin-top: 60px; 
}


.feature-text-wide {
  flex: 1.5;
}


.lead-text {
  font-size: 1.1rem;
}


.mb-20 {
  margin-bottom: 20px;
}


.footer-logo {
  height: 50px;
  border-radius: 4px;
  opacity: 0.9;
}


.diagram-img {
  max-width: 100%; 
  height: auto;
  margin: 30px auto 0; 
  display: block;
  border-radius: 8px; 
  box-shadow: var(--shadow-sm); 
  border: 1px solid var(--border-color); 
}


/* provider page*/

.page-description {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 800px;
}


.mt-10 {
  margin-top: 10px;
}


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

.btn-outline-primary:hover, 
.btn-outline-primary:focus {
  background-color: var(--primary-color);
  color: var(--text-light);
}


.section-heading {
  color: var(--primary-color);
  margin-bottom: 20px;
}


.text-center-block {
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}


/* food aid map */
.map-wrapper {
  max-width: 600px; 
  margin: 0 auto; 
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease; 
}

.map-wrapper:hover {
  transform: scale(1.02); 
  box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}


.map-img-resized {
  width: 100%;
  height: auto;
  display: block;
}

.w-100 {
  width: 100%;
}



/* Donations page */


.mt-0 {
  margin-top: 0;
}


.mb-30 {
  margin-bottom: 30px;
}


.flex-1 {
  flex: 1;
}

.flex-1-2 {
  flex: 1.2;
}


.donation-item {
  margin-bottom: 25px;
}


.donation-item h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;


border-bottom: 2px solid var(--secondary-color); 
  padding-bottom: 2.5px; 
  display: inline-block; 
}


.btn-large {
  font-size: 1.2rem;
  padding: 15px 40px;
}


/* about page */


.lead-text-large {
  font-size: 1.2rem;
}


.mt-20 {
  margin-top: 20px;
}


.mt-60 {
  margin-top: 60px;
}


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


.border-primary {
  border-color: var(--primary-color) !important;
}


.partner-logos-wrap {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}


.partner-logo-md {
  max-height: 120px;
}




/* contact page */


.align-start {
  align-items: flex-start;
}


.flex-1-5 {
  flex: 1.5;
}


.contact-info-card {
  background-color: var(--bg-alt);
  padding: 30px;
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
}


.contact-subtitle {
  margin-bottom: 15px;
  font-size: 1.2rem;
}


.contact-list {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.contact-list li {
  margin-bottom: 10px;
}


.contact-address {
  font-style: normal;
  line-height: 1.6;
  color: var(--text-dark);
}



/* Top Banner */
.simple-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color); 
  color: #ffffff;
  text-align: center;
  padding: 15px 20px;
  font-weight: bold;
  font-size: 1.1rem;
  z-index: 9999;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  
 
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out; 
}


.simple-banner:target {
  transform: translateY(0);
}


.close-banner {
  color: #ffffff;
  text-decoration: none;
  position: absolute;
  right: 20px;
  font-size: 1.5rem;
  line-height: 1;
}

.close-banner:hover {
  color: var(--secondary-color); 
}





.caption-text {
  font-size: 0.85rem; 
  opacity: 0.8;       
  line-height: 1.5;
}




/* footer logo */

.supporter-grid {
  display: flex;
  flex-wrap: wrap; 
  justify-content: center;
  align-items: center;
  gap: 30px; 
  margin: 20px 0 35px;
  max-width: 1000px; 
}


.support-logo {
  max-height: 35px; 
  opacity: 1; 
}


.footer-support-text {
  font-weight: bold;
  color: #ffffff; 
  margin-bottom: 5px;
}

.footer-desc {
  max-width: 800px;
  line-height: 1.5;
  margin-top: 10px;
  opacity: 0.7;
}


@media (max-width: 600px) {
  .support-logo {
    max-height: 25px;
    gap: 15px;
  }
}


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


.supporter-link:hover, 
.supporter-link:focus {
  background-color: transparent;
}