/* ================== RESET & VARIABLES ================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brand-red: #a00615;
  --brand-red-dark: #820410;
  --brand-accent: #f39c12;
  --brand-black: #111;
  --brand-bg: #fff;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.6);
}



  body {
  font-family: 'Arial Narrow', sans-serif;
  color: #fff;              /* keep your white text */
  margin: 0;
  min-height: 100vh;

  background-image: url("../images/rdyellow.jpg");
  background-repeat: repeat;    /* makes it tile */
  background-attachment: fixed; /* optional: keeps it fixed while scrolling */
  background-size:cover;        /* keeps original size of the tile */
}



 .menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 10;
}
 

/* Container for squares */
.data-squares {
  display: flex;
  justify-content: center;
  gap: 15px;       /* smaller gaps between squares */
  margin: 20px;
  flex-wrap: wrap;  /* allows wrapping on very small screens */
}

/* Individual square */
.square {
  flex: 0 1 150px;         /* smaller fixed size with flexibility */
  aspect-ratio: 1 / 1;     /* keeps it square */
  border: 2px solid #000;
  padding: 10px;            /* less padding = tighter text */
  background: #f1e7c5;
  color: #a00615;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.square:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* MOBILE: three in a row on small screens */
@media (max-width: 768px) {
  .data-squares {
    flex-wrap: nowrap;     /* prevents stacking */
    overflow-x: auto;      /* allow horizontal scroll if needed */
    justify-content: space-between;
  }

  .square {
    flex: 0 0 30%;         /* each square takes ~1/3 width */
    min-width: 100px;      /* ensures it doesn’t shrink too much */
  }
}


/* ================== TYPOGRAPHY ================== */
h2 a,
p a {
  color: var(--brand-black);
  text-decoration: underline;
  transition: color 0.2s ease;
}

h2 a:hover,
p a:hover {
  color: var(--brand-accent);
}

h2 a:visited,
p a:visited {
  color: var(--brand-black);
}

p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #fff;
  text-shadow: 1px 1px 4px var(--shadow-dark);
  margin-bottom: 1rem;
}

/* ================== HEADER / NAVBAR ================== */
header {
  width: 100%;
  background: var(--brand-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px var(--shadow-light);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo a {
  font-size: 1.2rem;
  font-weight: bold;
  color: #000;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links li a:hover {
  color: var(--brand-accent);
}

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--brand-red);
}

/* -------- MOBILE NAV -------- */
@media (max-width: 768px) {
  .hamburger { display: block; }

  .menu-text {
    font-size: 1rem;
    margin-left: 6px;
    color: #555;
    vertical-align: middle;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    margin-top: 1rem;
  }

  .nav-links.active { display: flex; }

  .nav-links li { margin: 0.5rem 0; }

  .nav-links li a { font-size: 1.2rem; }
}





/* ================== HERO SECTION ================== */
#hero {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-text h2 {
  font-size: 2.2rem;
  font-weight: bold;
  color: #fff;
  line-height: 1.4;
  text-align: left;
  text-shadow: 2px 2px 6px var(--shadow-dark);
}

.hero-image {
  flex: 1;
  text-align: right;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.hero-cta {
  text-align: center;
  margin: 20px 0 40px;
}

.hero-video-wrapper { margin-top: 20px; }

.hero-video-wrapper video {
  width: 100%;
  border-radius: 8px;
}

/* Mobile Hero */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h2 { margin-bottom: 20px; }
  .hero-image { text-align: center; }
}

/* ================== POSTCODES DATA ================== */
#postcodes-data {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 60px 20px;
}

.data-video,
.map-image {
  flex: 1 1 300px;
  margin: 10px;
}

.data-video video,
.map-image img {
  width: 100%;
  border-radius: 8px;
}

.map-image img { max-width: 500px; }

@media (max-width: 768px) {
  #postcodes-data {
    flex-direction: column;
    align-items: center;
    padding: 40px 15px;
  }

  .data-video, .map-image { margin: 10px 0; }
}

/*===========my story background ===========*/

body.my-story-page {
  background-image: url('../images/roadtxt.png'); /* your new background */
  background-size: cover;     /* covers the whole page */
  background-repeat: no-repeat;
  background-position: center;
  color: #fff;                /* optional: default text color */
}




/* ================== MENTAL HEALTH VIDEO ================== */
.mental-wrapper {
  text-align: center;
  margin: 40px 0;
}

.mh-video iframe {
  width: 100%;
  max-width: 560px;
  height: 315px;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .mh-video iframe { max-width: 100%; height: auto; }
}

/* ================== BUTTONS & INTERACTIVE ================== */
.postcode-label {
  background: rgba(255,255,255,0.9);
  color: var(--brand-red);
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 20px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}

