/*
Theme Name: HireWorldly Child
Theme URI: https://hireworldly.com/
Description: Child theme of HireWorldly. Adds a proper single-post template (single.php) that renders the full post body.
Author: HireWorldly
Author URI: https://hireworldly.com/
Template: hireworldly
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hireworldly-child
*/

/* ============================================================
   Premium single-post article styling (HireWorldly Child)
   Scoped to body.single-post so the header, footer, homepage
   and other templates are never affected. Only the article card
   rendered by the child theme's single.php (inside main#hw-main)
   is restyled.
   Brand accents: emerald green (#0e9f6e) + gold (#c9a227).
   Urdu (RTL) text is untouched: no direction or font changes.
   ============================================================ */

/* --- Article card container --- */
body.single-post main > div.hw-wrap {
  background: #ffffff;
  border: 1px solid #e3e9ef;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(10, 37, 64, 0.07);
  padding: 34px 42px 44px;
  margin-top: 28px;
  margin-bottom: 48px;
}

/* --- Post title: emerald-to-gold underline --- */
body.single-post main > div.hw-wrap > h1 {
  color: #0a2540;
  line-height: 1.7;
  padding-bottom: 0.55em;
  border-bottom: 3px solid #0e9f6e;
  border-image: linear-gradient(90deg, #0e9f6e 0%, #0e9f6e 55%, #c9a227 100%) 1;
}

/* --- Post meta: soft dashed separator --- */
body.single-post main > div.hw-wrap > p {
  padding-bottom: 16px;
  border-bottom: 1px dashed #e3e9ef;
  margin-bottom: 24px;
}

/* --- Featured image: soft premium shadow --- */
body.single-post main > div.hw-wrap > div:not(.hw-content) img {
  display: block;
  box-shadow: 0 14px 34px rgba(10, 37, 64, 0.16);
}

/* --- Content typography --- */
body.single-post .hw-content p {
  margin-bottom: 14px;
}
body.single-post .hw-content a {
  color: #0e9384;
  font-weight: 600;
}

/* --- H2: navy with hairline rule + green/gold accent --- */
body.single-post .hw-content h2 {
  font-size: 1.45rem;
  line-height: 1.6;
  color: #0a2540;
  margin: 2.1em 0 0.9em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid #e9eef3;
  position: relative;
}
body.single-post .hw-content h2::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -2px;
  width: 84px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #0e9f6e, #c9a227);
}

/* --- H3: gold side bar --- */
body.single-post .hw-content h3 {
  font-size: 1.18rem;
  line-height: 1.6;
  color: #0a2540;
  margin: 1.7em 0 0.7em;
  padding-inline-start: 0.65em;
  border-inline-start: 4px solid #c9a227;
}

/* --- Premium tables --- */
body.single-post .hw-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.3em 0 1.7em;
  font-size: 0.96rem;
  background: #ffffff;
  border: 1px solid #dfe6ec;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(10, 37, 64, 0.06);
}
body.single-post .hw-content th {
  background: #0a2540;
  color: #ffffff;
  font-weight: 700;
  text-align: start;
  padding: 12px 15px;
  border-bottom: 2px solid #c9a227;
}
body.single-post .hw-content td {
  padding: 11px 15px;
  border-top: 1px solid #e9eef3;
  vertical-align: top;
}
body.single-post .hw-content tbody tr:nth-child(even) {
  background: #f6f9fb;
}
body.single-post .hw-content tbody tr:hover {
  background: #edf7f3;
}
body.single-post .hw-content td:first-child {
  font-weight: 600;
  color: #0a2540;
}

/* --- Lists --- */
body.single-post .hw-content ul,
body.single-post .hw-content ol {
  margin: 1em 0 1.4em;
  padding-inline-start: 1.5em;
}
body.single-post .hw-content li {
  margin-bottom: 0.6em;
}
body.single-post .hw-content li::marker {
  color: #0e9f6e;
  font-weight: 700;
}

/* --- Numbered steps as a clear procedure --- */
body.single-post .hw-content ol {
  list-style: none;
  counter-reset: hw-step;
  padding-inline-start: 0;
}
body.single-post .hw-content ol > li {
  counter-increment: hw-step;
  position: relative;
  background: #f6f9fb;
  border: 1px solid #e3e9ef;
  border-inline-start: 4px solid #0e9f6e;
  border-radius: 10px;
  padding: 0.85em 1.1em;
  padding-inline-start: 3.4em;
  margin-bottom: 0.7em;
}
body.single-post .hw-content ol > li::before {
  content: counter(hw-step);
  position: absolute;
  inset-inline-start: 0.9em;
  top: 50%;
  transform: translateY(-50%);
  width: 1.9em;
  height: 1.9em;
  line-height: 1.9em;
  text-align: center;
  background: #0e9f6e;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85em;
  border-radius: 50%;
}

/* --- Blockquotes --- */
body.single-post .hw-content blockquote {
  border-inline-start: 4px solid #c9a227;
  background: #fdf9ec;
  padding: 1em 1.3em;
  border-radius: 8px;
  margin: 1.3em 0;
  color: #3d4c5d;
}

/* --- Narrow screens: horizontal scroll for tables, tighter card --- */
@media (max-width: 680px) {
  body.single-post main > div.hw-wrap {
    padding: 22px 18px 30px;
    margin-top: 16px;
    margin-bottom: 32px;
    border-radius: 12px;
  }
  body.single-post .hw-content h2 {
    font-size: 1.28rem;
  }
  body.single-post .hw-content h3 {
    font-size: 1.1rem;
  }
  body.single-post .hw-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.single-post .hw-content th,
  body.single-post .hw-content td {
    padding: 9px 11px;
    font-size: 0.9rem;
  }
  body.single-post .hw-content ol > li {
    padding-inline-start: 3.1em;
  }
}