/* === RESET & VARIABLES === */
.cw-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Remove bullets from ALL nav menus - force override */
.cw-nav ul,
.cw-nav ol,
.cw-nav li,
.cw-footer ul,
.cw-footer ol,
.cw-footer li,
.cw-footer-links ul,
.cw-footer-links ul li,
.cw-header ul,
.cw-header ol,
.cw-header li,
ul.menu,
ul.sub-menu,
.menu li,
.sub-menu li,
.page_item {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Nuclear option: any ul or li inside cw-page */
.cw-page ul,
.cw-page ol,
.cw-page li {
  list-style: none !important;
  list-style-type: none !important;
}

/* Kill bullets by changing display - removes ::marker completely */
.cw-footer-links li,
.cw-footer-links .page_item,
.cw-footer ul li,
.cw-footer li,
.cw-nav li,
.cw-nav ul li,
.cw-header li {
  display: block !important;
  list-style: none !important;
  list-style-type: none !important;
}
.cw-footer-links ul,
.cw-footer ul,
.cw-nav ul,
.cw-header ul {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Edge browser ::marker fix */
.cw-footer-links li::marker,
.cw-footer li::marker,
.cw-nav li::marker,
.cw-header li::marker {
  content: "" !important;
  font-size: 0 !important;
}

/* Style nav menu links rendered by wp_nav_menu */
.cw-nav ul {
  display: flex !important;
  gap: 4px;
}
.cw-nav ul li a {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #5c6280 !important;
  border-radius: 8px;
  transition: all 0.2s;
  display: block;
}
.cw-nav ul li a:hover,
.cw-nav ul li.current-menu-item a {
  color: #e8433e !important;
  background: #fff0ef !important;
}

/* Footer menu links */
.cw-footer ul.menu {
  list-style: none !important;
}
.cw-footer ul.menu li {
  margin-bottom: 8px !important;
}
.cw-footer ul.menu li a {
  font-size: 13px;
  transition: color 0.2s;
}
.cw-footer ul.menu li a:hover {
  color: var(--brand);
}
.cw-page {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  direction: rtl;
  text-align: right;
  color: #2e3347;
  line-height: 1.6;
  --brand: #e8433e;
  --brand-dark: #c93530;
  --brand-light: #fff0ef;
  --navy: #1a1f3d;
  --navy-light: #2d3460;
  --gray-50: #f8f9fc;
  --gray-100: #f0f2f7;
  --gray-200: #e2e5ee;
  --gray-400: #9ea4b8;
  --gray-600: #5c6280;
  --gray-800: #2e3347;
  --gold: #f5a623;
  --green: #22c55e;
  --radius: 10px;
}
/* Apply font/direction only to CW sections, not the whole page */
.cw-hero,
.cw-stores,
.cw-section,
.cw-how,
.cw-seo-section,
.cw-newsletter {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  direction: rtl;
  text-align: right;
  color: #2e3347;
  line-height: 1.6;
}
.cw-page a {
  text-decoration: none;
  color: inherit;
}

/* === ANNOUNCEMENT BAR === */
.cw-announce {
  background: #1a1f3d !important;
  color: rgba(255, 255, 255, 0.85) !important;
  text-align: center !important;
  padding: 10px 16px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  font-family: "IBM Plex Sans Arabic", sans-serif !important;
  direction: rtl !important;
}
.cw-announce span {
  color: #f5a623 !important;
  font-weight: 700 !important;
}

/* === HEADER === */
.cw-header {
  background: #fff !important;
  border-bottom: 1px solid #e2e5ee !important;
  padding: 12px 0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  font-family: "IBM Plex Sans Arabic", sans-serif !important;
  direction: rtl !important;
}
.cw-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.cw-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cw-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cw-logo-icon {
  width: 44px;
  height: 44px;
  background: #e8433e !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 18px !important;
}
.cw-logo-text {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #1a1f3d !important;
}
.cw-logo-text small {
  display: block !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  color: #9ea4b8 !important;
  margin-top: -3px !important;
}
.cw-nav {
  display: flex;
  gap: 4px;
}
.cw-nav a {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: 8px;
  transition: all 0.2s;
}
.cw-nav a:hover,
.cw-nav a.active {
  color: var(--brand);
  background: var(--brand-light);
}
.cw-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cw-search-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e2e5ee !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent !important;
  color: #5c6280 !important;
  font-size: 16px;
  transition: all 0.2s;
}
.cw-search-btn:hover {
  border-color: #e8433e !important;
  color: #e8433e !important;
}
.cw-country {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #e2e5ee !important;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: transparent !important;
  font-family: inherit;
}

/* === HERO === */
.cw-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.cw-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(232, 67, 62, 0.1) 0%,
    transparent 50%
  );
}
.cw-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cw-hero h1 {
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}
.cw-hero h1 em {
  color: var(--brand);
  font-style: normal;
}
.cw-hero p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 16px;
  max-width: 550px;
  margin: 0 auto 28px;
}
.cw-search-box {
  max-width: 580px;
  margin: 0 auto;
  position: relative;
}
.cw-search-box input {
  width: 100%;
  padding: 16px 24px 16px 130px;
  border-radius: 14px;
  border: 2px solid transparent;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  outline: none;
  transition: border-color 0.2s;
}
.cw-search-box input:focus {
  border-color: var(--brand);
}
.cw-search-box .cw-s-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 18px;
}
.cw-search-box .cw-s-btn {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 11px 24px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.cw-search-box .cw-s-btn:hover {
  background: var(--brand-dark);
}
.cw-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 32px;
}
.cw-stat strong {
  display: block;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
}
.cw-stat span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