.postcode-button,
.cta-button,
.back-home-button {
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid #000;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff, #eee);
  color: #000;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
}

.postcode-button {
  font-size: 1.1rem;
  padding: 14px 26px;
  box-shadow: 2px 2px 0 #000;
}

.postcode-button:hover:not(:disabled),
.postcode-button:focus-visible {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
  box-shadow: 2px 2px 6px rgba(160,6,21,0.5);
  transform: translateY(-1px);
}

.postcode-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(100%);
}

.cta-button {
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 4px;
}

.cta-button:hover {
  background: linear-gradient(180deg, #eee, #ddd);
  color: var(--brand-red);
  border-color: var(--brand-red);
  transform: translateY(-2px);
}

.back-home-wrapper { text-align: center; margin: 40px 0 20px; }

.back-home-button {
  padding: 14px 28px;
  font-size: 1.1rem;
  box-shadow: 2px 2px 0 #444;
}

.back-home-button:hover {
  background: linear-gradient(180deg, #eee, #ddd);
  color: var(--brand-red);
  border-color: var(--brand-red);
  transform: translateY(-2px);
}

/* ================== FLAGS ================== */
.region-flags {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px auto;
}

.region-flags img {
  width: 60px;
  height: 60px;
  cursor: pointer;
  border-radius: 50%;
  border: 2px solid #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.region-flags img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* ================== FEEDBACK ================== */
.feedback-section {
  background: rgba(243,242,239,0.9);
  border: 3px solid var(--brand-red);
  border-radius: 10px;
  padding: 20px;
  margin: 40px auto;
  max-width: 800px;
  text-align: center;
}

.feedback-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--brand-red);
}

.feedback-section label {
  font-size: 1.1rem;
  font-weight: bold;
  color: #000;
}

.feedback-section input,
.feedback-section textarea {
  width: 90%;
  max-width: 500px;
  margin: 10px 0 20px;
  padding: 10px;
  border-radius: 8px;
  border: 3px solid var(--brand-red);
  font-size: 1rem;
  resize: vertical;
}

.feedback-section button {
  font-size: 1.3rem;
  padding: 12px 24px;
  background-color: var(--brand-red);
  color: #444;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.feedback-section button:hover {
  background-color: var(--brand-red-dark);
  transform: translateY(-1px);
}


.feedback-list-item {
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 5px;
  color: #000; /* <-- change text color here */
  background-color: #f9f9f9; /* optional: set a light background */
}


#messagesContainer {
  max-width: 600px;
  margin: 30px auto 0;
  text-align: left;
}

#messagesContainer h2 { color: var(--brand-red); }

#messagesList {
  list-style: none;
  padding: 0;
}

#messagesList li {
  border-bottom: 2px solid var(--brand-red);
  padding: 12px 0;
  font-size: 1.1rem;
}

/*============================donators wall=======================

/* Page header full-width */
.page-title {
  width: 100%;
  text-align: center;
  margin: 40px 0 20px;
  font-size: 2rem;
  color: #fff;              /* or whatever color you prefer */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* Make main image larger and responsive */
.map-image {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.map-image img {
  width: 90%;        /* makes image take up most of the container */
  max-width: 1000px; /* optional max width */
  height: auto;
  border-radius: 8px;
}

/* Optional: adjust section text */
#postcodes-data p {
  text-align: center;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 20px;
}


/* ================== FINAL CTA SECTION ================== */
#footer-cta {
  text-align: center;
  padding: 60px 20px;
  background: #fff; /* optional light background for contrast */
  color: var(--brand-black);
}

#footer-cta h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 30px;
  color: var(--brand-red);
}

.final-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.final-section .final-image {
  max-width: 250px;
  height: auto;
  border-radius: 8px;
}

.cta-button.big {
  padding: 16px 32px;
  font-size: 1.2rem;
}

/* Text paragraph */
#footer-cta p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 20px auto;
  line-height: 1.6;
}

/* Video */
.video-wrapper {
  max-width: 800px;
  margin: 20px auto;
}

.video-wrapper iframe {
  width: 100%;
  height: 450px;
  border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .final-section {
    gap: 15px;
  }

  .video-wrapper iframe {
    height: 300px;
  }
}

/* ================== MINI FOOTER ================== */
.mini-footer {
  background: rgba(255, 255, 255, 0.9); /* subtle white background */
  color: var(--brand-red);
  text-align: center;
  font-size: 0.9rem;
  padding: 12px 20px;
  border-top: 2px solid var(--brand-red);
}

.mini-footer p {
  margin: 0;
  color: var(--brand-red);
}

.mini-footer a {
  color: var(--brand-red);
  text-decoration: none;
  font-weight: bold;
}

.mini-footer a:hover {
  text-decoration: underline;
}
