/* =========================
   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;
}
body {
  line-height: 1.5;
  background: #FFFFFF;
  color: #212F45;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #2B3A55;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #D77A38;
  outline: none;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  appearance: none;
}
button {
  cursor: pointer;
  background: transparent;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  color: #212F45;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 {
  font-size: 2.25rem;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.25rem;
}
h4, h5, h6 { font-size: 1.125rem; }

/* =========================
   LAYOUT & CONTAINERS
==========================*/
.container {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(43,58,85,0.04);
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(43,58,85,0.05);
  position: relative;
  transition: box-shadow 0.2s;
}
.card:hover,
.card:focus {
  box-shadow: 0 4px 16px rgba(43,58,85,0.10);
  z-index: 2;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}

/* For text & image content sections (index, about, etc) */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: #F9F6F1;
  box-shadow: 0 2px 8px rgba(33,47,69,0.07);
}
.testimonial-card p {
  color: #212F45;
  font-size: 1rem;
  margin-bottom: 0;
}
.testimonial-card strong {
  font-size: 1rem;
  color: #2B3A55;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Typography Scale */
p, li, dd, address {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #212F45;
  margin-bottom: 10px;
  line-height: 1.7;
}
strong {
  font-weight: 700;
}

/* Tables, Quotes, FAQ */
dt {
  font-weight: 600;
  margin-top: 10px;
  color: #2B3A55;
}
dd {
  margin-bottom: 12px;
}
blockquote {
  border-left: 4px solid #D77A38;
  background: #f9f6f1;
  margin: 18px 0;
  padding: 10px 18px;
  color: #2B3A55;
}

/* =========================
   HEADER & NAVIGATION
==========================*/
header {
  background: #fff;
  border-bottom: 1px solid #F2EFEA;
  box-shadow: 0 1px 8px rgba(33,47,69,0.03);
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
header nav {
  display: flex;
  gap: 24px;
}
header nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 0px;
  color: #2B3A55;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.16s;
}
header nav a:hover,
header nav a:focus {
  background: #F9F6F1;
  color: #D77A38;
}
header img {
  height: 42px;
  width: auto;
}

/* Hamburger Button */
.mobile-menu-toggle {
  display: none;
  background: #F9F6F1;
  border: none;
  font-size: 2rem;
  line-height: 1;
  border-radius: 7px;
  padding: 6px 14px;
  color: #2B3A55;
  margin-left: 12px;
  transition: background 0.21s, color 0.21s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #D98C55;
  color: #fff;
}

@media (max-width:1020px) {
  header .container {
    flex-direction: row;
    gap: 12px;
  }
  header nav {
    gap: 12px;
  }
}

/* Mobile NAV styles */
@media (max-width: 860px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu {
    display: flex;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: #fff;
  box-shadow: 0 4px 32px rgba(33,47,69,0.13);
  z-index: 5000;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.7,.3,.1,1);
  flex-direction: column;
  padding: 12px 24px 36px 24px;
  gap: 30px;
  overflow-y: auto;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin-top: 12px;
  background: #F9F6F1;
  border-radius: 50%;
  border: none;
  font-size: 2rem;
  color: #2B3A55;
  width: 42px; height: 42px;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #D77A38;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.25rem;
  padding: 12px 0;
  color: #2B3A55;
  border-radius: 5px;
  font-weight: 500;
  transition: background 0.18s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #D77A38;
  color: #fff;
}

@media (min-width: 861px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}


/* =========================
   BUTTONS & MICRO-UX
==========================*/
.cta-btn {
  display: inline-block;
  background: #D77A38;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 11px 34px;
  margin-top: 8px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(33,47,69,0.06);
  transition: background 0.19s, color 0.19s, box-shadow 0.17s;
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus {
  background: #2B3A55;
  color: #fff;
  box-shadow: 0 4px 18px 0 rgba(33,47,69,0.11);
}
button:active {
  transform: scale(0.98);
}
input[type="email"], input[type="search"], select {
  width: 100%;
  background: #F9F6F1;
  border: 1px solid #ECE8E1;
  border-radius: 6px;
  padding: 12px 13px;
  font-size: 1rem;
  margin-bottom: 12px;
  color: #212F45;
  transition: border 0.15s;
  box-shadow: none;
}
input[type="email"]:focus,
input[type="search"]:focus,
select:focus {
  border: 1.5px solid #D77A38;
  outline: none;
  background: #fff;
}
.filters {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.filters label {
  font-size: 1rem;
  color: #2B3A55;
}
.select {
  min-width: 110px;
}

/* =========================
   FEATURE-GRID & CATEGORIES
==========================*/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin: 20px 0 0 0;
}
.feature-grid li, .feature-grid > div {
  flex: 1 1 230px;
  background: #FFFFFF;
  border-radius: 9px;
  padding: 22px 18px;
  min-width: 190px;
  box-shadow: 0 1px 6px rgba(33,47,69,0.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.18s;
}
.feature-grid li:hover, .feature-grid > div:hover {
  box-shadow: 0 8px 24px rgba(215,122,56,0.09);
}
.feature-grid img {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
}
.feature-grid h3 {
  font-size: 1.1rem;
  margin-bottom: 7px;
  color: #212F45;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 20px;
  margin-top: 7px;
}
.category-grid > div {
  flex: 1 1 200px;
  min-width: 165px;
  background: #fff;
  border-radius: 9px;
  padding: 26px 18px;
  box-shadow: 0 1px 7px rgba(43,58,85,0.045);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.17s;
}
.category-grid > div:hover {
  box-shadow: 0 5px 12px rgba(33,47,69,0.10);
}
.category-grid img {
  width: 36px;
  height: 36px;
}
.category-grid h3 {
  font-size: 1.11rem;
  margin-bottom: 6px;
}

/* =========================
   BOOK/NEWS/EVENT LISTS
==========================*/
.book-list,
.event-list,
.news-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 14px 0 18px 0;
}
.book-list li,
.event-list li,
.news-list li {
  padding: 14px 16px;
  background: #F9F6F1;
  border-radius: 8px;
  color: #2B3A55;
  font-size: 1rem;
  border-left: 4px solid #D77A38;
  box-shadow: 0 1px 5px rgba(33,47,69,0.04);
  transition: box-shadow 0.18s;
}
.book-list li strong,
.event-list li strong,
.news-list li strong {
  color: #212F45;
}
.book-list li:hover,
.event-list li:hover,
.news-list li:hover {
  box-shadow: 0 6px 16px rgba(43,58,85,0.08);
}

.featured-article {
  background: #fff;
  border-radius: 10px;
  padding: 24px 20px;
  box-shadow: 0 2px 10px rgba(43,58,85,0.05);
  margin-top: 12px;
}
.featured-article h2 {
  margin: 0 0 10px 0;
  font-size: 1.25rem;
  color: #D77A38;
}

/* =========================
   CALENDAR VIEW, MAP, ETC.
==========================*/
.calendar-view {
  padding: 18px 0;
  font-size: 1rem;
  color: #2B3A55;
  opacity: 0.82;
}
.map {
  background: #F9F6F1;
  border-radius: 8px;
  padding: 18px 16px;
  margin-top: 10px;
  color: #2B3A55;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.contact-details img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: baseline;
}

/* FAQ/Accordion Style */
.faq {
  margin-top: 8px;
}
.faq dt {
  font-size: 1.08rem;
  color: #212F45;
  margin-bottom: 3px;
  margin-top: 14px;
  position: relative;
}
.faq dd {
  font-size: 1rem;
  margin-bottom: 6px;
  margin-left: 16px;
  color: #2B3A55;
}

/* =========================
   FOOTER
==========================*/
footer {
  border-top: 1px solid #F2EFEA;
  background: #fff;
  box-shadow: 0 -1px 8px rgba(33,47,69,0.03);
  padding: 32px 0 27px 0;
  margin-top: 40px;
}
footer .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 8px;
}
footer nav a {
  color: #2B3A55;
  font-size: 0.98rem;
  transition: color 0.16s;
}
footer nav a:hover,
footer nav a:focus {
  color: #D77A38;
}
footer address {
  font-size: 0.98rem;
  color: #2B3A55;
  margin-top: 4px;
  font-style: normal;
  opacity: 0.87;
}
footer img {
  height: 36px;
  width: auto;
  margin-bottom: 8px;
}

@media (max-width: 780px) {
  footer .container {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* =========================
   RESPONSIVE DESIGN
==========================*/
@media (max-width: 1024px) {
  .feature-grid, .category-grid, .content-grid {
    gap: 16px;
  }
  .feature-grid li, .feature-grid > div, .category-grid > div {
    min-width: 135px;
  }
}
@media (max-width: 820px) {
  .feature-grid,.category-grid {
    flex-direction: column;
    gap: 15px;
  }
  .feature-grid li, .category-grid > div {
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.44rem; }
  h2 { font-size: 1.18rem; }
  .card, .card-container {
    flex-direction: column;
    gap: 12px;
  }
  .section {
    padding: 18px 4px;
  }
  .container {
    padding-left: 9px;
    padding-right: 9px;
  }
  .cta-btn {
    padding: 10px 7px;
    font-size: 1rem;
  }
}

/* =========================
   COOKIE CONSENT BANNER
==========================*/
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  background: #212F45;
  color: #fff;
  padding: 26px 20px 18px 20px;
  z-index: 9000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -2px 16px rgba(33,47,69,0.14);
  font-size: 1rem;
  gap: 30px;
  opacity: 1;
  transition: transform 0.4s cubic-bezier(.6,.3,.3,1), opacity 0.3s;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 18px;
}
.cookie-banner button {
  background: #D77A38;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 9px 22px;
  font-weight: 600;
  font-size: 1rem;
  margin-left: 0;
  transition: background 0.18s, color 0.18s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #fff;
  color: #212F45;
  outline: none;
}
.cookie-banner .cookie-link {
  background: #fff;
  color: #2B3A55;
  border: 1px solid #D77A38;
  margin-left: 10px;
  padding: 9px 13px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.17s, color 0.17s;
}
.cookie-banner .cookie-link:hover, .cookie-banner .cookie-link:focus {
  background: #D98C55;
  color: #fff;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    font-size: 0.97rem;
    padding: 19px 8px 13px 8px;
  }
  .cookie-banner .cookie-buttons {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
}

/* Cookie MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(33,47,69,0.23);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.33s;
}
.cookie-modal-overlay.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 6px 32px rgba(33,47,69,0.15);
  padding: 32px 30px 26px 30px;
  min-width: 320px;
  max-width: 98vw;
  color: #2B3A55;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  margin: 20px;
  opacity: 1;
  animation: fadeInScale 0.23s cubic-bezier(.4,.3,.3,1);
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal-close {
  position: absolute;
  right: 18px; top: 18px;
  background: #F9F6F1;
  border-radius: 50%;
  border: none;
  font-size: 2rem;
  color: #2B3A55;
  width: 38px; height: 38px;
  transition: background 0.17s, color 0.17s;
}
.cookie-modal-close:focus,
.cookie-modal-close:hover {
  background: #D77A38;
  color: #fff;
}
.cookie-modal h2 {
  margin-top: 0;
  font-size: 1.22rem;
  color: #212F45;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F2EFEA;
}
.cookie-category:last-child {
  border-bottom: 0;
}
.cookie-category .category-label {
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  color: #212F45;
}
.cookie-toggle {
  margin-left: 18px;
}
/* Toggle Switch style */
.cookie-toggle input[type='checkbox'] {
  display: none;
}
.cookie-toggle label {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  background: #ECE8E1;
  border-radius: 22px;
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.14s;
}
.cookie-toggle label:before {
  content: "";
  display: block;
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(33,47,69,0.08);
  transition: left 0.18s, background 0.16s;
}
.cookie-toggle input[type='checkbox']:checked+label {
  background: #D98C55;
}
.cookie-toggle input[type='checkbox']:checked+label:before {
  left: 19px;
  background: #fff;
}
.category-essential {
  opacity: 0.62;
}

@media (max-width: 480px) {
  .cookie-modal {
    min-width: 0;
    width: 96vw;
    padding: 16px 8px 12px 12px;
  }
  .cookie-modal-overlay {
    align-items: flex-end;
    justify-content: center;
  }
}

/* =========================
   UTILITY & ACCESSIBILITY
==========================*/
.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  top: auto;
  overflow: hidden;
}

/* Helper for spacing */
.mt-20 { margin-top: 20px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-20 { margin-bottom: 20px !important; }
.gap-20 { gap: 20px !important; }

/* =========================
   TRANSITIONS & HIERARCHY
==========================*/
section, .card, .testimonal-card, .category-grid > div,
.feature-grid li, .featured-article {
  transition: box-shadow 0.14s ease, background 0.11s;
}

/* =========================
   END OF CSS
==========================*/
