/* =========================================
   BRAND COLORS
========================================= */
:root {
  --primary-blue: #0046b8;
  --secondary-orange: #f58220;
  --dark-blue: #022b6b;
  --light-gray: #f5f7fb;
  --text-dark: #222;
  --text-light: #fff;
}

/* =========================================
   RESET
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

body {
  background: linear-gradient(to bottom, #e8f0ff, #f7f9fc);
  color: #1a1a1a;
  line-height: 1.6;
  overflow-x: hidden;
}

/* =========================================
   HEADER + NAVIGATION
========================================= */
header {
  background: #183762;
  color: #ffffff;
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  max-width: 1200px;
  margin: auto;
  padding: 0.7rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* LOGO */
.logo img {
  width: auto;
  height: 50px;
  display: block;
  background: #f8faff;
  border-radius: 8px;
  padding: 4px;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-links a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.4s ease;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(3px) saturate(140%);
}

/* Water refraction animation */
.nav-links a::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.05)
  );
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.6s ease;
  border-radius: 50%;
  mix-blend-mode: screen;
}

.nav-links a:hover::before {
  opacity: 1;
  transform: scale(1.2);
}

.nav-links a:hover {
  color: var(--secondary-orange);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px) saturate(180%);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ACTIVE TAB */
.nav-links a.active {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px) saturate(200%);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
  color: var(--secondary-orange);
  transform: translateY(-2px);
}

.nav-links a.active::before {
  opacity: 1;
  transform: scale(1.4);
}

/* HAMBURGER MENU */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #ffffff;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* MOBILE NAVIGATION */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    background: var(--dark-blue);
    padding: 1rem;
    margin-top: 0.7rem;
    border-radius: 0 0 12px 12px;
  }

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

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 0.8rem;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* =========================================
   FULL-WIDTH HERO IMAGE
========================================= */
.hero-full {
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero-image {
  width: 100%;
  height: 380px;
  background: url('../img/hero-tech-new.jpg') center/cover no-repeat;
}

@media (max-width: 768px) {
  .hero-image {
    height: 250px;
  }
}

/* =========================================
   MAIN PAGE CONTENT
========================================= */
.hero-content {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: left;
}

.hero-content h1 {
  font-size: 2.2rem;
  color: var(--dark-blue);
  margin-bottom: 1.5rem;
  text-align: center;
}

.hero-content h2 {
  line-height: 1.3;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.7;
}

.hero-content ul {
  color: #333;
  font-size: 1.05rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .hero-content {
    margin: 1.5rem auto;
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content h2 {
    font-size: 1.35rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

/* QUOTE */
.homepage-quote {
  margin-top: 2rem;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--primary-blue);
  text-align: center;
}

.quote-author {
  font-size: 1rem;
  color: #555;
}

/* =========================================
   BUTTON STYLES
========================================= */
.hero-buttons {
  text-align: center;
  margin-top: 2rem;
}

.hero-buttons .btn {
  margin: 0.5rem;
}

.btn {
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: var(--secondary-orange);
  color: #fff;
}

.btn-outline {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  background: transparent;
}

@media (max-width: 600px) {
  .hero-buttons .btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0.7rem auto;
  }
}

/* =========================================
   PAGE CONTAINER
========================================= */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 2rem 1rem;
}

/* =========================================
   CONTACT PAGE
========================================= */
.contact-hero {
  background: url('../img/contact-bg.jpg') center/cover no-repeat;
  padding: 4rem 1rem;
  text-align: center;
  color: #fff;
}

/* Contact section container */
.contact-section {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  padding: 2.5rem;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: 2rem auto;
}

/* Limit width of entire contact block */
.contact-section .container {
  max-width: 900px;
  margin: 0 auto;
}

/* Center main contact text */
.contact-title,
.contact-intro,
.contact-list {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  color: #0b1f3b;
}

.contact-title {
  font-size: 2rem;
  font-weight: 700;
}

.contact-intro {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

/* Contact list */
.contact-list {
  list-style: disc;
  padding-left: 1.5rem;
  max-width: 600px;
  display: block;
  text-align: left;
  margin-bottom: 1.5rem;
}

.contact-list li {
  font-size: 1.1rem;
  margin: 0.3rem 0;
  color: #0b1f3b;
}

/* Contact form wrapper */
.contact-form-section {
  max-width: 600px;
  margin: auto;
  padding: 2rem 1rem;
}

/* Contact form labels */
.contact-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #0b1f3b;
}

/* Contact form inputs */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.85);
  color: #0b1f3b;
  font-family: inherit;
  font-size: 1.05rem;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--secondary-orange);
  background: #fff;
  outline: none;
  box-shadow: 0 0 8px rgba(245, 130, 32, 0.35);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

