/*
Theme Name: ثيم رتل | Rattil Theme
Theme URI: https://rattilonline.net/
Description: Modular Astra child theme for Rattil Online, with custom Elementor widgets and dedicated assets.
Author: Rattil Online
Template: astra
Version: 1.6.1
Text Domain: rattil-child
Domain Path: /languages
Tags: rtl-language-support, translation-ready
*/



.phone-field {
  display: flex !important;
  flex-direction: row-reverse; /* يخلي الكود شمال */
  gap: 10px;
  width: 100%;
}

.phone-field .country-code {
  flex: 0 0 160px;
}

.phone-field .phone-number {
  flex: 1;
}

.phone-field select,
.phone-field input {
  width: 100% !important;
  text-align: right;
}




/* =========================
   Rattil Article CTA
========================= */

.rattil-article-cta{
    margin: 32px 0;
    direction: rtl;
}

.rattil-article-cta__inner{
    position: relative;
    overflow: hidden;
    padding: 30px 24px;
    border-radius: 24px;
    text-align: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.08), transparent 28%),
        linear-gradient(135deg, #0b5d56 0%, #0a4c45 55%, #083f39 100%);
    box-shadow: 0 16px 40px rgba(8, 63, 57, 0.18);
    border: 1px solid rgba(255,255,255,0.08);
}

.rattil-article-cta__inner::before{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.05), transparent 35%, transparent 65%, rgba(255,255,255,0.04));
    pointer-events: none;
}

.rattil-article-cta__title{
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.4;
    font-weight: 800;
    color: #ffffff;
}

.rattil-article-cta__desc{
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto 22px;
    font-size: 17px;
    line-height: 1.95;
    color: rgba(255,255,255,0.94);
}

.rattil-article-cta__actions{
    position: relative;
    z-index: 1;
}

.rattil-article-cta__btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 999px;
    text-decoration: none !important;
    background: linear-gradient(135deg, #d4a017 0%, #b8860b 100%);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(212, 160, 23, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.rattil-article-cta__btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(212, 160, 23, 0.30);
    opacity: 0.98;
}

@media (max-width: 767px){
    .rattil-article-cta{
        margin: 24px 0;
    }

    .rattil-article-cta__inner{
        padding: 22px 16px;
        border-radius: 18px;
    }

    .rattil-article-cta__title{
        font-size: 24px;
    }

    .rattil-article-cta__desc{
        font-size: 15px;
        line-height: 1.85;
        margin-bottom: 18px;
    }

    .rattil-article-cta__btn{
        width: 100%;
        min-height: 50px;
        font-size: 15px;
    }
}







الشورت كود 
[cluster_posts_carousel title="مقالات مرتبطة" posts="6" button_text="عرض التفاصيل" autoplay="true" speed="3500"]
الكود المخصص 


.ah-cluster-section {
    margin: 48px 0 24px;
    direction: rtl;
    position: relative;
}

.ah-cluster-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.ah-cluster-title {
    margin: 0;
    font-size: clamp(24px, 2.5vw, 34px);
    line-height: 1.3;
    font-weight: 800;
    color: #0f172a;
}

.ah-cluster-carousel-wrap {
    position: relative;
    isolation: isolate;
}

.ah-cluster-viewport {
    overflow: hidden;
    border-radius: 30px;
    padding: 8px 2px 14px;
    touch-action: pan-y;
}

.ah-cluster-carousel {
    display: flex;
    gap: 24px;
    will-change: transform;
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    direction: ltr;
}

.ah-cluster-card {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: calc((100% - 48px) / 3);
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    direction: rtl;
    backface-visibility: hidden;
}

.ah-cluster-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.ah-cluster-image-link {
    display: block;
    text-decoration: none;
}

.ah-cluster-image-box {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f6;
}

.ah-cluster-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.ah-cluster-card:hover .ah-cluster-image-box img {
    transform: scale(1.06);
}

.ah-cluster-card-body {
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ah-cluster-card-title {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.5;
    font-weight: 800;
}

.ah-cluster-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.25s ease;
}

.ah-cluster-card-title a:hover {
    color: #0b63ce;
}

