/* =========================
   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 { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { background: #181C1F; color: #F7F6F2; }
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
ol, ul { list-style: none; }
a {
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
img { border-style: none; display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; font-size: 100%; margin: 0; }
button { border: none; background: none; cursor: pointer; }
table { border-collapse: collapse; border-spacing: 0; }

/* =========================
   VARIABLES
   ========================= */
:root {
  --primary: #174A5D;
  --secondary: #BDA06A;
  --accent: #F7F6F2;
  --background: #181C1F;
  --card-bg: #21262A;
  --surface: #25282C;
  --text-primary: #F7F6F2;
  --text-secondary: #BDA06A;
  --text-dark: #181C1F;
  --border: #2C353D;
  --shadow: 0 4px 24px 0 rgba(23, 74, 93, 0.20);
  --radius: 10px;
  --radius-lg: 18px;
  --font-display: 'Noto Sans KR', 'Nanum Gothic', Arial, sans-serif;
  --font-body: 'Nanum Gothic', 'Noto Sans KR', Arial, sans-serif;
  --font-industrial: 'Roboto Condensed', 'Noto Sans KR', 'Nanum Gothic', Arial, sans-serif;
}

@font-face {
  font-family: 'Noto Sans KR';
  font-style: normal;
  font-weight: 400;
  src: local('Noto Sans KR'), url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700&display=swap');
}
@font-face {
  font-family: 'Nanum Gothic';
  font-style: normal;
  font-weight: 400;
  src: local('Nanum Gothic'), url('https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700&display=swap');
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

*, *:before, *:after {
  box-sizing: inherit;
}

/* =========================
   TYPOGRAPHY & HIERARCHY
   ========================= */
h1, .hero h1, .books-hero h1, .events-hero h1, .reviews-hero h1, .support-hero h1, .thank-you h1, .contact h1 {
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 2.4rem;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px #10151a70;
}
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
h3 {
  font-family: var(--font-industrial);
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-family: var(--font-body);
  color: var(--secondary);
}
strong {
  color: var(--secondary);
  font-weight: bold;
}
p, ul, li {
  font-family: var(--font-body);
  color: var(--text-primary);
  font-size: 1rem;
}
.subheadline {
  color: #AAB7C2;
  margin-bottom: 26px;
  font-size: 1.15rem;
  font-weight: 400;
}

/* =========================
   CONTAINER & LAYOUT
   ========================= */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
header {
  background-color: var(--card-bg);
  box-shadow: var(--shadow);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px 20px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--font-industrial);
  font-size: 1.08rem;
  padding: 6px 10px;
  color: var(--accent);
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: background 0.21s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--primary);
  color: var(--secondary);
}
.cta-button {
  background: var(--secondary);
  color: #181C1F;
  font-weight: bold;
  font-family: var(--font-industrial);
  border-radius: 32px;
  padding: 9px 30px;
  margin-left: 18px;
  font-size: 1.08rem;
  border: none;
  box-shadow: 0 2px 8px #00000025;
  transition: background 0.16s, color 0.16s, box-shadow 0.12s;
}
.cta-button:hover, .cta-button:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 2px 12px #BDA06A99;
}

/* Hamburger menu */
.mobile-menu-toggle {
  display: none;
  background: var(--background);
  color: var(--secondary);
  font-size: 2rem;
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  z-index: 400;
  transition: background 0.2s, color 0.2s;
  margin-left: 18px;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--secondary);
  color: var(--background);
}
@media (max-width: 991px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: #21262ad1;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.75,.06,.29,.93);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: var(--secondary);
  color: var(--background);
  font-size: 2rem;
  border-radius: 7px;
  margin: 24px 16px 0 0;
  padding: 4px 16px;
  align-self: flex-end;
  cursor: pointer;
  border: none;
  transition: background 0.17s, color 0.17s;
  z-index: 9998;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  width: 100%;
  margin-top: 44px;
  padding-right: 35px;
}
.mobile-nav a {
  font-family: var(--font-industrial);
  font-size: 1.13rem;
  color: var(--accent);
  background: none;
  padding: 13px 0;
  width: 100%;
  text-align: right;
  border-bottom: 1px solid #26314144;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary); background: #181C1F;
}
@media (min-width: 992px) {
  .mobile-menu,
  .mobile-menu-toggle { display: none !important; }
}

