:root {
  --black: #000;
  --dark: #111;
  --white: #fff;
  --gray: #ccc;
}

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

/* Base */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Raleway', sans-serif;
  color: var(--white);
}

.top-nav {
  background-color: var(--dark);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-nav ul {
  list-style: none;
  display: flex;
  justify-content: center; /* center the items within UL */
  flex-grow: 1;
  gap: 2rem;
  margin: 0 auto; /* center UL in nav */
  padding: 0;
}

.top-nav .logo {
  margin-right: auto;
}

.top-nav .logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
  user-select: none;
}

.top-nav .logo:hover {
  color: var(--gray);
  border-bottom-color: var(--gray);
}

.top-nav ul {
  list-style: none;
  display: flex;
  margin-left: auto;
  gap: 2rem;
}

.top-nav a {
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 6px;
}

.top-nav a:hover {
  background-color: var(--gray);
  color: var(--black);
}

/* Hero Section */
.hero {
  background: 
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    url('hand.jpg') center/cover no-repeat;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  color: #fff;
}
.hero-overlay {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  max-width: 90%;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.hero h1 {
  font-size: 3rem;
  color: var(--white);
  text-shadow: 1px 1px 2px #000;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.3rem;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.cta-button {
  padding: 0.75rem 1.5rem;
  background-color: var(--white);
  color: var(--black);
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background 0.3s ease-in-out;
  box-shadow: 0 4px 10px rgba(255,255,255,0.1);
}

.cta-button:hover {
  background-color: var(--gray);
  color: var(--black);
}

/* Shared Section Styles */
.mission,
.quotes,
.timeline-section,
.principles {
  background-color: var(--black);
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
}

.mission h2,
.quotes h2,
.timeline-title,
.principles h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.mission p,
.quotes blockquote,
.timeline-content p,
.principles-intro {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--gray);
}

/* Quotes */
.quote-carousel blockquote {
  font-style: italic;
  font-size: 1.2rem;
  position: relative;
  margin: 1rem auto;
  color: var(--white);
}

.quote-carousel blockquote::before,
.quote-carousel blockquote::after {
  content: '“';
  font-size: 2rem;
  color: var(--white);
  position: absolute;
}

.featured-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #ffffff; /* changed to white */
  max-width: 800px;
  margin: 2rem auto;
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-left: 6px solid #e0b07d;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  position: relative;
  text-shadow: 1px 1px 2px #000;
}

.featured-quote::before {
  content: "“";
  font-size: 4rem;
  color: #e0b07d;
  position: absolute;
  top: -10px;
  left: 10px;
  font-family: 'Georgia', serif;
}

.featured-quote footer {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: #fff; /* lighter gray for attribution */
  font-style: italic;
}

