:root {
  --primary-color: #2c3e50;
  --accent-color: #e74c3c;
  --text-color: #2c3e50;
  --light-text: #ecf0f1;
  --background: #ffffff;
  --gradient-start: #2c3e50;
  --gradient-end: #3498db;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background);
}

header {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: var(--light-text);
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-family: 'Playfair Display', serif;
  margin-left: 2rem;
  text-decoration: none;
  transition: all 0.4s ease;
  position: relative;
  padding: 0.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.logo-main {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  padding-bottom: 0.2rem;
}

.logo-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: -0.2rem;
  text-transform: uppercase;
}

.logo:hover {
  transform: translateY(-2px);
}

.logo:hover .logo-main {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo:hover .logo-subtitle {
  color: rgba(255, 255, 255, 1);
}

nav {
  margin-right: 2rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin: 0 1.5rem;
}

nav ul li a {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--light-text);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('Graphics/hero-section-home.jpg') no-repeat center center/cover;
  color: var(--light-text);
  text-align: center;
  padding: 8rem 1rem;
  position: relative;
}

/* Contact page hero section */
.contact-page .hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('Graphics/hero-section-contact.jpg') no-repeat center center/cover;
}

/* Books page hero section */
.books-page .hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('Graphics/hero-section-books.jpg') no-repeat center center/cover;
}

/* News page hero section */
.news-page .hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('Graphics/hero-section-news.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding: 8rem 2rem;
  position: relative;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.content {
  padding: 4rem 2rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.content h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.content p {
  font-size: 1.1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2.5rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
  background-color: #ffffff;
}

.submit-btn {
  background: linear-gradient(135deg, var(--accent-color), #c0392b);
  color: var(--light-text);
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

footer {
  background: var(--primary-color);
  color: var(--light-text);
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 1rem;
  }

  .logo {
    margin: 0 0 1rem 0;
  }

  nav {
    margin: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin: 0.5rem 0;
  }

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

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

/* Book card styles */
.book-card {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
  text-align: left;
}

.book-cover {
  flex: 0 0 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.book-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.book-info {
  flex: 1;
}

.book-info h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin: 0 0 1rem 0;
  font-family: 'Playfair Display', serif;
}

.book-info p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.book-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.book-detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.book-detail-item span {
  font-weight: 600;
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .book-card {
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
  }

  .book-cover {
    flex: 0 0 auto;
    width: 250px;
  }

  .book-info {
    text-align: center;
  }

  .book-details {
    grid-template-columns: 1fr;
  }
}

/* News post styles */
.news-post {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
  text-align: left;
}

.news-post h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin: 0 0 1rem 0;
  font-family: 'Playfair Display', serif;
}

.news-post .date {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.news-post p {
  color: #444;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.news-post .read-more {
  display: inline-block;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.news-post .read-more:hover {
  color: #c0392b;
}

/* Home page specific styles */
.featured-book {
  margin: 4rem 0;
}

.news-preview {
  margin-top: 4rem;
}

.news-preview h2 {
  margin-bottom: 2rem;
}

.news-preview .news-post {
  margin-top: 0;
}

@media (max-width: 768px) {
  .featured-book {
    margin: 2rem 0;
  }

  .news-preview {
    margin-top: 2rem;
  }
}
