/* ----- COLOR PALETTE ----- */
:root {
  --primary: #b15c2a;    /* Warm - clay/earth (historical) */
  --secondary: #20405a;  /* Cold - deep blue (epic, calm) */
  --accent: #e7b563;     /* Warm - gold (friendly, inviting) */
  --light-bg: #fcf8f1;   /* Very light background */
  --text-main: #20201e;  /* Main text (almost black) */
}

/* ----- GLOBAL RESET & BASE ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  background: var(--light-bg);
  color: var(--text-main);
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'Liberation Sans', sans-serif;
}
a {
  text-decoration: none;
  color: inherit;
}

.site-header {
  background: var(--light-bg);
  border-bottom: 1.5px solid var(--secondary);
  box-shadow: 0 2px 16px rgba(32,64,90, 0.05);
  width: 100%;
  z-index: 100;
}

/* ----- NAVBAR ----- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.4rem 1.5rem;
  min-height: 63px;
  position: relative;
}
.brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--primary);
  padding-right: 1rem;
  font-family: 'Merriweather', Georgia, serif;
  text-shadow: 0 1px 0 rgba(183,140,60,0.02);
  transition: color 0.2s;
}
.brand:hover { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  flex-shrink: 1;
  flex-wrap: nowrap;
  font-size: 0.9rem;
  font-weight: 500;
  transition: font-size 0.2s;
}
.nav-links li a {
  color: var(--secondary);
  padding: 8px 9px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-links li a:hover,
.nav-links li a:focus {
  background: var(--accent);
  color: var(--primary);
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
}

/* ----- HAMBURGER ----- */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 4.3px;
}
.hamburger span {
  width: 28px;
  height: 3.5px;
  background: var(--secondary);
  display: block;
  border-radius: 2px;
  transition: 0.28s;
}

/* --------- MOBILE NAV OVERLAY --------- */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(32, 64, 90, 0.89);
  z-index: 999;
  transition: opacity 0.18s;
}
.mobile-nav-overlay.open {
  display: block;
  animation: fadeIn 0.26s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.mobile-nav {
  width: 100vw;
  max-width: 365px;
  height: 100%;
  background: var(--light-bg);
  box-shadow: 2px 0 18px 4px rgba(50,60,80,0.06);
  padding: 2.5rem 1.5rem 1.5rem 2rem;
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 2.1rem;
  animation: slideIn 0.34s cubic-bezier(.42,1.3,.38,.95);
}
@keyframes slideIn {
  from { right: -370px; opacity: 0; }
  to   { right: 0; opacity: 1; }
}
.mobile-nav .close-mobile-nav {
  font-size: 2.3rem;
  color: var(--primary);
  background: none;
  border: none;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 1.2rem;
  outline: none;
  transition: color 0.16s;
}
.mobile-nav .close-mobile-nav:hover { color: var(--secondary); }
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  list-style: none;
}
.mobile-nav ul li a {
  font-size: 1.09rem;
  color: var(--secondary);
  font-weight: 600;
  border-radius: 5px;
  padding: 8px 6px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav ul li a:hover,
.mobile-nav ul li a:focus {
  background: var(--accent);
  color: var(--primary);
}

/* Mobile menu label */
.menu-label {
  color: var(--secondary);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.07em;
}

/* ----- RESPONSIVE ADJUSTMENTS ----- */
@media (max-width: 1050px) {
  .nav-links {
    gap: 0.75rem;
    font-size: 0.86rem;
  }
  .brand { font-size: 1.25rem; }
}
@media (max-width: 900px) {
  .navbar {
    padding: 0.3rem 0.85rem;
  }
  .nav-links {
    gap: 0.3rem;
    font-size: 0.79rem;
  }
  .brand { font-size: 1.1rem; }
}
@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 430px) {
  .brand { font-size: 1rem; padding-right: 0.2rem; }
  .mobile-nav-overlay { background: rgba(32,64,90,0.95); }
  .mobile-nav { padding-left: 1rem; }
}

/* --- HERO INTRO SECTION --- */
.hero-intro {
  position: relative;
  height: 70vh;
  min-height: 400px;
  max-height: 740px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background: #111;
}
.hero-bg-video {
  width: 100vw;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.61) grayscale(0.12) blur(0.2px);
  /* Slight filter for a dramatic look and to boost overlay text contrast */
  transition: filter 0.4s;
}