@media (max-width: 768px) {
  .contact-section {
    margin: 1.5rem 1rem;
    padding: 1.5rem;
  }

  .contact-title {
    font-size: 1.7rem;
  }

  .contact-intro {
    font-size: 1rem;
  }

  .contact-list li {
    font-size: 1rem;
  }
}

/* =========================================
   PROFESSIONAL LOCATIONS CARDS
========================================= */
.contact-locations {
  margin-top: 2rem;
  text-align: center;
}

.contact-locations h2,
.contact-locations h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 1.5rem;
}

.location-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
}

.location-card,
.location-cards div {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  padding: 1.8rem 2rem;
  flex: 1 1 280px;
  max-width: 320px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.location-card:hover,
.location-cards div:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.location-card h3,
.location-card h4,
.location-cards div h3,
.location-cards div h4 {
  font-size: 1.3rem;
  color: var(--primary-blue);
  margin-bottom: 0.8rem;
}

.location-card p,
.location-cards div p {
  font-size: 1rem;
  color: #1a1a1a;
  margin: 0.4rem 0;
}

.location-card a,
.location-cards div a {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 600;
  color: var(--secondary-orange);
  text-decoration: none;
  transition: color 0.3s;
}

.location-card a:hover,
.location-cards div a:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

/* =========================================
   BLOG PAGE
========================================= */
.blog-post {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  border: 1px solid #ddd;
}

.blog-post h2 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.blog-post small {
  color: #777;
}

/* =========================================
   SLIDING POPUP
========================================= */
#slidePopup {
  position: fixed;
  bottom: -320px;
  right: 20px;
  width: 320px;
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transition: bottom 0.6s ease;
  font-family: Arial, sans-serif;
}

#slidePopup.show {
  bottom: 20px;
}

#slidePopup h3 {
  margin-top: 0;
  color: #1a1a1a;
}

#slidePopup p {
  color: #333;
  font-size: 15px;
  line-height: 1.4;
}

#slidePopup a {
  display: block;
  text-align: center;
  background: #0078ff;
  color: white;
  padding: 12px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 12px;
  font-weight: bold;
}

#closePopup {
  position: absolute;
  top: 8px;
  right: 12px;
  cursor: pointer;
  font-size: 18px;
  color: #666;
}

@media (max-width: 480px) {
  #slidePopup {
    width: calc(100% - 30px);
    right: 15px;
    left: 15px;
  }
}

/* =========================================
   FOOTER - GLOBAL REUSABLE LAYOUT
   Use this same footer style on all pages
========================================= */
.site-footer,
footer.site-footer {
  background: var(--dark-blue);
  color: #ffffff;
  margin-top: auto;
  padding: 2.5rem 1rem 1.5rem;
  text-align: left;
}

.site-footer a,
footer.site-footer a {
  color: #ffffff;
  text-decoration: none;
}

.site-footer a:hover,
footer.site-footer a:hover {
  color: var(--secondary-orange);
  text-decoration: underline;
}

.footer-inner {
  width: min(100%, 1100px);
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(280px, 1fr);
  gap: 3rem;
  align-items: start;
}

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

.footer-partners h3,
.footer-contact h3 {
  margin: 0 0 1.2rem;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

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

.partner-logo-card {
  width: 150px;
  height: 95px;
  background: #ffffff;
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.partner-logo-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

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

.footer-contact p {
  margin: 0.65rem 0;
  font-size: 1rem;
  line-height: 1.5;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
}

.footer-bottom p {
  margin: 0.4rem 0;
  font-size: 0.95rem;
}

.footer-bottom .privacy-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

/* =========================================
   STICKY FOOTER FIX
   Keeps footer at the bottom on short pages
========================================= */
html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main,
.hero-content,
.contact-section,
.container {
  flex: 1;
}

@media (max-width: 768px) {
  .site-footer,
  footer.site-footer {
    padding: 2rem 1rem 1.25rem;
    text-align: center;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .partner-logo-card {
    width: 135px;
    height: 90px;
  }
}

@media (max-width: 420px) {
  .partner-logos {
    gap: 0.75rem;
  }

  .partner-logo-card {
    width: 125px;
    height: 84px;
  }

  .footer-contact p,
  .footer-bottom p {
    font-size: 0.9rem;
  }
}


/* =========================================
   VOLUNTEER, FOUNDER, AND BOARD UPGRADES
========================================= */
.eyebrow {
  text-align: center;
  color: var(--secondary-orange) !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem !important;
  margin-bottom: 0.45rem !important;
}

.lead-text {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 1.12rem !important;
}

.volunteers-page,
.founder-page {
  max-width: 1120px;
}

.volunteer-grid,
.board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 2.2rem 0;
}

.volunteer-card,
.board-card,
.founder-profile-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 70, 184, 0.12);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(2, 43, 107, 0.11);
  overflow: hidden;
}