/* === STORES STRIP === */
.cw-stores {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 22px 0;
  overflow: hidden;
}
.cw-stores h3 {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 500;
  margin-bottom: 14px;
  text-align: center;
}
.cw-stores-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  justify-content: center;
  flex-wrap: wrap;
}
.cw-stores-scroll::-webkit-scrollbar {
  display: none;
}
.cw-store-logo {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: 14px;
  border: 1.5px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-600);
  text-align: center;
  padding: 6px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}
.cw-store-logo:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
  transform: translateY(-2px);
}
.cw-store-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}

/* === SECTION COMMON === */
.cw-section {
  padding: 48px 0;
}
.cw-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.cw-section-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}
.cw-view-all {
  font-size: 14px;
  color: var(--brand);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cw-view-all:hover {
  text-decoration: underline;
}
.cw-tag {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}

/* === COUPON CARDS === */
.cw-coupons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
  gap: 14px;
}
.cw-coupon {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  gap: 14px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.cw-coupon:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(26, 31, 61, 0.08);
}
.cw-coupon-badge {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--gray-600);
  flex-shrink: 0;
  text-align: center;
  overflow: hidden;
}
.cw-coupon-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.cw-coupon-info {
  flex: 1;
  min-width: 0;
}
.cw-coupon-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cw-coupon-info p {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 6px;
}
.cw-coupon-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.cw-verified {
  background: #ecfdf5;
  color: var(--green);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.cw-used {
  color: var(--gray-400);
}
.cw-coupon-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.cw-discount-tag {
  background: var(--brand-light);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  white-space: nowrap;
}
.cw-copy-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.cw-copy-btn:hover {
  background: var(--brand-dark);
}

/* === CATEGORIES === */
.cw-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.cw-cat {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.cw-cat:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 31, 61, 0.08);
}
.cw-cat i {
  font-size: 28px;
  color: var(--brand);
  margin-bottom: 8px;
  display: block;
}
.cw-cat span {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  display: block;
}
.cw-cat small {
  font-size: 11px;
  color: var(--gray-400);
}

/* === SEO TABLE === */
.cw-seo-section {
  background: var(--gray-50);
  padding: 48px 0;
}
.cw-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.cw-seo-table {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.cw-seo-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.cw-seo-table th {
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  text-align: right;
  font-weight: 600;
  font-size: 12px;
}
.cw-seo-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-200);
}
.cw-seo-table tr:last-child td {
  border-bottom: none;
}
.cw-seo-table tr:hover td {
  background: var(--brand-light);
}
.cw-code-cell {
  background: var(--gray-100);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  color: var(--brand);
  font-family: monospace;
  letter-spacing: 1px;
  display: inline-block;
}

.cw-verified {
  white-space: nowrap;
}

