/* =========================
   GLOBAL STYLES
   - Resets, box-sizing, typography, and base elements.
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  font-family: Arial, sans-serif;
}

body {
  width: 100%;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  overflow-x: hidden;
}

h1,
h3,
ul,
ol,
p {
  margin: 0;
}

p {
  margin-bottom: 1em;
}

ul,
li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* =========================
   TYPOGRAPHY
   - Headings, links, and text utilities.
========================= */
h1,
h2,
.h1,
.h2 {
  margin: 1rem 0;
  font-weight: 500;
  line-height: 1.2;
}

.h1,
h1 {
  font-size: 2.5rem;
}

.h2,
h2 {
  font-size: 1.8rem;
}

.h3,
h3 {
  margin: 20px 0 10px;
  font-size: 1.5rem;
  font-weight: normal;
  line-height: 28px;
}

.header-title h2 img {
  margin-right: 10px;
}

.no-underline {
  text-decoration: none !important;
}

.no-underline-row a {
  text-decoration: none;
}

.no-underline-links {
  text-decoration: none;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* =========================
   LAYOUT & GRID
   - Containers, rows, and general page structure.
========================= */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.main-content {
  padding: 0 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

/* =========================
   COMPONENTS
   - Reusable blocks with specific styling (e.g., info boxes, lists, tables).
========================= */
/* BREADCRUMBS */
.rt-breadcump {
  position: relative;
  margin: 0;
  padding: 0;
  color: #fff;
  background-color: #1d2a49;
  height: 300px;
  overflow: visible;
}

.rt-breadcump a,
.rt-breadcump p {
  margin-top: 0;
  font-size: 16px;
  position: relative;
  color: #fff;
}

.rt-breadcump.breadcump-style-2 {
  background-color: transparent;
}

.rt-breadcump .rt-page-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.breadcrumbs {
  color: black;
  position: relative;
  z-index: 10;
}

.breadcrumbs a {
  color: black;
}

/* HEADERS */
.header-title {
  margin-top: 60px;
  text-align: center;
  color: #000;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.9), -1px -1px 0 rgba(0, 0, 0, 0.25);
  font-weight: 500;
  position: relative;
}

/* CUSTOM LISTS WITH ICONS */
.li1 {
  background-image: url('/search/blackboy.webp');
}
.li2 {
  background-image: url('/search/blackgirl.webp');
}
.li3 {
  background-image: url('/search/boy.webp');
}
.li4 {
  background-image: url('/search/girl.webp');
}
.li5 {
  background-image: url('/search/man.webp');
}
.li6 {
  background-image: url('/search/woman.webp');
}
.li7 {
  background-image: url('/search/oldwoman.webp');
}

[class^="li"] {
  list-style: none;
  padding: 0 20px 0 35px;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: auto 25px;
  line-height: 1.3;
  margin: 10px 0 20px;
}

/* STYLED LIST CONTAINER */
.styled-list-container {
  background: #f8f9ff;
  border-radius: 12px;
  border: 1px solid #e1e3f0;
  padding: 10px;
  max-width: 620px;
  margin-bottom: 15px;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

.styled-list {
  padding: 0;
  list-style: none;
}

.styled-list-item {
  position: relative;
  padding: 10px 5px;
}

.styled-list-item:first-child {
  padding-top: 0;
}

.styled-list-item:last-child {
  border-bottom: none;
  padding-bottom: 8px;
}

/* TABLE STYLING */
table {
  width: 80%;
  margin: 20px auto;
  border-collapse: collapse;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

th,
td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f2f2f2;
  color: #333;
  font-weight: bold;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

tr:hover {
  background-color: #e9e9e9;
}

tbody tr:last-child td {
  border-bottom: none;
}

/* TABLE OF CONTENTS */
.table-of-contents {
  background: #f8f9ff;
  border-radius: 12px;
  border: 1px solid #e1e3f0;
  padding: 25px;
  margin: 30px 0;
}

.table-of-contents h3 {
  margin-top: 0;
  color: #2c5aa0;
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.table-of-contents li {
  margin-bottom: 18px;
  background: none;
  padding-left: 0;
}

.table-of-contents a {
  color: #2c5aa0;
  text-decoration: none;
  font-weight: 500;
}

.table-of-contents a:hover {
  text-decoration: underline;
}

/* INFO BOXES */
.info-box {
  background: linear-gradient(145deg, #f8f9ff, #eef0fa);
  border-radius: 16px;
  border: 1px solid #e1e3f0;
  box-shadow: 0 10px 30px rgba(63, 63, 125, 0.08);
  color: #3a3a68;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  max-width: 650px;
  overflow: hidden;
  margin: 20px auto;
}

.info-box-header img {
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.info-box2 {
  background: #9478D1;
  padding: 18px 25px;
  color: white;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.info-box-ul {
  padding: 25px 30px;
  margin: 0;
  list-style: none;
  font-size: 1.05rem;
  line-height: 1.6;
}

.info-box-ul a {
  text-decoration: none;
}


/* H2 CONTAINER */
        .h2-container {
        background: linear-gradient(135deg, #9478D1, #5a5a9e);
          border-radius: 16px;
          border: 1px solid #e1e3f0;
          box-shadow: 0 12px 40px rgba(63, 63, 125, 0.1);
          color: #3a3a68;
          font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
          max-width: 800px;
padding:0 0 15px 15px;
margin: 15px 0;
          overflow: hidden;

        }

        .h2-header {
          background: linear-gradient(135deg, #9478D1, #5a5a9e);
padding-top:10px;
          display: flex;
          align-items: center;
          gap: 15px;
        }
.h2-header img {
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.h2-header h2 {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* UTILITY BUTTONS */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #007BFF;
  color: #fff;
  font-size: 14px;
  padding: 8px 12px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background: linear-gradient(145deg, #e6d6c5, #fff);
  color: #a47c48;
  border-color: #5c4326;
}

/* FOOTER */
.footer {
  margin-top: 25px;
  text-align: center;
  font-size: 10px;
  line-height: 0.7em;
}

/* =========================
   RESPONSIVE & MEDIA QUERIES
   - Rules for different screen sizes.
========================= */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (max-width: 1199.98px) {
  html {
    font-size: 15px;
  }
}

@media (max-width: 991.98px) {
  html {
    font-size: 14px;
  }
  .h1,
  h1 {
    font-size: 2.2rem;
  }
  .h2,
  h2 {
    font-size: 1.8rem;
  }
  .h3,
  h3 {
    font-size: 1.4rem;
  }
}

@media (max-width: 767.98px) {
  html {
    font-size: 13px;
  }
  .rt-breadcump {
    height: 250px;
  }
  .h1,
  h1 {
    font-size: 2rem;
  }
  .h2,
  h2 {
    font-size: 1.6rem;
  }
  .h3,
  h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 479px) {
  html {
    font-size: 12px;
  }
}

@media (max-width: 320px) {
  html {
    font-size: 11px;
  }
}

@media print {
  *,
  ::after,
  ::before {
    text-shadow: none !important;
    box-shadow: none !important;
  }
  a:not(.btn) {
    text-decoration: underline;
  }
  img {
    page-break-inside: avoid;
  }
  h2,
  h3 {
    page-break-after: avoid;
  }
}