/* =========================
   CSS RESET & NORMALIZE
========================= */
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;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F5F7FA;
  color: #203038;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  word-break: break-word;
}
a {
  color: #305F72;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E3B23C;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 1em;
}
ul ul, ol ol {
  margin-bottom: 0;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: 1.15;
  color: inherit;
}
button, input[type="button"], input[type="submit"] {
  cursor: pointer;
}

/* =========================
   BRAND PALETTE & FONTS
========================= */
:root {
  --primary: #305F72;
  --primary-dark: #244355;
  --secondary: #E5E9EC;
  --secondary-dark: #d1d6db;
  --accent: #E3B23C;
  --accent-hover: #C89320;
  --neutral-light: #F5F7FA;
  --neutral-medium: #C4CDD5;
  --text-primary: #203038;
  --text-secondary: #466178;
  --white: #fff;
  --danger: #c0392b;
  --shadow: 0 2px 8px 0 rgba(30,48,70,0.07);
  --border-radius: 8px;
}

@font-face {
  font-family: 'Source Sans Pro';
  src: local('Source Sans Pro'), local('SourceSansPro-Regular');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Merriweather';
  src: local('Merriweather'), local('Merriweather-Regular');
  font-weight: 700;
  font-style: normal;
}

/* =========================
   TYPOGRAPHY
========================= */
h1, .h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  line-height: 1.2;
}
h2, .h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}
h3, .h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
h4, .h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
p, label, li, span, time, cite, blockquote, input, textarea {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.6;
}
.subtitle {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 28px;
}
strong {
  color: var(--primary);
  font-weight: bold;
}
blockquote {
  font-family: 'Merriweather', Georgia, serif;
  border-left: 4px solid var(--accent);
  color: var(--primary-dark);
  background: var(--neutral-light);
  font-size: 18px;
  margin-bottom: 10px;
  margin-top: 0;
  padding: 14px 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
cite {
  font-style: normal;
  font-size: 15px;
  color: var(--text-secondary);
  margin-left: 8px;
}

/* =========================
   REUSABLE SPACING, GRID & LAYOUT CLASSES
========================= */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--secondary-dark);
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  position: relative;
  padding: 24px;
  flex: 1 1 280px;
  min-width: 260px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 4px 16px 0 rgba(30,48,70,0.13);
  transform: translateY(-2px);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--neutral-light);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
}
.gap-24 { gap: 24px; }
.gap-20 { gap: 20px; }
.gap-32 { gap: 32px; }
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }

/* =========================
   FLEX-BASED SECTIONS
========================= */
.features-grid, .book-list-grid, .recommendations-grid, .events-grid, .news-listing {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.features-grid > div,
.book-list-grid > .book-card,
.recommendations-grid > .book-card,
.events-grid > .event-card,
.news-listing > article {
  flex: 1 1 240px;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.features-grid > div:hover,
.book-list-grid > .book-card:hover,
.recommendations-grid > .book-card:hover,
.events-grid > .event-card:hover,
.news-listing > article:hover {
  box-shadow: 0 6px 20px 0 rgba(30,48,70,0.10);
}

/* =========================
   HEADER & NAVIGATION
========================= */
header {
  background: var(--white);
  border-bottom: 1px solid var(--secondary-dark);
  box-shadow: 0 1px 6px 0 rgba(48,95,114,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
}
.logo img {
  height: 45px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--primary);
  font-weight: 600;
  font-size: 16px;
  padding: 4px 0;
  transition: color 0.18s;
  border-bottom: 2px solid transparent;
  letter-spacing: .02em;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.cta-button.primary {
  background: var(--primary);
  color: var(--white);
  border: none;
  font-weight: 700;
  border-radius: var(--border-radius);
  font-size: 16px;
  padding: 10px 32px;
  margin-left: 16px;
  box-shadow: var(--shadow);
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  text-align: center;
}
.cta-button.primary:hover, .cta-button.primary:focus {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px 0 rgba(48,95,114,0.13);
  transform: translateY(-1px);
}
.cta-button.accent {
  background: var(--accent);
  color: var(--white);
  border: none;
  font-weight: 700;
  border-radius: var(--border-radius);
  font-size: 16px;
  padding: 10px 32px;
  margin-top: 14px;
  box-shadow: var(--shadow);
  transition: background 0.18s, box-shadow 0.18s;
}
.cta-button.accent:hover, .cta-button.accent:focus {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px 0 rgba(227,178,60,.13);
}

/* Hamburger (mobile) menu button */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--white);
  font-size: 28px;
  border: none;
  padding: 6px 14px;
  border-radius: var(--border-radius);
  margin-left: 10px;
  transition: background 0.18s;
  z-index: 210;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary-dark);
}