/* =========================
   HERO SECTIONS
   ========================= */
.hero, .books-hero, .events-hero, .reviews-hero, .support-hero, .thank-you, .contact {
  background: linear-gradient(100deg, #181C1F 70%, #223a42 100%);
  padding: 60px 0 36px 0;
}
.hero .content-wrapper, .books-hero .content-wrapper, .events-hero .content-wrapper, .reviews-hero .content-wrapper, .support-hero .content-wrapper, .thank-you .content-wrapper, .contact .content-wrapper {
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  text-align: left;
  gap: 8px;
}
.hero .cta-button {
  margin-top: 32px;
}
@media (max-width: 768px) {
  .hero, .books-hero, .events-hero, .reviews-hero, .support-hero, .thank-you, .contact {
    padding: 39px 0 16px 0;
  }
}

/* =========================
   FLEXBOX SPACING PATTERNS
   ========================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 25px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 6px 22px #BDA06A55, var(--shadow);
  transform: translateY(-4px) scale(1.012);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F7F6F2;
  color: var(--background);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 16px #10151a34;
  margin-bottom: 22px;
  max-width: 380px;
  min-width: 210px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px #BDA06A44, var(--shadow);
  transform: translateY(-2px) scale(1.018);
}
.testimonial-card p{
  color: var(--background);
}
.testimonial-info {
  font-size: 0.98rem;
  color: var(--primary);
  font-family: var(--font-industrial);
}
.testimonial-info strong {
  color: var(--secondary);
  margin-right: 6px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 30px;
}

/* =========================
   RESPONSIVE FLEX LAYOUTS
   ========================= */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-bottom: 12px;
}
.feature-grid li {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px 25px 25px 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 205px;
  max-width: 255px;
  min-width: 180px;
  box-shadow: 0 2px 18px #10151a26;
  border: 1.5px solid #263141;
  transition: box-shadow 0.15s, border 0.15s;
}
.feature-grid li:hover {
  border: 1.5px solid var(--secondary);
  box-shadow: 0 3px 24px #BDA06A33;
}
.feature-grid img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 7px;
  filter: grayscale(50%) contrast(110%);
}
@media (max-width: 900px) {
  .feature-grid { gap: 20px; }
  .feature-grid li { max-width: 100%; min-width: 140px; }
}
@media (max-width: 600px) {
  .feature-grid { flex-direction: column; align-items: stretch; gap: 16px; }
}

.icon-highlights {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.icon-highlights li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-family: var(--font-industrial);
}
.icon-highlights img {
  width: 28px;
  height: 28px;
  filter: grayscale(70%) contrast(150%);
}

.team-member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.team-member {
  background: #232728;
  border-radius: 13px;
  padding: 14px 24px;
  min-width: 150px;
  color: var(--secondary);
  font-family: var(--font-industrial);
  font-size: 1rem;
  border: 1px solid #2C353D;
  margin-bottom: 10px;
}
.team-member strong { color: var(--accent); margin-right: 5px; }

/* -------------------------
  Books / Catalog Cards
------------------------- */
.book-catalog .book-listings {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 22px;
}
.book-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 1px 10px #00000018;
  padding: 21px 20px 16px 18px;
  min-width: 220px;
  max-width: 350px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  border-left: 5px solid var(--secondary);
  transition: border 0.13s, transform 0.13s, box-shadow 0.16s;
}
.book-card:hover {
  border-left: 5px solid var(--primary);
  box-shadow: 0 2px 20px #BDA06A22;
  transform: translateY(-2px) scale(1.024);
}

