/* 
  Author: Ifeoluwa Adediran
  Date: October 13, 2025
  File: styles.css
*/

/* ============================== */
/* CSS Reset                      */
/* ============================== */
html, body, header, nav, main, footer, img, h1, h3, ul, li, figure, figcaption, aside {
  margin: 0;
  padding: 0;
  border: 0;
}

/* ============================== */
/* Base (Body & Typography)       */
/* ============================== */
body {
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #000000;
}
img { max-width: 100%; display: block; }

#wrapper { width: 94%; margin: 0 auto; }

/* ============================== */
/* Style rules for header area    */
/* ============================== */
header {
  background-color: #000000;
  color: #ffd500;
  padding: 15px;
  text-align: center;
  clear: both; /* ensure header clears any floats */
}

/* ============================== */
/* Style rules for navigation     */
/* ============================== */
nav {
  background-color: #ffd500;
  padding: 10px;
  text-align: center;
}
nav ul { list-style: none; margin: 0; }
nav li { display: inline-block; font-size: 1.3em; font-weight: bold; font-family: Geneva, Arial, sans-serif; }
nav li a {
  display: inline-block;
  padding: 0.7em 1.2em;
  color: #000000;
  text-decoration: none;
}
nav li a:hover { background: #000000; color: #ffd500; }

/* ============================== */
/* Style rules for main content   */
/* ============================== */
main {
  padding: 2%;
  font-family: Verdana, Arial, sans-serif;
}
main p { font-size: 1.1em; }
main h3 { padding-top: 2%; }

/* Utility */
.round { border-radius: 6px; }

/* ============================== */
/* Style rules for footer content */
/* ============================== */
footer {
  background-color: #000000;
  color: #ffffff;
  text-align: center;
  padding: 15px;
}
footer a { color: #ffd500; text-decoration: none; }

/* ============================== */
/* Style rules for gallery grid   */
/* ============================== */
main.grid {
  background-color: #f9f9f9;
  padding: 2%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
main.grid aside p {
  font-size: 1.1em;
  text-align: center;
  color: #333;
}
main.grid figure {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
main.grid figure:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
main.grid figure img { width: 100%; }
main.grid figcaption {
  padding: 0.75rem 1rem;
  font-size: 1.05em;
  font-style: italic;
  color: #000;
  background: #fffbe6; /* subtle yellow tint */
  border-top: 3px solid #ffd500; /* brand accent */
}

/* ============================== */
/* Media Queries                  */
/* ============================== */
@media screen and (min-width: 600px) {
  /* Tablet */
  main.grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (min-width: 1000px) {
  /* Desktop */
  main.grid { grid-template-columns: repeat(3, 1fr); }
}
/* ============================== */
/* Style rules for Partnership page */
/* ============================== */

/* Mobile and Tablet: merge .mobile and .mobile-tablet behavior */
.mobile,
.mobile-tablet {
  display: block;
  text-align: left;
  padding: 2%;
  font-family: Verdana, Arial, sans-serif;
}

.mobile-tablet h3 {
  color: #000000;
  font-size: 1.3em;
  font-weight: bold;
  padding-top: 1%;
}

.mobile-tablet p {
  padding: 0.5% 0;
  font-size: 1.05em;
}

/* Desktop visibility classes (tab-desk and desktop combined) */
.tab-desk,
.desktop {
  display: none;
}

/* ============================== */
/* Media Query: Tablet Viewport   */
/* ============================== */
@media screen and (min-width: 600px) {
  /* Tablet: Show both mobile-tablet and tab-desk as needed */
  .mobile-tablet {
    display: block;
  }
  .desktop {
    display: none;
  }
}

/* ============================== */
/* Media Query: Desktop Viewport  */
/* ============================== */
/* Desktop Viewport: Show desktop class, hide mobile-tablet class */
@media screen and (min-width: 1000px) {
  .desktop {
    display: block;
  }

  .mobile-tablet {
    display: none;
  }

  /* ============================== */
  /* Style rules for table          */
  /* ============================== */

  table {
    border: 1px solid #2a1f14;
    border-collapse: collapse;
    margin: 0 auto;
  }

  caption {
    font-size: 1.5em;
    font-weight: bold;
    padding: 1%;
  }

  th,
  td {
    border: 1px solid #2a1f14;
    padding: 1%;
  }

  th {
    background-color: #2a1f14;
    color: #fff;
    font-size: 1.15em;
  }

  tr:nth-child(odd) {
    background-color: #deccba;
  }
}
/* ============================== */
/* Mobile Navigation Styles (Updated) */
/* ============================== */

.mobile-nav a {
  color: #fff;
  text-align: center;
  font-size: 2em;
  text-decoration: none;
  padding: 3%;
  display: block;
}

.mobile-nav a.nav-icon {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  color: #fff; /* 🔥 changed to white */
  padding: 2%;
  cursor: pointer;
}

.nav-icon div {
  height: 40px;
  width: 40px;
  color: #fff; /* 🔥 changed to white */
  font-size: 2em;
}

/* Hide mobile menu initially */
#nav-links {
  display: none;
  background-color: #000;
  width: 100%;
  position: absolute;
  top: 60px;
  left: 0;
  z-index: 999;
}

#nav-links a {
  display: block;
  padding: 1.2em 0;
  border-bottom: 1px solid #333;
  font-size: 1.2em;
  background-color: #000;
  color: #fff;
}

#nav-links a:hover {
  background-color: #ffd500;
  color: #000;
}
footer a {
  color: #ffd500;
  text-decoration: none;
}

.social img {
  display: inline-block;
  padding: 4%;
}

/* ============================== */
/* Tablet and Desktop Adjustments */
/* ============================== */
@media screen and (min-width: 600px) {
  .mobile-nav {
    display: none; /* hide mobile nav on tablet+ */
  }

  .tab-desk {
    display: block; /* ensure normal nav shows */
  }

  nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  nav li {
    display: inline-block;
    font-family: Geneva, Arial, sans-serif;
    font-weight: bold;
  }

  nav li a {
    display: inline-block;
    padding: 0.7em 1.2em;
    color: #000;
    text-decoration: none;
  }

  nav li a:hover {
    background-color: #000;
    color: #ffd500;
  }
}
/* CSS Reset */
html, body, header, nav, main, footer, img, video, h1, h3, ul, li, figure, figcaption, aside {
  margin: 0;
  padding: 0;
  border: 0;
}

/* Image & Video Styling */
img, video {
  max-width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}
/* ============================== */
/* Style rules for skip navigation link */
/* ============================== */
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  color: #fff;
  background-color: #2a1f14;
  text-decoration: none;
  padding: 0.5%;
  top: auto;
  left: auto;
  right: 1px;
  z-index: 1;
}
/* Tablet Viewport: Style rules for footer area */
footer {
  overflow: auto;
}

.copyright {
  float: left;
  width: 65%;
}

.social {
  float: right;
  width: 25%;
}

footer {
  background-color: #000;
  color: #fff;
  padding: 0.6rem 0;         
  display: flex;             
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;        
}

footer .copyright p {
  margin: 0.1rem 0;         
}

footer .social {
  display: flex; 
  gap: 0.5rem;              
}

footer .social a {
  display: flex; 
  align-items: center;
  justify-content: center;
  width: 28px;              
  height: 28px;
}

footer .social img {
  width: 100%;
  height: 100%;             
  object-fit: contain;      
}
footer {
  background-color: #ffd500;     
  color: #000000;                
}

footer a {
  color: #000000;                
}

footer .social img {
  filter: brightness(0%);       
}
/* ========= Accordion Styling (PDF-Compliant Methods) ========= */

.accordion {
  width: 100%;
  margin: 1rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Each FAQ box */
.accordion details {
  background: #fffef2;           /* light warm tone to match wildlife theme */
  border: 2px solid #ffd500;     /* matches your brand yellow */
  border-radius: 8px;
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15); /* PDF shadow chapter */
  transition: transform 0.2s ease;
}

.accordion details:hover {
  transform: translateY(-3px); /* small hover lift effect */
}

/* Summary = clickable title */
.accordion summary {
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  user-select: none;
  padding: 0.4rem 0;
}

/* Arrow animation */
.accordion summary::marker {
  color: #000; /* visible arrow */
}

/* The open state styles */
.accordion details[open] {
  background: #fff8c6; 
}

.accordion details[open] summary {
  color: #000;
}

/* Paragraph inside accordion */
.accordion details p {
  margin: 0.5rem 0 0.8rem 0;
  font-size: 1rem;
  line-height: 1.5;
}