/* === FAQ === */
.cw-faq {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.cw-faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.cw-faq-item:last-child {
  border-bottom: none;
}
.cw-faq-q {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.cw-faq-q:hover {
  background: var(--gray-50);
}
.cw-faq-q i {
  color: var(--gray-400);
  font-size: 12px;
  transition: transform 0.3s;
}
.cw-faq-a {
  padding: 0 20px 16px;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.7;
  display: none;
}
.cw-faq-item.active .cw-faq-a {
  display: block;
}
.cw-faq-item.active .cw-faq-q i {
  transform: rotate(180deg);
}

/* === HOW IT WORKS === */
.cw-how {
  background: #fff;
  padding: 48px 0;
}
.cw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.cw-step-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 14px;
}
.cw-step h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.cw-step p {
  font-size: 13px;
  color: var(--gray-600);
}

/* === NEWSLETTER === */
.cw-newsletter {
  background: linear-gradient(135deg, #1a1f3d 0%, #2d3460 100%) !important;
  padding: 48px 0 !important;
  margin-top: 40px !important;
  text-align: center !important;
  font-family: "IBM Plex Sans Arabic", sans-serif !important;
  direction: rtl !important;
}
.cw-newsletter h2 {
  color: #fff !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
}
.cw-newsletter p {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 14px !important;
  margin-bottom: 24px !important;
}
.cw-nl-form input {
  flex: 1;
  padding: 14px 18px !important;
  border-radius: 10px !important;
  border: none !important;
  font-size: 14px !important;
  font-family: inherit !important;
  outline: none !important;
}
.cw-nl-form button {
  background: #e8433e !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 28px !important;
  border-radius: 10px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}
.cw-nl-form button:hover {
  background: #c93530 !important;
}
.cw-nl-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  gap: 8px;
}
.cw-nl-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.cw-nl-form button {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cw-nl-form button:hover {
  background: var(--brand-dark);
}

/* === FOOTER === */
.cw-footer {
  background: #1a1f3d !important;
  color: rgba(255, 255, 255, 0.7) !important;
  padding: 48px 0 0 !important;
  font-family: "IBM Plex Sans Arabic", sans-serif !important;
  direction: rtl !important;
  text-align: right !important;
}
.cw-footer-grid {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr !important;
  gap: 32px !important;
  padding-bottom: 32px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.cw-footer h4 {
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  margin-bottom: 16px !important;
}
.cw-footer p {
  font-size: 13px !important;
  line-height: 1.8 !important;
  color: rgba(255, 255, 255, 0.7) !important;
}
.cw-footer-links a,
.cw-footer ul.menu li a,
.cw-footer li a {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  transition: color 0.2s !important;
  text-decoration: none !important;
}
.cw-footer-links a:hover,
.cw-footer ul.menu li a:hover,
.cw-footer li a:hover {
  color: #e8433e !important;
}
.cw-footer-bottom {
  padding: 20px 0 !important;
  text-align: center !important;
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.4) !important;
}
.cw-footer-bottom a {
  color: rgba(255, 255, 255, 0.5) !important;
}
.cw-social {
  display: flex !important;
  gap: 12px !important;
  margin-top: 16px !important;
}
.cw-social a {
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  transition: all 0.2s !important;
}
.cw-social a:hover {
  background: #e8433e !important;
}
.cw-footer-grid .cw-logo-text{
  color: white !important;
}


/* === RESPONSIVE === */
@media (max-width: 768px) {
  .cw-header-inner {
    flex-wrap: wrap;
  }
  .cw-nav {
    display: none !important;
  }
  .cw-hero h1 {
    font-size: 24px;
  }
  .cw-stats {
    gap: 24px;
  }
  .cw-stat strong {
    font-size: 20px;
  }
  .cw-coupons-grid {
    grid-template-columns: 1fr;
  }
  .cw-cats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cw-two-col {
    grid-template-columns: 1fr !important;
  }
  .cw-steps {
    grid-template-columns: 1fr;
  }
  .cw-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .cw-nl-form {
    flex-direction: column;
  }
  .cw-stores-scroll {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
  .cw-container {
    padding: 0 16px !important;
  }
}




/* =============================================
   OFF-CANVAS MOBILE MENU
   Append this at the END of cw-style.css
   ============================================= */

/* === HAMBURGER BUTTON (hidden on desktop) === */
.cw-burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e2e5ee;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.cw-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #5c6280;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .cw-burger {
    display: flex !important;
  }
}

/* === OFF-CANVAS === */
.cw-offcanvas-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
}

/* Dark backdrop */
.cw-offcanvas-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

/* Panel */
.cw-offcanvas-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: #fff;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  direction: rtl;
}

/* Panel header */
.cw-offcanvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e5ee;
}
.cw-offcanvas-head .cw-logo-text {
  font-size: 18px !important;
}
.cw-offcanvas-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: #f0f2f7;
  color: #5c6280;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cw-offcanvas-close:hover {
  background: #fff0ef;
  color: #e8433e;
}

/* Menu links */
.cw-offcanvas-menu {
  padding: 12px 0;
}
.cw-offcanvas-menu ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}
.cw-offcanvas-menu li {
  list-style: none !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}
.cw-offcanvas-menu li a {
  display: block !important;
  padding: 12px 24px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #2e3347 !important;
  border-bottom: 1px solid #f0f2f7 !important;
}
.cw-offcanvas-menu li a:hover,
.cw-offcanvas-menu li.current-menu-item a {
  color: #e8433e !important;
  background: #fff0ef !important;
}