/* =========================
   MAIN CONTENT STYLES
========================= */
main {
  width: 100%;
  padding-bottom: 40px;
}
.hero, .news-hero, .events-hero, .contact-hero, .thank-you {
  background: linear-gradient(107deg, var(--primary) 0%, #537791 100%);
  color: var(--white);
  padding: 64px 20px 56px 20px;
  margin-bottom: 32px;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 12px 30px 0 rgba(48,95,114,0.06);
}
.hero h1, .news-hero h1, .events-hero h1, .contact-hero h1, .thank-you h1 {
  color: var(--white);
}
.hero .cta-button {
  margin-top: 34px;
}

.feature-item img, .features-grid img {
  height: 48px;
  width: 48px;
  margin-bottom: 10px;
}

/* Catalog toolbar on .carti.html */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-top: 18px;
}
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.catalog-filters span {
  font-weight: 600;
  color: var(--primary-dark);
  margin-right: 2px;
}
.catalog-filters button {
  background: var(--secondary);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 20px;
  padding: 6px 20px;
  font-size: 15px;
  font-weight: 600;
  margin-top: 4px;
  transition: background 0.15s, color 0.18s, border-color 0.15s;
}
.catalog-filters button:hover, .catalog-filters button:focus {
  background: var(--primary);
  color: var(--white);
  border-color: var(--accent);
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border-radius: 30px;
  border: 1px solid var(--secondary-dark);
  padding: 6px 12px;
}
.search-bar input[type="search"] {
  border: none;
  background: transparent;
  font-size: 15px;
  padding: 4px 8px;
  width: 170px;
  color: var(--text-primary);
}
.search-bar button {
  background: var(--primary);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.search-bar button:hover {
  background: var(--accent);
}
.search-bar img {
  height: 20px;
  width: 20px;
}

/* Book cards and recommendations */
.book-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  max-width: 340px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
  gap: 10px;
}

.recommendations-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}

/* News and topic filters */
.topic-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 12px;
}
.topic-filters span {
  font-weight: 600;
}
.topic-filters button {
  background: var(--secondary);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 18px;
  padding: 5px 18px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.topic-filters button:hover, .topic-filters button:focus {
  background: var(--primary);
  color: var(--white);
  border-color: var(--accent);
}

/* Events */
.events-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.event-card {
  min-width: 220px;
  border-left: 5px solid var(--primary);
  padding-left: 18px;
  margin-bottom: 20px;
  background: var(--white);
}
.upcoming-events-highlight {
  background: var(--accent);
  color: var(--white);
  border-radius: var(--border-radius);
  padding: 16px 24px;
  margin-top: 20px;
}
.upcoming-events-highlight h2 {
  color: var(--white);
  margin-bottom: 8px;
  font-size: 18px;
}
.upcoming-events-highlight strong {
  color: var(--white);
}

/* Map section */
.embedded-map {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  background: var(--neutral-light);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
.embedded-map img {
  width: 80px;
  height: auto;
}

/* Contact form */
.contact-form-block form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow);
  max-width: 440px;
}
.contact-form-block label {
  font-weight: 700;
  font-size: 16px;
  color: var(--primary-dark);
}
.contact-form-block input,
.contact-form-block textarea {
  padding: 8px 12px;
  border: 1px solid var(--secondary-dark);
  border-radius: 5px;
  background: var(--secondary);
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 8px;
  transition: border-color 0.15s;
}
.contact-form-block input:focus,
.contact-form-block textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.contact-details ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 18px;
}
.contact-details ul li img {
  vertical-align: middle;
  width: 20px;
  margin-right: 10px;
}

