* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: #fff;
  background: linear-gradient(to bottom, #fff1c0, #ffb677); /* Warm devotional gradient */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 10px;
}

.main {
  width: 90%;
  max-width: 1000px;
  min-height: 500px;
  background: #fff8e1; /* Soft cream color */
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

/* Top Section */
.sub1 {
  background: #ffd1a7; /* Bronze color */
  width: 100%;
  /* padding: 20px; */
  height: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
}

img {
  width: 100%;
  height: 100%;
}

/* Bottom Section */
.sub2 {
  display: flex;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
  width: 100%;
  height: auto; /* Adjusted height for better responsiveness */
}

/* Left Side - Video */
.subsub1 {
  background: #ffeab1; /* Golden shade */
  width: 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#bgVideo {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Right Side - Text */
.subsub2 {
  background: #a8ffa9; /* Deep green */
  width: 30%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  padding: 47px;
  font-weight: bold;
  border-left: 5px solid #b87333; /* Bronze border */
  overflow-y: auto; /* Enables scrolling if content overflows */
}

.subsub2 p {
  font-size: 1rem;
  color: #3d3304;
}

/* 🔹 Prayer Text Below Video */
.prayer-text {
  background: #ffd1a7; /* Warm background */
  color: #424242;
  text-align: center;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 15px;
  line-height: 1.6;
  width: 100%;
}

/* 🔹 RESPONSIVE DESIGN 🔹 */
@media (max-width: 900px) {
  .sub2 {
    flex-direction: column;
  }
  .subsub1 {
    width: 100%;
    height: auto; /* Allow video to resize dynamically */
  }
  #bgVideo {
    height: 300px; /* Adjusted for medium screens */
  }
  .subsub2 {
    width: 100%;
    padding: 30px;
    border-left: none;
    border-top: 5px solid #b87333; /* Adds top border for separation */
  }
  .subsub2 p {
    font-size: 0.9rem;
  }
  .prayer-text {
    font-size: 1rem;
    padding: 12px;
  }
}

@media (max-width: 600px) {
  .main {
    width: 100%;
    min-height: 400px;
  }
  .sub1 {
    height: 90px;
  }
  .subsub1 {
    height: auto;
  }
  #bgVideo {
    height: 250px; /* Adjusted for smaller screens */
  }
  .subsub2 {
    height: auto;
    padding: 15px;
  }
  .subsub2 p {
    font-size: 0.85rem;
  }
  .prayer-text {
    font-size: 0.9rem;
    padding: 10px;
  }
}
