/* Base Styles */
:root {
  --background-color: #FBFBFB;
  --text-color: #262626;
  --accent-color: #262626;
  --border-radius: 30px;
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

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

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

img {
  max-width: 100%;
  height: auto;
}

/* Header & Navigation */

/* Container */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Artworks Bento Grid Section */
.artworks-bento {
  padding: 80px 0;
  background-color: var(--background-color);
}

.artworks-bento .section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  font-weight: 700;
}

.artworks-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(250px, auto);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.artwork-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.large-card {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: row;
}

.medium-card {
  grid-column: span 2;
  grid-row: span 1;
}

.small-card {
  grid-column: span 1;
  grid-row: span 1;
}

.artwork-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.large-card .artwork-card-content {
  flex: 1;
  padding: 40px;
}

.large-card .artwork-card-image {
  flex: 1;
  overflow: hidden;
}

.artwork-card-image {
  height: 100%;
  overflow: hidden;
}

.artwork-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.small-card .artwork-card-image {
  height: 60%;
}

.small-card .artwork-card-content {
  height: 40%;
  padding: 15px;
}

.artwork-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.artwork-card h4 {
  font-size: 1.4rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.artwork-card p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: #555;
}

.small-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.quote-card {
  background-color: var(--accent-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.quote-card blockquote {
  border: none;
  margin: 0;
  padding: 0;
}

.quote-card blockquote p {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 15px;
  color: white;
  line-height: 1.4;
}

.quote-card blockquote cite {
  font-size: 1rem;
  font-style: normal;
}

.cta-card {
  background-color: #f5f5f5;
  text-align: center;
}

.artwork-card .btn {
  align-self: center;
  margin-top: auto;
}

@media (max-width: 1200px) {
  .artworks-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .small-card {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .artworks-bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  
  .large-card, .medium-card, .small-card {
    grid-column: span 1;
    grid-row: auto;
  }
  
  .large-card {
    flex-direction: column;
  }
  
  .large-card .artwork-card-image {
    height: 250px;
  }
}

/* Blog Styles */
.blog-header {
  background-color: #f8f8f8;
  padding: 80px 0 40px;
  text-align: center;
}

.blog-header h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.blog-header p {
  font-size: 1.2rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

.blog-content {
  padding: 60px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
  height: 200px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.blog-card-content {
  padding: 25px;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: #777;
}

.blog-card-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.blog-card-excerpt {
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.blog-read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.blog-read-more::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.blog-read-more:hover::after {
  width: 100%;
}

.admin-login-section {
  padding: 30px 0 60px;
  text-align: center;
}

/* Login Modal */
.login-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.login-modal-content {
  background-color: white;
  padding: 40px;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.login-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

/* Admin Styles */
.admin-header {
  background-color: #f8f8f8;
  padding: 40px 0;
}

.admin-header h1 {
  margin-bottom: 15px;
}

.admin-content {
  padding: 40px 0 80px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.admin-table th,
.admin-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.admin-table th {
  background-color: #f5f5f5;
  font-weight: 600;
}

.admin-actions {
  display: flex;
  gap: 15px;
}

.admin-actions a {
  color: var(--primary-color);
  text-decoration: none;
}

.admin-actions a.delete-post {
  color: #e53935;
}

.admin-links {
  display: flex;
  gap: 15px;
}

.admin-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.admin-link.active {
  font-weight: 700;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.modal-content {
  background-color: white;
  padding: 40px;
  border-radius: var(--border-radius);
  max-width: 800px;
  width: 90%;
  position: relative;
  margin: 40px auto;
}

.post-editor-modal {
  max-width: 900px;
}

.delete-confirm-modal {
  max-width: 500px;
}

#postForm .form-group {
  margin-bottom: 20px;
}

#postForm label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

#postForm input[type="text"],
#postForm input[type="date"],
#postForm select,
#postForm textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

#postForm textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn.danger {
  background-color: #e53935;
  color: white;
}

.current-image-preview {
  margin-top: 10px;
}

@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-header {
    padding: 60px 0 30px;
  }
  
  .blog-header h1 {
    font-size: 2.5rem;
  }
  
  .blog-content {
    padding: 40px 0;
  }
}

@media (max-width: 576px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-header h1 {
    font-size: 2rem;
  }
  
  .modal-content {
    padding: 25px;
  }
}

/* JASDEPOT Banner */
.jasdepot-banner {
  background-color: #333333;
  width: 100%;
  padding: 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.jasdepot-banner-text {
  color: white;
  font-size: 15vw; /* Much larger responsive font size */
  font-weight: 900; /* Extra bold */
  letter-spacing: 0.2vw;
  text-align: center;
  width: 100%;
  text-transform: uppercase;
  line-height: 0.9;
  display: block;
}

@media (max-width: 768px) {
  .jasdepot-banner {
    padding: 20px 0;
  }
  
  /* Font size is already responsive with vw units */
}

@media (max-width: 480px) {
  .jasdepot-banner {
    padding: 15px 0;
  }
}

/* Charity Section */
.charity-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

.charity-card {
  display: flex;
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  max-width: 1200px;
  margin: 0 auto;
}

.charity-image {
  flex: 1;
  min-height: 400px;
  overflow: hidden;
}

.charity-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.charity-content {
  flex: 1;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.charity-logo {
  margin-bottom: 20px;
  max-width: 180px;
}

.charity-logo img {
  width: 100%;
  height: auto;
}

.charity-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.charity-content p {
  margin-bottom: 30px;
  line-height: 1.8;
  color: #555;
  font-size: 1.1rem;
}

.charity-actions {
  display: flex;
  gap: 15px;
}

@media (max-width: 992px) {
  .charity-card {
    flex-direction: column;
  }
  
  .charity-image {
    height: 300px;
  }
  
  .charity-content {
    padding: 30px;
  }
}

/* News Carousel Section */
.news-carousel-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: 700;
}
.news-carousel .owl-stage-outer {
  overflow: visible;
}
.news-item {
  display: flex;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  height: 400px;
  width: 100%; /* Adjusted to 100% */
  margin: 20px 0; /* Center spacing without horizontal overflow */
}
.news-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.news-image {
  flex: 1;
  overflow: hidden;
}
.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.news-item:hover .news-image img {
  transform: scale(1.05);
}
.news-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-content h3,
.news-date,
.news-description,
.news-btn {
  transform: translateY(0);
  opacity: 1;
}

.news-item:hover .news-content h3,
.news-item:hover .news-date,
.news-item:hover .news-description,
.news-item:hover .news-btn {
  transform: translateY(-5px); /* Subtle lift on hover */
}

.news-content h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 15px;
}

.news-content h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease 0.2s;
}

.news-item:hover .news-content h3:after {
  transform: scaleX(1);
}

.news-date {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.news-description {
  margin-bottom: 25px;
  line-height: 1.6;
}

.news-btn {
  align-self: flex-start;
}

/* Owl Carousel Custom Navigation */
.owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50% !important;
  background-color: #fff !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease;
}
.owl-nav button:hover {
  background-color: var(--accent-color) !important;
  color: #fff !important;
}
.owl-prev {
  left: -25px;
}
.owl-next {
  right: -25px;
}
.owl-nav button span {
  font-size: 2rem;
  line-height: 0;
  position: relative;
  top: -5px;
}
.owl-dots {
  margin-top: 30px !important;
}
.owl-dot span {
  background-color: #ddd !important;
  transition: all 0.3s ease;
}
.owl-dot.active span,
.owl-dot:hover span {
  background-color: var(--accent-color) !important;
  transform: scale(1.2);
}

@media (max-width: 768px) {
  /* Mobile optimization for news carousel */
  .news-item {
    flex-direction: column; /* Stack image and content */
    height: auto; /* Let height adjust to content */
    width: 100%;
  }

  .news-image {
    height: 200px; /* Fixed height for image on mobile */
  }
  .news-image img {
    height: 100%;
  }
  .news-content {
    padding: 20px;
  }
  .news-content h3 {
    font-size: 1.4rem;
  }
  .news-description {
    font-size: 0.9rem;
  }
  .owl-nav button {
    top: 45%; /* Adjust nav arrow position on mobile */
  }
}

header {
  padding: 20px 5%;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background-color: rgba(251, 251, 251, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-speed) ease;
}

header.scrolled {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--text-color);
  transition: width var(--transition-speed) ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px; /* Adjust gap as needed */
}

.nav-divider {
  margin: 0 10px; /* Adjust spacing around the divider */
  color: #ccc; /* Light gray color for the divider */
  font-size: 1.2rem;
  font-weight: 300;
}

/* Ensure nav-links within nav-actions also behave correctly */
.nav-actions .nav-links {
  display: flex;
  gap: 20px; /* Adjust gap between Home and Contact if needed, or inherit from parent */
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.language-selector {
  position: relative;
  cursor: pointer;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--background-color);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 10px;
  min-width: 120px;
  display: none;
  z-index: 10;
}

.language-selector:hover .language-dropdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.language-dropdown a {
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color var(--transition-speed) ease;
}

.language-dropdown a:hover,
.language-dropdown a.active {
  background-color: rgba(0, 0, 0, 0.05);
}

.cart {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--text-color);
  color: var(--background-color);
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Content */
main {
  padding-top: 100px;
}

/* Hero Section */
.hero {
  position: relative; /* Added for video positioning */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 5%;
  min-height: calc(100vh - 100px);
  gap: 50px;
  overflow: hidden; /* Ensure video doesn't overflow */
  background-color: rgba(0, 0, 0, 0.4); /* Add a dark overlay for better text visibility */
}

.hero-content {
  flex: 1;
  position: relative; /* Ensure content is above video */
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Add text shadow for better visibility */
}

/* Hero section buttons */
.hero-content .btn.primary {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: white;
  color: white;
}

.hero-content .btn.primary:hover {
  background-color: white;
  color: var(--text-color);
}

.hero-content .btn.secondary {
  border-color: white;
  color: white;
}

.hero-content .btn.secondary:hover {
  background-color: white;
  color: var(--text-color);
}

.hero-content h2 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: white;
}

.hero-content p {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 600px;
  color: white;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-cover {
  max-height: 70vh;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease;
}

.book-cover:hover {
  transform: translateY(-10px);
}

.hero-background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1; /* Ensure video is behind content */
  filter: brightness(0.8); /* Slightly darken the video for better text contrast */
}

/* Buttons */
.cta-buttons {
  display: flex;
  gap: 20px;
}

#openDonateModal {
  margin-top: 40px; /* Increased space between text and button */
  padding: 14px 32px; /* Slightly larger padding */
  font-size: 1.05rem; /* Slightly larger font */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  transition: all 0.3s ease;
}

#openDonateModal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn {
  display: inline-flex; /* For icon alignment */
  align-items: center; /* For icon alignment */
  gap: 8px; /* Space between icon and text */
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 500;
  letter-spacing: 1px;
  text-align: center;
  display: inline-block;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--text-color);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--text-color);
  transition: height var(--transition-speed) ease;
  z-index: -1;
}

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