/* Thank You Page */
.thank-you .content-wrapper {
  align-items: center;
  text-align: center;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 38px 20px;
}

/* =========================
   TESTIMONIALS
========================= */
.testimonials {
  background: var(--secondary);
  border-radius: var(--border-radius);
  padding: 42px 16px;
  margin-bottom: 60px;
}
.testimonials h2 {
  color: var(--primary-dark);
  margin-bottom: 28px;
}

/* =========================
   CTA (CALL TO ACTION) BLOCKS
========================= */
.cta {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--border-radius);
  padding: 48px 16px;
  margin-bottom: 60px;
  box-shadow: 0 10px 34px 0 rgba(48,95,114,0.10);
}
.cta h2,
.cta .h2 {
  color: var(--accent);
  font-size: 28px;
  margin-bottom: 16px;
}
.cta p {
  color: var(--white);
  font-size: 18px;
}
.cta .cta-button {
  margin-top: 28px;
}

/* =========================
   FOOTER
========================= */
footer {
  background: var(--primary);
  color: var(--white);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 24px 0 rgba(48,95,114,0.07);
  padding: 38px 0 24px 0;
  /* margin-top: 40px; */
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}
.footer-menu a {
  color: var(--white);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.18s;
}
.footer-menu a:hover {
  color: var(--accent);
}
.footer-contact p {
  color: var(--secondary);
  font-size: 14px;
  margin-bottom: 7px;
}
.footer-contact img {
  height: 16px;
  width: 16px;
  margin-right: 6px;
}

/* =========================
   MOBILE MENU / HAMBURGER
========================= */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 92vw;
  max-width: 340px;
  height: 100vh;
  background: var(--white);
  box-shadow: -3px 0 20px 0 rgba(48,95,114,0.12);
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.77,0,.18,1);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 38px 28px 28px 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  font-size: 26px;
  color: var(--primary);
  align-self: flex-end;
  margin-bottom: 36px;
  cursor: pointer;
  padding: 6px 10px;
  transition: color 0.15s;
}
.mobile-menu-close:hover {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 17px;
  width: 100%;
}
.mobile-nav a {
  color: var(--primary);
  font-size: 18px;
  font-weight: 600;
  padding: 8px 0;
  border-radius: 6px;
  transition: background 0.17s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}
/* Overlay for background dim */
body.mobile-menu-open::before {
  content: '';
  position: fixed;
  z-index: 290;
  inset: 0;
  background: rgba(60,80,110,0.25);
  backdrop-filter: blur(2px);
}

