:root {
  --accent: #ff6310;
  --text: #000000;
  --heading: #111518;
  --muted: #687279;
  --page-bg: #f4f5f6;
  --card: #ffffff;
  --header-bg: #111518;
  --footer-bg: #111518;
  --link: #ff6310;
  --theme-content-spacing: 1.5em;
  --wp--style--unstable-gallery-gap: 1.5em;
  --wp--style--global--content-size: 840px;
  --theme-container-width: min(100%, 88vw);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--page-bg);
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; vertical-align: middle; }
ul, ol { padding-left: 1.4em; }
p { margin: 0 0 var(--theme-content-spacing); }
li { margin-bottom: 0.35em; }

/* ========== Header ========== */
.site-header {
  background: var(--header-bg);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 65px;
}
.header-inner {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 20px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  text-decoration: none !important;
  flex-shrink: 0;
}
.brand img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.brand .site-title {
  font-size: 25px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-transform: capitalize;
  text-decoration: none !important;
  white-space: nowrap;
}
.nav-menu a:hover { opacity: 0.85; }
.nav-menu a.active { color: var(--accent) !important; }
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

/* ========== Main / article card (desktop) ========== */
.site-main {
  padding: 40px 0 60px;
}
.article-card {
  max-width: 850px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 10px;
  box-shadow: rgb(104, 114, 121) 0 0 18px -6px;
  padding: 30px;
}
.page-title {
  margin: 0 0 var(--theme-content-spacing);
  font-size: 30px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
}

/* Constrained content like WP is-layout-constrained */
.entry-content > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: var(--wp--style--global--content-size);
  margin-left: auto;
  margin-right: auto;
}

.entry-content h2 {
  font-size: 1.55em;
  font-weight: 700;
  color: var(--heading);
  margin: 1.6em 0 0.7em;
  line-height: 1.3;
}
/* Original site orange section titles */
.entry-content h2.h,
.wp-block-heading.h,
h2.h {
  background: #ff6310;
  border-radius: 8px;
  padding: 10px 20px;
  color: #ffffff !important;
  margin: 1.6em -20px 0.7em;
  font-size: 25px !important;
  text-align: center;
  font-weight: 700;
  line-height: 1.35;
  display: block;
  width: auto;
  box-sizing: border-box;
}
.entry-content h3 {
  font-size: 1.25em;
  font-weight: 700;
  margin: 1.4em 0 0.6em;
}
.entry-content h3.h,
h3.h {
  background: #ff6310;
  border-radius: 8px;
  padding: 10px 20px;
  color: #ffffff !important;
  margin-left: -20px;
  margin-right: -20px;
  font-size: 22px !important;
  text-align: center;
}
.entry-content h4 {
  font-size: 1.1em;
  font-weight: 700;
  margin: 0;
}
.entry-content h5 {
  font-size: 1.05em;
  font-weight: 700;
  margin: 1.2em 0 0.5em;
}
.has-text-align-center,
.wp-block-heading.has-text-align-center { text-align: center; }

/* Images */
.wp-block-image { margin: var(--theme-content-spacing) 0; }
.wp-block-image.aligncenter { text-align: center; }
.wp-block-image.aligncenter img {
  margin: 0 auto;
  display: inline-block;
}
.wp-block-image.is-resized img {
  width: 214px;
  height: auto;
}
.brand img,
.wp-block-image.is-resized img[src*="assets/logo.webp"] {
  border-radius: 50%;
}
.wp-block-image img[src*="logo2.webp"] {
  border-radius: 10px;
  width: 100%;
  height: auto;
  display: block;
}

