/* HOME HEADER SECTION */
#home-header {
  padding: 0;
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  background-image: url('/assets/img/header-home.jpg');
  background-size: cover;
  background-position: center;
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  /* Optional: Darken for readability */
  z-index: 10;
  pointer-events: none;
  /* Let clicks pass through if needed, but buttons need pointer-events: auto */
}

.header-overlay .box {
  text-align: center;
  color: #fff;
  /* Ensure text is white */
  padding: 2em;
  pointer-events: auto;
  /* Re-enable clicks for content */
}

.header-overlay .box h1 {
  margin: 0;
}

.header-overlay .box h1 img {
  width: 35%;
  margin-left: 1em;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.header-overlay h2,
.header-overlay h5 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

@media screen and (max-width: 770px) {

  #home-slider-container,
  #home-slider li {
    height: 80vh;
    /* Increased height */
  }

  .header-overlay .box {
    padding: 1em;
    /* Drastically reduced padding */
    width: 100%;
    /* Ensure it uses width */
  }

  .header-overlay .box h1 img {
    width: 60%;
    /* Slightly smaller logo */
  }

  .header-overlay .box h2 {
    font-size: 1.4em;
    margin: 0.5em 0;
  }

  .header-overlay .box h5 {
    font-size: 1em;
    margin-bottom: 1em;
    line-height: 1.3;
  }

  .header-overlay .box .btn {
    margin-top: 10px;
    font-size: 0.9em;
  }
}

/* SERVICES SECTION */
.services-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2em;
  margin-top: 3em;
}

.service-item {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding: 2em;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-item i {
  font-size: 3em;
  color: #b00208;
  margin-bottom: 0.5em;
}

.service-item h3 {
  margin-bottom: 0.5em;
  color: #333;
}

/* LATEST EXHIBITIONS */
.latest-exhibitions {
  padding-top: 2em;
}

.exhibitions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
  margin-top: 3em;
}

.exhibition-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.exhibition-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.card-content {
  padding: 1.5em;
}

.card-content h3 {
  margin: 0 0 0.5em 0;
  font-size: 1.2em;
  color: #b00208;
}

.card-content .author {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 1em;
}

.card-content .excerpt {
  font-size: 0.95em;
  margin-bottom: 1.5em;
  line-height: 1.5;
}

.btn-text {
  color: #b00208;
  font-weight: bold;
  font-size: 0.9em;
}

.btn-text:hover {
  text-decoration: underline;
}

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

@media (max-width: 600px) {
  .exhibitions-grid {
    grid-template-columns: 1fr;
  }
}

/* INTRO IMAGE STYLING */
.right.intro-img-container {
  margin-top: 0 !important;
}

.intro-img {
  width: 65% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
}