/* Doffeltje.nl - Modern Fresh Design */

:root {
  /* Fresh, Modern Color Palette inspired by Penguin & Book Covers */
  --primary-red: #ff5252;
  --vibrant-orange: #ff6b35;
  --warm-yellow: #ffd23f;
  --soft-pink: #ff9999;
  --teal: #4a9d9c;
  --deep-teal: #2c6e6d;
  --cream: #fffef9;
  --warm-beige: #f5f0e8;
  --charcoal: #2d2d2d;
  --slate: #5a5a5a;
  --light-grey: #f8f8f8;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Segoe UI', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--charcoal);
  background-color: white;
  overflow-x: hidden;
}

/* Art Deco Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

/* Navigation */
.nav-wrapper {
  background: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-bottom: 3px solid var(--primary-red);
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-img {
  height: 120px;
  width: auto;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--charcoal);
  transition: all 0.3s ease;
  border-radius: 2px;
}

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

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

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

/* Mobile menu overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-red);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-red);
}

/* Hero Section - Penguin-inspired Gallery */
.hero {
  background: linear-gradient(135deg, var(--vibrant-orange) 0%, var(--primary-red) 100%);
  color: white;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

/* Books Hero Section */
.books-hero {
  min-height: 400px;
  padding: 3rem 2rem;
}

.hero-content-books {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text-books {
  text-align: left;
  padding: 2rem 0;
}

.hero-text-books h1 {
  color: white;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  font-weight: 900;
}

.hero-text-books p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-text-books .deco-line {
  margin: 1.5rem 0;
}

/* Hero Book Covers Grid */
.hero-book-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 0;
  max-width: 700px;
  background: transparent;
  border-radius: 0;
}

.hero-book-item {
  position: relative;
  display: block;
  border-radius: 8px;
  transition: all 0.4s ease;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  padding: 16px;
}

.hero-book-item:hover {
  transform: translateY(-10px) scale(1.05);
  z-index: 10;
}

.book-inner {
  background: white;
  border-radius: 8px;
  width: 100%;
  height: 100%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
}

.hero-book-item:hover .book-inner {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Hero book items are NOT expandable - they link to books page */

/* Backdrop overlay when book is expanded */
.book-expand-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.book-expand-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.hero-book-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.hero-book-item:hover img {
  transform: scale(1.1);
}

.hero-book-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
  padding: 1.5rem 1rem 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.hero-book-item:hover .hero-book-overlay {
  transform: translateY(0);
}

.hero-book-overlay span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  display: block;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-gallery {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  text-align: left;
  padding: 2rem 0;
}

.hero h1 {
  color: white;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  font-weight: 900;
}

.hero-subtitle {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  color: white;
  font-family: var(--font-display);
  font-style: italic;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

/* Book Gallery with Frames - Penguin Style */
.hero-books {
  position: relative;
  height: 500px;
  width: 100%;
}

.book-frame {
  position: absolute;
  transition: all 0.4s ease;
  background: transparent;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
}

.book-frame:hover {
  transform: scale(1.08) rotate(0deg) !important;
  z-index: 10;
}

.book-frame:hover .book-inner {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Book frames are NOT expandable - they link to books page */

.book-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Frame Positioning - Gallery Layout with Framed Books */
.frame-1 {
  width: 180px;
  top: 30px;
  left: 30px;
  transform: rotate(-8deg);
  z-index: 3;
}

.frame-2 {
  width: 260px;
  top: 60px;
  left: 220px;
  transform: rotate(5deg);
  z-index: 2;
}

.frame-3 {
  width: 220px;
  top: 240px;
  left: 50px;
  transform: rotate(-3deg);
  z-index: 1;
}

.frame-4 {
  width: 200px;
  top: 280px;
  left: 280px;
  transform: rotate(8deg);
  z-index: 2;
}

/* Decorative Elements */
.deco-line {
  height: 4px;
  width: 100px;
  background: var(--primary-red);
  margin: 1.5rem auto;
  border-radius: 2px;
}

.deco-ornament {
  text-align: center;
  color: var(--primary-red);
  font-size: 2rem;
  margin: 1.5rem 0;
  opacity: 0.3;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Section Styling */
section {
  margin-bottom: 5rem;
}

.section-title {
  text-align: center;
  color: var(--charcoal);
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
  font-weight: 700;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-red);
  border-radius: 2px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid #f0f0f0;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-red);
}

/* Clickable Card Links */
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-link:hover .card-title {
  color: var(--primary-red);
}

.card-link .btn {
  pointer-events: none;
}

/* Highlighted Card Animation */
.highlight-card {
  animation: highlightPulse 2s ease;
  border-color: var(--primary-red);
}

@keyframes highlightPulse {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(0);
  }
  25% {
    box-shadow:
      0 0 0 8px rgba(255, 82, 82, 0.3),
      0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
  }
  50% {
    box-shadow:
      0 0 0 15px rgba(255, 82, 82, 0.1),
      0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
  }
  75% {
    box-shadow:
      0 0 0 8px rgba(255, 82, 82, 0.3),
      0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
  }
}

.card-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Expanded state when card image is pressed/held */
.card-image.expanded {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important;
  z-index: 9999 !important;
  width: auto;
  height: auto;
  max-width: 500px;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 8px;
}

.card-content {
  padding: 2rem;
}

.card-title {
  font-size: 1.5rem;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.card-subtitle {
  color: var(--primary-red);
  font-style: italic;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 500;
}

.card-description {
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--primary-red);
  color: white;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-size: 0.95rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(255, 82, 82, 0.3);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 82, 82, 0.4);
  background: #ff3333;
}

.btn-secondary {
  background: var(--teal);
  box-shadow: 0 4px 15px rgba(74, 157, 156, 0.3);
}

.btn-secondary:hover {
  background: var(--deep-teal);
  box-shadow: 0 6px 25px rgba(74, 157, 156, 0.4);
}

/* About Section with Image */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.about-image:hover img {
  transform: scale(1.02);
}

.about-text {
  padding: 1rem;
}

.about-lead {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--charcoal);
  font-weight: 400;
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--slate);
}

