/* Fintech Project Pro typography overrides */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --fpp-font-ar: "Cairo", "IBM Plex Sans Arabic", "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --fpp-font-latin: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

html[dir="rtl"], html[dir="rtl"] body,
body,
input, textarea, select, button,
.fpp-wrap, .fpp-header, .fpp-footer,
.fpp-wrap *, .fpp-header *, .fpp-footer * {
  font-family: var(--fpp-font-ar) !important;
  letter-spacing: 0 !important;
}

.fpp-wrap h1, .fpp-wrap h2, .fpp-wrap h3, .fpp-wrap h4,
.fpp-header strong, .fpp-footer strong {
  font-family: var(--fpp-font-ar) !important;
  font-weight: 800 !important;
  line-height: 1.25;
  letter-spacing: 0 !important;
}

.fpp-wrap p, .fpp-wrap li, .fpp-text, .fpp-text-sm {
  line-height: 1.85 !important;
}

.fpp-nav a, .fpp-btn, .fpp-badge, .fpp-chip, .fpp-form button {
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.fpp-wrap .latin, .fpp-wrap .en, .fpp-wrap code,
.fpp-logo + div strong, .fpp-brand strong {
  font-family: var(--fpp-font-latin), var(--fpp-font-ar) !important;
}

/* Better Arabic form rendering */
.fpp-form input, .fpp-form textarea,
input[type="text"], input[type="email"], textarea {
  text-align: right;
  direction: rtl;
  line-height: 1.7 !important;
}

/* Fintech Project Pro Newsletter Experience */
body,
.newsletter-hero,
.newsletter-listings,
.newsletter-post-body,
.newsletter-recent-posts {
  direction: rtl;
  text-align: right;
  background: #06101F !important;
  color: #CBD5E1;
  font-family: var(--fpp-font-ar) !important;
}

.newsletter-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.newsletter-hero:before,
.newsletter-listings:before,
.newsletter-post-body:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(110,231,183,.12), transparent 35%),
    radial-gradient(circle at bottom left, rgba(244,201,93,.09), transparent 32%),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  z-index: 0;
}

.newsletter-hero .sizer,
.newsletter-listings .sizer,
.newsletter-post-body .sizer {
  position: relative;
  z-index: 1;
}

.newsletter-hero__title-description-form {
  max-width: 920px;
  margin-inline: auto !important;
  align-items: center;
  text-align: center;
}

.newsletter-hero__text h3 {
  color: #FFFFFF !important;
  font-size: clamp(34px, 4vw, 58px) !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
}

.newsletter-hero__text h6 {
  color: #CBD5E1 !important;
  font-size: clamp(17px, 1.45vw, 22px) !important;
  line-height: 1.9 !important;
  font-weight: 500 !important;
  max-width: 820px;
  margin: 22px auto 0 !important;
}

.newsletter-form {
  width: min(760px, 100%);
  margin: 26px auto 0;
}

.newsletter-form .fields-wrapper {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(13,27,46,.78);
  box-shadow: 0 22px 80px rgba(0,0,0,.18);
}

.newsletter-form .form-group {
  margin: 0 !important;
}

.newsletter-form .form-control,
.newsletter-form input[type="email"],
.newsletter-form input[type="text"] {
  min-height: 54px;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.06) !important;
  color: #FFFFFF !important;
  padding: 14px 20px !important;
  text-align: right !important;
  direction: rtl !important;
}

.newsletter-form .form-control::placeholder {
  color: #94A3B8 !important;
}

.newsletter-form .form-btn,
.newsletter-form button[type="submit"] {
  min-height: 54px;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 14px 26px !important;
  background: linear-gradient(270deg, #F4C95D, #6EE7B7) !important;
  color: #06101F !important;
  font-weight: 900 !important;
  white-space: nowrap;
  box-shadow: 0 16px 34px rgba(110,231,183,.14);
}

.newsletter-listings {
  position: relative;
  overflow: hidden;
}

.newsletter-listings__content {
  display: grid;
  gap: 18px;
}

.newsletter-listing,
.newsletter-sidebar,
.newsletter-sidebar__col > div,
.newsletter-recent-post,
.newsletter-post-body__content,
.newsletter-post-body__info {
  border: 1px solid rgba(255,255,255,.12) !important;
  background: #0D1B2E !important;
  border-radius: 28px !important;
  box-shadow: 0 22px 80px rgba(0,0,0,.14);
}

.newsletter-listing {
  padding: 22px !important;
  transition: transform .2s ease, border-color .2s ease;
}

.newsletter-listing:hover {
  transform: translateY(-3px);
  border-color: rgba(110,231,183,.32) !important;
}

.newsletter-listing__title,
.newsletter-listing__title a,
.newsletter-post-body__title,
.newsletter-recent-post .newsletter-listing__title {
  color: #FFFFFF !important;
  font-family: var(--fpp-font-ar) !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  line-height: 1.45 !important;
  text-decoration: none !important;
}

.newsletter-listing__content,
.newsletter-listing__date,
.newsletter-post-body__date,
.newsletter-post-body__authors,
.newsletter-post-body__content,
.newsletter-post-body__content p,
.newsletter-post-body__content li {
  color: #CBD5E1 !important;
  font-family: var(--fpp-font-ar) !important;
  line-height: 1.9 !important;
}

.newsletter-post-body {
  position: relative;
  overflow: hidden;
}

.newsletter-post-body__info,
.newsletter-post-body__content {
  padding: 28px !important;
  margin-bottom: 20px;
}

.newsletter-post-body__content h1,
.newsletter-post-body__content h2,
.newsletter-post-body__content h3,
.newsletter-post-body__content h4 {
  color: #FFFFFF !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
}

.newsletter-post-body a,
.newsletter-listings a,
.newsletter-sidebar a {
  color: #D1FAE5 !important;
}

.newsletter-sidebar input,
.newsletter-sidebar .form-control {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: #FFFFFF !important;
  border-radius: 16px !important;
  text-align: right !important;
}

.newsletter-sidebar h5,
.newsletter-sidebar h6,
.newsletter-sidebar__title {
  color: #FFFFFF !important;
  font-weight: 900 !important;
}

@media (max-width: 767px) {
  .newsletter-form .fields-wrapper {
    grid-template-columns: 1fr;
    border-radius: 28px;
    padding: 14px;
  }
  .newsletter-form .form-btn,
  .newsletter-form button[type="submit"] {
    width: 100%;
  }
  .newsletter-hero__title-description-form {
    text-align: right;
    align-items: stretch;
  }
  .newsletter-hero__text h3,
  .newsletter-hero__text h6 {
    text-align: right;
  }
}