.ah-cluster-card-excerpt {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.9;
    color: #475569;
    flex-grow: 1;
}

.ah-cluster-card-footer {
    margin-top: auto;
}

.ah-cluster-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0b63ce 0%, #0a84ff 100%);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(11, 99, 206, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.ah-cluster-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(11, 99, 206, 0.28);
    opacity: 0.96;
}

.ah-cluster-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
    cursor: pointer;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.ah-cluster-nav:hover {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.22);
    background: #ffffff;
}

.ah-cluster-nav:active {
    transform: translateY(-50%) scale(0.98);
}

.ah-cluster-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.ah-cluster-prev {
    left: -24px;
}

.ah-cluster-next {
    right: -24px;
}

.ah-cluster-nav svg {
    width: 22px;
    height: 22px;
    display: block;
}

.ah-cluster-dots {
    display: none;
}

@media (max-width: 1199px) {
    .ah-cluster-prev {
        left: -12px;
    }

    .ah-cluster-next {
        right: -12px;
    }
}

@media (max-width: 1024px) {
    .ah-cluster-card {
        flex: 0 0 calc((100% - 24px) / 2);
        min-width: calc((100% - 24px) / 2);
    }

    .ah-cluster-card-title {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .ah-cluster-section {
        margin-top: 36px;
    }

    .ah-cluster-title {
        font-size: 24px;
    }

    .ah-cluster-viewport {
        padding-bottom: 10px;
        border-radius: 24px;
    }

    .ah-cluster-carousel {
        gap: 16px;
    }

    .ah-cluster-card {
        flex: 0 0 86%;
        min-width: 86%;
        border-radius: 22px;
    }

    .ah-cluster-card-body {
        padding: 18px 16px 18px;
    }

    .ah-cluster-card-title {
        font-size: 18px;
        line-height: 1.55;
    }

    .ah-cluster-card-excerpt {
        font-size: 14px;
        line-height: 1.8;
    }

    .ah-cluster-nav {
        width: 44px;
        height: 44px;
        top: auto;
        bottom: -8px;
        transform: none;
    }

    .ah-cluster-nav:hover,
    .ah-cluster-nav:active {
        transform: none;
    }

    .ah-cluster-prev {
        left: calc(50% - 52px);
        right: auto;
    }

    .ah-cluster-next {
        right: calc(50% - 52px);
        left: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ah-cluster-carousel,
    .ah-cluster-card,
    .ah-cluster-image-box img,
    .ah-cluster-btn,
    .ah-cluster-nav {
        transition: none !important;
        animation: none !important;
    }
}





/* ================================
   Rattil Trial Form - Fixed UI
   Contact Form 7
================================ */

.rattil-trial-form {
  max-width: 760px;
  margin: 0 auto;
  padding: 42px 34px;
  direction: rtl;
  text-align: right;
  font-family: "Tajawal", "Cairo", "Almarai", sans-serif;
  color: #3b2a1b;
  background: #fff;
  border-radius: 24px;
}

.rattil-trial-form *,
.rattil-trial-form *::before,
.rattil-trial-form *::after {
  box-sizing: border-box;
}

.rattil-trial-form p {
  margin: 0;
}

.rattil-form-head {
  text-align: center;
  margin-bottom: 34px;
}

.rattil-form-head h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.35;
  font-weight: 800;
  color: #3a2616;
}

.rattil-form-head p {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 500;
  color: #9a948d;
}

.rattil-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.rattil-field {
  position: relative;
  margin-bottom: 22px;
}

.rattil-field label {
  display: block;
  margin: 0 14px 8px 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 800;
  color: #554638;
}

.rattil-field .wpcf7-form-control-wrap {
  display: block;
  position: relative;
  width: 100%;
}

/* Input / Select */
.rattil-field input,
.rattil-field select,
.rattil-field textarea {
  width: 100%;
  height: 56px;
  padding: 0 72px 0 18px !important;
  border: 1px solid #eadfce !important;
  border-radius: 12px !important;
  background-color: #fff !important;
  color: #3a3028 !important;
  font-size: 16px !important;
  font-weight: 500;
  font-family: inherit !important;
  outline: none !important;
  box-shadow: 0 8px 20px rgba(143, 105, 45, 0.06);
  transition: all 0.25s ease;
  text-align: right;
}

.rattil-field input::placeholder,
.rattil-field textarea::placeholder {
  color: #b8b0a8;
  opacity: 1;
}

.rattil-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  color: #9b948d !important;
}