/* Dark overlay for readability */
.hero-video-bg::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg, 
    rgba(32,64,90,0.52) 20%, 
    rgba(177,92,42,0.23) 65%, 
    rgba(32,64,90,0.57) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Centered overlay content */
.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: hero-fadein 1.2s 0.3s both;
  /* Smooth entrance effect */
}

/* Title Styling */
.hero-overlay h1 {
  color: var(--light-bg);
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  letter-spacing: 0.015em;
  line-height: 1.16;
  margin-bottom: 1.45rem;
  text-shadow: 
    0 2px 18px rgba(32,64,90,0.28),
    0 0px 5px rgba(183,140,60,0.07);
  background: linear-gradient(
    90deg, 
    var(--primary) 10%, 
    var(--secondary) 85%, 
    var(--accent) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transition: background 0.4s;
}
.hero-overlay h1 span {
  display: inline-block;
  background: linear-gradient(
    90deg, 
    var(--accent) 20%,
    var(--primary) 62%,
    var(--secondary) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* --- CTA BUTTON --- */
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--secondary);
  font-family: inherit;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.012em;
  padding: 0.92em 2.4em;
  border-radius: 36px;
  box-shadow: 0 3px 32px 0 rgba(177,92,42,0.13);
  border: none;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.23s;
  cursor: pointer;
  margin-top: 0.2rem;
  outline: none;
  opacity: 0.96;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: var(--light-bg);
  box-shadow: 0 8px 28px 0 rgba(32,64,90,0.22);
  transform: translateY(-3px) scale(1.03);
  opacity: 1;
}

/* Animation */
@keyframes hero-fadein {
  from { opacity: 0; transform: translateY(40px);}
  to   { opacity: 1; transform: none;}
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
  .hero-intro { height: 59vh; min-height: 240px; }
  .hero-overlay h1 {
    font-size: clamp(1.25rem, 6vw, 2rem);
    margin-bottom: 1.13rem;
  }
  .cta-btn { font-size: 1.02rem; padding: 0.68em 1.7em; }
}

/* Adapt for very small phones */
@media (max-width: 370px) {
  .hero-intro { height: 45vh; }
  .hero-overlay h1 { font-size: 1.03rem; }
}


/* Visually hidden but accessible (for SEO/structure) */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
  border: 0; padding: 0; margin: -1px;
}

.epic-about {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  min-height: 180px;
  background: none;
  padding: 2.4rem 1rem 2.4rem 1rem;
}

.about-short-box {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255,255,255,0.50);
  border-radius: 23px;
  border: 2.4px solid;
  border-image: linear-gradient(
    110deg,
    rgba(231,181,99,0.9) 5%,
    rgba(177,92,42,0.75) 40%,
    rgba(32,64,90,0.31) 100%
  ) 1;
  box-shadow:
    0 4px 32px 5px rgba(177,92,42,0.11),
    0 0 0 10px rgba(231,181,99,0.05) inset;
  /* glass effect */
  backdrop-filter: blur(8.5px) saturate(1.2);
  -webkit-backdrop-filter: blur(8.5px) saturate(1.2);
  padding: 2.7em 2.0em 2.0em 2.0em;
  text-align: center;
  animation: aboutEpicFadeIn 1.2s 0.28s both;
}

.about-short-box::before {
  /* Epic glowing radial highlight */
  content: "";
  position: absolute;
  left: 50%; top: -28%;
  transform: translateX(-50%);
  width: 310px; height: 110px;
  background: radial-gradient(
    ellipse at center,
    rgba(231,181,99,0.17) 0%,
    rgba(177,92,42,0.03) 88%,
    transparent 100%
  );
  opacity: 0.68;
  z-index: 0;
  pointer-events: none;
}

.about-short-box p {
  position: relative;
  z-index: 1;
  font-size: clamp(1.13rem, 2.2vw, 1.33rem);
  color: var(--secondary);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.007em;
  margin: 0;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  text-align: center;
}

.about-short-box p strong {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.01em;
  letter-spacing: 0.01em;
}

