/*
Theme name: Youth Roots
Text Domain: youthroots.info
Version: 1.0.0
Description: A modern story-telling theme with vibrant-youthful design.
Author: Olusola Adebayo
Author URI: https://olusolaadebayo.com
*/

/* ======= CUSTOM FONTS ======= */
@font-face {
    font-family: 'ThunderBlack';
    src: url('../fonts/Thunder-BlackLC.eot');
    src: url('../fonts/Thunder-BlackLC.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Thunder-BlackLC.woff2') format('woff2'),
         url('fonts/Thunder-BlackLC.woff') format('woff'),
         url('../fonts/Thunder-BlackLC.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}


/****************** Design starts here ******************/

/* ======= LAYOUT ======= */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  background-color: #ffffff;
  overflow-x: hidden;
  max-width: 100%;
  
}

.intro-content,
section.Bites-wrapper-2, footer {
  padding-top: 40px;
  padding-bottom: 40px;
  position: relative;
}

.intro-content::before,
section.Bites-wrapper-2::before, footer::before {
  content: '';
  position: absolute;
  top: 0px;
  bottom: 0px;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  z-index: -1;

}

.intro-content::before{
  background-color: #d4b77f;
}

.Bites-wrapper-2::before{
  background-color: #254C11;
}


header, nav, main {
  width: clamp(300px, 100% - 2rem, 1200px);
  border-left: 1px solid var(--border-colour);
  border-right: 1px solid var(--border-colour);
  margin: 0 auto;
  
}


hr{
  background-color: #1a3d0a;
  opacity: 0.3;
  width: 100%;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.Bites-wrapper-1 {
  margin-top: 200px;
  margin-bottom: 200px;
}

/* ===============TYPOGRAPHY STYLING=================*/
body p, h1, h2, h3, a, figcaption, li, aside, small, .toggle-info {
  font-family: "Korolev", Calibri, Arial, Helvetica, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 1.4rem;
  color: #1a3d0a;
}
h1, h2, h3 {
  font-weight: 900;
}

h1 {
  font-size: 4rem;
  color: #1a3d0a;
  text-align: center;
  letter-spacing: -3px;
}


/* Grid section (paragraph-image) */
.grid-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 5px;
  align-items: center;
  max-width: 850px;
  margin: 0;
}

.grid-section p,
.Bites {
  font-family: "korolev", Calibri, Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-style: normal;
  text-transform: uppercase;
  font-size: 10rem;
  line-height: 8rem;
  letter-spacing: -8px;
  color: #254C11;

  /* Responsive width */
max-width: 600px; /* Fixed maximum width */
width: 100%; /* Take full width up to max-width */
margin-left: 0;
margin-right: auto;
margin-top: 2rem;
}


/* Image container for overlap positioning */
.image-container {
    position: relative;
    width: 250px;
    height: 250px;
    justify-self: start;
}

/* Circular image transition styling */
.circular-image-transition {
    position: absolute;
    top: 0;
    left: 0;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform-origin: center center;
    transition: transform 0.5s ease-in-out;
}

h1 + p {
  margin-top: 0.8em;
}
p + p {
  margin-top: 1.6em;
}

p {
  line-height: 1.9rem;
}

/*overides margin-top rule on paragraph-section */
.paragraph-section p + p {
  margin-top: 0;
}

/* =============== NAVIGATION STYLES =================== */

nav ul {
    display: flex;
    justify-content: space-between; /* Spreads items evenly across */
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav li {
    margin: 0;
    padding: 0;
}

nav li a {
    display: block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #254C11;
    font-weight: 500;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    border-radius: 4px;
}

nav li a:hover {
    background-color: #254C11;
    color: #d4b77f;
    transform: translateY(-2px);
}

nav li a:active,
nav li a.active {
    background-color: #254C11;
    color: white;
}

/* nav-hamburger menu design */

.hamburger {
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    box-sizing: border-box;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

 .nav-menu {
    display: block; /* Visible on desktop */
}

/* =============== HEADER STYLES ================== */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
}

/* =============== PARAGRAPH STYLES ================= */
.paragraph-section{
  display: grid;
  grid-template-columns: 1fr 2fr; /*first paragraph takes 1part, second paragraph takes 2 part*/
  gap: 100px;
  align-items: start;/* align items to the top */
  margin: 2rem 0; /* add some vertical spacing */
}

.paragraph-section p:first-child::before{
  content: "⸺";
  color: #1a3d0a;
  font-weight: bold;
  margin-right: 10px;
}

.paragraph-section p:last-child{
  width: 60%;
  margin-left: auto;
}

.intro-content p{
  text-align: center;
}

.intro-content img{
  display: block;
  margin: 0 auto;
}

.intro-content p:has(+img) {
  margin-bottom: 40px;
}
/* ===============  ANIMATION/INTERACTIVITY ================= */

html {
  scroll-behavior: smooth;
}

/* Hamburger animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Smooth menu transition */
.nav-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.nav-menu.active {
    max-height: 300px; /* Adjust based on content */
    display: block;
}


/* =============== CHAPTER STYLING =================*/

/* chapter heading styling */
.chapter-announce{
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  gap: 1rem;
  margin-top: 400px;
  margin-bottom: 400px;
}

.chapter-announce h1,
.chapter-announce p {
  color: #ffffff;
}

.chapter-announce-mask {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.chapter-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.chapter-bg-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* report summary styling design */
.report-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  padding: 20px;
  border: 1px solid black;
  border-radius: 8px;
  margin-top: 40px;
  margin-bottom: 40px;
  background-color: #d4b77f;
}

.report-card p:first-child::after,
.chapter-announce h1:first-child::after{
  content: "⸺";
  color: #D4B77F;
  font-weight: bold;
  margin-right: 10px;
  padding-left: 40px;
}

.report-card p{
  font-size: 1.8rem;
  line-height: 2rem;
}

.report-card > p:first-child {
  font-size: 18px;
}

.summary p:first-child::after {
  content: none;
}

.summary blockquote {
  margin-bottom: 1.5rem;
}


figure.summary blockquote p::before {
    content: '"';
    font-size: 4rem;
    color:#AB5436 ;
}

.summary blockquote p::after {
    content: '"';
    
}

figcaption cite {
  font-family: 'Korolev', sans-serif;
  font-style: normal;
  font-weight: normal 
}

/* cite link styling */
.report-card cite a {
  color: #422417;
  text-decoration: none;
  transition: color 0.2s;
}

.report-card cite a:hover,
.report-card cite a:focus {
  color: #254C11;
  text-decoration: none;
  font-weight: 600;
}

/* bites section (1) styling-contains image */
.Bites-wrapper-1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.Bites-wrapper-1 img {
  max-width: 600px;
  height: auto;
  width: 100%;
}

section.Bites-wrapper-1 > p:last-child{
  align-content: center;
}

/* Bites section (2) styling-contains image and text */
.Bites-wrapper-2 {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  gap: 20px;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  background-color: #254C11 ;
  position: relative;
  
}

section.Bites-wrapper-2 p {
  color:#EEF4E8;
}
section.report-card p{
  color: #090909;
}

section.Bites-wrapper-2 div p {
  width: 60%;
  text-align: center;
  margin: 0 auto;
  color: #EEF4E8;
}

section.Bites-wrapper-2 > div p:nth-of-type(2) {
  color: #D4B77F;
}

section.Bites-wrapper-2 div p + p{
  margin-top: 1.5rem;
}

/*image style*/
.Bites-wrapper-2 img {
  max-width: 750px;
  height: auto;
  width: 100%;

}
/* Target by source attribute */
img[src="../images/poor-areas-large-size.png"] {
  width: 500px;
  height: auto;
 
  
}
/* decorative image (1) styling-contains image as BG */
.decorative-image {
  position: absolute;
  z-index: 1;
}

.decorative-image img:nth-child(1){
  top: 10%;
  left: 5%;
  width: 200px;
  height: auto;
}

.decorative-image img:nth-child(2){
  top: 50%;
  left: 100%;
  width: 500px;
  height: auto;
}

/* =============== PAGINATION DESIGN =================*/

.page-links {
    margin: 2rem 0;
    text-align: center;
}
.page-links a {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: #254C11;
    color: white;
    text-decoration: none;
}

/* =============== WORDPRESS THEME DESIGN =================*/
.WP-theme{
  text-align: left;
  align-items: flex-start;
  max-width: 960px;
}

/* project-info design */
.WP-theme .project-info {
  display: flex;
  align-items: center;
  gap: 12rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.WP-theme .project-info p+p {
  margin: 0;
}

.WP-theme .project-info img {
  width: 100px;
  height: auto;
}

/* typography layout and design */
.WP-theme h1{
  text-align:left;
}

h2{
  font-size: 3rem;
  color: #254C11;
}

strong{
  font-weight: 300;
  color: #D4B77F;
}

.WP-theme p, li{
  max-width: 680px;
}

.WP-theme > h1+h2, figure+h1, h2+ul, h2+p, ul+h2, p+h2 {
  margin-top: 3rem;
}
.WP-theme aside+p, h2+h3, p+h3, h3+p, h3+figure, h2+figure, figure+p {
  margin-top: 1.5rem;
}

figcaption{
  font-size: 1rem;
}
/* list design */
.WP-theme li{
  list-style-type: disc;
  list-style-position: inside;
  margin-left: 40px;
}
.WP-theme li+li{
  margin-top: 0.75rem;
}
/* image design */
.WP-theme img{
  width: 100%;
  height: auto;
}

/* paragraph with aside design */
.WP-theme .side-note-container{
  display: flex;
  align-items: flex-start;
  gap: 2em;
  margin-bottom: 1.5em;
  margin-top: 1.5em;
}
.WP-theme .side-note-container p{
  flex: 2;
  max-width: 680px;
  margin: 0;
}

.WP-theme .side-note-container aside, aside{
  font-size: 1.5rem;
  line-height: 2.5rem;
  max-width: 680px;
  color: #D4B77F;
}

.WP-theme .side-note-container aside{
  flex: 1;
  max-width: 220px;
  font-size: 1.5rem;
  line-height: 2.5rem;
  color: #D4B77F;
}
/* interaction design */
.anchor-link {
  position: absolute;
  left: -1.2em;
  opacity: 0;
  text-decoration: none;
  color:#254C11;
  font-size: 0.9em;
  font-weight: 700;
  transition: opacity 0.2s;
  padding-right: 0.4em;
}

h2{
  position: relative; 
}

h2:hover .anchor-link,
.anchor-link:focus {
  opacity: 0.5;
}

/****Post Preview design****/
/* Style the container holding all previews */
.post-previews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Style each post preview */
.custom-class, .post-preview {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.custom-class p,
.post-preview p {
  font-weight: 300;
}

.custom-class:hover, .post-preview:hover {
  border: 1px solid #254C11;
  background-color: #e9f5e2;
}


.custom-class h2, .post-preview h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.custom-class .read-more, .post-preview .read-more {
  display: inline-block;
  margin-top: 1rem;
  color: #254C11;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

.custom-class .read-more:hover, .post-preview .read-more:hover {
  color: #AB5436;

}

/* Post preview image styling */
.custom-class img,
.post-preview img {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  margin: 0 auto 1rem auto;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  object-fit: cover;
}


/* =============== POST-NAVIGATION DESIGN =================*/
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #ddd;
}

.nav-previous,
.nav-next {
    flex: 1;
    max-width: 100%;
}


.nav-next {
    text-align: right;
}

.post-navigation a {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: #254C11;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.post-navigation a:hover {
    background-color:#254C11;
    color: #ffffff;
    transform: translateY(-2px);
}

.post-navigation strong {
    display: block;
    font-size: 1.1em;
    margin-top: 0.5rem;
}

/* =============== FOOTER DESIGN =================*/
footer .footer-content{
  width: clamp(300px, 100% - 2rem, 1200px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
footer img {
  width: 50%;
  max-width: 150px;
  height: auto;
}
footer {
  background-color: #422417;

}


.footer-top {
    display: grid;
    grid-template-columns: 2fr;
    margin-bottom: 2rem;
}

.footer-logo{
  display: flex;
  gap: 50px;
  align-items: center;
}

.footer-logo p{
  font-weight: 300;
  font-size: 1rem;
}

.footer-top
.footer-bottom {
    border-bottom: 1px solid #666;
    padding-top: 1rem;
}

.footer-links a:hover{
  color: #ffffff;
}
.footer-links{
  margin-top: 20px;
}

footer small {
  width: 100%;
  display: block;
  margin-top: 1rem;
  font-size: 0.7rem;
  color: #D4B77F;
}

footer p {
  color: #EEF4E8;
}

footer li a {
  color: #D4B77F;

}

/* =============== IMPACT CARDS DESIGN =================*/

.impact-cards {
  margin: 3rem 0;
  padding: 1rem;
  background: #f7f7f7;
  border-radius: 8px;
  border : 1px solid #D4B77F;
  max-width: 340px;
}
.impact-cards h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.impact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.5rem;
  max-height: 1200px;
  overflow-y: auto;
}

.impact-cards-grid::-webkit-scrollbar{
  display: none;
}

.impact-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  transition: box-shadow 0.2s;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid #254C11;
}
.impact-card img {
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  display: block;
  margin-bottom: 1rem;
}
.impact-card h3 {
  margin: 0.5rem 0;
}
.impact-card .short-desc {
  margin-bottom: 1rem;
}

.impact-card .toggle-info{
  text-align: left;
}

.impact-card .toggle-info {
  background: #254C11;
  color: #D4B77F;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  margin-bottom: 1rem;
}
.impact-card .more-info {
  display: none;
  margin-top: 1rem;
  background: #e9f5e2;
  padding: 1rem;
  border-radius: 8px;
}
.impact-card.active .more-info {
  display: block;
}

.impact-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
  
}

/* Desktop: grid layout */
.impact-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;

}

.impact-container > div{
  margin-top: 3.5rem;
}

.impact-container > div,
.impact-container > section {
  margin-left: 0;
  box-sizing: border-box;
}



/* ==========404 page styling=========== */
.error-404 {
  max-width: 100%;
  margin: 5rem auto;
  padding: 2rem;
  background: #e9f5e2;
  border-radius: 16px;
  text-align:left;
  border: 1px solid #d4b77f;
}
.error-404 h1 {
  color: #254C11;
  font-size: 5rem;
  margin-bottom: 1rem;
  text-align: left;
}
.error-404 p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.error-404 .btn-home {
  display: inline-block;
  background: #254C11;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 2rem;
  font-weight: bold;
  transition: background 0.2s;
}
.error-404 .btn-home:hover {
  background: #e9f5e2;
  border: 1px solid #254C11;
  color: #254C11;
}
.error-404 .help-links {
  margin-top: 2rem;
}
.error-404 .help-links h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #254C11;
}
.error-404 .help-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.error-404 .help-links li {
  margin-bottom: 0; 
}
.error-404 .help-links a {
  display: block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  color: #254C11;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  background: transparent;
  margin-bottom: 0.5rem;
}

.error-404 .help-links a:hover {
  background-color: #254C11;
  color: #d4b77f;
  transform: translateY(-2px);
}

/* CTA Button Styles */
.cta-btn-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}
.cta-btn-wrapper .cta-btn {
  display: inline-block;
  background: #254C11;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 2rem;
  font-weight: bold;
  transition: background 0.2s;
}
.cta-btn-wrapper .cta-btn:hover {
  background: #e9f5e2;
  border: 1px solid #254C11;
  color: #254C11;
}
.cta-btn-wrapper .cta-btn:active {
  background-color: #0e2905;
  transform: translateY(0);
}


