/* ============================================================
   community-management.css
   Zoho CommunitySpaces — Community Management guide page
   ============================================================ */

:root {
  --zwc-navy:   #286DAD;
  --zwc-cyan:   #c2edff;
  --zwc-lblue:  #EBF9FF;
  --zwc-red:    #E42527;
  --zwc-radius: 10px;
}

/* ----------------------------------------------------------
   Base / Scroll
   ---------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding: 100px;
}

/* ----------------------------------------------------------
   Layout utilities
   ---------------------------------------------------------- */
.zwc-dflex { display: flex; }
.zwc-dgrid { display: grid; }
.zwc-textcenter { text-align: center; }
.zwc-textright  { text-align: right; }

/* ----------------------------------------------------------
   Spacing utilities
   ---------------------------------------------------------- */
.zwc-secmar  { margin: 80px 0; }
.zwc-secpad  { padding: 80px 0; background: var(--zwc-lblue); }
.zwc-pad70   { padding: 70px; }
.zwc-pad60   { padding: 60px 55px; }
.zwc-pad40   { padding: 40px; }
.zwc-mb30    { margin-bottom: 30px; }
.zwc-mb50    { /* intentionally empty — set per breakpoint */ }

/* ----------------------------------------------------------
   Border-radius utility
   ---------------------------------------------------------- */
.zwc-br10 { border-radius: var(--zwc-radius); }

/* ----------------------------------------------------------
   Background colour utilities
   ---------------------------------------------------------- */
/* Navy blue — sec1 */
.zwc-bggrown {
  background-color: var(--zwc-navy);
  color: #fff;
}

/* Cyan — CTA banner */
.zwc-bggrey { background-color: var(--zwc-cyan); }

/* Light blue — sec2, best-practices card, FAQ, bottom CTA */
.zwc-bglb { background-color: var(--zwc-lblue); }

/* ----------------------------------------------------------
   Link colours
   ---------------------------------------------------------- */
/* White link on navy banner (#zwc-red-bg-link) now lives in solutions-common.css */

/* Default underlined links inside content sections */
.zwc-section a:not(.btn-dark):not(.btn-outline):not(.cta-btn) {
  color: #000;
  text-decoration: underline;
}

/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */
.zwc-btnwrap * { margin: 8px; }

.act-btn {
  background-color: var(--zwc-red);
  padding: 16px 32px;
}

.cta-sec-btn {
  color: #000;
  border: 1px solid #000;
  display: inline-block;
  font-family: var(--zf-primary-semibold), sans-serif;
  padding: 16px 32px;
  font-size: 15px;
}

.btn-dark,
.btn-outline {
  font-size: 16px;
  font-family: var(--zf-primary-medium), sans-serif;
  padding: 16px 32px;
  text-decoration: none;
  text-transform: uppercase;
  display: inline-block;
  border: 2px solid transparent;
}