.featured-books-carousel {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.featured-book-slide {
  background: var(--surface);
  border-radius: var(--radius);
  min-width: 240px;
  max-width: 320px;
  flex: 0 0 240px;
  padding: 18px 18px 14px 18px;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 11px #00000014;
  margin-right: 8px;
  border-top: 3px solid var(--secondary);
  transition: box-shadow 0.15s;
}
.featured-book-slide:hover {
  box-shadow: 0 3px 18px #BDA06A22, var(--shadow);
}

/* Events Cards */
.event-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.event-card {
  background: var(--surface);
  border-radius: var(--radius);
  min-width: 220px;
  max-width: 330px;
  flex: 1 1 195px;
  padding: 24px 20px 18px 18px;
  box-shadow: 0 1px 12px #00000015;
  border-bottom: 3px solid var(--secondary);
  margin-bottom: 20px;
  transition: border 0.15s, box-shadow 0.15s, transform 0.13s;
}
.event-card:hover {
  box-shadow: 0 5.5px 22px #BDA06A38, var(--shadow);
  border-bottom: 3px solid var(--primary);
  transform: translateY(-3px) scale(1.015);
}

@media (max-width: 900px) {
  .book-catalog .book-listings,
  .event-cards,
  .featured-books-carousel {
    gap: 12px;
  }
}
@media (max-width: 600px) {
  .book-catalog .book-listings,
  .event-cards,
  .featured-books-carousel {
    flex-direction: column;
    gap: 12px;
    padding: 0;
  }
  .book-card, .event-card, .featured-book-slide {
    max-width: 100%; min-width: auto; flex: 1 1 100% !important;
  }
}

/* -- Book Tabs & Search -- */
.book-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 17px;
}
.book-filter-tabs button {
  background: var(--surface);
  color: var(--secondary);
  border-radius: 20px;
  border: 1px solid var(--secondary);
  font-family: var(--font-industrial);
  font-size: 1rem;
  padding: 7px 22px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border 0.14s;
}
.book-filter-tabs button:hover, .book-filter-tabs button.active {
  background: var(--secondary);
  color: var(--background);
  border: 1px solid var(--primary);
}
.book-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.book-search-bar input {
  font-size: 1rem;
  font-family: var(--font-body);
  border-radius: 19px;
  padding: 11px 19px;
  background: #232728;
  border: 1px solid #2C353D;
  color: var(--text-primary);
  width: 270px;
  max-width: 100%;
  outline: none;
  transition: border 0.15s, background 0.18s;
}
.book-search-bar input:focus {
  background: #263141;
  border: 1.3px solid var(--secondary);
}
@media (max-width: 600px) {
  .book-search-bar input { width: 95vw; min-width: 0; }
}

/* Calendar View Summary */
.calendar-view {
  background: var(--card-bg);
  color: var(--secondary);
  font-family: var(--font-industrial);
  font-size: 1.04rem;
  border-radius: var(--radius);
  padding: 13px 22px;
  margin-top: 14px;
  box-shadow: 0 1px 11px #00000018;
}

.highlight-summary {
  font-size: 1.1rem;
  margin-bottom: 13px;
  color: var(--secondary);
  background: #222;
  border-left: 3px solid var(--secondary);
  border-radius: 8px;
  padding: 16px 22px; margin-bottom: 18px;
}

/* Review Grid for Testimonials */
.review-grid, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
}
@media (max-width: 600px) {
  .review-grid, .testimonial-list {
    flex-direction: column;
    gap: 16px;
  }
}

