* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f4f8fb;
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.7;
}

.active {
  color: #4da6ff !important;
}

section {
  padding: 80px 8%;
}

section h2 {
  text-align: center;
  color: #1f4e79;
  font-size: 40px;
  text-transform: uppercase;
  margin-bottom: 25px;
}

.devotion-hero {
  min-height: 520px;
  background:
    linear-gradient(rgba(20, 60, 90, 0.65), rgba(20, 60, 90, 0.65)),
    url("../images/devotion image.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: skyblue;
}

.hero-content {
  max-width: 900px;
  background: rgba(255,255,255,0.15);
  padding: 45px 35px;
  border-radius: 25px;
  backdrop-filter: blur(5px);
}

.hero-content h1 {
  font-size: 52px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 24px;
  margin-bottom: 10px;
}

.hero-content h3 {
  font-size: 22px;
  color: #dff3ff;
}

.devotion-description {
  background: white;
  text-align: center;
}

.devotion-description p,
.section-intro {
  max-width: 950px;
  margin: auto;
  font-size: 18px;
}

.prayer-times {
  background: #eef6fb;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.prayer-card {
  background: white;
  padding: 40px 25px;
  text-align: center;
  border-radius: 22px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  transition: 0.4s;
}

.prayer-card:hover {
  transform: translateY(-10px);
}

.icon {
  font-size: 55px;
  margin-bottom: 15px;
}

.prayer-card h3 {
  color: #1f4e79;
  font-size: 25px;
  margin-bottom: 15px;
}

.st-therese-section {
  background: white;
}

.st-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
}

.st-card img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.st-content h2 {
  text-align: left;
}

.st-content p {
  font-size: 18px;
  margin-bottom: 25px;
}

.st-content a {
  display: inline-block;
  background: #4da6ff;
  color: white;
  padding: 13px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
}

.st-content a:hover {
  background: #1f4e79;
}

.gallery-section {
  background: #eef6fb;
  text-align: center;
}

.gallery-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  transition: 0.4s;
}

.gallery-grid img:hover {
  transform: scale(1.04);
}

.schedule-section {
  background: white;
  text-align: center;
}

.table-box {
  overflow-x: auto;
}

table {
  width: 100%;
  max-width: 900px;
  margin: auto;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  border-radius: 18px;
  overflow: hidden;
}

th {
  background: skyblue;
  color: white;
  font-size: 20px;
  padding: 18px;
}

td {
  padding: 18px;
  font-size: 18px;
  background: #eef6fb;
  font-weight: bold;
}

/* ==============================
   BIBLE VERSE GENERATOR
================================= */

.verse-section {
  min-height: 620px;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      rgba(235, 247, 255, 0.96),
      rgba(255, 255, 255, 0.94),
      rgba(224, 242, 254, 0.96)
    );
}

/* Decorative animated background circles */

.verse-section::before,
.verse-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(3px);
  animation: floatingCircle 8s ease-in-out infinite;
}

.verse-section::before {
  width: 260px;
  height: 260px;
  top: -80px;
  left: -70px;
  background: rgba(56, 189, 248, 0.18);
}

.verse-section::after {
  width: 330px;
  height: 330px;
  right: -100px;
  bottom: -120px;
  background: rgba(14, 165, 233, 0.14);
  animation-delay: 2s;
}

/* Main card */

.verse-card {
  width: 100%;
  max-width: 780px;
  min-height: 450px;
  padding: 50px 45px;
  position: relative;
  z-index: 2;
  text-align: center;

  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(125, 211, 252, 0.5);
  border-radius: 28px;

  box-shadow:
    0 25px 60px rgba(14, 116, 144, 0.15),
    0 8px 20px rgba(15, 23, 42, 0.08);

  backdrop-filter: blur(12px);
  animation: cardEntrance 1s ease forwards;
}

/* Decorative border */

.verse-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(14, 165, 233, 0.25);
  border-radius: 20px;
  pointer-events: none;
}

/* Bible icon */

.verse-icon {
  width: 85px;
  height: 85px;
  margin: -90px auto 25px;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 40px;
  background: linear-gradient(135deg, #0ea5e9, #7dd3fc);
  border: 7px solid #ffffff;
  border-radius: 50%;

  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.3);

  animation: iconFloat 3s ease-in-out infinite;
}

