/*
Theme Name: TheTrial Child
Theme URI: https://thetrial.qodeinteractive.com
Template: thetrial
Author: Elated Themes
Author URI: https://qodeinteractive.com
Description: Law WordPress Theme
Tags: one-column,two-columns,three-columns,four-columns,left-sidebar,right-sidebar,custom-menu,featured-images,flexible-header,post-formats,sticky-post,threaded-comments,translation-ready
Version: 1.3.1764893163
Updated: 2025-12-05 00:06:03

*/

/* ============================================================
   MAILCHIMP MESSAGES 
   ============================================================ */

/* Center the message boxes */
.mc4wp-alert,
.mc4wp-success,
.mc4wp-error {
  text-align: center !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 15px auto 0 !important;
}

/* Success (blue) */
.mc4wp-success p {
  color: #22344a !important;
}

/* Error (red) */
.mc4wp-error p {
  color: #b21919 !important;
}

/* Neutral (blue) */
.mc4wp-alert:not(.mc4wp-success):not(.mc4wp-error) p {
  color: #1d4ed8 !important;
}


/* ============================================================
   ELYVIA NEWSLETTER FORM — COMPACT LAYOUT
   ============================================================ */

/* Outer container */
.elyvia-nl {
  width: 100%;
  max-width: 98%;
  margin: 0 auto;
  padding: 20px 24px;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  text-align: center;
}

/* Internal layout */
.elyvia-nl-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Typography */
.elyvia-nl-text h2 {
  margin: 0 0 4px;
}

.elyvia-nl-text p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.85;
}

/* Form wrap */
.elyvia-nl-form {
  width: 100%;
}

/* Email + Category row */
.elyvia-nl-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

/* Inputs */
.elyvia-nl-row input,
.elyvia-nl-row select {
  flex: 1;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 1rem;
  background: #fff;
  box-sizing: border-box;
}

/* Select width */
.elyvia-nl-row select {
  max-width: 180px;
}

/* Focus styling */
.elyvia-nl-row input:focus,
.elyvia-nl-row select:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

/* CTA button */
.elyvia-nl-btn {
  display: inline-block;
  width: 100%;
  padding: 11px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}


/* ============================================================
   MOBILE RESPONSIVE BEHAVIOR
   ============================================================ */

@media (max-width: 767px) {

  .elyvia-nl {
    max-width: 100%;
    padding: 16px 14px;
    border-radius: 8px;
  }

  /* Stack fields vertically */
  .elyvia-nl-row {
    flex-direction: column;
    gap: 8px;
  }

  /* Full-width select */
  .elyvia-nl-row select {
    max-width: 100%;
  }

  /* Mobile text */
  .elyvia-nl-text h2,
  .elyvia-nl-text p {
    font-size: 1rem;
  }

  .elyvia-nl-btn {
    font-size: 0.95rem;
    padding: 10px 12px;
  }
}


/* ============================================================
   RELATED POSTS (ELY)
   ============================================================ */

.ely-related-wrapper {
  margin-top: 3rem;
}

.ely-related-title {
  margin-bottom: 1.5rem;
}

.ely-related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.ely-related-item {
  flex: 1 1 calc(33.333% - 20px);
}

.ely-related-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.ely-related-content {
  margin-top: 0.75rem;
}

.ely-related-excerpt {
  margin: 6px 0 10px;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .ely-related-item {
    flex: 1 1 100%;
  }
}


/* FORCE custom link styling inside single post content */
.single-post .qodef-e-text p a,
.single-post .qodef-e-text p a:visited {
    color: #1a1a1a !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    text-decoration-thickness: 1px !important;
    transition: color 0.2s ease, text-decoration-thickness 0.2s ease;
}

/* Hover state */
.single-post .qodef-e-text p a:hover,
.single-post .qodef-e-text p a:focus {
    color: #000 !important; /* darker on hover */
    text-decoration-thickness: 2px !important;
}

/* Visited links (different color) */
.single-post .qodef-e-text p a:visited {
    color: #444 !important;
}

/*  Center the pagination block */
.qodef-m-pagination.qodef--wp {
    display: flex;
    justify-content: center;   /* center pagination horizontally */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   Footer – top padding
   ========================================================= */
#qodef-page-footer-top-area,
#qodef-page-footer-top-area-inner {
  padding-top: 20px;
}

/* =========================================================
   Logo sticky Height 90
   ========================================================= */
.qodef-header-logo-image.qodef--sticky {
  height: 90px !important;
  width: auto !important;
}

/* =========================================================
 *  Match list typography to your General Typography settings 
========================================================= */
.single-post .qodef-e-text ul,
.single-post .qodef-e-text ol,
.single-post .qodef-e-text ul li,
.single-post .qodef-e-text ol li {
  font-family: "Crimson Text", serif !important;
  font-size: 21px !important;
  line-height: 33px !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  font-style: normal !important;
  color: #515151 !important;
}

/* ======================================
   NYT-style Drop Cap for Elementor
   ====================================== */

.elementor-drop-cap{
  float: left;
  margin: 0.08em 0.14em 0 0;
}

.elementor-drop-cap-letter{
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  font-size: 1.1em;
  line-height: 0.9;
  color: #111;
  display: block;
}

/* Ensure clean text wrapping */
.elementor-widget-text-editor p{
  overflow: hidden;
}