.volunteer-card,
.board-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.volunteer-card:hover,
.board-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(2, 43, 107, 0.16);
}

.volunteer-card img,
.board-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.volunteer-card-body,
.board-card-body {
  padding: 1.35rem;
}

.volunteer-card h2,
.board-card h3 {
  color: var(--dark-blue);
  margin-bottom: 0.35rem;
}

.volunteer-card .role,
.board-card .role {
  color: var(--secondary-orange);
  font-weight: 700;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.volunteer-cta,
.board-section {
  background: linear-gradient(135deg, rgba(0,70,184,0.10), rgba(245,130,32,0.13));
  border: 1px solid rgba(0, 70, 184, 0.13);
  border-radius: 20px;
  padding: 2rem;
  margin-top: 2.5rem;
}

.founder-profile-card {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  margin: 1.6rem 0 2.3rem;
}

.founder-photo-frame {
  background: linear-gradient(135deg, #022b6b, #0046b8);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.founder-photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 25px rgba(0,0,0,0.22);
}

.photo-note {
  color: #ffffff !important;
  font-size: 0.88rem !important;
  text-align: center;
  margin: 0.8rem 0 0 !important;
  opacity: 0.9;
}

.founder-profile-copy {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.founder-profile-copy h1 {
  text-align: left;
  margin-bottom: 0.5rem;
}

.founder-profile-copy h2 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.founder-tagline {
  font-size: 1.12rem !important;
  color: #24344d !important;
}

.section-title-center {
  text-align: center;
  color: var(--dark-blue);
  margin-bottom: 0.9rem;
}

@media (max-width: 820px) {
  .volunteer-grid,
  .board-grid,
  .founder-profile-card {
    grid-template-columns: 1fr;
  }

  .founder-profile-copy h1,
  .founder-profile-copy h2 {
    text-align: center;
  }

  .founder-photo-frame {
    max-width: 360px;
    margin: 0 auto;
    border-radius: 18px 18px 0 0;
  }
}

/* =========================================
   GLOBAL CYBERSAFE UPDATE FIXES
   - One-line boxed tabs in EN/FR
   - Consistent popup
   - Reserved photo spaces for future real images
========================================= */
nav {
  max-width: 1380px;
}

.nav-links {
  gap: 0.35rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1;
  min-height: 38px;
  min-width: max-content;
  padding: 0.62rem 0.72rem;
  font-size: clamp(0.72rem, 0.72vw, 0.9rem);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.language-switcher {
  display: inline-flex;
  gap: 0.35rem;
  margin-left: 0.6rem;
  flex-shrink: 0;
}

.language-switcher button {
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}

.language-switcher button.active,
.language-switcher button:hover {
  background: var(--secondary-orange);
  color: #fff;
}

.workshop-popup {
  position: fixed;
  right: 22px;
  bottom: -420px;
  width: min(360px, calc(100vw - 32px));
  background: #ffffff;
  color: #1a1a1a;
  padding: 1.35rem;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(2, 43, 107, 0.28);
  border-top: 6px solid var(--secondary-orange);
  z-index: 9999;
  transition: bottom 0.45s ease, opacity 0.45s ease;
  opacity: 0;
}

.workshop-popup.show {
  bottom: 24px;
  opacity: 1;
}

.workshop-popup h3 {
  color: var(--dark-blue);
  margin: 0 1.8rem 0.5rem 0;
  font-size: 1.2rem;
}

.workshop-popup p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

#closePopup {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: #eef3fb;
  color: var(--dark-blue);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.popup-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.popup-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  white-space: nowrap;
}

.popup-donate {
  background: var(--secondary-orange);
  color: #fff;
}

.popup-project {
  background: var(--dark-blue);
  color: #fff;
}

.founder-photo-frame {
  background: linear-gradient(135deg, #eef5ff, #ffffff);
  border: 2px dashed rgba(0, 70, 184, 0.35);
}

.founder-photo-frame {
  min-height: 360px;
}

.volunteer-card,
.board-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
}

.volunteer-card-body,
.board-card-body {
  padding: 1.6rem;
}

.founder-photo-frame img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  margin: 0 auto;
}

.volunteer-card > img,
.board-card > img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  display: block;
  padding: 12px;
  border: none;
}

.photo-note {
  text-align: center;
  color: #53657d;
  font-size: 0.92rem;
  margin-top: 0.7rem;
}

@media (max-width: 1180px) {
  nav {
    flex-wrap: wrap;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    background: var(--dark-blue);
    padding: 1rem;
    margin-top: 0.7rem;
    border-radius: 0 0 12px 12px;
  }

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

  .nav-links a {
    width: 100%;
    min-width: 0;
    text-align: center;
    font-size: 0.95rem;
    padding: 0.85rem;
  }
}

@media (max-width: 520px) {
  .workshop-popup.show {
    right: 16px;
    bottom: 16px;
  }

  .popup-actions a {
    width: 100%;
  }
}

/* =========================================
   Cookies and Privacy Banner
========================================= */

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 1100px;
  margin: 0 auto;
  background: #ffffff;
  color: #102033;
  border: 1px solid rgba(0, 83, 156, 0.18);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  border-radius: 18px;
  padding: 18px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  z-index: 9999;
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.cookie-actions button,
.cookie-learn {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.cookie-learn {
  color: #00539c;
  background: #eef6ff;
}

#declineCookies {
  color: #102033;
  background: #eef1f5;
}

#acceptCookies {
  color: #ffffff;
  background: #00539c;
}