/* Decorative Icon */
.about-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.25rem;
  animation: aboutIconEnter 1.04s both cubic-bezier(.44,1.3,.35,1.05);
  filter: drop-shadow(0 3px 13px rgba(231,181,99,0.25));
  background: none;
}
.about-icon svg {
  width: 2.7rem;
  height: 2.7rem;
  display: block;
}

/* Epic fade-in: slight scale and upward move */
@keyframes aboutEpicFadeIn {
  0% { opacity: 0; transform: translateY(46px) scale(0.97);}
  68% { opacity: 1; transform: translateY(-10px) scale(1.02);}
  100% { opacity: 1; transform: none;}
}
@keyframes aboutIconEnter {
  0% { opacity: 0; transform: translateY(-26px) scale(0.8);}
  80% { opacity: 1; transform: translateY(7px) scale(1.16); }
  100% { opacity: 1; transform: none;}
}

/* Responsive */
@media (max-width: 780px) {
  .about-short-box { padding: 2.2em 0.7em 1.5em 0.7em; }
  .about-short-box::before { width: 210px; height: 80px; }
}
@media (max-width: 480px) {
  .epic-about { padding: 1rem 0.05rem; }
  .about-short-box { padding: 1.3em 0.44em 1.1em 0.44em; border-radius: 13px;}
  .about-short-box p { font-size: 0.99rem; }
  .about-icon svg { width: 2.1rem; height: 2.1rem; }
}

.pages-preview {
  width: 100%;
  max-width: 1230px;
  margin: 0 auto;
  padding: 2.4rem 1rem 2.9rem 1rem;
}

.preview-title {
  text-align: center;
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(1.44rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.011em;
  margin-bottom: 2.3rem;
  color: var(--primary);
  background: linear-gradient(
    95deg, 
    var(--primary) 10%, 
    var(--secondary) 94%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.preview-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.2rem;
  align-items: stretch;
  width: 100%;
  margin: 0 auto;
  overflow-x: visible;
}

/* Card Styling */
.preview-card {
  background: rgba(255,255,255,0.84);
  border-radius: 14px;
  box-shadow:
    0 8px 22px -8px rgba(32,64,90,0.11),
    0 0 0 2.5px var(--accent) inset;
  border: 1.5px solid rgba(231,181,99,0.11);
  transition: box-shadow 0.23s, transform 0.20s, border 0.20s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 258px;
  max-width: 250px;
  margin: 0 auto;
  animation: cardFadeIn 0.85s both;
  will-change: transform, box-shadow;
}

.preview-card:hover, .preview-card:focus-within {
  box-shadow: 0 12px 28px -3px rgba(177,92,42,0.17),
    0 0 0 5px var(--primary) inset;
  border-color: var(--primary);
  transform: translateY(-7px) scale(1.025);
  z-index: 1;
}

.card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  width: 100%;
  height: 100%;
  padding: 1.25rem 0.85rem 1.05rem 0.85rem;
  gap: 1rem;
}

.preview-card picture,
.preview-card img {
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 9px;
  overflow: hidden;
  box-shadow:
    0 2px 7px 0 rgba(32,64,90,0.12),
    0 0 0 2px var(--accent) inset;
  background: var(--accent);
}

.preview-card img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  object-position: center;
  border-radius: 9px;
}

