/* ========== Base Styles ========== */
body {
  font-family: "Roboto Condensed", serif;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* ========== Hero Section ========== */
.hero {
  position: relative;
  background-image: url("/assets/Hero-Background.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  height: auto;
  min-height: 100vh;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-image {
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
    rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px,
    rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/assets/Hero-Overlay.svg");
  opacity: 10%;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  z-index: 1;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-heading {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1), -2px -2px 4px rgba(0, 0, 0, 0.1),
    2px -2px 4px rgba(0, 0, 0, 0.1), -2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========== About Section ========== */
.about-img {
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
    rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px,
    rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .about-img {
    margin-top: 8rem;
  }
}

/* ========== Scroll Animations ========== */
@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Lesson Styles Section ========== */
.lesson-styles {
  position: relative;
  background-image: url("/assets/Hero-Background.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  padding-top: 5rem;
  padding-bottom: 5rem;
  height: auto;
  min-height: 100vh;
}

.lesson-styles::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/assets/Hero-Overlay.svg");
  opacity: 10%;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  z-index: 1;
  pointer-events: none;
}

/* Flex wrapper for cards */
.lesson-styles-grid .d-flex {
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

/* Card styling */
.lesson-card {
  width: 100%;
  max-width: 250px;
  transition: transform 0.3s ease;
  background-color: #eeeeee;
  padding: 2rem;
  text-align: center;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
    rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px,
    rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

.lesson-card:hover {
  transform: translateY(-5px);
}

.lesson-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: auto;
}

/* ========== Other Sections ========== */
.past-translations {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.past-translations::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/assets/Hero-Overlay.svg");
  opacity: 10%;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  z-index: 1;
  pointer-events: none;
}

.past-translations .container {
  position: relative;
  z-index: 2;
}

.past-translations-description,
.request-translation-description {
  max-width: 60ch;
  margin: auto;
  text-align: center;
}

.past-translations-list-items {
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

/* ========== Footer ========== */
.footer-author {
  margin-top: 1rem;
  font-size: 0.7rem;
  text-align: center;
}

/* ========== Blog Section ========== */
.blog-images {
  border-bottom: 1px solid #3c3c3c;
}

.blog-anchor {
  color: inherit;
  text-decoration: none;
}

/* ========== Card Hover ========== */
.card-hover {
  transition: background-color 0.3s ease;
}

.card-hover:hover {
  background-color: #eeeeee;
}

.card-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Optional: limit all sections to not overflow */
section {
  overflow-x: hidden;
}

.card {
  border-radius: 0.5rem; /* or whatever your design uses */
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.card-img-top {
  border-radius: 0; /* Let the card container control rounding */
  width: 100%;
  display: block;
}

.footer-author {
  font-size: 0.75rem;
  margin-top: 1rem;
}

footer a {
  text-decoration: none;
  transition: opacity 0.2s ease;
}

footer a:hover {
  opacity: 0.8;
}