.rattil-field input:focus,
.rattil-field select:focus,
.rattil-field textarea:focus {
  border-color: #b98520 !important;
  box-shadow:
    0 0 0 4px rgba(185, 133, 32, 0.12),
    0 8px 22px rgba(143, 105, 45, 0.10);
}

/* Icon Box */
.rattil-field::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58px;
  height: 56px;
  border-left: 1px solid #eadfce;
  border-top: 1px solid #eadfce;
  border-bottom: 1px solid #eadfce;
  border-right: 1px solid #eadfce;
  border-radius: 12px;
  background: #fff;
  z-index: 3;
  pointer-events: none;
}

/* Icon */
.rattil-field::after {
  position: absolute;
  right: 19px;
  bottom: 17px;
  z-index: 4;
  font-size: 20px;
  line-height: 1;
  color: #b98520;
  pointer-events: none;
  font-family: Arial, sans-serif;
}

/* Icons */
.rattil-icon-user::after {
  content: "♡";
  font-size: 23px;
  bottom: 16px;
}

.rattil-icon-age::after {
  content: "▣";
  font-size: 18px;
}

.rattil-icon-phone::after {
  content: "▯";
  font-size: 21px;
}

.rattil-icon-country::after {
  content: "◎";
  font-size: 22px;
}

.rattil-icon-program::after {
  content: "◇";
  font-size: 22px;
}

.rattil-icon-time::after {
  content: "◷";
  font-size: 22px;
}

/* Select Arrow */
.rattil-field select {
  background-image: none !important;
}

.rattil-icon-country .wpcf7-form-control-wrap::after,
.rattil-icon-program .wpcf7-form-control-wrap::after,
.rattil-icon-time .wpcf7-form-control-wrap::after {
  content: "⌄";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #7f7b76;
  font-size: 18px;
  z-index: 5;
  pointer-events: none;
}

/* Submit */
.rattil-submit-wrap {
  margin-top: 6px;
}

.rattil-submit {
  width: 100%;
  height: 62px;
  border: none !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #b98520 0%, #8f6517 100%) !important;
  color: #fff !important;
  font-family: "Tajawal", "Cairo", sans-serif !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(143, 101, 23, 0.25);
  transition: all 0.25s ease;
}

.rattil-submit:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #c99734 0%, #8b6013 100%) !important;
  box-shadow: 0 16px 28px rgba(143, 101, 23, 0.32);
}

.rattil-submit-wrap .wpcf7-spinner {
  display: block;
  margin: 14px auto 0;
}

/* Note */
.rattil-form-note {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  text-align: center;
  color: #9c9690;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 500;
}

.rattil-note-icon {
  color: #8f6517;
  font-size: 18px;
}

/* CF7 Validation */
.rattil-trial-form .wpcf7-not-valid-tip {
  margin-top: 7px;
  margin-right: 12px;
  color: #d93025;
  font-size: 13px;
  font-weight: 600;
}