.mission-wrapper {
  position: relative;
  background-image: url('community.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 6rem 2rem;
  text-align: center;
  z-index: 0;
}

.mission {
  background-color: rgba(28, 28, 28, 0.85); /* semi-transparent black */
  padding: 4rem 2rem;
  border-radius: 12px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.photo-credit {
  position: absolute;
  bottom: 12px;
  right: 16px;
  color: #000000;         /* solid black */
  font-size: 0.85rem;
  font-style: italic;
  background-color: rgba(255, 255, 255, 0.7); /* optional light background */
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 30px;
  border-left: 4px solid var(--white);
}

.timeline-event {
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-event::before {
  content: '';
  position: absolute;
  left: -11px;
  top: 4px;
  width: 20px;
  height: 20px;
  background-color: var(--white);
  border-radius: 50%;
  border: 3px solid var(--black);
  box-shadow: 0 0 0 2px var(--white);
}

.timeline-date {
  font-weight: bold;
  margin-bottom: 0.3rem;
  color: var(--white);
  font-size: 1.1rem;
  padding-left: 1.5rem;
  display: block;
}

.timeline-content {
  padding: 0.5rem 1rem;
  background: #111;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(255,255,255,0.05);
  text-align: left;
}

.timeline-content h3 {
  color: var(--white);
  margin-top: 0;
}

/* Principle Cards */
.principle-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.principle-card {
  background-color: #111;
  border-left: 6px solid var(--white);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  width: 280px;
  text-align: left;
}

.principle-card h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.principle-card p {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.6;
}

/* Highlighted Terms */
.highlight {
  font-weight: 700;
  color: var(--black);
  background-color: var(--white);
  padding: 0 4px;
  border-radius: 3px;
}

.highlight:hover {
  background-color: var(--gray);
  cursor: help;
}

/* Superscript */
sup {
  font-size: 0.75rem;
  vertical-align: super;
  color: var(--gray);
  font-weight: 600;
  margin-left: 2px;
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 2rem;
  text-align: center;
}

.footer p {
  margin: 0.5rem 0;
}

.social-icons img {
  width: 32px;
  margin: 0 0.5rem;
  filter: brightness(0) invert(1);
  transition: transform 0.2s;
}

.social-icons img:hover {
  transform: scale(1.1);
}

/* Submit CTA */
.submit-container {
  margin-top: 3rem;
  text-align: center;
}

.submit-container p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.submit-btn {
  background-color: var(--white);
  color: var(--black);
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: var(--gray);
  color: var(--black);
}

/* Responsive */
@media (max-width: 768px) {
  .principle-cards {
    flex-direction: column;
    align-items: center;
  }
  .principle-card {
    width: 90%;
  }
  .timeline {
    padding-left: 20px;
  }
}

.recent-news {
  background-color: #ffffff;
  padding: 4rem 2rem;
  text-align: center;
}

.recent-news h2 {
  font-size: 2rem;
  color: #3b2314; /* darker, richer brown */
  margin-bottom: 2rem;
}
.news-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  background-color: #2e1f1a;
  padding: 1.5rem;
  border-radius: 10px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: left;
}

.news-item:hover {
  background-color: #3a2b26;
  transform: translateY(-4px);
}

.news-item a {
  color: #f5e8d3;
  text-decoration: none;
}

.news-item h3 {
  font-size: 1.25rem;
  color: #f5e8d3;
  margin-bottom: 0.5rem;
}

.news-date {
  font-size: 0.9rem;
  color: #b8895b;
}

.why-section {
  background-color: var(--white);
  padding: 6rem 2rem;
  margin: 4rem 0;
}

.why-content {
  max-width: 900px;
  margin: 0 auto;
  color: var(--black);
  line-height: 1.8;
  font-size: 1.1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  background-color: var(--white);
  padding: 3rem;
  border-radius: 12px;
}

.why-content h2 {
  color: #3b2314;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.why-content .highlight {
  background-color: var(--black);
  color: var(--white);
  padding: 0 4px;
  border-radius: 3px;
}

.why-content sup {
  font-size: 0.75rem;
  vertical-align: super;
  color: #777;
  margin-left: 2px;
}

.references {
  font-size: 0.9rem;
  color: #555;
  margin-top: 2rem;
}

.history-cards {
  background-color: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.history-title {
  font-size: 2rem;
  color: #3b2314;
  margin-bottom: 3rem;
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.flip-card {
  background-color: transparent;
  width: 280px;
  height: 280px;
  perspective: 1000px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.flip-front {
  background-size: cover;
  background-position: center;
  color: #fff;
}

.flip-front h3 {
  background-color: rgba(0,0,0,0.6);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 1.25rem;
}

.flip-back {
  background-color: #2e1f1a;
  color: #f5e8d3;
  transform: rotateY(180deg);
  font-size: 0.95rem;
  line-height: 1.5;
}

.resource-section {
  background-color: #ffffff;
  padding: 4rem 2rem;
  text-align: center;
}

.resource-section h2 {
  font-size: 2rem;
  color: #3b2314;
  margin-bottom: 2rem;
}

.resource-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.resource-card {
  background-color: #f8f4f1;
  border-radius: 12px;
  padding: 2rem;
  width: 280px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.resource-card .material-icons {
  font-size: 48px;
  color: #b8895b;
  margin-bottom: 1rem;
}

.resource-card h3 {
  font-size: 1.3rem;
  color: #3b2314;
  margin-bottom: 0.75rem;
}

.resource-card p {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 1rem;
}

.resource-card a {
  color: #b8895b;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.resource-card a:hover {
  color: #a26c3a;
}

.org-links {
  list-style-type: none;
  padding: 0;
  margin-top: 1rem;
}

.org-links li {
  margin-bottom: 0.5rem;
}

.org-links a {
  color: #b8895b;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.org-links a:hover {
  color: #a26c3a;
  text-decoration: underline;
}
