/* Hero Section */
.hero-section {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 72px;
}

.hero-section img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--mill-white);
  text-align: center;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 0;
  line-height: 1.2;
}

.hero-content .text-script {
  font-size: 3.5rem;
}

/* Section Spacing */
.section-padding {
  padding: 5rem 0;
}

.section-padding-sm {
  padding: 3rem 0;
}

/* Product/Project Grid */
.grid-item {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.grid-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.grid-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  padding: 2rem 1.5rem 1.5rem;
  color: var(--mill-white);
}

.grid-item-title {
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.btn-mill {
  background-color: var(--mill-dark);
  color: var(--mill-white);
  border: none;
  padding: 0.75rem 3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.btn-mill:hover {
  opacity: 0.85;
  color: var(--mill-white);
}

/* Article Card */
.article-card {
  margin-bottom: 2rem;
}

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

.article-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-card-excerpt {
  color: var(--mill-medium-gray);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.article-card-link {
  text-decoration: underline;
  color: var(--mill-text-gray);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Event List */
.event-item {
  display: flex;
  margin-bottom: 3rem;
  gap: 2rem;
}

.event-item img {
  width: 400px;
  height: 300px;
  object-fit: cover;
}

.event-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-date {
  font-size: 0.875rem;
  color: var(--mill-medium-gray);
  margin-bottom: 0.5rem;
}

.event-title {
  font-size: 2rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* About Page Sections */
.about-section {
  padding: 4rem 0;
}

.about-section img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

/* Detail Page */
.detail-header {
  margin-top: 90px;
  text-align: center;
  padding: 2rem 0;
}

.detail-code {
  font-size: 0.875rem;
  color: var(--mill-medium-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-title {
  font-size: 3rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  margin: 0.5rem 0 2rem;
}

.detail-image {
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
}

.detail-content {
  padding: 3rem 0;
}

/* Related Items Section */
.related-section {
  background-color: var(--mill-light-gray);
  padding: 4rem 0;
}

.related-section h4 {
  text-align: center;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3rem;
}

/* Load More Button */
.btn-load-more {
  background: none;
  border: 1px solid var(--mill-text-gray);
  color: var(--mill-text-gray);
  padding: 0.75rem 3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-load-more:hover {
  background-color: var(--mill-dark);
  border-color: var(--mill-dark);
  color: var(--mill-white);
}

/* Utility Classes */
.text-uppercase {
  text-transform: uppercase;
}

.letter-spacing {
  letter-spacing: 0.5px;
}

/* Project Show Page */
/* .project-header-section {
  padding-top: 50px;
  padding-bottom: 20px;
} */

.project-meta-text {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mill-text-gray);
}

.project-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.5rem;
  font-style: italic;
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
  color: var(--mill-dark);
}

.project-hero-image-container {
  margin-bottom: 4rem;
}

.project-hero-image {
  width: 100%;
  height: auto;
  max-height: 800px;
  object-fit: cover;
}

.project-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--mill-text-gray);
  margin-bottom: 3rem;
}

.project-gallery {
  margin-top: 4rem;
}

.project-gallery-image {
  width: 100%;
  height: auto;
  margin-bottom: 30px;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {

  .hero-content h1,
  .hero-content .text-script {
    font-size: 2rem;
  }

  .detail-title,
  .project-title {
    font-size: 2rem;
  }

  .event-item {
    flex-direction: column;
    gap: 1rem;
  }

  .event-item img {
    width: 100%;
  }

  .grid-item img {
    height: 300px;
  }

  .project-header-section .text-end {
    text-align: left !important;
    margin-top: 0.5rem;
  }
}

/* Event List Page */
.event-list-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.event-group-title {
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--mill-dark);
  margin-top: 0;
}

.event-date {
  font-size: 0.85rem;
  color: var(--mill-medium-gray);
  margin-bottom: 10px;
  display: block;
}

.event-list-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--mill-dark);
  text-decoration: none;
  display: block;
}

.event-list-title:hover {
  color: var(--mill-text-gray);
  text-decoration: none;
}

.event-read-more {
  font-size: 0.75rem;
  text-transform: uppercase;
  text-decoration: underline;
  letter-spacing: 1px;
  color: var(--mill-medium-gray);
}

.event-read-more:hover {
  color: var(--mill-dark);
}

.event-image-container {
  margin-bottom: 2rem;
}

.event-image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

/* Responsive adjustments for events */
@media (max-width: 768px) {
  .event-list-title {
    font-size: 2rem;
  }

  .event-group-title {
    margin-bottom: 1rem;
  }
}