/* =========================
   FAQ & SUPPORT
   ========================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 28px;
}
.faq-list li {
  padding: 22px 24px 14px 18px;
  background: #222527;
  border-radius: 10px;
  box-shadow: 0 1px 9px #00000014;
}
.faq-list h3 { color: var(--secondary); margin-bottom: 8px; }
.faq-list p { color: var(--text-primary); }

.contact-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 22px;
}
.contact-info-grid > div {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 13px 22px 13px 18px;
  min-width: 180px;
  flex: 1 1 180px;
  color: var(--accent);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
  box-shadow: 0 1px 8px #00000014;
}
.contact-info-grid img {
  width: 20px;
  height: 20px;
  margin-bottom: 3px;
}
.business-hours {
  background: #222527;
  border-radius: 9px;
  padding: 11px 16px;
  color: var(--secondary);
  margin: 15px 0 8px 0;
  font-family: var(--font-industrial);
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 800px) {
  .contact-info-grid { gap: 15px; }
  .contact-info-grid > div { min-width: 130px; padding: 11px 11px; font-size: 0.98rem; }
}
@media (max-width: 600px) {
  .contact-info-grid { flex-direction: column; gap: 11px; }
  .business-hours { font-size: 0.98rem; }
}

/* =========================
   CALL TO ACTION & THANK YOU
   ========================= */