.preview-card h3 {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.09rem);
  color: var(--secondary);
  font-weight: 800;
  letter-spacing: 0.018em;
  text-align: center;
  min-height: 2.8em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-card p {
  margin: 0 auto;
  font-size: clamp(0.93rem, 1.39vw, 1.05rem);
  color: var(--text-main);
  font-weight: 500;
  text-align: center;
  line-height: 1.38;
  min-height: 3em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-arrow {
  display: block;
  color: var(--primary);
  font-size: 1.4em;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin: 0.5em auto 0 auto;
  transition: color 0.17s, transform 0.17s;
}

.preview-card:hover .card-arrow,
.preview-card:focus-within .card-arrow {
  color: var(--secondary);
  transform: translateX(4px) scale(1.09);
}

/* Card Entrance Animation */
@keyframes cardFadeIn {
  0% { opacity: 0; transform: translateY(34px) scale(0.97);}
  80% { opacity: 1; transform: translateY(-5px) scale(1.03);}
  100% { opacity: 1; transform: none;}
}

/* Responsive: shrink cards gracefully so all 5 fit */
@media (max-width: 1100px) {
  .preview-cards {
    gap: 1.15rem;
  }
  .preview-card {
    max-width: 200px;
    font-size: 0.97rem;
    min-height: 212px;
  }
  .card-link {
    padding: 0.95rem 0.33rem 0.88rem 0.33rem;
    gap: 0.7rem;
  }
}

@media (max-width: 900px) {
  .pages-preview {
    padding: 1.1rem 0.2rem 2rem 0.2rem;
  }
  .preview-cards {
    gap: 0.6rem;
  }
  .preview-card {
    max-width: 150px;
    min-height: 160px;
  }
  .preview-card h3 {
    min-height: 2em;
    font-size: 0.98rem;
  }
  .preview-card p {
    font-size: 0.85rem;
    min-height: 2.45em;
  }
  .preview-card img,
  .preview-card picture {
    width: 38px;
    height: 38px;
    border-radius: 6px;
  }
}

/* On mobile, stack cards vertically */
@media (max-width: 600px) {
  .preview-title { font-size: 1.11rem; margin-bottom: 0.7rem; }
  .preview-cards {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .preview-card {
    max-width: 425px;
    min-width: 0;
    width: 100%;
    min-height: 102px;
    border-radius: 8px;
  }
  .card-link {
    padding: 0.95rem 0.22rem 0.65rem 0.22rem;
    gap: 0.38rem;
  }
  .preview-card h3 {
    font-size: 0.95rem;
    min-height: 1.1em;
  }
  .preview-card p {
    font-size: 0.80rem;
    min-height: 1.22em;
  }
  .preview-card img,
  .preview-card picture {
    width: 34px;
    height: 34px;
    border-radius: 4px;
  }
}

/* Smaller phones */
@media (max-width: 390px) {
  .preview-card {
    max-width: 97vw;
    min-height: 94px;
  }
  .preview-card h3 { font-size: 0.84rem; }
  .preview-card p { font-size: 0.70rem; }
  .preview-card img,
  .preview-card picture {
    width: 28px; height: 28px;
  }
}











.about-vintage {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 2.2rem 0 2.4rem 0;
  background: none;
}

.about-vintage-inner {
  max-width: 720px;
  background: linear-gradient(113deg, #f9f6ec 97%, #f8ebd8 100%); /* parchmenty warmth */
  border: double 3.2px transparent;
  border-image: linear-gradient(
    120deg,
    #e7b563 13%,
    #b15c2a 45%,
    #b15c2a 55%,
    #20405a 100%
  ) 1;
  border-radius: 18px;
  box-shadow:
    0 2px 32px 4px rgba(32, 64, 90, 0.07),
    0 0px 1.8px 0 #b15c2a11 inset;
  padding: 2.35rem 2.4rem 2rem 2.4rem;
  text-align: center;
  position: relative;
  /* subtle grain/texture effect with a semi-transparent PNG if desired */
  /* background-image: url('/assets/parchment-texture.png'); */
}

.vintage-divider {
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
  opacity: 0.94;
}

.about-vintage-inner p {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(1.11rem, 2.1vw, 1.27rem);
  color: #20405a;
  line-height: 1.67;
  letter-spacing: 0.003em;
  font-weight: 500;
  margin: 0;
  text-shadow: 0 1px 0 #f8ebd8, 0 2px 10px #efd7b722;
  /* Subtle character to match the vintage/period theme */
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .about-vintage-inner {
    padding: 1.3rem 0.8rem 1.2rem 0.8rem;
    border-radius: 10px;
  }
  .about-vintage-inner p {
    font-size: 0.96rem;
  }
  .vintage-divider svg { width: 55px; }
}
























.pages-preview {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.2rem 1rem 2.5rem 1rem;
}
.preview-title {
  text-align: center;
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 2.6rem;
  color: var(--primary);
  background: linear-gradient(95deg, var(--primary) 10%, var(--secondary) 94%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.preview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 1.2rem 2.2rem; /* Less vertical gap, reasonable horizontal */
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

.preview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(112deg, #fcf8f1 83%, #f7eedc 100%);
  border: double 2.6px transparent;
  border-image: linear-gradient(120deg, #e7b563 13%, #b15c2a 55%, #20405a 100%) 1;
  border-radius: 20px;
  box-shadow: 0 4px 24px 0 rgba(32,64,90,0.10), 0 2px 12px 0 rgba(177,92,42,0.03);
  overflow: hidden;
  padding: 0.85rem 0.7rem 1.0rem 0.7rem;
  min-width: 0;
  min-height: 295px; /* MUCH smaller! */
  max-width: 330px;
  transition: box-shadow 0.23s, transform 0.16s, border 0.17s, background 0.24s;
  position: relative;
}



.preview-card:hover,
.preview-card:focus-within {
  box-shadow: 0 10px 38px 4px rgba(32,64,90,0.13),
    0 0 0 6px #b15c2a22 inset;
  border-image: linear-gradient(120deg, #b15c2a 35%, #e7b563 100%) 1;
  background: linear-gradient(118deg,#f9f1e0 82%,#fde5b9 100%);
  transform: translateY(-5px) scale(1.025);
  z-index: 1;
}

.card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  width: 100%;
  height: 100%;
  text-align: center;
  text-decoration: none;
  color: inherit;
}


.preview-card picture,
.preview-card img {
  width: 100px;
  height: 100px;
  max-width: 220px;
  max-height: 220px;
  margin: 0 auto 0.7rem auto; /* tighter below image */
  border-radius: 13px;
}



.preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
}

.preview-card h3 {
  margin: 0 0 0.3em 0;
  font-size: clamp(1.12rem, 2vw, 1.26rem);
  color: var(--secondary);
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 800;
  letter-spacing: 0.024em;
  min-height: 1.3em; /* tighter title */
}

.preview-card p {
  margin: 0 auto;
  font-size: clamp(1rem, 1.2vw, 1.09rem);
    color: var(--text-main);
  font-weight: 500;
  font-family: inherit;
  line-height: 1.55;
  min-height: 2em;
    display: flex;
  align-items: center;
  justify-content: center;
    padding-bottom: 0.3em;
}

.card-arrow {
  display: block;
  color: var(--primary);
  font-size: 1.5em;
    font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0.3em auto 0 auto;
    transition: color 0.17s, transform 0.15s;
}

.preview-card:hover .card-arrow,
.preview-card:focus-within .card-arrow {
  color: var(--secondary);
  transform: translateX(5px) scale(1.08);
}

@media (max-width: 1100px) {
  .pages-preview {
    max-width: 940px;
    padding: 1.7rem 0.2rem 2.1rem 0.2rem;
  }
  .preview-cards {
    gap: 1.2rem 1.3rem;
  }
  .preview-card {
    min-height: 325px;
    padding: 1.1rem 0.5rem 1.2rem 0.5rem;
  }
  .preview-card picture,
  .preview-card img {
    width: 110px;
    height: 110px;
    border-radius: 8px;
    margin-bottom: 0.8rem;
  }
}

@media (max-width: 780px) {
  .preview-cards {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 1rem 0.7rem;
  }
  .preview-card {
    min-height: 234px;
    padding: 0.77rem 0.13rem 0.8rem 0.13rem;
  }
  .preview-card picture,
  .preview-card img {
    width: 78px; height: 78px; border-radius: 6px;
  }
  .preview-card h3 { font-size: 1rem; min-height: 2em;}
  .preview-card p { font-size: 0.92rem; min-height: 2em; }
  .card-arrow { font-size: 1.2em; }
}

@media (max-width: 540px) {
  .preview-cards {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, auto);
    gap: 0.8rem;
  }
  .preview-card {
    min-height: 128px;
    max-width: 97vw;
    border-radius: 9px;
    padding: 0.85rem 0.09rem 0.6rem 0.09rem;
  }
  .preview-card picture,
  .preview-card img {
    width: 42px; height: 42px; border-radius: 5px; margin-bottom: 0.6rem;
  }
  .preview-card h3 { font-size: 0.91rem; min-height: 1.2em;}
  .preview-card p { font-size: 0.81rem; min-height: 1.1em; }
  .card-arrow { font-size: 1.1em; }
}