/* Year Book 360 - Editorial Library Aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  /* Color Palette - Inspired by old libraries and manuscripts */
  --primary: #2C1810;
  --secondary: #8B4513;
  --accent: #D4A574;
  --accent-light: #E8C9A0;
  --bg-primary: #FFF9F0;
  --bg-secondary: #F5EFE6;
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --border: #D4A574;
  --shadow: rgba(44, 24, 16, 0.15);
  
  /* Typography */
  --font-display: 'Raleway', serif;
  --font-body: 'Crimson Text', serif;
  --font-accent: 'Raleway', serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.8;
  font-size: 18px;
  overflow-x: hidden;
}

/* Decorative Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(212, 165, 116, 0.03) 2px, rgba(212, 165, 116, 0.03) 4px);
  pointer-events: none;
  z-index: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: 4rem; letter-spacing: -0.02em; }
h2 { font-size: 3rem; letter-spacing: -0.01em; }
h3 { font-size: 2.25rem; }
h4 { font-size: 1.75rem; }

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* Navigation */
.navbar {
  background: rgba(255, 249, 240, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--accent);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px var(--shadow);
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary) !important;
  letter-spacing: -0.01em;
}

.navbar-brand:hover {
  color: var(--secondary) !important;
}

.nav-link {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  color: var(--text-primary) !important;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #2C1810 0%, #5C3A2A 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('images/banner.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  animation: fadeInUp 1s ease;
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  text-shadow: 3px 3px 20px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn-hero {
  background: var(--accent);
  color: var(--primary);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.1rem;
  border: 3px solid var(--accent);
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 1rem;
}

.btn-hero:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
}

/* Section Styles */
.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 1rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Book Card */
.book-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px var(--shadow);
  height: 100%;
  border: 1px solid var(--border);
}

.book-card:hover {
  transform: translateY(-10px) rotate(1deg);
  box-shadow: 0 20px 40px rgba(44, 24, 16, 0.25);
}

.book-card-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-bottom: 3px solid var(--accent);
}

.book-card-body {
  padding: 1.5rem;
}

.book-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.book-card-author {
  font-style: italic;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.book-card-price {
  font-family: var(--font-accent);
  font-size: 1.75rem;
  color: var(--accent);
  font-weight: 700;
}

/* Article Card */
.article-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px var(--shadow);
  margin-bottom: 2rem;
  border-left: 5px solid var(--accent);
}

.article-card:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 40px rgba(44, 24, 16, 0.2);
}

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

.article-card-body {
  padding: 2rem;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  font-style: italic;
}

/* Service Card */
.service-card {
  background: linear-gradient(135deg, #F5EFE6 0%, white 100%);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  border: 2px solid var(--accent);
  box-shadow: 0 10px 30px var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  z-index: -1;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
  transform: rotate(45deg);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(44, 24, 16, 0.3);
}

.service-icon {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.service-price {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--secondary);
  font-weight: 700;
  margin: 1rem 0;
}

/* Testimonial */
.testimonial {
  background: white;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  margin: 1rem;
  box-shadow: 0 4px 20px var(--shadow);
  border-top: 4px solid var(--accent);
  font-style: italic;
  position: relative;
}

.testimonial::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 6rem;
  position: absolute;
  top: -20px;
  left: 20px;
  color: var(--accent);
  opacity: 0.3;
}

.testimonial-author {
  margin-top: 1.5rem;
  font-style: normal;
  font-weight: 600;
  color: var(--secondary);
  text-align: right;
}

/* Newsletter */
.newsletter {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('images/cta.jfif');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: -1;
}

.footer-bottom p{
  color: #ececec;
}

.newsletter > *{
  z-index: 3;
}

.newsletter-form {
  max-width: 600px;
  margin: 2rem auto 0;
  display: flex;
  gap: 1rem;
  position: relative;
}

.newsletter-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid white;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: rgba(255,255,255,0.9);
}

.btn-newsletter {
  padding: 1rem 2rem;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-accent);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-newsletter:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px var(--shadow);
  border: 2px solid var(--accent);
}

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

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

.form-control {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.btn-submit {
  background: var(--secondary);
  color: white;
  padding: 1rem 3rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-submit:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(44, 24, 16, 0.3);
}

/* Contact Info Card */
.contact-info-card {
  background: linear-gradient(135deg, #F5EFE6 0%, white 100%);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  border: 2px solid var(--accent);
  height: 100%;
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow);
}

.contact-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background: var(--primary);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}

.footer-section h5 {
  font-family: var(--font-display);
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: white;
  padding: 1.5rem;
  box-shadow: 0 -4px 20px var(--shadow);
  z-index: 10000;
  display: none;
  animation: slideUp 0.5s ease;
}

.cookie-banner.active {
  display: block;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.cookie-text {
  flex: 1;
}

.btn-cookie {
  background: var(--accent);
  color: var(--primary);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-accent);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-cookie:hover {
  background: var(--accent-light);
}

/* Google Map */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px var(--shadow);
  border: 3px solid var(--accent);
}

/* Book Detail Page */
.book-detail-hero {
  background: linear-gradient(135deg, #F5EFE6 0%, white 100%);
  padding: 4rem 0;
  border-bottom: 3px solid var(--accent);
}

.book-detail-img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px var(--shadow);
  border: 5px solid white;
}

.book-detail-info {
  padding: 2rem 0;
}

.book-price-tag {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent);
  font-weight: 700;
  margin: 2rem 0;
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.book-meta-item {
  flex: 1;
  min-width: 200px;
}

.book-meta-label {
  font-family: var(--font-accent);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Article Detail Page */
.article-hero {
  position: relative;
  height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.article-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
}

.article-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.article-content {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 2rem;
  font-size: 1.2rem;
  line-height: 1.9;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h3 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

/* Policy Pages */
.policy-content {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 4rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px var(--shadow);
  border: 2px solid var(--accent);
}

.policy-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
}

.policy-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.policy-content ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease;
}

/* Hover Effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--shadow);
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  
  .hero { min-height: 60vh; }
  .hero h1 { font-size: 3rem; }
  
  .section { padding: 3rem 0; }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .policy-content {
    padding: 2rem;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}





.navbar-brand img{
    max-width: 200px;
    width: 200px;
    object-fit: contain;
}

html{
    overflow-x: hidden;
}


footer .navbar-brand img{
    filter: brightness(0) invert(1);
}