.cta {
  background: linear-gradient(92deg, #23292E 70%, #223a42 100%);
  border-top: 1.6px solid var(--border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: 54px;
}
.cta .content-wrapper {
  align-items: center;
  text-align: center;
}
.cta .cta-button {
  margin-top: 18px;
}
@media (max-width: 600px) { .cta { margin-bottom: 28px; } }

/* =========================
   FOOTER
   ========================= */
footer {
  background: #181C1F;
  border-top: 3px solid var(--border);
  margin-top: 68px;
  box-shadow: 0 -1px 14px #10151a10;
}
footer .container {
  padding: 36px 20px 12px 20px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--secondary);
  font-family: var(--font-industrial);
  font-size: 1.05rem;
  transition: color 0.16s;
}
.footer-nav a:hover { color: var(--accent); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: .98rem;
  color: #AAB7C2;
  font-family: var(--font-body);
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 7px;
  vertical-align: middle;
  filter: grayscale(100%) brightness(1.2);
}
.footer-bottom {
  width: 100%;
  text-align: left;
  color: #777C86;
  font-size: .98rem;
  margin-top: 17px;
  border-top: 1px solid #22242A;
  padding-top: 12px;
  letter-spacing: .04em;
}
@media (max-width: 600px) {
  footer .content-wrapper { gap: 12px; }
  .footer-nav { gap: 11px; }
}

/* =========================
   POLICY PAGE STYLING
   ========================= */
.policy {
  background: var(--background);
  border-radius: var(--radius);
  padding: 40px 0 40px 0;
}
.policy .container {
  max-width: 900px;
}
.policy ul {
  margin: 22px 0;
  color: var(--secondary);
  font-size: 1.02rem;
  padding-left: 18px;
  list-style-type: disc;
}
.policy ul li {
  margin-bottom: 7px;
}
.policy-date {
  margin-top: 24px;
  color: var(--secondary);
  font-family: var(--font-industrial);
  font-size: 1.1rem;
  background: #21262A;
  border-radius: 7px;
  padding: 14px 18px;
  display: inline-block;
}

/* =========================
   BUTTON COMPONENTS
   ========================= */
button,
input[type="submit"],
input[type="button"] {
  font-family: var(--font-industrial);
  font-size: 1rem;
  background: var(--secondary);
  color: var(--background);
  border: none;
  border-radius: 22px;
  padding: 9px 24px;
  font-weight: bold;
  transition: background 0.16s, color 0.16s, box-shadow 0.09s;
  box-shadow: 0 2px 8px #313a4455;
  cursor: pointer;
}
button:hover, button:focus,
input[type="submit"]:hover, input[type="submit":focus] {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 1px 12px #BDA06A95;
}

/* =========================
   COOKIE CONSENT BANNER
   ========================= */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #232527e6;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10002;
  box-shadow: 0 -2px 24px #10151a22;
  padding: 20px 16px 18px 16px;
  gap: 24px;
  animation: cookieBannerSlideIn 0.6s cubic-bezier(.54,.01,.13,.97);
}
@keyframes cookieBannerSlideIn {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 17px;
}
.cookie-consent-banner button {
  min-width: 121px;
  font-size: 1rem;
  border-radius: 22px;
  padding: 7px 24px;
}
.cookie-consent-banner button.accept {
  background: var(--secondary);
  color: var(--background);
}
.cookie-consent-banner button.reject {
  background: #313a44;
  color: #fff7ee;
  border: 1px solid #495056;
}
.cookie-consent-banner button.settings {
  background: var(--accent);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-consent-banner button:focus, .cookie-consent-banner button:hover {
  opacity: 0.9;
  outline: 2px solid var(--secondary);
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: #232527e6;
  z-index: 10003;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalFadeIn 0.5s;
}
@keyframes cookieModalFadeIn { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal {
  background: var(--card-bg);
  color: var(--accent);
  border-radius: 15px;
  max-width: 430px;
  min-width: 320px;
  padding: 37px 24px 26px 24px;
  box-shadow: 0 8px 32px #10151a60;
  display: flex;
  flex-direction: column;
  gap: 17px;
  font-family: var(--font-body);
  animation: cookieModalScale 0.38s cubic-bezier(.61,.07,.54,1.06);
}
@keyframes cookieModalScale {
  0% { transform: scale(0.84); }
  100% { transform: scale(1); }
}
.cookie-modal h2 {
  color: var(--secondary);
  margin-bottom: 6px;
  font-family: var(--font-industrial);
  font-size: 1.35rem;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  color: var(--accent);
}
.cookie-modal .cookie-category input[type=checkbox] {
  accent-color: var(--secondary);
  width: 21px; height: 21px;
  margin-right: 3px;
  cursor: pointer;
}
.cookie-modal .essential {
  color: #b6c9d3;
  font-weight: bold;
  font-size: .97rem;
  margin-left: 6px;
}
.cookie-modal .cookie-modal-actions {
  margin-top: 18px;
  display: flex;
  gap: 17px;
  flex-direction: row;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 18px; right: 16px;
  background: none;
  color: var(--secondary);
  font-size: 1.55rem;
  border: none;
  cursor: pointer;
}

/*
   Hide cookie elements by default. Use the JS to add .show or .open.
*/
.cookie-consent-banner,
.cookie-modal-overlay { display: none; }
.cookie-consent-banner.show { display: flex; }
.cookie-modal-overlay.open { display: flex; }

/* =========================
   MEDIA QUERIES - MOBILE
   ========================= */
@media (max-width: 600px) {
  h1, .hero h1, .books-hero h1, .events-hero h1, .reviews-hero h1, .support-hero h1, .thank-you h1, .contact h1 {
    font-size: 1.7rem;
    margin-bottom: 13px;
  }
  h2 { font-size: 1.23rem; margin-bottom: 12px; }
  .container { padding: 0 7px; }
  .feature-grid li, .card, .event-card, .book-card, .featured-book-slide {
    padding: 13px 11px;
    font-size: 0.98rem;
  }
  .about-brief, .brand-story, .team, .brand-philosophy, .book-catalog, .featured-books, .event-list, .event-highlights, .review-list, .write-review {
    padding: 18px 0;
  }
}

/*
   OVERRIDE: Prevent overlaps and ensure gap between all content blocks/cards
*/
.section + .section { margin-top: 0; }
.card + .card, .testimonial-card + .testimonial-card, .event-card + .event-card, .book-card + .book-card {
  margin-top: 20px;
}

/*
   Scrollbar styling for better dark mode/industrial feel
*/
::-webkit-scrollbar {
  background: #191c1e;
  width: 8px;
  border-radius: 9px;
}
::-webkit-scrollbar-thumb {
  background: #323A42;
  border-radius: 9px;
}

/*
   Accessibility: Focus-visible outlines
*/
*:focus { outline-color: var(--secondary); outline-width: 2px; outline-style: solid; }

/* =========================
   MICRO-INTERACTIONS & ANIMATIONS
   ========================= */
.card, .testimonial-card, .event-card, .book-card, .featured-book-slide {
  transition: box-shadow 0.19s, transform 0.19s, border 0.15s;
}
.cta-button, button, .main-nav a, .mobile-nav a {
  transition: background 0.16s, color 0.16s, box-shadow 0.12s, border 0.12s;
}

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