.rattil-trial-form .wpcf7-response-output {
  margin: 22px 0 0 !important;
  padding: 14px 18px !important;
  border-radius: 12px !important;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.rattil-trial-form form.sent .wpcf7-response-output {
  border-color: #16a34a !important;
  color: #166534;
  background: #f0fdf4;
}

.rattil-trial-form form.invalid .wpcf7-response-output,
.rattil-trial-form form.failed .wpcf7-response-output {
  border-color: #dc2626 !important;
  color: #991b1b;
  background: #fef2f2;
}

/* Tablet */
@media (max-width: 1024px) {
  .rattil-trial-form {
    max-width: 720px;
    padding: 36px 28px;
  }

  .rattil-form-head h2 {
    font-size: 30px;
  }

  .rattil-form-head p {
    font-size: 17px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .rattil-trial-form {
    max-width: 100%;
    padding: 28px 16px;
    border-radius: 18px;
  }

  .rattil-form-head {
    margin-bottom: 28px;
  }

  .rattil-form-head h2 {
    font-size: 25px;
    line-height: 1.45;
  }

  .rattil-form-head p {
    font-size: 15px;
    line-height: 1.8;
  }

  .rattil-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .rattil-field {
    margin-bottom: 18px;
  }

  .rattil-field label {
    font-size: 14px;
    margin-right: 12px;
  }

  .rattil-field input,
  .rattil-field select,
  .rattil-field textarea {
    height: 54px;
    padding-right: 66px !important;
    padding-left: 16px !important;
    font-size: 15px !important;
    border-radius: 10px !important;
  }

  .rattil-field::before {
    width: 56px;
    height: 54px;
    border-radius: 10px;
  }

  .rattil-field::after {
    right: 18px;
    bottom: 16px;
    font-size: 19px;
  }

  .rattil-submit {
    height: 58px;
    font-size: 19px !important;
    border-radius: 10px !important;
  }

  .rattil-form-note {
    font-size: 13px;
    line-height: 1.8;
    padding: 0 6px;
  }
}




/* ================================
   Rattil Mini Form - Clean Version
================================ */

.rattil-mini-form {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  direction: rtl;
  font-family: "Tajawal", "Cairo", "Almarai", sans-serif;
}

.rattil-mini-form *,
.rattil-mini-form *::before,
.rattil-mini-form *::after {
  box-sizing: border-box;
}

.rattil-mini-form p {
  margin: 0;
}

.rattil-mini-field {
  position: relative;
  margin-bottom: 14px;
}

.rattil-mini-field .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.rattil-mini-field input {
  width: 100%;
  height: 68px;
  padding: 0 26px !important;
  border: 1px solid #ead9bd !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #4b4038 !important;
  font-size: 21px !important;
  font-weight: 700;
  font-family: inherit !important;
  text-align: right;
  outline: none !important;
  box-shadow: 0 10px 24px rgba(143, 105, 45, 0.055);
  transition: all 0.25s ease;
}

.rattil-mini-field input::placeholder {
  color: #8d8985;
  opacity: 1;
  font-weight: 700;
}

.rattil-mini-field input:focus {
  border-color: #c69332 !important;
  box-shadow:
    0 0 0 4px rgba(198, 147, 50, 0.13),
    0 12px 26px rgba(143, 105, 45, 0.11);
}

/* Submit */
.rattil-mini-submit-wrap {
  margin-top: 20px;
}

.rattil-mini-submit {
  width: 100%;
  height: 76px;
  border: none !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #f3bd4c 0%, #a96f09 100%) !important;
  color: #ffffff !important;
  font-family: "Tajawal", "Cairo", sans-serif !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(169, 111, 9, 0.26);
  transition: all 0.25s ease;
}

.rattil-mini-submit:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #f7c95f 0%, #996208 100%) !important;
  box-shadow: 0 18px 34px rgba(169, 111, 9, 0.34);
}

.rattil-mini-submit:active {
  transform: translateY(0);
}

.rattil-mini-submit-wrap .wpcf7-spinner {
  display: block;
  margin: 12px auto 0;
}

/* Privacy note */
.rattil-mini-note {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  text-align: center;
  color: #9a948d;
  font-size: 14px;
  line-height: 1.8;
  font-weight: 500;
}

/* نخفي الأيقونة القديمة لأنها كانت مش مظبوطة */
.rattil-mini-lock {
  display: none !important;
}

/* Validation */
.rattil-mini-form .wpcf7-not-valid-tip {
  margin-top: 7px;
  margin-right: 10px;
  color: #d93025;
  font-size: 13px;
  font-weight: 700;
}

.rattil-mini-form .wpcf7-response-output {
  margin: 15px 0 0 !important;
  padding: 12px 14px !important;
  border-radius: 10px !important;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* Mobile */
@media (max-width: 480px) {
  .rattil-mini-form {
    max-width: 100%;
  }

  .rattil-mini-field input {
    height: 64px;
    padding: 0 22px !important;
    font-size: 20px !important;
  }

  .rattil-mini-submit {
    height: 72px;
    font-size: 26px !important;
  }

  .rattil-mini-note {
    font-size: 13px;
  }
}