.small-title {
  margin: 0 0 5px;
  color: #0284c7;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.verse-card h2 {
  margin: 5px 0 12px;
  color: #334155;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 700;
}

.title-line {
  width: 90px;
  height: 4px;
  margin: 0 auto 35px;
  border-radius: 20px;
  background: linear-gradient(90deg, #bae6fd, #0284c7, #bae6fd);
}

/* Empty verse paragraph */

#verse {
  min-height: 105px;
  margin: 0 auto;
  max-width: 650px;

  display: flex;
  justify-content: center;
  align-items: center;

  color: #334155;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 3vw, 29px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.7;

  opacity: 0;
  transform: translateY(20px);
}

/* Bible reference */

#verse-reference {
  min-height: 28px;
  margin: 15px 0 30px;

  color: #0284c7;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.8px;

  opacity: 0;
  transform: translateY(12px);
}

#verse.show-verse {
  animation: verseReveal 0.8s ease forwards;
}

#verse-reference.show-reference {
  animation: referenceReveal 0.7s ease 0.25s forwards;
}

/* Button */

#showVerseButton {
  min-width: 220px;
  padding: 15px 28px;

  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  border: none;
  border-radius: 50px;

  color: #ffffff;
  background: linear-gradient(135deg, #0284c7, #38bdf8);

  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;

  cursor: pointer;

  box-shadow: 0 12px 25px rgba(2, 132, 199, 0.28);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

#showVerseButton:hover {
  transform: translateY(-4px) scale(1.03);
  background: linear-gradient(135deg, #0369a1, #0ea5e9);
  box-shadow: 0 17px 35px rgba(2, 132, 199, 0.35);
}

#showVerseButton:active {
  transform: translateY(0) scale(0.98);
}

#showVerseButton span {
  display: inline-block;
  animation: sparkle 2s ease-in-out infinite;
}

.verse-instruction {
  margin: 20px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

/* ==============================
   ANIMATIONS
================================= */

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes verseReveal {
  from {
    opacity: 0;
    transform: translateY(25px);
    filter: blur(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes referenceReveal {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes sparkle {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(12deg) scale(1.15);
  }
}

@keyframes floatingCircle {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, 25px) scale(1.08);
  }
}

/* ==============================
   RESPONSIVE DESIGN
================================= */

@media screen and (max-width: 768px) {
  .verse-section {
    min-height: 570px;
    padding: 75px 15px 45px;
  }

  .verse-card {
    min-height: 430px;
    padding: 45px 25px 35px;
    border-radius: 22px;
  }

  .verse-icon {
    width: 75px;
    height: 75px;
    margin-top: -82px;
    font-size: 34px;
  }

  #verse {
    min-height: 130px;
    line-height: 1.55;
  }

  #showVerseButton {
    width: 100%;
    max-width: 280px;
  }
}

@media screen and (max-width: 480px) {
  .verse-card {
    padding: 40px 18px 30px;
  }

  .verse-card h2 {
    font-size: 29px;
  }

  #verse {
    min-height: 150px;
    font-size: 20px;
  }

  #verse-reference {
    font-size: 15px;
  }

  .small-title {
    font-size: 12px;
    letter-spacing: 2px;
  }
}








.footer {
  background: gray;
  color: white;
  padding: 60px 8%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer img {
  width: 80px;
}

.footer a {
  display: block;
  color: white;
  text-decoration: none;
  margin-bottom: 8px;
}

.footer a:hover {
  color: #bde6ff;
}

.copyright {
  background: lightgray;
  color: black;
  text-align: center;
  padding: 15px;
}

@media (max-width: 1000px) {
  .prayer-times,
  .st-card,
  .gallery-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-content p {
    font-size: 19px;
  }

  section h2 {
    font-size: 30px;
  }

  .st-content h2 {
    text-align: center;
  }

  .footer {
    text-align: center;
  }
}

@media (max-width: 600px) {
  section {
    padding: 60px 6%;
  }

  .devotion-hero {
    min-height: 430px;
  }

  .hero-content {
    padding: 30px 20px;
  }

  .st-card img,
  .gallery-grid img {
    height: 240px;
  }

  th,
  td {
    font-size: 14px;
    padding: 12px;
  }
}