.btn.primary {
  background-color: var(--text-color);
  color: var(--background-color);
}

.btn.primary:hover {
  color: var(--background-color);
}

.btn.secondary {
  background-color: transparent;
  color: var(--text-color);
}

.btn.secondary:hover {
  color: var(--background-color);
}

/* Bento Grid Section */
.bento-grid {
  padding: 80px 5%;
  background-color: var(--background-color);
}

.bento-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.bento-item {
  background-color: white;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.large-item {
  grid-column: span 2;
  grid-row: span 2;
}

.vertical-item {
  grid-row: span 2;
}

.large-horizontal-item {
  grid-column: span 2;
}

.bento-item h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.bento-item h4 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.bento-item h2 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 5px;
  text-align: center;
}

.bento-item p {
  font-weight: 300;
  line-height: 1.6;
}

.small-text {
  font-size: 0.9rem;
  text-align: center;
}

.color-palette {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 20px;
}

.color-dot {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.color-dot.dark {
  background-color: #262626;
}

.color-dot.medium {
  background-color: #999999;
}

.color-dot.light {
  background-color: #f5f5f5;
}

.typography-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.typography-showcase h2 {
  font-size: 6rem;
  font-weight: 800;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Specific image placeholders */
.image-placeholder[data-image="jas-loft-interior"] {
  background-image: url('../img/jas-loft-interior.jpg');
}

.image-placeholder[data-image="art-piece"] {
  background-image: url('../img/art-piece.jpg');
}

/* Remove text overlay for image placeholders with actual images */
.image-placeholder[data-image="jas-loft-interior"]::after,
.image-placeholder[data-image="art-piece"]::after {
  content: none;
}

/* Keep text overlay for other image placeholders without images */
.image-placeholder::after {
  content: attr(data-image);
  color: #999;
  font-size: 0.9rem;
}

.quote-item {
  grid-column: span 2;
  background-color: #f9f9f9;
}

.bento-item-charity {
  background-color: #333; /* Dark gray background */
  color: #fff; /* Light text for contrast */
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content */
  justify-content: center;
  text-align: center;
}

.bento-item-charity .charity-logo {
  max-width: 100px; /* Adjust as needed */
  margin-bottom: 15px;
}

.bento-item-charity h4 {
  color: #fff; /* Ensure heading is light */
  margin-bottom: 10px;
}

.bento-item-charity p {
  color: #f0f0f0; /* Slightly off-white for paragraph */
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.bento-item-charity .btn.secondary {
  background-color: var(--secondary-color);
  color: var(--text-color-dark);
}

.bento-item-charity .btn.secondary:hover {
  background-color: var(--accent-color);
  color: #fff;
}

.quote-item blockquote cite {
  border-left: 4px solid #262626;
  padding-left: 20px;
  font-style: italic;
}

.quote-item cite {
  display: block;
  margin-top: 15px;
  font-style: normal;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .bento-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .bento-container {
    grid-template-columns: 1fr;
  }
  
  .large-item,
  .vertical-item,
  .large-horizontal-item,
  .quote-item {
    grid-column: span 1;
    grid-row: auto;
  }
}

/* Donation Modal */
.donate-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(38,38,38,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.donate-modal-content {
  background: #fff;
  border-radius: 24px;
  padding: 40px 30px 30px 30px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.10);
  min-width: 320px;
  max-width: 95vw;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.close-modal {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 2rem;
  color: #262626;
  cursor: pointer;
  font-weight: 300;
}
#donateForm label {
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
  color: #262626;
}
#donateForm input[type="number"] {
  width: 100%;
  padding: 12px;
  border-radius: var(--border-radius);
  border: 1px solid #ddd;
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-family: 'Poppins', sans-serif;
}

/* Book Info Section */
.book-info {
  padding: 100px 5%;
  background-color: #f5f5f5;
}

.book-info h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  text-align: center;
}

.book-content {
  display: flex;
  gap: 50px;
  align-items: center;
}

.book-description {
  flex: 1;
}

.book-description p {
  margin-bottom: 20px;
}

.book-gallery {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  max-width: 500px; /* Limit the overall width */
  margin: 0 auto; /* Center the gallery */
}

.gallery-item {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 180px; /* Control the height */
}

.gallery-item img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* Prevent extra space below image */
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:first-child {
  grid-column: span 2;
  height: 150px; /* Slightly shorter for the wider item */
}

/* Newsletter Section */
.newsletter {
  padding: 80px 5%;
  text-align: center;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.newsletter p {
  margin-bottom: 30px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: 'Poppins', sans-serif;
}

.newsletter-form button {
  cursor: pointer;
}

/* Contact Page */
.contact-hero {
  padding: 80px 5%;
  text-align: center;
  background-color: #f5f5f5;
}

.contact-hero h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.contact-container {
  display: flex;
  gap: 50px;
  padding: 80px 5%;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-form {
  flex: 2;
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
}

/* Footer */
footer {
  background-color: #f5f5f5;
  padding: 50px 5% 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
}

.footer-logo h2 {
  font-size: 2.2rem;
  font-weight: 800;
}

.footer-links {
  display: flex;
  gap: 50px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
}

/* Site Credit */
.site-credit {
  margin-top: 5px;
  font-size: 0.85rem;
  color: var(--text-muted, #666);
}
.site-credit a {
  color: var(--text-color);
  text-decoration: underline;
}
.site-credit a:hover {
  color: var(--primary-color);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 50px 5%;
  }
  
  .hero-content h2 {
    font-size: 3rem;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .book-content {
    flex-direction: column;
  }
  
  .contact-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  header {
    padding: 15px 5%;
  }
  
  nav {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-links {
    gap: 20px;
  }
  
  .hero {
    position: relative;
    flex-direction: column;
    justify-content: flex-end; /* Push content to bottom */
    align-items: center;
    padding: 60px 5% 40px; /* Top, horizontal, bottom */
  }
  .hero-content {
    margin: 0 auto 20px; /* Bottom space */
  }
  .hero-content .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-content {
    position: absolute;
    bottom: 20px;
    left: 5%;
    right: 5%;
    margin: 0;
    text-align: center;
  }
  .hero-content .btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
  .hero-content h2 {
    font-size: 2.5rem; /* Slightly smaller on mobile */
  }
  .hero-content p {
    font-size: 1rem;
  }
  .hero-content .btn {
    margin-top: 15px; /* Add spacing between buttons and above content */
  }
  .hero-content h2 {
    font-size: 2.5rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
}

/* Mobile Navigation */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-color);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile nav links hidden by default */
@media (max-width: 768px) {
  nav {
    position: relative;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-actions {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: var(--background-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    box-shadow: none;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  nav.open .nav-actions {
    transform: translateX(0);
  }
  .nav-links {
    flex-direction: column;
    gap: 25px;
    align-items: center;
    width: 100%;
  }
  .nav-links a {
    font-size: 1.6rem;
  }
  .nav-divider,
  .language-selector,
  .admin-links {
    display: none;
  }
}

/* Cookie Consent Floating Button */
.cookie-fab {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  background: var(--primary-color);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 1100;
  transition: background 0.3s ease;
}
.cookie-fab:hover {
  background: var(--primary-dark, #333);
}

/* Cookie Panel */
.cookie-panel {
  position: fixed;
  bottom: 90px;
  right: 25px;
  width: 320px;
  background: var(--background-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  padding: 20px;
  z-index: 1100;
  animation: slideUp 0.3s ease forwards;
}
.cookie-panel p {
  margin-bottom: 15px;
  font-size: 0.9rem;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