@media (max-width: 700px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
/* Volunteer page image fit correction - only affects volunteers.html */
.volunteers-page .volunteer-grid {
  align-items: stretch;
}

.volunteers-page .volunteer-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.volunteers-page .volunteer-card > img {
  width: 100%;
  height: 280px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  background: #ffffff;
  display: block;
  padding: 0;
  border: 0;
}

.volunteers-page .volunteer-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
}

.volunteers-page .volunteer-card-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .volunteers-page .volunteer-card > img {
    height: 240px;
  }
}

/* Founder page board image/text fit correction - only affects Treasurer and Secretary cards */
.founder-page .board-grid {
  align-items: stretch;
}

.founder-page .board-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
}

.founder-page .board-card > img {
  width: 100%;
  height: 300px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  background: #f6f9ff;
  display: block;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(0, 83, 156, 0.12);
}

.founder-page .board-card-body {
  flex: 1;
  padding: 1.65rem 1.75rem 1.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.founder-page .board-card-body h3 {
  margin-bottom: 0.45rem;
  line-height: 1.2;
}

.founder-page .board-card-body .role {
  display: inline-block;
  margin: 0 0 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(245, 130, 32, 0.10);
  line-height: 1.35;
}

.founder-page .board-card-body p:last-child {
  margin-bottom: 0;
  line-height: 1.65;
}

@media (max-width: 700px) {
  .founder-page .board-card > img {
    height: 250px;
  }
}

/* Final focused polish: Secretary and Digital Literacy Tutor image fit, and centered card text */
.founder-page .board-card:nth-child(2) > img,
.volunteers-page .volunteer-card:nth-child(3) > img {
  object-fit: contain;
  object-position: center center;
  background: #ffffff;
  padding: 12px;
}

.volunteers-page .volunteer-card-body,
.founder-page .board-card-body {
  text-align: center;
  align-items: center;
}

.volunteers-page .volunteer-card-body .role,
.founder-page .board-card-body .role {
  display: inline-block;
  text-align: center;
}

.volunteers-page .volunteer-card-body p,
.founder-page .board-card-body p {
  text-align: center;
}

.volunteers-page .volunteer-card-body h2,
.founder-page .board-card-body h3 {
  text-align: center;
}

@media (max-width: 700px) {
  .founder-page .board-card:nth-child(2) > img,
  .volunteers-page .volunteer-card:nth-child(3) > img {
    padding: 10px;
  }
}

/* =========================================
   Verify App Button
========================================= */

header .verify-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
  padding: 0.56rem 0.95rem;
  margin-left: 0.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f3a6d, #2f5fb0);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

header .verify-app-btn:hover,
header .verify-app-btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  outline: none;
}