/* Featured Section */
.featured {
  background: var(--warm-beige);
  padding: 5rem 0;
  position: relative;
}

/* Footer */
footer {
  background: var(--charcoal);
  color: white;
  padding: 4rem 2rem 2rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red), var(--vibrant-orange), var(--primary-red));
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-red);
}

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

/* Social Media Links */
.social-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-links a:hover {
  background: var(--primary-red);
  border-color: white;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 82, 82, 0.4);
}

.social-links a svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Social Links for Contact Page (on white background) */
.container .social-links a {
  background: var(--primary-red);
  color: white;
  border: 2px solid var(--primary-red);
}

.container .social-links a:hover {
  background: white;
  border-color: var(--primary-red);
  color: var(--primary-red);
  transform: translateY(-3px) scale(1.15);
  box-shadow: 0 8px 25px rgba(255, 82, 82, 0.3);
}

.container .social-links a svg {
  width: 24px;
  height: 24px;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 3rem auto;
  background: white;
  padding: 3rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  border-top: 4px solid var(--primary-red);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  background: white;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(255, 82, 82, 0.1);
}

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

/* Responsive Design */

/* Tablet and below */
@media (max-width: 992px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .logo-img {
    height: 90px;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .hero-gallery {
    gap: 3rem;
  }

  .about-content {
    gap: 3rem;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  nav {
    padding: 1rem;
  }

  .logo-img {
    height: 70px;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: white;
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    gap: 0;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    padding: 0;
  }

  .nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    padding: 2.5rem 1rem;
    min-height: auto;
  }

  .hero-gallery {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-text {
    text-align: center;
    padding: 1rem 0;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-books {
    height: 350px;
    margin: 0 auto;
    max-width: 350px;
  }

  /* Books Hero Mobile */
  .books-hero {
    min-height: auto;
    padding: 2.5rem 1rem;
  }

  .hero-content-books {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-text-books {
    text-align: center;
    padding: 1rem 0;
  }

  .hero-text-books .deco-line {
    margin: 1.5rem auto;
  }

  .hero-book-covers {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0;
    max-width: 100%;
    margin: 0 auto;
    background: transparent;
    border-radius: 0;
  }

  /* Adjust expanded state for mobile */
  .card-image.expanded {
    max-width: 90vw;
    max-height: 80vh;
  }

  /* Adjust frame sizes and positions for mobile */
  .frame-1 {
    width: 90px;
    top: 15px;
    left: 10px;
  }

  .frame-2 {
    width: 140px;
    top: 25px;
    left: 110px;
  }

  .frame-3 {
    width: 110px;
    top: 180px;
    left: 15px;
  }

  .frame-4 {
    width: 100px;
    top: 210px;
    left: 135px;
  }

  .container {
    padding: 2.5rem 1rem;
  }

  section {
    margin-bottom: 3rem;
  }

  /* Fix book card grid for mobile - ensure full width and proper sizing */
  .card-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
  }

  /* Ensure cards take full width on mobile and are centered */
  .card {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  /* Ensure card images are properly sized for mobile */
  .card-image {
    width: 100%;
    height: auto;
    min-height: 450px;
    object-fit: cover;
  }

  /* Ensure card content has proper padding on mobile */
  .card-content {
    padding: 2rem;
  }

  /* Ensure buttons are centered and full width on mobile */
  .card .btn {
    display: block;
    margin: 0 auto;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    order: -1;
  }

  .about-text {
    text-align: center;
    padding: 0;
  }

  .about-lead {
    font-size: 1.1rem;
  }

  .about-description {
    font-size: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .social-links {
    justify-content: center;
  }

  .btn {
    padding: 0.875rem 2rem;
    font-size: 0.9rem;
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  nav {
    padding: 0.75rem;
  }

  .logo-img {
    height: 60px;
  }

  .hero {
    padding: 2rem 0.75rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-books {
    height: 300px;
    max-width: 300px;
  }

  .frame-1 {
    width: 75px;
    top: 12px;
    left: 8px;
  }

  .frame-2 {
    width: 115px;
    top: 18px;
    left: 90px;
  }

  .frame-3 {
    width: 90px;
    top: 155px;
    left: 10px;
  }

  .frame-4 {
    width: 85px;
    top: 180px;
    left: 105px;
  }

  .container {
    padding: 2rem 0.75rem;
  }

  /* Ensure cards remain full width on small mobile */
  .card {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
  }

  /* Adjust card image height for smaller screens */
  .card-image {
    min-height: 400px;
  }

  .card-content {
    padding: 1.75rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    width: 100%;
    max-width: 280px;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }
}

/* Loading Animation */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--slate);
}

.loading::after {
  content: '...';
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%,
  20% {
    content: '.';
  }
  40% {
    content: '..';
  }
  60%,
  100% {
    content: '...';
  }
}

/* Link Button */
.btn-link {
  background: none;
  border: none;
  color: var(--teal);
  text-decoration: underline;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.25rem 0;
  margin-top: 0.5rem;
  transition: color 0.3s ease;
}

.btn-link:hover {
  color: var(--deep-teal);
}

/* Book Description Wrapper */
.book-description-wrapper {
  margin-top: 1rem;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 4rem;
}

.mb-4 {
  margin-bottom: 4rem;
}

.hidden {
  display: none;
}

/* Header Carousel - 7 Slides, 1 Image Per Slide, No Text */
.hero-with-carousel {
  padding-bottom: 2rem;
}

.header-carousel {
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 0;
  position: relative;
}

.header-carousel .carousel-container {
  position: relative;
  padding: 0 50px;
  overflow: hidden;
}

.header-carousel .carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  scroll-behavior: smooth;
  overflow: visible;
}

.header-carousel .carousel-slide {
  min-width: calc(33.333% - 0.67rem); /* 3 slides on desktop */
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
  display: block;
  aspect-ratio: 1 / 1; /* Square slides */
  text-decoration: none;
  position: relative;
}

.header-carousel .carousel-slide:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.header-carousel .carousel-slide-image {
  width: 100%;
  height: auto;
  object-fit: contain; /* NEVER stretch or crop */
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
}

.header-carousel .carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid white;
  color: var(--primary-red);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-carousel .carousel-button:hover:not(:disabled) {
  background: white;
  color: var(--primary-red);
  box-shadow: 0 4px 15px rgba(255, 82, 82, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.header-carousel .carousel-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.6);
}

.header-carousel .carousel-button-prev {
  left: 0;
}

.header-carousel .carousel-button-next {
  right: 0;
}

.header-carousel .carousel-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.header-carousel .carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.header-carousel .carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.header-carousel .carousel-dot.active {
  background: white;
  border-color: white;
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.header-carousel .carousel-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

/* Responsive Header Carousel - 3 slides desktop, 2 tablet, 1 mobile */
@media (max-width: 1024px) {
  .header-carousel {
    max-width: 600px;
  }

  .header-carousel .carousel-slide {
    min-width: calc(50% - 0.5rem); /* 2 slides on tablet */
  }
}

@media (max-width: 768px) {
  .header-carousel {
    max-width: 350px;
  }

  .header-carousel .carousel-container {
    padding: 0 45px;
  }

  .header-carousel .carousel-slide {
    min-width: 100%; /* 1 slide on mobile */
  }

  .header-carousel .carousel-button {
    width: 40px;
    height: 40px;
  }

  .header-carousel .carousel-button svg {
    width: 18px;
    height: 18px;
  }

  .hero-with-carousel .hero-content p {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .header-carousel {
    margin-top: 1.5rem;
    max-width: 300px;
  }

  .header-carousel .carousel-container {
    padding: 0 40px;
  }

  .header-carousel .carousel-slide {
    min-width: 100%; /* 1 slide on small mobile */
  }

  .header-carousel .carousel-track {
    gap: 0.5rem;
  }

  .header-carousel .carousel-button {
    width: 36px;
    height: 36px;
  }

  .header-carousel .carousel-button svg {
    width: 16px;
    height: 16px;
  }
}

/* Media Mentions Grid */
.media-mentions-grid {
  display: grid;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.media-mention-card {
  background: white;
  border: 2px solid var(--light-grey);
  border-left: 4px solid var(--primary-red);
  padding: 0;
  border-radius: 8px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.media-mention-card:hover {
  border-left-color: var(--vibrant-orange);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.media-mention-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.media-mention-content {
  padding: 2rem;
}

.media-mention-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.media-mention-source {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--deep-teal);
  font-weight: 700;
  margin: 0;
}

.media-mention-date {
  font-size: 0.9rem;
  color: var(--slate);
  margin: 0;
}

.media-mention-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--charcoal);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.media-mention-excerpt {
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.media-mention-link {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.media-mention-link:hover {
  color: var(--vibrant-orange);
}

/* Card Date Style */
.card-date {
  font-size: 0.9rem;
  color: var(--slate);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Additional light teal background color */
.light-teal {
  background-color: #e8f4f4;
}

/* Responsive adjustments for media page */
@media (max-width: 768px) {
  .media-mention-content {
    padding: 1.5rem;
  }

  .media-mention-image {
    height: 220px;
  }

  .media-mention-title {
    font-size: 1.3rem;
  }

  .media-mention-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