/* Tables */
.wp-block-table { margin: var(--theme-content-spacing) 0; overflow-x: auto; }
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #111518;
}
.wp-block-table td,
.wp-block-table th {
  border: 1px solid #111518;
  padding: 10px 14px;
  text-align: center;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: #f7f7f7; }
.wp-block-table.is-style-stripes tbody tr:nth-child(even) { background: #fff; }

/* Columns */
.wp-block-columns {
  display: flex;
  gap: var(--theme-content-spacing);
  margin: var(--theme-content-spacing) 0;
  flex-wrap: nowrap;
  align-items: center;
}
.wp-block-column {
  flex-grow: 1;
  flex-basis: 0;
  min-width: 0;
  word-break: break-word;
}
.wp-block-column[style*="flex-basis"] {
  flex-grow: 0;
}
.wp-block-column.bb1 {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 15px 20px 0;
  align-self: stretch;
}

/*
 * Galleries:
 * Desktop: max 3 per row
 * Mobile: max 2 per row
 */
.wp-block-gallery,
figure.wp-block-gallery {
  display: flex !important;
  flex-wrap: wrap;
  gap: var(--wp--style--unstable-gallery-gap);
  align-items: stretch;
  justify-content: center;
  margin: var(--theme-content-spacing) auto;
  padding: 0;
  list-style: none;
  max-width: var(--wp--style--global--content-size);
}
.wp-block-gallery.has-nested-images > figure.wp-block-image,
.wp-block-gallery > figure.wp-block-image {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex-grow: 0;
  flex-shrink: 0;
  justify-content: center;
  margin: 0 !important;
  position: relative;
  /* desktop default: 3 columns */
  width: calc((100% - 2 * var(--wp--style--unstable-gallery-gap)) / 3);
  max-width: calc((100% - 2 * var(--wp--style--unstable-gallery-gap)) / 3);
}
.wp-block-gallery.has-nested-images.is-cropped > figure.wp-block-image img,
.wp-block-gallery.is-cropped > figure.wp-block-image img,
.wp-block-gallery.has-nested-images > figure.wp-block-image img,
.wp-block-gallery > figure.wp-block-image img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: none;
}

/* lone Cloudflare phone */
.entry-content > .wp-block-image.is-resized img[src*="fix"] {
  width: 185px !important;
  max-width: 185px;
  border-radius: 10px;
}

/* TOC */
.wp-block-rank-math-toc-block {
  margin: 2em auto;
  padding: 1.2em 1.4em;
  background: #fafafa;
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  max-width: var(--wp--style--global--content-size);
}
.wp-block-rank-math-toc-block nav ul {
  margin: 0.6em 0 0;
  padding-left: 1.2em;
}
.wp-block-rank-math-toc-block li { margin: 0.35em 0; }

/* Buttons */
.roxapk-button-wrapper {
  display: flex;
  margin: 10px 0;
  justify-content: center;
}
.roxapk-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 10px auto;
  text-align: center;
  color: #fff !important;
  border: none;
  cursor: pointer;
}
.roxapk-download-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.roxapk-download-button-3 {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  box-shadow: 0 4px 6px rgba(46, 204, 113, 0.3);
}
.roxapk-download-button-3 .roxapk-download-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/%3E%3C/svg%3E");
}
.roxapk-download-button-3:hover {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  transform: translateY(-2px);
}
.roxapk-download-button-5 {
  background: linear-gradient(135deg, #27A7E7, #229ED9);
  border-radius: 25px;
  font-weight: 500;
  padding: 14px 28px;
  box-shadow: 0 4px 12px rgba(39, 167, 231, 0.25);
}
.roxapk-download-button-5 .roxapk-download-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.64 6.8c-.15 1.58-.8 5.42-1.13 7.19-.14.75-.42 1-.68 1.03-.58.05-1.02-.38-1.58-.75-.88-.58-1.38-.94-2.23-1.5-.99-.65-.35-1.01.22-1.59.15-.15 2.71-2.48 2.76-2.69a.2.2 0 00-.05-.18c-.06-.05-.14-.03-.21-.02-.09.02-1.49.95-4.22 2.79-.4.27-.76.41-1.08.4-.36-.01-1.04-.2-1.55-.37-.63-.2-1.12-.31-1.08-.66.02-.18.27-.36.74-.55 2.92-1.27 4.86-2.11 5.83-2.51 2.78-1.16 3.35-1.36 3.73-1.36.08 0 .27.02.39.12.1.08.13.19.14.27-.01.06.01.24 0 .38z'/%3E%3C/svg%3E");
}
.roxapk-download-button-5:hover {
  background: linear-gradient(135deg, #229ED9, #27A7E7);
  transform: translateY(-2px);
}

/* FAQ */
.rank-math-block { margin: 1.5em 0; }
.rank-math-list-item { border-bottom: 1px solid #e5e7eb; }
.rank-math-question {
  padding: 14px 36px 14px 8px;
  cursor: pointer;
  position: relative;
  font-size: 1.05em;
}
.rank-math-question::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.2em;
}
.rank-math-list-item.open .rank-math-question::after { content: "−"; }
.rank-math-answer { display: none; padding: 0 8px 16px; }
.rank-math-list-item.open .rank-math-answer { display: block; }
.rank-math-answer[style] { display: none !important; }
.rank-math-list-item.open .rank-math-answer[style] { display: block !important; }

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: #ccc;
  padding: 28px 20px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-copy { margin: 0; font-size: 14px; color: #aaa; }
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-menu a {
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}
.footer-menu a:hover { color: var(--accent) !important; }

/* ========== Mobile — 1:1 with source ========== */
@media (max-width: 781px) {
  body {
    background: #ffffff;
    font-size: 18px;
  }
  .site-main {
    padding: 0 0 40px;
  }
  /* no floating card on mobile */
  .article-card {
    max-width: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    width: 100%;
  }
  .entry-header {
    padding: 20px 0 0;
  }
  .page-title {
    width: var(--theme-container-width);
    max-width: var(--theme-container-width);
    margin-left: auto;
    margin-right: auto;
    font-size: 30px;
  }
  /* content inset = 88vw centered (matches Blocksy mobile) */
  .entry-content > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    width: var(--theme-container-width);
    max-width: var(--theme-container-width);
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .wp-block-gallery,
  figure.wp-block-gallery {
    width: var(--theme-container-width);
    max-width: var(--theme-container-width);
  }

  .menu-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--header-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 14px;
    z-index: 99;
  }
  .nav-menu.open { display: flex; }
  .header-inner {
    max-width: none;
    width: 100%;
    padding: 0 16px;
  }

  /* stack columns */
  .wp-block-columns {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
  }
  .wp-block-column,
  .wp-block-column[style*="flex-basis"] {
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100%;
  }

  /* Mobile gallery: max 2 per row */
  .wp-block-gallery.has-nested-images > figure.wp-block-image,
  .wp-block-gallery > figure.wp-block-image {
    width: calc((100% - var(--wp--style--unstable-gallery-gap)) / 2) !important;
    max-width: calc((100% - var(--wp--style--unstable-gallery-gap)) / 2) !important;
    flex-grow: 0;
  }
  .wp-block-gallery.has-nested-images > figure.wp-block-image img,
  .wp-block-gallery > figure.wp-block-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
    border-radius: 10px;
  }
  /* orange titles full-bleed within content inset */
  .entry-content h2.h,
  .wp-block-heading.h,
  h2.h,
  h3.h {
    margin-left: 0;
    margin-right: 0;
  }

  .wp-block-image.is-resized img {
    width: 214px;
  }
  .entry-content > .wp-block-image.is-resized img[src*="fix"] {
    width: 185px !important;
  }
}

/* Share box — match Blocksy type-2 official colors */
.ct-share-box {
  max-width: 850px;
  margin: 0 auto 24px;
  padding: 0 20px;
}
.ct-share-box .ct-module-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #111518;
  margin: 0 0 12px;
}
.ct-share-box [data-icons-type] {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ct-share-box a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--official-color, #555);
  color: #fff !important;
  text-decoration: none !important;
  transition: opacity .2s ease, transform .2s ease;
}
.ct-share-box a:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.ct-share-box .ct-icon-container {
  display: inline-flex;
  line-height: 0;
}
.ct-share-box svg {
  fill: currentColor;
  display: block;
}
@media (max-width: 781px) {
  .ct-share-box {
    padding: 16px 20px 8px;
    margin-bottom: 0;
    background: #fff;
  }
}