/* =========================
   COOKIE BANNER + MODAL
========================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  color: var(--white);
  z-index: 1150;
  padding: 18px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 -3px 24px 0 rgba(48,95,114,0.10);
  animation: slideUpBanner 0.45s cubic-bezier(.68,0,.22,1);
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner button {
  border: none;
  border-radius: var(--border-radius);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 28px;
  transition: background 0.19s, color 0.19s;
}
.cookie-banner .accept {
  background: var(--accent);
  color: var(--white);
}
.cookie-banner .accept:hover {
  background: var(--accent-hover);
}
.cookie-banner .reject {
  background: #e7e9ec;
  color: var(--primary);
}
.cookie-banner .reject:hover {
  background: #ebd6c1;
  color: var(--danger);
}
.cookie-banner .settings {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.cookie-banner .settings:hover {
  background: var(--accent);
  color: var(--white);
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(40,60,90,0.22);
  z-index: 1200;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInOverlay 0.23s ease;
}
@keyframes fadeInOverlay {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: var(--white);
  color: var(--primary);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 38px 0 rgba(48,95,114,.13);
  max-width: 430px;
  width: 96vw;
  padding: 32px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: slideDownModal 0.28s cubic-bezier(.7,0,.3,1);
}
@keyframes slideDownModal {
  from { transform: translateY(-60px); opacity: 0.2; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 22px;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 17px;
  background: var(--secondary);
  padding: 10px 14px;
  border-radius: 6px;
}
.cookie-modal .cookie-category label {
  font-weight: 600;
  color: var(--primary);
}
.cookie-modal .toggle {
  position: relative;
  width: 44px;
  height: 22px;
  background: #c4ccd5;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.15s;
  margin-left: 10px;
}
.cookie-modal .toggle input {
  display: none;
}
.cookie-modal .toggle .slider {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  transition: left 0.22s, background 0.18s;
}
.cookie-modal .toggle input:checked + .slider {
  left: 24px;
  background: var(--accent);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 9px;
}
.cookie-modal .close-modal {
  background: transparent;
  color: var(--primary);
  font-size: 25px;
  border: none;
  position: absolute;
  right: 14px;
  top: 10px;
  padding: 2px 8px;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal .close-modal:hover {
  color: var(--accent);
}
.cookie-modal .accept, .cookie-modal .save {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-modal .accept:hover, .cookie-modal .save:hover {
  background: var(--accent-hover);
}

/* =========================
   MICRO-INTERACTIONS & HOVERS
========================= */
.cta-button, button, .card, .footer-menu a, .main-nav a, .mobile-nav a, .catalog-filters button, .topic-filters button, .search-bar button, .cookie-banner button, .cookie-modal .close-modal {
  transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s, transform 0.18s;
}
.card:active, .card:focus {
  transform: scale(0.98);
}
input:focus, textarea:focus {
  outline: 2px solid var(--primary);
  border-color: var(--accent);
}

/* =========================
   RESPONSIVENESS (MOBILE-FIRST)
========================= */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
}
@media (max-width: 1024px) {
  .container {
    max-width: 100vw;
    padding: 0 2vw;
  }
  .main-nav, .footer-menu {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .features-grid, .book-list-grid, .recommendations-grid, .events-grid, .news-listing {
    gap: 16px;
  }
  .embedded-map {
    gap: 14px;
  }
  .footer-contact, .footer-menu {
    gap: 6px;
    font-size: 14px;
  }
}
@media (max-width: 768px) {
  h1, .h1 { font-size: 24px; }
  h2, .h2 { font-size: 18px; }
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 7px;
  }
  .main-nav {
    display: none;
  }
  .cta-button.primary, .cta-button.accent {
    padding: 8px 14px;
    font-size: 15px;
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .section, .testimonials, .cta {
    padding: 28px 5px;
  }
  .card, .book-card, .event-card {
    padding: 14px;
  }
  .features-grid, .book-list-grid, .recommendations-grid, .events-grid, .news-listing {
    flex-direction: column;
    min-width: 0;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
  }
  .footer-menu {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 650px) {
  .hero, .news-hero, .events-hero, .contact-hero, .thank-you {
    padding: 32px 4px 28px 4px;
    margin-bottom: 20px;
    border-radius: 0 0 18px 18px;
  }
  .card, .book-card, .event-card, .testimonial-card {
    border-radius: 7px;
    min-width: 0;
  }
  .footer-contact p {
    font-size: 13px;
  }
  .cookie-banner {
    padding: 12px 3px;
    font-size: 15px;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 9px;
  }
  .cookie-modal {
    max-width: 96vw;
    padding: 17px 7px 14px 7px;
  }
}

/* Accessibility: High Contrast for testimonials/reviews */
.testimonial-card,
.testimonials blockquote {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 2px 8px 0 rgba(30,48,70,0.10);
}
.testimonial-card blockquote {
  color: var(--primary-dark);
  background: var(--neutral-light);
}
.testimonial-card cite {
  color: var(--accent);
  font-weight: 600;
}

/* Utility: Prevent Overlap, Safe Padding */
* {
  box-sizing: border-box;
}
.card, .book-card, .event-card, .testimonial-card {
  margin-bottom: 20px;
}
.section, .testimonials, .cta {
  margin-bottom: 60px;
}

/* =============== THE END =============== */
