/* ==========================================================================
   Content Page Styles — conditionally loaded on NON-Elementor pages only.
   Loaded via functions.php; never touches Elementor-built pages.
   ========================================================================== */

/* --- Page title banner --- */
.page-template-default .page-header,
.wp-singular .page-header,
.single .page-header {
  background: #224394;
  padding: 60px 40px 50px;
  margin-bottom: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  box-sizing: border-box;
}

/* --- Page title text --- */

/* --- Hero image banner (when featured image exists) --- */
.has-hero-image .page-header {
  background-color: #224394;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  width: 100vw;
  padding: 120px 40px 80px;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  box-sizing: border-box;
}

/* Dark overlay for text readability */
.has-hero-image .page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(34, 67, 148, 0.45) 0%,
    rgba(34, 67, 148, 0.82) 100%
  );
  z-index: 1;
}

/* Title above overlay */
.has-hero-image .page-header h1.entry-title {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.page-template-default h1.entry-title,
.wp-singular h1.entry-title,
.single h1.entry-title {
  font-family: 'Poppins', sans-serif !important;
  font-size: 42px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  max-width: 900px;
}

/* --- Content wrapper --- */
.page-template-default .page-content,
.wp-singular .page-content,
.single .page-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 40px 80px;
  font-family: 'Poppins', sans-serif;
}

/* --- Headings inside content --- */
.page-content h1 {
  font-family: 'Poppins', sans-serif !important;
  font-size: 38px !important;
  font-weight: 700 !important;
  color: #111111 !important;
  line-height: 1.25 !important;
  margin: 0 0 20px !important;
}
.page-content h2 {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  color: #224394 !important;
  line-height: 1.2 !important;
  margin: 50px 0 18px !important;
}
.page-content h3 {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #3a82fa !important;
  line-height: 1.3 !important;
  /* Hero image responsive */
  .has-hero-image .page-header {
    padding: 60px 20px 40px;
    min-height: 200px;
  }
  margin: 36px 0 14px !important;
}
.page-content h4 {
  font-family: 'Poppins', sans-serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #224394 !important;
  margin: 28px 0 10px !important;
}

/* --- Body text --- */
.page-content p {
  font-family: 'Poppins', sans-serif !important;
  font-size: 16px !important;
  line-height: 1.85 !important;
  color: #333333 !important;
  margin: 0 0 20px !important;
}
.page-content ul,
.page-content ol {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: #333333;
  margin: 0 0 24px 24px;
  padding: 0;
}
.page-content li {
  margin-bottom: 10px;
}
.page-content strong {
  color: #224394;
  font-weight: 700;
}

/* --- Dividers --- */
.page-content hr {
  border: none;
  border-top: 3px solid #f3f3f3;
  margin: 50px 0;
}

/* --- CTA buttons --- */
.page-content a.wp-block-button__link,
.page-content .wp-block-button__link {
  display: inline-block;
  background: #3a82fa;
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 3px;
  border: 2px solid #3a82fa;
  text-decoration: none !important;
  margin: 6px 8px 6px 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.page-content a.wp-block-button__link:hover {
  background: #224394;
  border-color: #224394;
  color: #ffffff !important;
}

/* --- Tables --- */
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 36px 0;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 20px rgba(34,67,148,0.10);
}
.page-content thead th {
  background: #224394;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 18px;
  text-align: left;
}
.page-content tbody td {
  padding: 12px 18px;
  font-size: 15px;
  color: #333;
  border-bottom: 1px solid #ebebeb;
  vertical-align: top;
}
.page-content tbody tr:nth-child(even) {
  background: #f9f9f9;
}
.page-content tbody tr:hover {
  background: #f0f4ff;
}

/* --- Post/page layout container --- */
.hfeed article.page,
.hfeed article.post {
  background: #ffffff;
}

/* --- entry-content fallback --- */
.entry-content h2 {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  color: #224394 !important;
  line-height: 1.2 !important;
  margin: 50px 0 18px !important;
}
.entry-content h3 {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #3a82fa !important;
  line-height: 1.3 !important;
  /* Hero image responsive */
  .has-hero-image .page-header {
    padding: 60px 20px 40px;
    min-height: 200px;
  }
  margin: 36px 0 14px !important;
}
.entry-content p {
  font-family: 'Poppins', sans-serif !important;
  font-size: 16px !important;
  line-height: 1.85 !important;
  color: #333333 !important;
  margin: 0 0 20px !important;
}

/* === RESPONSIVE === */
@media (max-width: 767px) {
  .page-template-default .page-header,
  .wp-singular .page-header,
  .single .page-header {
    padding: 40px 20px 30px;
  }
  .page-template-default h1.entry-title,
  .wp-singular h1.entry-title,
  .single h1.entry-title {
    font-size: 28px !important;
    line-height: 1.3 !important;
  /* Hero image responsive */
  .has-hero-image .page-header {
    padding: 60px 20px 40px;
    min-height: 200px;
  }
  }
  .page-template-default .page-content,
  .wp-singular .page-content,
  .single .page-content {
    padding: 40px 20px 60px !important;
  }
  .page-content h1 { font-size: 28px !important; }
  .page-content h2 { font-size: 24px !important; margin: 36px 0 14px !important; }
  .page-content h3 { font-size: 19px !important; }
  .page-content p,
  .page-content li { font-size: 15px !important; }
  .page-content a.wp-block-button__link {
    display: block;
    text-align: center;
    margin: 8px 0;
  }
  .page-content table { font-size: 13px; }
  .page-content thead { display: none; }
  .page-content tr { display: block; border-bottom: 2px solid #ebebeb; margin-bottom: 12px; }
  .page-content td { display: block; padding: 8px 12px; border-bottom: 1px solid #f0f0f0; }
}