.btn-dark    { background-color: #000; color: #fff; }
.btn-outline { border: 2px solid #000; color: #000; }

/* ----------------------------------------------------------
   Typography
   ---------------------------------------------------------- */
h1 {
  font-family: var(--zf-primary-regularserif);
  line-height: 1.1;
}

section h2 {
  font-family: var(--zf-primary-regularserif);
  line-height: 1.2;
  margin-bottom: 25px;
}

section h3 { line-height: 1.3; }


.zwc-hero-title {
  display: block;
  color: #000;
}

/* ----------------------------------------------------------
   Banner / Hero
   ---------------------------------------------------------- */
.zwc-banner {
  text-align: center;
  overflow: hidden;
  border-radius: 25px;
  margin: 28px;
  background: var(--zwc-lblue);
  padding: 70px 0;
}

.zwc-banner p {
  max-width: 595px;
  margin-inline: auto;
}

.zwc-banner p a {
  color: #000;
  text-decoration: underline;
}

/* ----------------------------------------------------------
   Main layout: sticky sidebar + content
   ---------------------------------------------------------- */
.zwc-mainwrap .content-wrap { max-width: 1330px; }

.zwc-mainwrap__container {
  gap: 40px;
  align-items: flex-start;
}

.zwc-mainwrap__sticky {
  width: 30%;
  border-radius: 8px;
  background: var(--zwc-lblue);
  padding: 35px 30px;
  position: sticky;
  top: 40px;
  overflow: auto;
}

.zwc-mainwrap__content { width: 71%; }

/* Sidebar nav list */
.zwc-mainwrap__tlist {
  position: relative;
  margin-bottom: 35px;
}

.zwc-mainwrap__tlistitem { cursor: pointer; }

.zwc-mainwrap__tlistitem:not(:last-child) {
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.7;
  transition: 0.3s all ease-in-out;
}

.zwc-mainwrap__tlistitem.active {
  font-family: var(--zf-primary-bold), sans-serif;
  color: var(--zwc-navy);
}

.zwc-mainwrap__tlistitem a { color: #000; }

/* Animated active indicator bar */
.zwc-mainwrap__tlistitem--pos {
  position: absolute;
  width: 3px;
  height: 54px;
  left: -30px;
  top: 0;
  background: var(--zwc-navy);
  transition: 0.3s all ease-in-out;
}

/* ----------------------------------------------------------
   Content sections spacing
   ---------------------------------------------------------- */
.zwc-section:not(:last-child) { margin-bottom: 80px; }

/* ----------------------------------------------------------
   Tick list (sec2)
   ---------------------------------------------------------- */
.zwc-ticklist li {
  position: relative;
  padding-left: 35px;
}

.zwc-ticklist li::before {
  content: "";
  position: absolute;
  background: url(/sites/zweb/images/communityspaces/seo/green-tick.svg) no-repeat;
  width: 22px;
  height: 22px;
  background-size: contain;
  left: 0;
  top: 5px;
}

.zwc-ticklist li p { margin-bottom: 0; }

.zwc-ticklist li:not(:last-child) { margin-bottom: 30px; }

/* ----------------------------------------------------------
   Bullet list (sec6)
   ---------------------------------------------------------- */
.zwc-unlist {
  list-style: disc;
  padding-left: 25px;
}

.zwc-unlist li:not(:last-child) { margin-bottom: 25px; }

/* ----------------------------------------------------------
   Content box (sec6 tools card)
   ---------------------------------------------------------- */
.zwc-contbx {
  padding: 40px;
  border-radius: var(--zwc-radius);
  border: 1px solid #C7C7C7;
}

.zwc-contbx:not(:last-child) { margin-bottom: 20px; }

.zwc-sec-p { margin-top: 20px; }

/* ----------------------------------------------------------
   3-column grid (sec5 best practices)
   ---------------------------------------------------------- */
.zwc-3colgrid {
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.zwc-3colgrid__item p { margin-bottom: 0; }

/* ----------------------------------------------------------
   Icon list — "Types of Community Management" (sec3)
   Badge icons with sprite background
   ---------------------------------------------------------- */
.zwc-iconlist { list-style: none; padding-left: 0; }

.zwc-iconlist li {
  position: relative;
  padding-left: 64px;
  min-height: 48px;
}

.zwc-iconlist li:not(:last-child) { margin-bottom: 35px; }

/* Badge icon base - using longhand properties to avoid shorthand reset */
.zwc-iconlist li::before {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  left: 0;
  top: 0;
  background-image: url(/sites/zweb/images/communityspaces/online-community-guide/sprite.svg);
  background-repeat: no-repeat;
  background-size: 220px;
}

/* Individual sprite offsets */
.zwc-iconlist__item--support::before    { background-position: -47px  0; }
.zwc-iconlist__item--engagement::before { background-position:   0px  0; }
.zwc-iconlist__item--knowledge::before  { background-position: -186px 0; }
.zwc-iconlist__item--interest::before   { background-position: -140px 0; }

/* ----------------------------------------------------------
   CTA banner (between sec4 and sec5)
   ---------------------------------------------------------- */
.zwc-ctasec {
  justify-content: space-between;
  align-items: center;
  padding: 38px 64px;
  gap: 40px;
  margin-top: 80px;
  margin-bottom: 80px;
  background: var(--zwc-navy);
  color: #fff;
}

.zwc-ctasec p { font-size: 16px; margin-bottom: 0; }

.zwc-ctasec__cont { flex-basis: 50%; }

.zwc-ctasec .zwc-btnwrap { margin: -8px; }

/* ----------------------------------------------------------
   FAQ section (sec7)
   ---------------------------------------------------------- */
.zwc-faqsec { background-color: var(--zwc-lblue);border-radius: 8px; }

.zwc-faqsec__wrap {
  gap: 20px;
  justify-content: space-between;
  flex-direction: column;
}

.zwc-faqsec h2 { flex-basis: auto; }

.zwc-faqsec__list { flex-basis: auto; width: 100%; }

.zwc-faqsec__item:not(:last-child) {
  margin-bottom: 35px;
  padding-bottom: 35px;
  border-bottom: 1px solid rgba(118, 104, 83, 0.6);
}

.zwc-faqsec__item:not(:first-child) p { display: none; }

.zwc-faqsec__item h3 {
  position: relative;
  padding-right: 17px;
  cursor: pointer;
  margin-bottom: 0;
}

.zwc-faqsec__item h3.active { margin-bottom: 20px; }

.zwc-faqsec__item h3::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  transition: 0.3s all ease-in-out;
}

.zwc-faqsec__item h3.active::after { content: "-"; }

.zwc-faqsec__item p { margin-bottom: 0; }

/* ----------------------------------------------------------
   RTL overrides
   ---------------------------------------------------------- */
.lang-rtl .zwc-textright                         { text-align: left; }
.lang-rtl .zwc-ticklist li                       { padding-right: 35px; padding-left: unset; }
.lang-rtl .zwc-ticklist li::before               { right: 0; left: unset; }
.lang-rtl .zwc-unlist                            { padding-right: 25px; padding-left: unset; }
.lang-rtl .zwc-mainwrap__tlistitem--pos          { right: -30px; left: unset; }
.lang-rtl .zwc-brtable thead                     { text-align: right; }
.lang-rtl .zwc-brtable thead th:not(:last-child) { border-left: 1px solid #000; border-right: unset; }
.lang-rtl .zwc-brtable tbody td:not(:last-child) { border-left: 1px solid #000; border-right: unset; }
.lang-rtl .zwc-iconlist li                       { padding-right: 64px; padding-left: unset; }
.lang-rtl .zwc-iconlist li::before               { right: 0; left: unset; }
.lang-rtl .zwc-faqsec__item h3                   { padding-left: 17px; padding-right: unset; }
.lang-rtl .zwc-faqsec__item h3::after            { left: 0; right: unset; }
.lang-rtl .zwc-textcenter,
.lang-rtl .zwc-banner                            { text-align: center; }
.lang-rtl .zwc-textcenter *,
.lang-rtl .zwc-banner *                          { text-align: center; }

/* ----------------------------------------------------------
   Responsive — ≥1200px
   ---------------------------------------------------------- */
@media only screen and (min-width: 1200px) {

  h1 {
    font-size: 54px;
    letter-spacing: -2.4px;
    margin-bottom: 25px;
  }

  section h2 {
    font-size: 48px;
    letter-spacing: -1.4px;
  }

  section h3 {
    font-size: 24px;
    letter-spacing: -0.24px;
  }

  #zwc-sec3 h2,
  #zwc-sec3 p.zwc-mb50 { max-width: 820px; }

  .zwc-secmar  { margin: 100px 0; }
  .zwc-secpad  { padding: 50px 0; }

  .zwc-mainwrap__container { gap: 80px; }

  .zwc-mainwrap__sticky {
    top: 100px;
    width: 23%;
  }

  .zwc-banner { padding: 110px 0; }

  .zwc-banner p {
    font-size: 19px;
    max-width: 990px;
  }

  .zwc-ticklist p,
  .zwc-unlist,
  .zwc-contbx p       { font-size: 20px; }

  .zwc-imgcont__cont  { font-size: 20px; }

  .zwc-faqsec h2      { font-size: 50px; }
  .zwc-faqsec__item h3 { font-size: 20px; }

  .zwc-ctasec h2 {
    font-size: 32px;
    letter-spacing: -1px;
  }

  /* RTL — lg */
  .lang-rtl .zwc-secmar  { margin: 100px 0; }
  .lang-rtl .zwc-secpad  { padding: 50px 0; }
  .lang-rtl .zwc-banner  { padding: 110px 0; }
}

/* ----------------------------------------------------------
   Responsive — ≥1440px
   ---------------------------------------------------------- */
@media only screen and (min-width: 1440px) {
  h1 { font-size: 72px; }
}

/* ----------------------------------------------------------
   Responsive — ≤991px (tablet / mobile)
   ---------------------------------------------------------- */
@media only screen and (max-width: 991px) {

  .zwc-dflex { flex-direction: column; }

  .zwc-section:not(:last-child) { margin-bottom: 60px; }

  .zwc-ticklist li:not(:last-child) { margin-bottom: 20px; }

  .zwc-pad70,
  .zwc-pad60 { padding: 40px; }

  .zwc-mb50 { margin-bottom: 25px; }

  .zwc-mainwrap__sticky { display: none; }

  .zwc-mainwrap__content {
    width: 90%;
    margin: auto;
  }

  .zwc-3colgrid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .zwc-ctasec {
    text-align: center;
    padding: 40px;
    margin-top: 40px;
  }

  .zwc-faqsec h2 { text-align: center; }

  .zwc-faqsec__list {
    max-width: 600px;
    margin-inline: auto;
  }

  /* RTL — mobile */
  .lang-rtl .zwc-pad70,
  .lang-rtl .zwc-pad60                            { padding: 40px; }
  .lang-rtl .zwc-mainwrap__content                { margin: auto; }
  .lang-rtl .zwc-ctasec                           { padding: 40px; }
  .lang-rtl .zwc-faqsec h2                        { text-align: center; }
  .lang-rtl .zwc-imgcont,
  .lang-rtl .zwc-ctasec                           { text-align: center; }
  .lang-rtl .zwc-imgcont *,
  .lang-rtl .zwc-ctasec *                         { text-align: center; }
}

/* ----------------------------------------------------------
   Responsive — ≤420px (small phones)
   ---------------------------------------------------------- */
@media only screen and (max-width: 420px) {

  .act-btn,
  .cta-sec-btn {
    padding: 16px 12px;
    font-size: 14px;
  }

  .lang-rtl .act-btn,
  .lang-rtl .cta-sec-btn { padding: 16px 12px; }

  .other-lang .btn-dark,
  .other-lang .btn-outline { font-size: 14px; }
}
