* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth; /* Smooth scrolling */
}
/* Basic Body Styles */
body {
  font-family: 'Lora', serif; /* Elegant, readable font */
  line-height: 1.6;
  background-color: #faf3e0; /* Calm, sacred base */
  color: #333;
}

h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
}

/* Novena Section */
.novena {
  background-color: #fff; /* Light, sacred background */
  padding: 2rem 0;
  text-align: center;
}

.novena h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #0b182c; /* Royal Blue/Navy */
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
}

.novena h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
}

.novena-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.novena-card {
  background-color: #faf3e0; /* Cream/Light Beige background */

  border-radius: 10px;
  padding: 1.5rem 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.novena-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.02);
}

.novena-card h3 {
  font-size: 1.2rem;
  color: #7b1e1e; /* Deep Marian Red for headings */
  margin-bottom: 1rem;
}

.novena-card p {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.novena-card .cta-button {
  background-color: #d4af37; /* Gold */
  color: #fff;

  display: inline-block;
  padding: 0.5rem 1.2rem;

  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.novena-card .cta-button:hover {
  background-color: #7b1e1e; /* Deep Marian Red */
}

.novena-card:hover {
  transform: translateY(-5px); /* Subtle hover effect */
}

.back-home-wrapper {
  margin-top: 5rem;
  text-align: center;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 4rem;
}

.back-home-button {
  font-size: 0.95rem;
  color: #2a3f5f; /* Royal Blue/Navy */
  text-decoration: none;
  border: 1px solid #2a3f5f;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.back-home-button:hover {
  background-color: #2a3f5f;
  color: #fff;
}

/* Footer */
/* Elegant, Glowing Footer */
.site-footer {
  position: relative;
  background: #04132e;
  color: #f3f3f3;
  text-align: center;
  padding: 2rem 2rem 2rem;
  font-family: 'Lora', serif;
  overflow: hidden;
}

.footer-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.site-footer h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #d4af37;
  margin-bottom: 1rem;
}

.footer-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: #e0d9ce;
  margin-bottom: 2rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-nav a {
  color: #f3f3f3;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #d4af37;
}

.footer-h3 {
  border-bottom: none;
}

.footer-bottom {
  font-size: 0.9rem;
  color: #ccc;
}

/* Responsive Design */
/* Smaller Desktops (max-width: 1344px / 84em) */
@media (max-width: 84em) {
  .novena h2 {
    font-size: 2.3rem;
  }
}

/* Large Laptops (max-width: 1200px / 75em) */
@media (max-width: 75em) {
  .novena-cards {
    gap: 1.2rem;
  }

  .novena-card {
    padding: 1.2rem 0.8rem;
  }
}

/* Tablet Landscape (max-width: 1024px / 64em) */
@media (max-width: 64em) {
  .novena-cards {
    padding: 0 3.5rem;
  }
  .novena h2 {
    font-size: 2rem;
  }

  .novena h3 {
    font-size: 1.1rem;
  }

  .novena-card h3 {
    font-size: 1rem;
  }

  .novena-card p {
    font-size: 0.85rem;
  }

  .cta-button {
    font-size: 0.85rem;
  }

  .site-footer h3 {
    font-size: 1.8rem;
  }

  .footer-quote {
    font-size: 1rem;
  }

  .footer-nav a {
    font-size: 1rem;
  }
}

/* Tablet Portrait (max-width: 768px / 48em) */
@media (max-width: 48em) {
  .novena-cards {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .novena h2 {
    font-size: 1.7rem;
  }

  .novena h3 {
    font-size: 1rem;
    letter-spacing: 0.02em;
  }

  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Small Tablets / Phones (max-width: 544px / 34em) */
@media (max-width: 34em) {
  .novena h2 {
    padding: 0 2rem;
    margin-top: 1.5rem;
  }
  .novena-cards {
    grid-template-columns: 1fr;
  }

  .novena-card {
    padding: 1rem;
  }

  .back-home-button {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  .site-footer h3 {
    font-size: 1.6rem;
  }

  .footer-quote {
    font-size: 1rem;
  }

  .footer-nav a {
    font-size: 1rem;
  }
}

/* Phones (max-width: 416px / 26em) */
@media (max-width: 26em) {
  .novena-cards {
    padding: 0 1.7rem; /* Less padding on small screens */
    gap: 1.3rem; /* Reduced gap for tighter layout */
  }
  .novena h2 {
    font-size: 1.5rem;
  }

  .novena h3 {
    font-size: 0.9rem;
    padding: 0 2.5rem;
    letter-spacing: normal;
  }

  .novena h3,
  .novena-card h3 {
    font-size: 0.95rem;
  }

  .novena-card p {
    font-size: 0.8rem;
  }

  .cta-button {
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
  }

  .footer-h3 {
    font-size: 1.6rem;
  }

  .footer-quote {
    font-size: 0.95rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .floating-orbs .orb {
    width: 3.5px;
    height: 3.5px;
  }

  .site-footer {
    padding: 1.5rem 1.5rem 1rem;
  }
}

/* Very Small Screens (max-width: 20em) */

@media (max-width: 20em) {
  .novena-cards {
    padding: 0 1.5rem; /* Less padding on very small screens */
    gap: 1rem; /* Slightly reduced gap for tighter layout */
  }

  .novena-card h3 {
    font-size: 1rem; /* Adjust heading size */
  }

  .novena-card p {
    font-size: 0.85rem; /* Adjust paragraph text */
  }

  .novena-card .cta-button {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
  }

  .back-home-button {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  .novena h2 {
    font-size: 1.5rem;
  }

  .novena h3 {
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 0 2.5rem;
    letter-spacing: normal;
  }
}
