
  :root {
    --primary: #2a3990;
    --secondary: #e63946;
    --accent: #ffb703;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
  }

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

  body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
  }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark);
  }

  h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
  }

  h2 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
  }

  h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
  }

  a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
  }

  a:hover {
    color: var(--secondary);
  }

  section {
    position: relative;
    padding: 5rem 2rem;
  }

  .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.1;
  }

  .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
  }

  .section-header h2 {
    position: relative;
    display: inline-block;
  }

  .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
  }

  .btn-primary, .btn-secondary, .btn-tertiary, .btn-outline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
  }

  .btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: none;
  }

  .btn-primary:hover {
    background-color: #1e2a6e;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
  }

  .btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
    border: none;
  }

  .btn-secondary:hover {
    background-color: #c8313d;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
  }

  .btn-tertiary {
    background-color: var(--accent);
    color: var(--dark);
    border: none;
  }

  .btn-tertiary:hover {
    background-color: #e6a600;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
  }

  .btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
  }

  .btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
  }

  .view-all {
    display: block;
    text-align: center;
    margin-top: 2rem;
    font-weight: 600;
    font-size: 1.1rem;
  }

  .view-all i {
    margin-left: 0.5rem;
    transition: var(--transition);
  }

  .view-all:hover i {
    transform: translateX(5px);
  }

  /* Hero Section */
  .hero {
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    background-color: var(--dark);
  }

  .hero .bg-image {
    opacity: 0.7;
  }

  .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    backdrop-filter: blur(5px);
  }

  .hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }

  .hero p {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  }

  /* Featured Books */
  .featured-books {
    background-color: var(--white);
  }

  .book-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }

  .book-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    padding-bottom: 1.5rem;
  }

  .book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  }

  .book-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
  }

  .book-card h3, .book-card p, .book-card .book-rating, .book-card .btn-secondary {
    padding: 0 1.5rem;
  }

  .book-card h3 {
    margin-top: 1.5rem;
    font-size: 1.5rem;
  }

  .book-card p {
    color: var(--gray);
    margin-bottom: 0.75rem;
  }

  .book-rating {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
  }

  .book-rating span {
    margin-left: 0.5rem;
    color: var(--gray);
  }

  /* Reading Spaces */
  .reading-spaces {
    background-color: var(--light);
  }

  .content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
  }

  .text-content {
    flex: 1;
    min-width: 300px;
  }

  .image-collage {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1rem;
  }

  .image-collage img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
  }

  .image-collage img:hover {
    transform: scale(1.05);
  }

  .image-collage img:first-child {
    grid-column: 1 / 3;
  }

  /* Events */
  .events {
    background-color: var(--white);
  }

  .events-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }

  .event-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    background-color: var(--light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
  }

  .event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }

  .event-date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--primary);
    color: var(--white);
    min-width: 100px;
  }

  .event-date .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
  }

  .event-date .month {
    font-size: 1rem;
    text-transform: uppercase;
  }

  .event-details {
    padding: 1.5rem;
    flex: 1;
  }

  .event-details h3 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
  }

  .event-type, .event-location, .event-time {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--gray);
  }

  .event-type i, .event-location i, .event-time i {
    margin-right: 0.5rem;
    color: var(--primary);
  }

  .event-details .btn-tertiary {
    margin-top: 1rem;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  /* Book Categories */
  .book-categories {
    background-color: var(--light);
  }

  .categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }

  .category-card {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--dark);
  }

  .category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }

  .category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  .category-card h3, .category-card p {
    padding: 0 1.5rem;
  }

  .category-card h3 {
    margin-top: 1.5rem;
    font-size: 1.3rem;
  }

  .category-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
  }

  /* Newsletter */
  .newsletter {
    background-color: var(--primary);
    color: var(--white);
  }

  .newsletter-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
  }

  .newsletter h2, .newsletter p {
    color: var(--white);
  }

  .newsletter form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .form-group {
    text-align: left;
  }

  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
  }

  .form-group input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
  }

  .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .checkbox-group input {
    margin-top: 0.25rem;
  }

  .checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
  }

  /* Testimonials */
  .testimonials {
    background-color: var(--white);
  }

  .testimonials-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }

  .testimonial-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background-color: var(--light);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
  }

  .testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
  }

  .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
  }

  .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .testimonial-author h3 {
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
  }

  .rating {
    color: var(--accent);
  }

  .testimonial-text {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 0;
  }

  /* Responsive Design */
  @media (max-width: 768px) {
    section {
      padding: 3rem 1.5rem;
    }

    h1 {
      font-size: 2.5rem;
    }

    h2 {
      font-size: 2rem;
    }

    .hero {
      height: 80vh;
    }

    .hero h1 {
      font-size: 2.5rem;
    }

    .hero p {
      font-size: 1.1rem;
    }

    .book-carousel, .events-grid, .categories-container, .testimonials-container {
      gap: 1.5rem;
    }

    .event-card {
      flex-direction: column;
    }

    .event-date {
      flex-direction: row;
      padding: 1rem;
      min-width: auto;
    }

    .event-date .day {
      margin-right: 0.5rem;
    }

    .image-collage {
      grid-template-columns: 1fr;
    }

    .image-collage img:first-child {
      grid-column: 1;
    }
  }

  @media (min-width: 769px) and (max-width: 1024px) {
    section {
      padding: 4rem 2rem;
    }

    .hero h1 {
      font-size: 3rem;
    }
  }

  @media (min-width: 1025px) {
    section {
      padding: 5rem 3rem;
    }

    .hero-content {
      max-width: 900px;
    }

    .hero h1 {
      font-size: 4rem;
    }

    .hero p {
      font-size: 1.5rem;
    }
  }
