/* Single service page (CPT: fwdg_service) */
.fwdg-single{
  direction: rtl;
  padding: 40px 0;
}

.fwdg-single__container{
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}



.fwdg-single{
  --fwdg-card-max: 100%;
  --fwdg-card-max-t: var(--fwdg-card-max);
  --fwdg-card-max-m: var(--fwdg-card-max);
}

.fwdg-single__header,
.fwdg-cardx{
  max-width: var(--fwdg-card-max);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1024px){
  .fwdg-single__header,
  .fwdg-cardx{
    max-width: var(--fwdg-card-max-t);
  }
}

@media (max-width: 767px){
  .fwdg-single__header,
  .fwdg-cardx{
    max-width: var(--fwdg-card-max-m);
  }
}
.fwdg-single__header{
  margin-bottom: 18px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #e7eaee;
  border-radius: 20px;
  padding: 18px 22px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
}

.fwdg-single__title{
  font-size: 34px;
  line-height: 1.25;
  margin: 0 0 6px 0;
  font-weight: 900;
  letter-spacing: -0.2px;
}

/* Soft accent underline under the title */
.fwdg-single__title::after{
  content: "";
  display: block;
  width: 86px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.45);
}

.fwdg-single__sub{
  color: #6b7280;
  font-size: 14px;
  margin-top: 10px;
}

/* Decorative soft blobs (very subtle) */
.fwdg-single__header::before,
.fwdg-single__header::after{
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.18;
  pointer-events: none;
}

.fwdg-single__header::before{
  top: -120px;
  right: -120px;
  background: rgba(255, 122, 0, 1);
}

.fwdg-single__header::after{
  bottom: -140px;
  left: -140px;
  background: rgba(16, 185, 129, 1);
}

@media (max-width: 768px){
  .fwdg-single__header{ padding: 16px 14px; border-radius: 18px; }
  .fwdg-single__title{ font-size: 26px; }
  .fwdg-single__sub{ font-size: 13px; }
}

.fwdg-cardx{
  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: 18px;
  padding: 18px;
  margin: 16px auto;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.fwdg-cardx__head{
  margin-bottom: 14px;
}

.fwdg-cardx__kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.10);
  color: #ff7a00;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 10px;
}

.fwdg-cardx__title{
  font-size: 20px;
  margin: 0;
  font-weight: 800;
}

/* Slider */
.fwdg-slider{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eef1f6;
}

.fwdg-slider__viewport{
  width: 100%;
  overflow: hidden;
  background: #f8fafc;
}

.fwdg-slider-track{
  display: flex;
  width: 100%;
  transition: transform .55s ease;
}

.fwdg-slide{
  flex: 0 0 100%;
  position: relative;
  /* Keep a consistent, responsive frame so images never get cropped */
  aspect-ratio: 16 / 9;
  background: #ffffff;
  min-height: 320px;
}

.fwdg-slide img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  /* Remove the zoom animation because it causes cropping */
  transform: none;
  animation: none;
}

/* Mobile: taller frame for portrait screenshots */
@media (max-width: 768px){
  .fwdg-slide{ aspect-ratio: 4 / 3; }
}

/* Fallback for older browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 16 / 9){
  .fwdg-slide img{ height: 420px; }
  @media (max-width: 768px){
    .fwdg-slide img{ height: 300px; }
  }
}

.fwdg-slider-prev,
.fwdg-slider-next{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(17, 24, 39, 0.35);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .15s ease, background .15s ease;
}

.fwdg-slider-prev:hover,
.fwdg-slider-next:hover{
  transform: translateY(-50%) scale(1.04);
  background: rgba(17, 24, 39, 0.45);
}

.fwdg-slider-prev{ left: 12px; }
.fwdg-slider-next{ right: 12px; }

.fwdg-slider-dots{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  gap: 8px;
  justify-content: center;
  pointer-events: none;
}

.fwdg-dot{
  pointer-events: auto;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.9);
  background: rgba(255,255,255,.35);
  cursor: pointer;
}

.fwdg-dot.is-active{
  background: #fff;
}

/* Article */
.fwdg-article{
  color: #111827;
  font-size: 15px;
  line-height: 1.95;
}


/* Article typography (keep formatting) */
.fwdg-ellipsis{
  display:inline-block;
  padding: 0 2px;
  font-weight: 900;
}

.fwdg-article :is(h1,h2,h3,h4),
.fwdg-modal__body :is(h1,h2,h3,h4){
  margin: 14px 0 8px;
  line-height: 1.35;
  font-weight: 900;
}

.fwdg-article p,
.fwdg-modal__body p{
  margin: 0 0 10px 0;
}

.fwdg-article a,
.fwdg-modal__body a{
  color: #ff7a00;
  font-weight: 800;
  text-decoration: underline;
}

.fwdg-article ul,
.fwdg-article ol,
.fwdg-modal__body ul,
.fwdg-modal__body ol{
  padding-right: 18px;
  margin: 0 0 10px 0;
}

.fwdg-article li,
.fwdg-modal__body li{
  margin: 6px 0;
}

.fwdg-article blockquote,
.fwdg-modal__body blockquote{
  margin: 12px 0;
  padding: 12px 14px;
  border-right: 4px solid #ff7a00;
  background: #fff7ed;
  border-radius: 14px;
}

.fwdg-article img,
.fwdg-modal__body img{
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.fwdg-actionsx{
  margin-top: 14px;
  display: flex;
  justify-content: flex-start;
}

.fwdg-btn{
  appearance: none;
  border: none;
  border-radius: 12px;
  background: #ff7a00;
  color: #fff;
  font-weight: 800;
  padding: 12px 16px;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.fwdg-btn:hover{ transform: translateY(-1px); opacity: .95; }

.fwdg-emptybox{
  background: #f8fafc;
  border: 1px dashed #d8dee9;
  border-radius: 14px;
  padding: 14px;
  color: #64748b;
  font-size: 14px;
}

/* Modal */
.fwdg-modal{
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .60);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}

.fwdg-modal.is-open{ display: flex; }

body.fwdg-modal-open{
  overflow: hidden;
}

.fwdg-modal__panel{
  width: min(900px, 100%);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0,0,0,.25);
  border: 1px solid #eef1f6;
}