/* ===============  MEDIA QUERIES =================*/

@media (max-width: 768px) {
  .grid-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .grid-section .image-container {
    justify-self: center;
    margin-top: 20px;
  }

  .grid-section p,
  .Bites {
    font-size: 6rem;
    line-height: 5rem;
    margin: 0 auto;
  }

  .paragraph-section {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .paragraph-section p:last-child {
    width: 100%;
    margin-left: 0;
  }

  .report-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .report-card p:first-child::after {
    content: none;
  }

  .Bites-wrapper-1 {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .Bites-wrapper-1 img {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .Bites-wrapper-2 img[src="../images/poor-areas-large-size.png"] {
    width: 300px;
  }

  .Bites-wrapper-2 div p {
    width: 80%;
  }

  .project-info {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  nav ul {
    display: flex;/* Hide the nav links */
  
  }

  .hamburger {
    display: flex;/* Show the hamburger menu */
    
  } 

 header {
    flex-direction: column; /* Stack the header-top and nav vertically */
  }

  .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    background-color: #422417;
    width: 100%;
    border: 1px solid black;
    border-radius: 8px;
    margin-top: 1rem;
  }

  .nav-menu ul {
    flex-direction: column; /*for vertical flex */
    width: 100%;
  }

  .nav-menu a {
    color: #ffffff;
    padding: 1rem 2rem;
    border-bottom: 1px solid #eee;
  }

  .nav-menu a:last-child {
    border-bottom: none; /* Remove border from last item */
  }

  .nav-menu.active {
    display: flex; /* Show the menu when 'show' class is added */
  }
} 

@media (min-width: 769px) { 
  .nav-menu {
    max-height: none;
    overflow: visible;
    display: block;
  }
}

/* =============== 404 PAGE MEDIA QUERIES =================*/
@media (max-width: 600px) {
  .error-404 .help-links ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .error-404 h1 {
    font-size: 2.5rem;
  }
     .chapter-announce {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
  /* chapter announce text resize on mobile */
  .chapter-announce h1 {
    font-size: 6.5rem; /* Make h1 bigger on mobile */
    order: 1;
    width: 100%;
  }
  .chapter-announce p {
    order: 2;
    width: 100%;
    margin-top: 1rem;
  }
  .chapter-announce h1:first-child::after {
  content: none !important;
  }
  /* Wp-theme report mobile design */
  .WP-theme .project-info{
    gap: 2rem;
  }
}
/* Mobile: horizontal flex scroll for impact cards */
@media (max-width: 900px) {
  .impact-container {
    display: block;
    max-width: 100%;
    padding-bottom: 0;
    gap: 0;
    overflow-x: unset;
  }
  .impact-container > div,
  .impact-container > section {
    min-width: unset;
    flex: unset;
    scroll-snap-align: unset;
    width: 100%;
    box-sizing: border-box;
  }

    .impact-cards-grid {
    margin: 0 auto;
    justify-content: center;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .impact-card {
    margin: 0 auto;
    width: 100%;
    max-width: 340px;
  }
}
