* {
  font-family: "Montserrat", sans-serif;
  line-height: 2rem;
}

.carousel-inner .carousel-item {
  transition: transform 0.6s ease-in-out;
}

p {
  letter-spacing: 0.02em;
  line-height: 1.8;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  font-weight: 400;
  text-align: justify;
}

h1 {
  letter-spacing: 0.03em;
  color: #1a273b;
  margin-bottom: 2rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
}

h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: #06bbcc;
}

.container {
  padding: 2rem 1.5rem;
}

.card {
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.card-img-top {
  height: 300px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  transition: transform 0.3s ease;
}

.date-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 8px 16px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.3s ease;
}

.card:hover .image-overlay {
  background-color: rgba(0, 0, 0, 0.4);
}

.card:hover .date-overlay {
  opacity: 1;
}

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

@media (max-width: 768px) {
  .card-img-top {
    height: 200px;
  }
}

@media (max-width: 768px) {
  p {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 100%;
    padding: 0 1rem;
  }

  h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: auto;
}

.card-text {
  font-size: 0.95rem;
  color: #495057;
  letter-spacing: 0.01em;
  line-height: 1.6;
  margin-bottom: 0;
}

.container-xxl .container p {
  margin-bottom: 2rem;
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid #06bbcc;
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .d-md-block {
    display: none !important;
  }

  .card-img-top {
    height: 200px;
  }
}

.carousel-indicators {
  bottom: -50px;
}

.carousel-indicators button {
  background-color: #666;
}

/* Keep footer text colors from shared theme */
.footer p,
.footer .copyright p,
.footer .copyright {
  color: var(--light) !important;
}