/* Prevent body scroll when open */
body.cw-offcanvas-open {
  overflow: hidden;
}



/* =============================================
   SEARCH MODAL
   Append this at the END of cw-style.css
   ============================================= */

/* Overlay */
.cw-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
}

.cw-search-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cw-search-overlay.active .cw-search-backdrop {
  opacity: 1;
}

/* Modal container */
.cw-search-modal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  max-height: 100vh;
  overflow-y: auto;
  background: #fff;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  font-family: "IBM Plex Sans Arabic", sans-serif;
  direction: rtl;
  -webkit-overflow-scrolling: touch;
}

.cw-search-overlay.active .cw-search-modal {
  transform: translateY(0);
}

/* Inner layout */
.cw-search-modal-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 28px;
}

/* Close button */
.cw-search-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e2e5ee;
  background: #fff;
  color: #5c6280;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.cw-search-close:hover {
  background: #fff0ef;
  border-color: #e8433e;
  color: #e8433e;
}

/* Search input row */
.cw-search-modal-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.cw-search-modal-input-wrap {
  flex: 1;
  position: relative;
}

.cw-search-modal-input-wrap i {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ea4b8;
  font-size: 16px;
  pointer-events: none;
}

.cw-search-modal-input {
  width: 100%;
  padding: 14px 44px 14px 16px;
  border: 2px solid #e2e5ee;
  border-radius: 12px;
  font-size: 15px;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  color: #2e3347;
  background: #f8f9fc;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.cw-search-modal-input:focus {
  border-color: #e8433e;
  background: #fff;
}

.cw-search-modal-input::placeholder {
  color: #9ea4b8;
}

.cw-search-modal-submit {
  background: #e8433e;
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cw-search-modal-submit:hover {
  background: #c93530;
}

/* Popular / recent tags */
.cw-search-tags-label {
  font-size: 12px;
  font-weight: 600;
  color: #9ea4b8;
  margin-bottom: 10px;
  display: block;
}

.cw-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cw-search-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border: 1px solid #e2e5ee;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #5c6280;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.cw-search-tag:hover {
  border-color: #e8433e;
  color: #e8433e;
  background: #fff0ef;
}

.cw-search-tag i {
  font-size: 11px;
}

/* Live results dropdown */
.cw-search-results {
  margin-top: 16px;
  display: none;
}

.cw-search-results.has-results {
  display: block;
}

.cw-search-results-label {
  font-size: 12px;
  font-weight: 600;
  color: #9ea4b8;
  margin-bottom: 8px;
  display: block;
}

.cw-search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}

.cw-search-result-item:hover {
  background: #f8f9fc;
}

.cw-search-result-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f0f2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.cw-search-result-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.cw-search-result-icon i {
  color: #9ea4b8;
  font-size: 14px;
}

.cw-search-result-text h5 {
  font-size: 14px;
  font-weight: 600;
  color: #1a1f3d;
  margin: 0 0 2px;
}

.cw-search-result-text span {
  font-size: 12px;
  color: #9ea4b8;
}

/* Loading spinner */
.cw-search-spinner {
  text-align: center;
  padding: 16px 0;
  color: #9ea4b8;
  font-size: 13px;
  display: none;
}

.cw-search-spinner.active {
  display: block;
}

.cw-search-spinner i {
  animation: cwSpin 0.8s linear infinite;
  margin-left: 6px;
}

@keyframes cwSpin {
  to { transform: rotate(360deg); }
}

/* No results */
.cw-search-no-results {
  text-align: center;
  padding: 16px 0;
  color: #9ea4b8;
  font-size: 13px;
  display: none;
}



/* Prevent body scroll */
body.cw-search-open {
  overflow: hidden;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .cw-search-modal-inner {
    padding: 20px 16px 24px;
  }

  .cw-search-modal-submit span {
    display: none;
  }

  .cw-search-modal-submit {
    padding: 14px 16px;
  }


}



/*------------Categories grid -------*/

/* Center category cards */
.cw-cats-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 12px !important;
}
.cw-cats-grid .cw-cat {
  width: 140px;
}



/* === Fluent Forms Newsletter Override === */
.cw-nl-form .fluentform,
.cw-nl-form .ffs_default_wrap {
  max-width: 460px !important;
  margin: 0 auto !important;
}

.cw-nl-form .ff-t-container,
.cw-nl-form .ff-column-container {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}

.cw-nl-form .ff-t-cell {
  flex-basis: auto !important;
  width: auto !important;
  min-width: 0 !important;
}

