/* =====================================================================
   Remote Jobs Caribbean - Site Fixes stylesheet (loaded by the
   "RJC Site Fixes" plugin). Replaces the old Customizer "Additional CSS".
   ===================================================================== */

:root {
  --rjc-primary: #0a8f3c;       /* Caribbean green (brand) */
  --rjc-primary-dark: #07702f;  /* hover */
  --rjc-accent: #f5b700;        /* gold - focus rings, highlights */
  --rjc-text: #1f2937;
  --rjc-border: #e5e7eb;
  --rjc-radius: 8px;
}

/* ---------- 1. Buttons: one consistent style ----------
   Fixes: Helvetica/Poppins font mix, text sitting high (0 top padding),
   black borders, orange hover, Register/Sign in misalignment. */
.btn-theme,
.btn-theme-secondary,
.wpcf7-submit,
.load_more_jobs {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  color: #fff !important;
  background: var(--rjc-primary) !important;
  border: 1px solid var(--rjc-primary) !important;
  border-radius: var(--rjc-radius) !important;
  padding: 11px 20px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-transform: none !important;
  box-shadow: none !important;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-theme:hover, .btn-theme:focus,
.btn-theme-secondary:hover, .btn-theme-secondary:focus,
.wpcf7-submit:hover, .load_more_jobs:hover,
.pro-coulmn .btn-theme-secondary:hover,
.fr-project-content-details .btn-theme-secondary:hover {
  color: #fff !important;
  background: var(--rjc-primary-dark) !important;
  border-color: var(--rjc-primary-dark) !important;
  transform: translateY(-1px);
}
.btn-theme:focus-visible, .btn-theme-secondary:focus-visible, .wpcf7-submit:focus-visible {
  outline: 3px solid var(--rjc-accent) !important;
  outline-offset: 2px;
}

/* ---------- 2. Header ----------
   Fixes: grey "gainsboro" bar, negative margins (caused horizontal scroll),
   uneven Register / Sign in buttons. */
.sb-header, .sb-menu {
  background: #fff !important;
}
.sb-header {
  border-bottom: 1px solid var(--rjc-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}
.sb-header .logo img {
  width: 220px;
  max-width: 60vw;
  height: auto;
}
.fr-menu .sb-menu ul li > a {
  font-weight: 500;
  color: var(--rjc-text);
}
.fr-menu .sb-menu ul li > a:hover {
  color: var(--rjc-primary) !important;
  background: transparent !important;
}
.fr-menu .sb-menu ul li.fr-list {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 15px;
}
/* Register = outline button, Sign in = solid button */
.fr-menu .sb-menu ul li.fr-list .btn-theme-secondary {
  background: #fff !important;
  color: var(--rjc-primary) !important;
}
.fr-menu .sb-menu ul li.fr-list .btn-theme-secondary:hover {
  background: var(--rjc-primary) !important;
  color: #fff !important;
}
.fr-menu .sb-menu ul li.fr-list a.btn-theme,
.fr-menu .sb-menu ul li.fr-list a.btn-theme-secondary {
  padding: 9px 18px !important;
  margin: 0 !important;
}
/* Bigger, easier-to-tap mobile menu icon: see section 11 */

/* ---------- 3. Forms (Contact Form 7, search) ---------- */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  background: #fff !important;
  border: 1px solid #d1d5db !important;
  border-radius: var(--rjc-radius) !important;
  padding: 12px 14px !important;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: var(--rjc-text);
  transition: border-color .2s, box-shadow .2s;
}
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus {
  border-color: var(--rjc-primary) !important;
  box-shadow: 0 0 0 3px rgba(10, 143, 60, .15) !important;
  outline: none;
}
.wpcf7 label { font-weight: 500; color: var(--rjc-text); }
.wpcf7-not-valid-tip { font-size: 13px; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { border-radius: var(--rjc-radius); margin: 16px 0 0; }

/* ---------- 4. Cards & tags ---------- */
.fr-right-bid a { padding-bottom: 10px; }
.project-price .feature i { font-size: 50px; }

/* ---------- 5. Hero ---------- */
.elementor-widget-hero-three .elementor-widget-container { margin-top: 0 !important; }
.fr-hero-ad { height: auto !important; min-height: 420px; }
@media (max-width: 767px) {
  .fr-hero-ad { min-height: 0; }
}

/* ---------- 6. Footer ----------
   Fixes: footer logo forced to 500px (overflowed on phones). */
.fr-footer .fr-footer-details img {
  width: 320px !important;
  max-width: 100% !important;
  height: auto;
}

/* ---------- 7. Safety net: no sideways scrolling on phones ---------- */
html, body { overflow-x: hidden; }
img, iframe, video { max-width: 100%; height: auto; }

/* ---------- 8. Intentionally hidden sections (kept from the old CSS) ---------- */
.featured-box,          /* package purchase links */
.fr-project-ids,        /* project ID numbers */
#google_canvas,         /* maps */
.fr-explore-cat {       /* "Explore Professional Services" categories with 0 listings */
  display: none !important;
}
/* Old CSS hid only the slider, which left an empty "Promoted Freelancers" box.
   Hide the whole box until you have more freelancers to promote. */
.fr-jobs-main-content:has(.top-lancer-slider) { display: none !important; }
/* Sliders with demo data (hero "Joanna Edison / No Reviews" card, etc.) - kept hidden as before */
.owl-carousel, .owl-stage-outer { display: none !important; }

/* ---------- 9. Page banners (Contact, About...) ----------
   Fixes: black bars above/below the banner image on phones. */
.fr-list-product {
  background-size: cover !important;
  background-position: center !important;
}

/* ---------- 10. Hero search button: center the text ---------- */
.btn-style {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* ---------- 11. Header alignment ---------- */
.sb-header .logo { display: flex; align-items: center; }
@media (min-width: 992px) {
  .sb-header-container { display: flex; align-items: center; }
  .sb-header-container > .sb-menu { flex: 1 1 auto; }
  .sb-header-container > .sb-menu > ul { display: flex; align-items: center; width: 100%; }
  .sb-header-container > .sb-menu > ul > li.fr-list { margin-left: auto; }
}
@media (max-width: 991px) {
  .sb-header-container { display: flex; align-items: center; justify-content: space-between; }
  .burger-menu {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin: 0 0 0 auto !important;
    position: relative !important;
  }
  .burger-menu .line-menu {
    display: block;
    width: 24px !important;
    height: 2px !important;
    background: var(--rjc-text) !important;
    border-radius: 2px;
    margin: 0 !important;
  }
  .burger-menu .line-menu.line-half { width: 14px !important; }
  .burger-menu .line-menu.last-line { align-self: flex-end; margin-right: 10px !important; }
}

/* Misc */
.menu-title { padding-left: 5px; }
.mo_btn-social > :first-child { top: 7px !important; }

/* ---------- 12. Footer social icons with no link (href="#") ---------- */
a[href="#"]:has(> i.fab) { display: none !important; }

/* ---------- 13. Sidebar ad slot left empty after removing the demo ad ---------- */
.sidebar-advertisement:not(:has(ins, iframe, img)) { display: none !important; }

/* ---------- 14. Monetization: Affiliate Disclosure, Post CTA & Blog Readability ----------
   Clean spacing and typography for long-form guides (helps time-on-page & ad viewability). */
.rjc-affiliate-disclosure {
  background: #f9fafb;
  border-left: 4px solid var(--rjc-primary);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 0 0 24px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #4b5563;
}
.rjc-affiliate-disclosure a {
  color: var(--rjc-primary);
  text-decoration: underline;
}

.rjc-post-cta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  background: #f3f9f5;
  border: 1px solid #d1e7d8;
  border-radius: 12px;
  padding: 24px;
  margin: 36px 0 12px;
}
.rjc-post-cta-col h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--rjc-text);
}
.rjc-post-cta-col p {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #4b5563;
}
.rjc-post-cta .btn-theme-secondary {
  background: #fff !important;
  color: var(--rjc-primary) !important;
}
.rjc-post-cta .btn-theme-secondary:hover {
  background: var(--rjc-primary) !important;
  color: #fff !important;
}
@media (max-width: 767px) {
  .rjc-post-cta { grid-template-columns: 1fr; padding: 18px; }
}

.rjc-aff-link {
  color: var(--rjc-primary);
  font-weight: 600;
  text-decoration: underline;
}

/* Long-form blog readability & comparison tables */
.single-post .entry-content,
.single-post .blog-detial-main-area {
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--rjc-text);
}
.single-post .entry-content h2,
.single-post .blog-detial-main-area h2 {
  margin-top: 36px;
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.3;
}
.single-post .entry-content h3,
.single-post .blog-detial-main-area h3 {
  margin-top: 26px;
  margin-bottom: 10px;
  font-size: 19px;
}
.single-post .entry-content p,
.single-post .blog-detial-main-area p {
  margin-bottom: 18px;
}
.single-post table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14.5px;
  display: block;
  overflow-x: auto;
}
.single-post table th,
.single-post table td {
  border: 1px solid var(--rjc-border);
  padding: 10px 14px;
  text-align: left;
}
.single-post table th {
  background: #f9fafb;
  font-weight: 600;
}
