/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

.image-heading {
  text-align: center;
  margin-top: 1px;
  font-size: 3rem; 
  color: #d10505;
  font-weight: bold;
}

.image-caption {
  text-align: center;
  font-weight: bold;
  font-style: italic;
  font-size: 1.1rem;
  margin-top: 20px;
  margin-bottom: 50px;
  color: #555;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  background: #fff;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

/* Background Image */
.background-img {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto 30px;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-origin: center center;
}

.background-img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

/* Paragraph Styling */
.paragraph {
  font-size: 1.05rem;
  margin-bottom: 25px;
  text-align: justify;
  padding: 0 10px;
}

/* Video Box */
.media-box {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.media-box iframe {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1313 / 565;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-box iframe:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Image Row */
.image-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 30px 0;
}

.popup-img {
  flex: 1 1 300px;
  max-width: 46%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.popup-img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* RTI Sections */
/* === Headings === */
h2 {
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 15px;
  color: #b30000;
  border-left: 6px solid #b30000;
  padding-left: 12px;
}

/* === Paragraphs === */
p {
  font-size: 1.05rem;
  margin-bottom: 20px;
}

/* === Bullet Points === */
ul {
  list-style: disc;
  margin-left: 30px;
  margin-bottom: 25px;
  padding-left: 0;
}

ul li {
  margin-bottom: 10px;
  font-size: 1.02rem;
  line-height: 1.6;
}


/* Buttons */
.button-row {
  text-align: center;
  margin: 40px 0;
}

.nav-btn {
  padding: 12px 28px;
  background-color: #b30000;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 10px;
  margin: 0 10px;
  box-shadow: none;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
}

.nav-btn:hover {
  background-color: #ff0000;
  transform: scale(1.05);
  box-shadow: none;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .popup-img {
    max-width: 100%;
  }

  .paragraph {
    padding: 0 5px;
  }

  .image-heading {
    font-size: 2.2rem;
  }

  .image-caption {
    font-size: 1rem;
  }

  .rti-section h3 {
    font-size: 1.3rem;
  }

  .media-box iframe {
    aspect-ratio: 16 / 9;
  }
}