.fwdg-modal__head{
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff7ed;
  border-bottom: 1px solid #ffe5cc;
}

.fwdg-modal__title{
  font-weight: 900;
  font-size: 16px;
}

.fwdg-modal__close{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid #ffe5cc;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
}

.fwdg-modal__body{
  padding: 16px;
  max-height: 70vh;
  overflow: auto;
  line-height: 1.95;
}

@media (max-width: 767px){
  .fwdg-slide img{ height: 260px; }
  .fwdg-single__title{ font-size: 26px; }
}


/* Card 3: Features */
.fwdg-features-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.fwdg-feature{
  display:flex;
  gap: 10px;
  align-items:center;
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.fwdg-feature__icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.06);
  border: 1px solid rgba(17, 24, 39, 0.08);
  display:grid;
  place-items:center;
  overflow:hidden;
  flex: 0 0 44px;
}

.fwdg-feature__icon img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fwdg-feature__dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.35);
}

.fwdg-feature__title{
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
  line-height: 1.35;
}

.fwdg-subcard{
  margin-top: 16px;
  border-radius: 20px;
  padding: 14px;
  background: rgba(17, 24, 39, 0.03);
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.fwdg-subcard__title{
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 10px;
  color:#0f172a;
}

/* Card 4: Similar + tags */
.fwdg-similar-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.fwdg-similar{
  text-decoration:none;
  display:block;
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform .15s ease;
}

.fwdg-similar:hover{
  transform: translateY(-2px);
}

.fwdg-similar[aria-disabled="true"]{
  pointer-events:none;
  opacity:.7;
}

.fwdg-similar__name{
  font-weight: 900;
  color:#0f172a;
  font-size: 14px;
  margin-bottom: 6px;
}

.fwdg-similar__kw{
  color: rgba(15,23,42,0.7);
  font-size: 13px;
  line-height: 1.4;
}

.fwdg-tags{
  margin-top: 14px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.fwdg-tag{
  display:inline-flex;
  align-items:center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.06);
  border: 1px solid rgba(17, 24, 39, 0.08);
  color:#0f172a;
  font-weight:700;
  font-size: 12px;
}

@media (max-width: 980px){
  .fwdg-features-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .fwdg-features-grid{ grid-template-columns: 1fr; }
  .fwdg-similar-grid{ grid-template-columns: 1fr; }
}


/* FAQ card (pro) */
.fwdg-cardx--faq .fwdg-faq{
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* reset browser/theme markers */
.fwdg-cardx--faq details.fwdg-faq__item{ 
  border:1px solid #edf0f6;
  border-radius:16px;
  background:#fff;
  overflow:hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.fwdg-cardx--faq details.fwdg-faq__item:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.fwdg-cardx--faq details.fwdg-faq__item[open]{
  border-color: rgba(249,115,22,0.55);
  box-shadow: 0 16px 38px rgba(249,115,22,0.10), 0 10px 24px rgba(15, 23, 42, 0.06);
}

.fwdg-cardx--faq summary.fwdg-faq__q{
  /* defeat aggressive theme styles */
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;

  cursor:pointer;
  user-select:none;
  -webkit-tap-highlight-color: transparent;

  padding:14px 16px;
  list-style:none !important;
  border:0 !important;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(247,250,252,1) 100%) !important;
}

.fwdg-cardx--faq summary.fwdg-faq__q::-webkit-details-marker{ display:none; }
.fwdg-cardx--faq summary.fwdg-faq__q::marker{ content:""; }

.fwdg-cardx--faq .fwdg-faq__qtext{
  color:#111827;
  font-weight:800;
  line-height:1.55;
  font-size:15px;
}

.fwdg-cardx--faq .fwdg-faq__icon{
  width:38px;
  height:38px;
  border-radius:999px;
  border:1px solid #eef2f7;
  background:#fff;
  position:relative;
  flex: 0 0 auto;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.fwdg-cardx--faq .fwdg-faq__icon::before,
.fwdg-cardx--faq .fwdg-faq__icon::after{
  content:"";
  position:absolute;
  inset:0;
  margin:auto;
  background:#f97316;
  border-radius:2px;
  transition: transform .18s ease, opacity .18s ease;
}

/* plus */
.fwdg-cardx--faq .fwdg-faq__icon::before{ width:16px; height:2px; }
.fwdg-cardx--faq .fwdg-faq__icon::after{ width:2px; height:16px; }

/* open => minus (hide vertical bar) */
.fwdg-cardx--faq details.fwdg-faq__item[open] .fwdg-faq__icon::after{
  opacity:0;
  transform: scaleY(0.2);
}

.fwdg-cardx--faq .fwdg-faq__a{
  padding: 0 16px 16px;
  color:#374151;
  line-height:1.9;
  border-top:1px solid #f1f5f9;
}

.fwdg-cardx--faq .fwdg-faq__a p{ margin: 12px 0 0; }
.fwdg-cardx--faq .fwdg-faq__a p:last-child{ margin-bottom:0; }

@media (max-width: 767px){
  .fwdg-cardx--faq .fwdg-faq__qtext{ font-size:14px; }
  .fwdg-cardx--faq summary.fwdg-faq__q{ padding:12px 14px; }
  .fwdg-cardx--faq .fwdg-faq__icon{ width:34px; height:34px; }
}

