/* ============================= */
/*        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;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  background: #fff;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

/* ============================= */
/*        HEADER & QUOTE        */
/* ============================= */
.image-heading {
  text-align: center;
  margin-top: 1px;
  font-size: 3rem;
  color: #c10808;
  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;
}


/* Style for main section heading */
h2 {
  text-align: center;
  font-size: 2.2rem;   /* adjust size as needed */
  font-weight: bold;
  color: #bb0000;      /* deep red to match your theme */
  margin: 40px 0 25px;
}

/* ============================= */
/*       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);
}

/* ============================= */
/*         PARAGRAPHS           */
/* ============================= */
.paragraph {
  font-size: 1.05rem;
  margin-bottom: 25px;
  text-align: justify;
  padding: 0 10px;
}

/* ============================= */
/*       CUSTOM LIST STYLING    */
/* ============================= */
.rti-section h3 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 15px;
  color: #b30000;
  border-left: 6px solid #b30000;
  padding-left: 12px;
}

.rti-section ul {
  list-style: disc;
  margin: 0 0 25px 30px;
  padding-left: 0;
}

.rti-section ul li {
  margin-bottom: 10px;
  font-size: 1.02rem;
  line-height: 1.5;
}

/* ============================= */
/*         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);
}

/* ============================= */
/*        NAVIGATION 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;
  display: inline-block;
}

.nav-btn:hover {
  background-color: #ff0000;
  transform: scale(1.05);
  box-shadow: none;
}

/* ============================= */
/*        RESPONSIVE STYLES     */
/* ============================= */
/* === Mobile readability boost === */
@media (max-width: 768px) {
  body { font-size: 18px; line-height: 1.75; }

  .paragraph,
  p { 
    font-size: 0.1rem; 
    line-height: 1.85; 
    text-align: left;     /* better readability than justify on small screens */
    padding: 0 6px;
  }

  .rti-section ul li {
    font-size: 1.08rem;
    line-height: 1.8;
  }

  .image-heading { font-size: 1.4rem; }
  .image-caption { font-size: 1.05rem; }

  .rti-section h3 { font-size: 1.45rem; }

  .container { padding: 18px; }
}

/* Extra small phones */
@media (max-width: 480px) {
  body { font-size: 19px; } /* slightly larger base for tiny screens */

  .paragraph, p { font-size: 1.15rem; }
  .rti-section ul li { font-size: 1.12rem; }

  .image-heading { font-size: 2.1rem; }
  .image-caption { font-size: 1.05rem; }

  .nav-btn { font-size: 1rem; padding: 12px 20px; }
}




/* Responsive adjustment */
@media (max-width: 768px) {
  h2 {
    font-size: 1.8rem;  /* tablet / mid-size */
    margin: 30px 0 20px;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.5rem;  /* small phone */
    margin: 25px 0 18px;
  }
}



/* Responsive for tablets and phones */
@media (max-width: 768px) {
  .popup-img {
    max-width: 100%;   /* full width images */
    flex: 1 1 100%;
  }

  .image-row {
    gap: 20px;         /* smaller gap on small screens */
  }
}

@media (max-width: 480px) {
  .image-row {
    gap: 15px;         /* even smaller gap for very small phones */
    margin: 20px 0;
  }

  .popup-img {
    border-radius: 8px; /* slightly smaller radius for compact look */
  }
}


@media (max-width: 768px) {
  .rti-section p {
    font-size: 1rem;
    line-height: 1.75;
    text-align: left;   /* better readability on smaller screens */
  }

  .rti-section ul li {
    font-size: 1rem;
    line-height: 1.75;
  }
}

@media (max-width: 480px) {
  .rti-section p {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .rti-section ul li {
    font-size: 0.95rem;
    line-height: 1.8;
  }
}