/*!
Theme Name: Arab Guid
Theme URI: https://3rabg.com/
Author: 3rabg
Author URI: https://3rabg.com/
Description: Hi. I'm a starter theme called <code>arabg</code>, or <em>underscores</em>, if you like. I'm a theme meant for hacking so don't use me as a <em>Parent Theme</em>. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
Version: 1.0.5
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: arabg
Tags:
*/
html{scroll-behavior:smooth}

@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400;
  src: url('/wp-content/themes/arguid/assets/fonts/cairo-v30-arabic-regular.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* cairo-500 - arabic */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 500;
  src: url('/wp-content/themes/arguid/assets/fonts/cairo-v30-arabic-500.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* cairo-600 - arabic */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 600;
  src: url('/wp-content/themes/arguid/assets/fonts/cairo-v30-arabic-600.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* cairo-700 - arabic */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 700;
  src: url('/wp-content/themes/arguid/assets/fonts/cairo-v30-arabic-700.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* cairo-800 - arabic */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 800;
  src: url('/wp-content/themes/arguid/assets/fonts/cairo-v30-arabic-800.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* cairo-900 - arabic */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 900;
  src: url('/wp-content/themes/arguid/assets/fonts/cairo-v30-arabic-900.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
@font-face {
  font-family: "bootstrap-icons";
  src: url("/wp-content/themes/arguid/assets/bootstrap-icons-1.13.1/fonts/bootstrap-icons.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  ascent-override: 90%;
  descent-override: 10%;
  line-gap-override: 0%;
}

a {
  text-decoration: none;
  color: #0000FF;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

*, *::before, *::after {
    box-sizing: border-box;
    scroll-behavior: smooth;
    word-wrap: break-word;
    font-style: normal;
    text-wrap: auto;
}
html,
body {
  margin: 0;
  padding: 0;
  color: #333;
  text-align: right;
  direction: rtl;

}
 body {

    font-size: 99%;
}
html,
body,
button,
input,
textarea,
select {

  font-family: "Cairo";

}







/* mobile-first header */
.site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* inner wrapper */
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

img.disktop-logo {
    object-fit: cover;
    height: 65px;
}

.logo:hover {
  color: #005177;
}

/* hide desktop nav/buttons on small */
.primary-nav  {
  display: none;
}

/* toggle button */
.nav-toggle {
    border: none;
    cursor: pointer;
    font-size: 10px;
    color: #ffffff;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 4px;
    transition: background 0.3s
ease;
    background: #0e0c0b;
    font-weight: 100;
    margin-right: 7px;
}
/* overlay menu */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.98);
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
}

.menu-overlay.open {
  transform: translateX(0);
}

/* close icon */
.close-toggle {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 2rem;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
}

/* overlay links */
.overlay-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.overlay-menu li {
  margin: 1rem 0;
}
.overlay-menu a {
    color: #333;
    text-decoration: none;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background 0.3s ease, color 0.3s ease;
    font-size: 17px;
    width: 100%;
    display: block;
}
.logo-medium{

      width: 100%;
      max-height: 100px;
      border-bottom: 2px solid white;
      top: 0;
      background: #ffffff;
      z-index: 1000;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.overlay-menu a:hover {
  background: rgba(0,115,170,0.1);
  color: #0073aa;
}
.header-buttons a {
    font-size: 10px;
    color: #ffffff;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 4px;
    transition: background 0.3s ease;
    background: #ed7124;
    font-weight: 100;
}

.header-buttons a:hover {
    background: rgb(0 74 173);
}
.mx-1{
  margin-left: 8px;
}
.primary-btn-b {
    background: #004aad!important;
}
.header-buttons.overlay-btns {
    display: flex;
    align-items: center;
    justify-content: left;
}
/* medium screens: show horizontal nav */
@media (min-width: 869px) {
  .nav-toggle,
  .menu-overlay {
    display: none;
  }
  .primary-nav,
  .header-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .primary-nav ul {
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .primary-nav a {
      color: #333;
      text-decoration: none;
      display: block;
      align-items: center;
      transition: background 0.3s ease, color 0.3s ease;
      border-radius: 4px;
      font-size: 14px;
      font-weight: 300;
  }
  .primary-nav a i {
      display: block;
      text-align: center;
      color: #808182;
      font-size: 1.1rem;
  }
  .primary-nav a:hover {
    background: rgba(0,115,170,0.1);
    color: #0073aa;
  }


}








.hero{
  position:relative;
  min-height:100svh;
  display:grid;
  place-items:center;
  overflow:hidden;
  isolation:isolate;
}
.container{
  max-width: 1100px!important;
  margin: 0 auto;
  padding: 15px;
}
.mb-5{
  margin-bottom: 5rem;
}
.mt-5{
  margin-top: 5rem;
}
.pb-5{
  padding-bottom: 5rem;
}
.pt-5{
  padding-top: 5rem;
}
.text-center{
  text-align: center;
}
.mt-3, .mb-3{
         margin: 3rem 0;
}
/* animated soft blobs */
.hero::before,
.hero::after{
  content:"";
  position:absolute;
  inset:auto;
  width:68vmax;
  height:68vmax;
  border-radius:50%;
  filter:blur(60px);
  opacity:.55;
  transform:translate3d(0,0,0);
  will-change:transform;
  z-index:-2;
}
.hero::before{
  background: radial-gradient(circle at 30% 30%, #ffd3a3 0 35%, transparent 55%);
  left:-15vmax; top:-20vmax;
  animation: floatA 18s ease-in-out infinite alternate;
}
.hero::after{
  background: radial-gradient(circle at 70% 70%, #9fd6ff 0 35%, transparent 55%);
  right:-18vmax; bottom:-22vmax;
  animation: floatB 22s ease-in-out infinite alternate;
}

/* subtle animated grid overlay */
.pattern{
  position:absolute; inset:0; z-index:-1; opacity:.35; mix-blend:multiply;
  background-image:
    radial-gradient(transparent 0 98%, rgba(15,23,42,.06) 100%),
    linear-gradient(120deg, rgba(255,255,255,.25), rgba(255,255,255,.1));
  background-size: 32px 32px, cover;
  animation: drift 40s linear infinite;
}

/* content card */
.wrap{
  width:min(1024px, 92%);
  text-align:center;
  padding: clamp(2rem, 6vw, 5rem) 1rem;
  backdrop-filter: blur(8px);
  background: color-mix(in lab, white 40%, transparent);
  border:1px solid rgba(15,23,42,.06);
  border-radius:28px;
  box-shadow: 0 20px 60px rgba(15,23,42,.12);
}
.eyebrow{
  display:inline-block; letter-spacing:.12em; text-transform:uppercase;
  font-size:.8rem; color:#475569; background:rgba(255,255,255,.6);
  border:1px solid rgba(15,23,42,.08); padding:.35rem .6rem; border-radius:999px;
  margin-bottom:1rem;
}
.home h1{margin:0 0 .75rem; font-size: clamp(2rem, 5vw, 3.6rem); line-height:1.06;}
p.lede{margin:0 auto 1.5rem; max-width:60ch; color:#475569; font-size: clamp(1rem, 2.3vw, 1.2rem);}
h1.sh-subtitle {
    margin: 0;
}
.cta{
  margin-top:1.25rem; display:flex; gap:.8rem; justify-content:center; flex-wrap:wrap;
}
.btn{
  appearance:none; border:none; cursor:pointer; font-weight:600; border-radius:14px;
  padding:.9rem 1.15rem; font-size:1rem; line-height:1; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:focus-visible{outline:3px solid #94c5ff; outline-offset:3px}
.btn.primary{background:#2563eb; color:#ffffff; box-shadow:0 10px 20px rgba(37,99,235,.25)}
.btn.primary:hover{transform:translateY(-1px); box-shadow:0 14px 28px rgba(37,99,235,.35); background:#1e40af}
.btn.secondary{background:rgba(255,255,255,.7); color:#0f172a; border:1px solid rgba(15,23,42,.1)}
.btn.secondary:hover{transform:translateY(-1px); background:rgba(255,255,255,.9)}

/* keyframes */
@keyframes floatA{
  0%{ transform:translate(-2vmax, -1vmax) scale(1.05) }
  100%{ transform:translate(8vmax, 6vmax) scale(1.15) }
}
@keyframes floatB{
  0%{ transform:translate(4vmax, 2vmax) scale(1) }
  100%{ transform:translate(-6vmax, -8vmax) scale(1.12) }
}
@keyframes drift{ to{ background-position: 32px 32px, 0 0 } }

/* responsive spacing for very small screens */
@media (max-width:420px){
  .wrap{padding:2rem .9rem}
}
@media (max-width:620px){
.hero{
  min-height:50svh;
 } }
/* reduce motion */
@media (prefers-reduced-motion: reduce){
  .hero::before, .hero::after, .pattern{ animation: none }
}



h2.section-title {
    font-size: 2rem;
    font-weight: 900;
}

/* Desktop & tablet grid */
.ss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

/* Card */
.ss-card {
  background: var(--ss-card);
  border: 1px solid #e6edf6;
  border-radius: 16px;
  padding: 16px;
  color: var(--ss-ink);
  box-shadow: 0 6px 20px rgba(17, 24, 39, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ss-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(17, 24, 39, .10);
  border-color: var(--ss-ring);
}

/* Media row */
.ss-card__media {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ss-card__icon {
  font-size: 36px;
  color: #2f7dff;
  filter: drop-shadow(0 4px 10px rgba(47, 125, 255, .25));
}

.ss-card__step {
  margin: 0;
  justify-self: end;
  color: #7a8aa0;
  font-weight: 600;
}

/* Texts */
.ss-card__title {
  margin: 0 0 6px 0;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ss-ink);
}

.ss-card__desc {
  margin: 0 0 12px 0;
  color: #526072;
  font-size: 12px;
  line-height: 1.6;
}

/* CTA */
.ss-card__cta {
  display: flex;
  justify-content: flex-start;
}

.ss-link {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--ss-accent);
    text-decoration: none;
    border: 1px solid rgba(47, 125, 255, .25);
    transition: background .2s ease, border-color .2s ease;
    font-size: 11px;
    inset: 0;
    background-image: radial-gradient(#00000000 0 98%, rgb(28 46 88 / 11%) 100%), linear-gradient(144deg, rgb(237 113 36 / 17%), rgb(222 230 255 / 0%));
    background-size: 32px 32px, cover;
    animation: drift 40s
linear infinite;
}
.ss-link:hover {
  background: rgba(47, 125, 255, .18);
  border-color: var(--ss-accent);
}

/* ————— Mobile tweaks ————— */
@media (max-width: 640px) {
  .ss-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .ss-pages {
    padding: 28px 10px;
  }

  .ss-card {
    padding: 12px;
    border-radius: 14px;
  }

  .ss-card__icon {
    font-size: 28px;
  }

  .ss-card__step {
    font-size: 12px;
  }

  .ss-card__title {
    font-size: 16px;
  }

  .ss-card__desc {
    font-size: 11px;
    line-height: 1.55;
  }

  .ss-link {
    padding: 7px 10px;
    font-size: 13px;
    border-radius: 9px;
  }
}

@media (max-width: 360px) {
  .ss-grid {
    gap: 8px;
  }

  .ss-card {
    padding: 10px;
  }

  .ss-card__icon {
    font-size: 24px;
  }

  .ss-card__title {
    font-size: 15px;
  }

  .ss-card__desc {
    font-size: 12.5px;
  }

  .ss-link {
    padding: 6px 8px;
    font-size: 12.5px;
  }
}

@media (min-width: 1200px) {
  .ss-grid {
    gap: 22px;
  }

  .ss-card__icon {
    font-size: 40px;
  }

  .ss-card__title {
    font-size: 20px;
  }

  .ss-card__desc {
    font-size: 12px;
  }
}


.load-more-btn {
    text-align: center;
    align-items: center;
    justify-content: center;

    background: #ec5504;
    color: white;
    padding: 4px 13px;
    font-size: 14px;
}

















img {
  vertical-align: middle;
  width: 100%;
  height: auto;
}


/* Responsive Table Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Modern Table Style */
table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 1rem;
  background-color: #fff;
  color: #333;
  margin-bottom: 1.5rem;
}

table thead {
  background-color: #f5f5f5;
}

table thead th {
  padding: 0.75rem;
  font-weight: 600;
  border-bottom: 2px solid #ddd;
}

table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

table td {
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
  font-size: 13px !important;
}

@media screen and (max-width: 768px) {
table {
    overflow-x: auto;
    white-space: nowrap;
    display: block;
}
}

figure {
  display: block;
  margin: 1.5rem 0;
  text-align: center;
}

figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

nav.rank-math-breadcrumb p {
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 200;
}

  nav.rank-math-breadcrumb p a {
    font-size: 14px;
    font-weight: 200;
}
.rank-math-list,
.wp-block-rank-math-faq-block {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px !important;
  background-color: #f7fafb !important;
  padding: 1.5rem !important;
}

.rank-math-list-item {
  margin-bottom: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
}

.rank-math-question {
  cursor: pointer;
  border-top-left-radius: 10px !important;
  border-top-right-radius: 10px !important;
  color: #102147 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  position: relative;
  padding: 1rem 1.25rem;
  background-color: #fff;
  border: 0;
  border-radius: 0;
  overflow-anchor: none;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, border-radius .15s ease;
  margin: 0;
  max-width: 100%;
  width: 100%;
  align-items: center;
  display: flex;
  margin-bottom: .8rem;
}

.rank-math-question:hover {
  background-color: #f0f0f0;
}

.rank-math-question::after {
  content: '+';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-90%);
  font-size: 20px;
  transition: transform 0.3s ease;
}

.rank-math-list-item.active .rank-math-question::after {
  transform: translateY(-50%) rotate(45deg);
  display: block;
}

.rank-math-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.rank-math-faq-item.active .rank-math-answer,
.rank-math-list-item.active .rank-math-answer {
  max-height: 500px;
  margin-top: .5rem !important;
  margin-bottom: .5rem !important;
  padding: 1rem 1.25rem;
}

.rank-math-answer p {
  margin: 0;
  line-height: 1.6;
}

.screen-reader-text {
  display: none;
}


/* تغليف صفحة 404 */
.error-404-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 2rem;
  background-color: #f9f9f9;
  direction: rtl;
}

/* صندوق المحتوى */
.error-404-content {
  text-align: right;
  max-width: 480px;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  background-color: #ffffff;
}

/* عنوان الخطأ */
.error-404-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333333;
}

/* وصف الخطأ */
.error-404-description {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  color: #666666;
}

/* حاوية نموذج البحث */
.error-404-search {
  margin-bottom: 1.5rem;
}

/* زر العودة للرئيسية */
.error-404-home-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  background-color: #0073aa;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.error-404-home-button:hover {
  background-color: #005177;
}


















.all-design-slider-wrapper {
 position: relative;

}

.all-design-slider-container {
 width: 100%;
 overflow-x: auto;
 scrollbar-width: none;

}

.all-design-slider-container::-webkit-scrollbar {
 display: none;

}

.all-design-slider-track {
 display: flex;
 gap: 20px;
 padding: 10px 0;
 scroll-behavior: smooth;
}

.all-design-slider-card {
 flex: 0 0 300px;
 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
 transition: transform 0.3s ease;
 overflow: hidden;

 border-radius: 8px;
 animation: slideUp 0.8s ease forwards;
}

.card.content-card-small {
 padding-top: 15px;
 padding-right: 15px;
}

h3.card-title {
 margin: 0;
 font-size: 15px;
 font-weight: 700;
}
.d-flex.justify-content-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.color-dark{
 color: #000;
}

.all-design-slider-card:hover {
 transform: translateY(-5px);
 box-shadow: 0 0 13px #0000, 0px 6px 0px #0000, 2px -20px 25px -5px #6666661a, 0px 0px 10px -6px #0000001a !important;
 border: 0;
 background: #fcfcfc;
}

.all-design-slider-card a {
 text-decoration: none;
 color: inherit;
}

.all-design-slider-card h3.card-title {
 margin: 0;
}

p.text-muted.mt-0.text-dark.text-small {
 margin: 0;
 font-size: 14px;
 font-weight: 300;
}

.all-design-slider-image {
 position: relative;
 overflow: hidden;
}

.all-design-slider-image img {

 width: 100%;
 height: 150px;
 object-fit: cover;
}

.all-design-slider-content {
 padding: 15px;
}

.all-design-slider-title {
 font-size: 1.1rem;
 margin: 0 0 10px 0;
 color: #000000;
 line-height: 1.4;
}

.all-design-slider-excerpt {
 font-size: 0.6rem;
 color: #5f5a5a;
 margin: 0;
 line-height: 1.5;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #ffffff40;
    border: none;
    border-radius: 50%;
    box-shadow: inset 0 2px 5px #ff883e;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.prev-btn {
 left: -5px;
}

.next-btn {
 right: -5px;
}

.slider-nav-btn:hover {
 color: #ffffff;
 background: #F44336;
}













.top-header-hero {
  background: linear-gradient(180deg, #f9fbff 0%, #f7fafc 100%);
}

.sh-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

.sh-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 32px;
  padding: 32px;
}

@media (max-width: 900px) {
  .sh-hero {
    grid-template-columns: 1fr;
  }
}

/* Container */
.ss-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 12px;
}

/* Card */
.ss-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 6px 24px rgba(16, 24, 40, .06)
}

/* Filter grid */
.ss-filter .ss-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px
}

@media(max-width:1100px) {
  .ss-filter .ss-row {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media(max-width:600px) {
  .ss-filter .ss-row {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

.ss-col {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.ss-label {
  font-size: 12px;
  color: #344054
}

.ss-select,
.ss-input {
  appearance: none;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
  outline: none
}

.ss-select:focus,
.ss-input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .15)
}

/* Actions */
.ss-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  margin-top: 12px
}

.ss-btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: .2s all;
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.ss-btn-primary {
  background: #7c3aed;
  color: #fff
}

.ss-btn-primary:hover {
  background: #6d28d9
}

.ss-btn-secondary {
  background: #f8f9fc;
  color: #111827;
  border-color: #e5e7eb
}

.ss-btn-secondary:hover {
  background: #eef2ff
}

.ss-btn-ghost {
  background: transparent;
  border-color: #e5e7eb;
  color: #374151
}

.ss-btn[disabled] {
  opacity: .6;
  cursor: not-allowed
}

.ss-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: ssspin .8s linear infinite
}

.ss-btn-secondary .ss-spinner {
  border-color: #111;
  border-bottom-color: transparent
}

@keyframes ssspin {
  to {
    transform: rotate(360deg)
  }
}

/* Results grid */
.grants-ss-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px
}


.ss-card-item {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column
}

.ss-card-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: #f2f4f7
}

.ss-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.ss-card-title {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: #111827
}

.ss-card-meta {
  font-size: 12px;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: .7rem;
}

.ss-card-actions {
  margin-top: auto;
  display: flex;
  gap: 8px
}

.ss-chip {
  background: #f1f5ff;
  color: #3730a3;
  border: 1px solid #e0e7ff;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px
}

.ss-empty {
  padding: 24px;
  text-align: center;
  color: #6b7280
}

.ss-loadmore-wrap {
  display: flex;
  justify-content: center;
  margin-top: 12px
}

/* RTL niceties */
.ss-filter,
.grants-ss-grid {
  direction: rtl
}

.ss-label,
.ss-input,
.ss-select {
  direction: rtl
}

@media(max-width:1100px) {
  .grants-ss-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media(max-width:800px) {
  .grants-ss-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media(max-width:520px) {
  .grants-ss-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .ss-card-title {
    font-weight: 700;
    font-size: 13px;
    line-height: 1.3;
    color: #111827;
  }
}


/* Container and layout */
.archive-container .header-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.archive-container .header-desc {
  color: #666;
  margin-bottom: 1.5rem;
}

.archive-container .filter-bar {
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.archive-container .filter-button {
  padding: 0.5rem 1rem;
  border: 1px solid #0073aa;
  background: white;
  cursor: pointer;
  border-radius: 4px;
}

.archive-container .filter-button.active,
.archive-container .filter-button:hover {
  background: #0073aa;
  color: white;
}

.archive-container .post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.archive-container .card {
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.archive-container .card-image {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
}

.archive-container .card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.archive-container .card-title {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.archive-container .card-meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.75rem;
}

.archive-container .card-excerpt {
  flex-grow: 1;
  margin-bottom: 1rem;
  font-size: 13px;
}

.archive-container .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.archive-container .read-more {
  text-decoration: none;
  font-size: 0.9rem;
  color: #0073aa;
  border: 1px solid #0073aa;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
}

.archive-container .read-more:hover {
  background: #0073aa;
  color: white;
}

.archive-container .spinner {
  text-align: center;
  padding: 2rem 0;
}

.archive-container .spinner:after {
  content: '';
  width: 40px;
  height: 40px;
  border: 4px solid #0073aa;
  border-top-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.archive-container .alert {
  padding: 1rem;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
}


.ss-service-section {
  padding: 16px
}
.telegram-container {
  margin: 1rem 0; padding: 1rem; background: #f6f8fa; border-radius: 8px; text-align: center;
}

.telegram-container p {
  margin-bottom: 0.75rem; font-size: 1rem; color: #333;
}

.telegram-button {
  display: inline-block; padding: 0.6rem 1.2rem; background: #0088cc; color: #fff; text-decoration: none; border-radius: 4px;
}

.telegram-button:hover {
  background: #0077b3;
}
.last-posts-grid .row-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.last-posts-grid .col-right,
.last-posts-grid .col-left {
  flex: 1 1 100%;
}

/* On wider screens split columns */
@media (min-width: 768px) {
  .last-posts-grid .col-right {
    flex: 2 1 60%;
  }
  .last-posts-grid .col-left {
    flex: 1 1 35%;
  }
}
.col-right {
    background: #ffffff;
    border: 1px solid #e9ecef;
    padding: 16px;
    box-shadow: 0 6px 24px rgb(16 24 40 / 22%);
}

@media (max-width: 768px) {
  .col-right {
      background: none;
      border:0px ;
      padding: 0;
      box-shadow:none;
  }
  .last-posts-grid .row-flex {
      display: block;
      flex-wrap: nowrap;
      gap: 0;
  }

}

.posts-container {
  display: grid;
  gap: 15px;
}
.widget-title{

      margin: 0;
      border-top: 2px solid #ed7124;
      width: 100%;
      padding-top: 8px;

}

.post-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    transition: transform 0.2s;
    background: #ffffff;
    border: 1px solid #b3b6b9;
    box-shadow: 0 6px 24px rgb(16 24 40 / 22%);
}
.post-item p {
    margin: 0;
    font-size: 11px;
    color: #808080c9;
}
.post-item:hover {
  transform: translateY(-4px);
}

.post-title-left {
  flex: 1;
  padding-right: 10px;
  font-size: 1rem;
}
.post-title-left a {
  text-decoration: none;
  color: #333;
}
.post-image-right img {
    width: 80px;
    min-height: 100px;
    border-radius: 4px;
    object-fit: cover;
    line-height: 0;
}
.post-categories a {
    background: linear-gradient(316deg, #ed7124, #ff71198c);
    width: fit-content;
    padding: 3px 15px;
    color: #fff;
    border-radius: 15px;
    font-size: 10px;
    float: left;
}
.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    display: grid;

    padding: 28px;
    color: #fff;
    background-color: #00968824;
    line-height: 1.75;
    margin: 0 auto;
}
.related-titles {
    color: #2d3436;
    line-height: 1.75;
}
    .card-modern {
        position: relative;
        background: linear-gradient(145deg, #ffffff, #f0f0f0);
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    .card-modern:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    }
    .card-modern img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    .card-modern:hover img {
        transform: scale(1.05);
    }
    .card-modern .content {
        padding: 20px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.5);
    }
    .card-modern h3 {
        margin: 0;
        color: #333;
        font-size: 1.2em;
        font-weight: 600;
        line-height: 1.4;
    }
    .card-modern a {
        text-decoration: none;
        color: inherit;
        display: block;
        height: 100%;
    }
    .card-modern::after {
        content: '';

        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .card-modern:hover::after {
        opacity: 1;
    }
    .user-testimonials {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      justify-content: center;

    }

    .user-testimonials .testimonial {
      background: #fff;
      padding: 20px;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      flex: 1 1 calc(33% - 40px);
      max-width: 300px;
      direction: rtl;
      text-align: right;
      transition: transform 0.2s ease;
    }

    .user-testimonials .testimonial:hover {
      transform: translateY(-5px);
    }

    .user-testimonials .testimonial h2 {
      margin: 0 0 8px;
      font-size: 1.2rem;
      color: #333;
    }

    .user-testimonials .testimonial p {
      margin: 4px 0;
      line-height: 1.4;
      color: #555;
    }

    .user-testimonials .testimonial .comment {
      font-style: normal;
      margin: 12px 0;
    }

    .user-testimonials .testimonial .stars {
      font-size: 1.1rem;
      color: #f5a623;
    }

    /* Mobile: full-width cards */
    @media (max-width: 768px) {
      .user-testimonials .testimonial {
        flex: 1 1 100%;
        max-width: 100%;
      }
    }
    .footer-widgets ul {
        display: flex;
        align-items: center;
        justify-content: center;
        list-style: none;
        color: #212121;
    }
    .footer-widgets a {
        color: #000;
        padding: 0 7px;
        font-size: 11px;
    }
    .footer-widgets a:hover {
        transition: .7s;
        color: #ed7124;
    }

    .search-page-results .search-form {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 12px;
    }

    .search-page-results .search-input {
      padding: 14px 18px;
      border: 1px solid #ddd;
      border-radius: 8px;
      font-size: 16px;
      outline: none;
      transition: border-color 0.2s;
    }

    .search-page-results .search-input:focus {
      border-color: #0073e6;
    }

    .search-page-results .search-button {
        padding: 14px 24px;
        background: linear-gradient(135deg, #ed7124 0%, #ed7124 100%);
        border: none;
        border-radius: 8px;
        font-size: 16px;
        color: #fff;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .search-page-results .search-button:hover {
      opacity: 0.9;
    }

    .search-page-results .results-counter {
      color: #555;
      font-size: 14px;
    }



    .comments-area {
      padding: 15px;
      background: #ebebeb4f;
      margin-top: 2rem;
      z-index: 2;
      position: relative;
      box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.2);
      padding-top: 5rem;
      border: 1px solid #8f8b8b7a;
      text-align: right;
      direction: right;
    }

    .comments-title {
      font-size: 1.5rem;
      font-weight: 600;
      color: #1a202c;
      margin-bottom: 2rem;
      text-align: center;
    }

    .comment-list,
    .comment-list .children {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .comment-list .children {
      margin-right: 2rem;
      position: relative;
    }

    .comment-list .children::before {
      content: '';
      position: absolute;
      top: 0;
      right: -1rem;
      bottom: 0;
      width: 2px;
      background-color: #e2e8f0;
    }

    .comment-item {
      margin-bottom: 1.5rem;
      transition: all 0.3s ease;
      position: relative;
    }

    .comment-item::before {
      content: '';
      position: absolute;
      top: 2rem;
      right: -1rem;
      width: 1rem;
      height: 2px;
      background-color: #e2e8f0;
    }

    .comment-body {
      background-color: #ffffff;
      border-radius: 12px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
      padding: 1.5rem;
      transition: all 0.3s ease;
    }

    .comment-body:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
    }

    .comment-meta {
      display: flex;
      flex-direction: column;
      margin-bottom: 1rem;
    }

    .comment-author-info {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .comment-author {
      font-weight: 600;
      color: #1a202c;
    }

    .comment-metadata {
      font-size: 0.75rem;
      color: #718096;
    }

    .comment-content {
      color: #1a202c;
      margin-bottom: 1rem;
      font-size: 12px;
    }

    .comment-actions {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      border-top: 1px solid rgba(0, 0, 0, 0.05);
      padding-top: 1rem;
      margin-top: 1rem;
    }

    .reply-link a {
      display: inline-flex;
      align-items: center;
      padding: .3rem 2rem;
      background-color: #4299e1;
      color: white;
      border-radius: 0;
      text-decoration: none;
      font-size: 0.875rem;
      transition: all 0.3s ease;
    }

    a.url {
      text-decoration: none;
      color: #3f51b5;
    }

    .reply-link a:hover {
      background-color: #3182ce;
      transform: translateY(-1px);
    }

    .comment-respond {
      margin-top: 0;
      background-color: #ffffff;
      padding: 2rem;
      z-index: 2;
      position: relative;
      box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.2);
      padding-top: 5rem;
      border: 1px solid #8f8b8b7a;
    }

    .comment-reply-title {
      font-size: 1.25rem;
      color: #1a202c;
      margin-bottom: 7px;
    }

    .comment-form-comment {
      margin-bottom: 1rem;
    }

    .comment-form textarea {
      width: 100%;
      padding: 1rem;
      border: none;
      border-radius: 8px;
      background-color: #f8fafc;
      font-size: 1rem;
      transition: all 0.3s ease;
      resize: vertical;
      min-height: 100px;
    }

    .comment-form textarea:focus {
      outline: none;
      box-shadow: 0 0 0 2px #4299e1;
    }

    .submit-button {
      background-color: #0d6efd;
      color: white;
      padding: 0.75rem 1.5rem;
      border: none;
      font-size: 1rem;
      transition: all 0.3s ease;
    }

    .submit-button:hover {
      background-color: #3182ce;
      transform: translateY(-1px);
    }

    /* Animations */
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .comment-list>.comment-item {
      animation: fadeInUp 0.5s ease-out;
      animation-fill-mode: both;
    }

    .comment-list>.comment-item:nth-child(1) {
      animation-delay: 0.1s;
    }

    .comment-list>.comment-item:nth-child(2) {
      animation-delay: 0.2s;
    }

    .comment-list>.comment-item:nth-child(3) {
      animation-delay: 0.3s;
    }

    .comment-list>.comment-item:nth-child(4) {
      animation-delay: 0.4s;
    }

    .comment-list>.comment-item:nth-child(5) {
      animation-delay: 0.5s;
    }

    .comment-form-url {
      display: none;
    }

    .comment-form-author input,
    .comment-form-email input {
      width: 100%;
      border: .1px solid #dfdfdf;
      background: #f8fafc;
    }

    p.logged-in-as {
      font-size: 11px;
      margin-top: 0;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
      .comments-area {
        padding: 1rem;
      }

      .comment-body {
        padding: 1rem;
      }

      .comment-list .children {
        margin-right: 1rem;
      }

      .comment-list .children::before {
        right: -0.5rem;
      }

      .comment-item::before {
        right: -0.5rem;
        width: 0.5rem;
      }
    }










    a.btn-a {
        background: #3F51B5;
        color: #fff;
        padding: 7px 13px;
        display: block;
        width: 100%;
        text-align: center;
        font-size: 13px;
    }
    button.ad-close-btn {
       position: absolute;
       left: 0;
       background: #ffffff;
       color: #000000;
       z-index: 15;
       top: -30px;
       width: 33px;
       height: 33px;
       border-radius: 100%;
       padding: 7px 15px;
       box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.2);
       display: flex;
       align-items: center;
       justify-content: center;
       font-size: 15px;
       font-weight: 900;
     }
     button.ad-close-btn:hover {
       color: #ddd;
     }
     .ad {
       opacity: 0;
       position: absolute;

       right: 8%;
       text-align: center;
       background: #f8f8f8;
       padding: 15px 25px;
       border: 1px solid #ccc;
       box-shadow: 0 2px 5px rgba(0,0,0,0.2);
       z-index: 22121222;
       border-radius: 4px;
       transition: opacity 0.3s ease;
     }
     .hidden {
       display: none !important;
     }
@media (min-width: 991px) {
     .ad {

       bottom: 20px;

   }
}
@media (max-width: 991px) {
  .ad {
      bottom: 20%;
      left: 5%;
      right: 5%;
  }
}