.cw-nl-form .ff-t-column-1 {
  flex: 1 1 0% !important;
}

.cw-nl-form .ff-t-column-2 {
  flex: 0 0 auto !important;
}

.cw-nl-form .ff-el-group {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.cw-nl-form .ff-el-input--content {
  width: 100% !important;
}

/* Input */
.cw-nl-form input[type="email"].ff-el-form-control {
  padding: 14px 18px !important;
  border-radius: 10px !important;
  border: none !important;
  font-size: 14px !important;
  font-family: "IBM Plex Sans Arabic", sans-serif !important;
  background: #fff !important;
  height: auto !important;
  width: 100% !important;
  direction: rtl !important;
  box-sizing: border-box !important;
}

.cw-nl-form input[type="email"]::placeholder {
  color: #9ea4b8 !important;
}

.cw-nl-form input[type="email"]:focus {
  box-shadow: none !important;
  outline: none !important;
}

/* Button */
.cw-nl-form .ff-btn-submit,
.cw-nl-form .ff-btn-submit.wpf_has_custom_css,
.cw-nl-form form .wpf_has_custom_css.ff-btn-submit {
  background: #e8433e !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 28px !important;
  border-radius: 10px !important;
  font-family: "IBM Plex Sans Arabic", sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  min-width: auto !important;
  width: auto !important;
}

.cw-nl-form .ff-btn-submit:hover,
.cw-nl-form form .wpf_has_custom_css.ff-btn-submit:hover {
  background: #c93530 !important;
  color: #fff !important;
}

/* Button icon */
.cw-nl-form .ff-btn-submit::after {
  content: "\f1d8";
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900;
  margin-right: 6px;
}

/* Hide labels */
.cw-nl-form .ff-el-input--label,
.cw-nl-form .ff_screen_reader_title {
  display: none !important;
}

.cw-nl-form fieldset {
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Submit wrapper */
.cw-nl-form .ff_submit_btn_wrapper {
  text-align: center !important;
}

/* Hide Fluent Forms inline button styles */
.cw-nl-form form style {
  display: none !important;
}

/* Error */
.cw-nl-form .ff-el-is-error .ff-el-form-control {
  border: 2px solid #e8433e !important;
}

.cw-nl-form .error.text-danger {
  color: #fca5a5 !important;
  font-size: 12px !important;
}

/* Success */
.cw-nl-form .ff-message-success {
  background: rgba(34, 197, 94, 0.15) !important;
  color: #22C55E !important;
  border: none !important;
  border-radius: 10px !important;
  font-family: "IBM Plex Sans Arabic", sans-serif !important;
  text-align: center !important;
}

/* Mobile */
@media (max-width: 768px) {
  .cw-nl-form .ff-t-container,
  .cw-nl-form .ff-column-container {
    flex-direction: column !important;
  }
  .cw-nl-form .ff-btn-submit,
  .cw-nl-form form .wpf_has_custom_css.ff-btn-submit {
    width: 100% !important;
    min-width: 100% !important;
  }
  .cw-nl-form .ff_submit_btn_wrapper {
    width: 100% !important;
  }
  .cw-nl-form .ff-t-column-2 {
    width: 100% !important;
    flex: 1 1 100% !important;
  }
}






/* BLOG SECTION STYLES */
.cw-blog-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
}

.cw-blog-card {
  background: #fff !important;
  border-radius: 10px !important;
  border: 1px solid #e2e5ee !important;
  overflow: hidden !important;
  transition: all 0.25s ease !important;
}

.cw-blog-image {
  width: 100% !important;
  aspect-ratio: 16/9 !important;
  overflow: hidden !important;
}

.cw-blog-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.cw-blog-content {
  padding: 20px 18px 22px !important;
}

.cw-blog-meta {
  display: flex !important;
  gap: 12px !important;
  font-size: 12px !important;
  color: #9ea4b8 !important;
  margin-bottom: 12px !important;
}

.cw-blog-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
}

.cw-blog-title a {
  color: #1a1f3d !important;
  text-decoration: none !important;
}

.cw-blog-title a:hover {
  color: #e8433e !important;
}

.cw-blog-excerpt {
  font-size: 14px !important;
  color: #5c6280 !important;
  margin-bottom: 16px !important;
}

.cw-blog-readmore {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #e8433e !important;
  background: #fff0ef !important;
  padding: 6px 16px !important;
  border-radius: 30px !important;
  text-decoration: none !important;
}

@media (max-width: 992px) {
  .cw-blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .cw-blog-grid {
    grid-template-columns: 1fr !important;
  }
}