/*
 Theme Name:   Phlox Child
 Theme URI:    https://averta.net/phlox/
 Description:  Child theme for Phlox theme.
 Author:       مصطفى عامر | 01050303316
 Author URI:   https://example.com
 Template:     phlox
 Version:      1.0
 Text Domain:  phlox-child
*/



/* ===========================
   General Box Styles
=========================== */
/* الصندوق الأساسي */





.ltr-box {
    direction: ltr !important;
    text-align: left !important;
    background-color: #fff !important;
    padding: 20px !important;
    margin: 20px 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08) !important;
}

/* Headings */
.ltr-box h2 {
    color: #1e6d6d !important;
    font-size: 1.6rem !important;
    border-bottom: 2px solid #2b9d9d !important;
    padding-bottom: 5px !important;
    margin-top: 20px !important;
    margin-bottom: 10px !important;
}

.ltr-box h3 {
    color: #122244 !important;
    font-size: 1.3rem !important;
    margin-top: 15px !important;
    margin-bottom: 10px !important;
}

/* Paragraphs */
.ltr-box p {
	direction: ltr !important;
    text-align: left !important;
    margin-bottom: 10px !important;
}

.ltr-box p strong {
    color: #2b9d9d !important;
}
/* Bold Large Base */
.ltr-box p.bold-large {
  direction: ltr !important;
  text-align: left !important;
  font-size: 17px !important; /* الأساسي */
  font-weight: 500 !important;
}
/* Bold Large Base */
.rtl-box p.bold-large {
  direction: rtl !important;
  text-align: right !important;
  font-size: 17px !important; /* الأساسي */
  font-weight: 500 !important;
}

.ltr-box .result,
.rtl-box .result {
  direction: rtl !important;
  text-align: right !important;
  font-size: 17px !important; /* الأساسي */
  font-weight: 500 !important;
}

/* أقل من 992px */
@media (max-width: 992px) {
  .ltr-box p.bold-large {
    font-size: 16px !important;
  }
}

/* أقل من 776px */
@media (max-width: 776px) {
  .ltr-box p.bold-large {
    font-size: 14px !important;
  }
}

/* Images */
.ltr-box img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08) !important;
}
/* English Lists (LTR) */
.ltr-box ul {
    margin: 10px 0 15px 20px !important;
    padding: 0 !important;
    list-style-type: disc !important;      /* إظهار النقاط */
    list-style-position: outside !important;/* النقاط خارج المحتوى */
}

.ltr-box ul li {
    position: relative !important;
    padding-left: 20px !important;
}
/*
.ltr-box ul li::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 8px !important;
    width: 10px !important;
    height: 10px !important;
    background-color: #2b9d9d !important;
    border-radius: 50% !important;
}
*/
/* Arabic Lists (RTL) */

/* RTL Box */
.rtl-box {
  direction: rtl !important;
  text-align: right !important;
}

.rtl-box ul {
    margin: 10px 20px 15px 0 !important;
    padding: 0 !important;
list-style-type: disc !important;      /* إظهار النقاط */
    list-style-position: outside !important;/* النقاط خارج المحتوى */}

.rtl-box ul li {
    position: relative !important;
    padding-right: 20px !important;
}
/*
.rtl-box ul li::before {
    content: "" !important;
    position: absolute !important;
    right: 0 !important;
    top: 8px !important;
    width: 10px !important;
    height: 10px !important;
    background-color: #2b9d9d !important;
    border-radius: 50% !important;
}
*/

/* Flex container for cards */
.ltr-box .card-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    justify-content: center !important;
	align-items: center !important;           /* توسيط أفقي */
	margin-bottom: 15px !important;
}

/* Cards */
/* Cards */
.ltr-box .card {
    display: flex !important;                 /* تفعيل الفليكس */
    flex-direction: column !important;        /* ترتيب العناصر رأسياً */
    justify-content: center !important;       /* توسيط رأسي */
    align-items: center !important;           /* توسيط أفقي */
    padding: 15px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    flex: 1 1 calc(33.333% - 20px) !important; /* 3 كروت في الصف */
    min-width: 250px !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

.ltr-box .card.light {
    background-color: #f0f8fa !important;
    color: #122244 !important;
}

.ltr-box .card.dark {
    background-color: #122244 !important;
    color: #fff !important;
}

.ltr-box .card.accent {
    background-color: #2b9d9d !important;
    color: #fff !important;
}
.ltr-box .card.accent strong {
  color: #122244 !important;
}

.ltr-box .card strong {
    display: block !important;
    font-size: 1.1rem !important;
    margin-bottom: 5px !important;
    color: #2b9d9d !important;
}

/* ====== Tables Base ====== */
/* ====== Table Responsive Wrapper ====== */


.ltr-box .table-wrapper {
  display: block !important;
  max-width: 100% !important;
  width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}


.ltr-box .custom-table {
  min-width: 750px !important; /* أو أي عرض أكبر من عرض الموبايل */
  width: 100% !important;
  border-collapse: collapse !important;
  margin-top: 15px !important;
  font-size: 16px !important;
  background: #fff !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
  text-align: center !important;
  box-sizing: border-box !important;
  table-layout: auto !important;
}

/* ====== Table Head ====== */
.ltr-box .custom-table thead {
  background: #122244 !important; /* الهيدر غامق */
  color: #fff !important;
}

.ltr-box .custom-table th,
.ltr-box .custom-table td {
  padding: 12px 15px !important;
  border: 1px solid #ddd !important;
}

.ltr-box .custom-table th:nth-child(even) {
  background-color: #2b9d9d !important; /* الهيدر الأعمدة الزوجية */
}

.ltr-box .custom-table th:nth-child(odd) {
  background-color: #122244 !important; /* الهيدر الأعمدة الفردية */
}

/* ====== Table Body ====== */
.ltr-box .custom-table tbody tr:nth-child(even) {
  background: #f9f9f9 !important; /* صفوف متبادلة */
}

.ltr-box .custom-table tbody tr:hover {
  background: #eef5ff !important;
  transition: 0.3s !important;
}


/* ====== Responsive Fix ====== */
@media (max-width: 776px) {
  .key-metrics {
     display: none !important; 
  }
}
@media (max-width: 767px) {
  .custom-table thead {
    display: none; /* إخفاء العناوين */
  }
  .custom-table,
  .custom-table tbody,
  .custom-table tr,
  .custom-table td {
    display: block;
    width: 100%;
  }
  .custom-table tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
  }
  .custom-table td {
    text-align: right;         /* محتوى على يمين */
    position: relative;
    padding-left: 50%;         /* مكان لعنوان العمود */
  }
  .custom-table td::before {
    content: attr(data-label); /* يجيب عنوان العمود */
    position: absolute;
    left: 10px;
    top: 10px;
    font-weight: bold;
    color: #122244;
  }
}

/* RTL Box */
.rtl-box {
  direction: rtl !important;
  text-align: right !important;
}

/* Highlight */
.highlight {
  color: #122244 !important;
  font-weight: bold !important;
}

/* ===================================================================================== */
/* ==================================================================================== */

/* Start Global Style */

/* Start whatsapp Style */


.author,
.entry-info {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
}
.page-title-section {
    display: none !important;
}

/* إلغاء المستطيل قبل/بعد عنوان المقال */
.entry-title::before,
.entry-title::after {
    content: none !important;
    display: none !important;
}

.entry-main {
    min-height: 130px !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important; /* 🔑 الترتيب عمودي */
    justify-content: center !important;/* توسيط رأسي */
    align-items: center !important;    /* توسيط أفقي */
}



/* عناوين المقال: كسر الكلمات وإلغاء الهامش الأيسر (لصفحات 101 و103) */
.elementor-103 .elementor-element.elementor-element-c289efe .entry-title,
.elementor-103 .elementor-element.elementor-element-c289efe .entry-info,
.elementor-101 .elementor-element.elementor-element-32dc27d .entry-title,
.elementor-101 .elementor-element.elementor-element-32dc27d .entry-info {
    word-wrap: break-word !important;      /* دعم المتصفحات القديمة */
    overflow-wrap: break-word !important;  /* دعم المتصفحات الحديثة */
    margin-left: 0 !important;             /* إلغاء الهامش الأيسر */
}

/* ===== أحجام الخطوط في صفحة المقال للكمبيوتر ===== */

.entry-main h1 {
    font-size: 45px !important;
}


.entry-main .entry-content h2 {
    font-size: 1.6rem !important;
}

.entry-main .entry-content h3 {
    font-size: 1.3rem !important;
}

/* ===== التابلت (حتى 992px) ===== */
@media (max-width: 992px) {
    .entry-main h1 {
        font-size: 30px !important;
    }
    .entry-main .entry-content h2 {
        font-size: 1.3rem !important;
    }
    .entry-main .entry-content h3 {
        font-size: 1.2rem !important;
    }
}

/* ===== الموبايل ===== */
@media (max-width: 767px) {
    .entry-main h1 {
        font-size: 20px !important;
    }
    .entry-main .entry-content h2 {
        font-size: 1.1rem !important;
    }
    .entry-main .entry-content h3 {
        font-size: 1rem !important;
    }
}


.custom-contact-data-section .aux-text-widget-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}


/* Start Contact US Page */

.stacked-contact-form {
  max-width: 850px !important;
/*   margin: 40px auto !important; */
/*   padding: 30px !important; */
}


.stacked-contact-form label {
/*   display: block !important; */
  margin-bottom: 6px !important;
  margin-left: 10px !important;
  font-weight: 600 !important;
/*   color: #333 !important; */
  text-align: left !important; /* اسم الحقل علي الشمال */
}

.stacked-contact-form input,
.stacked-contact-form select,
.stacked-contact-form textarea {
  width: 100% !important;
  padding: 12px 14px !important;
	direction: ltr !important;
  	text-align: left !important;
/*   border: 1px solid #ccc !important; */
/*   border-radius: 6px !important; */
/*   font-size: 15px !important; */
  margin-bottom: 18px !important;
/*   transition: border-color 0.3s, box-shadow 0.3s !important; */
  box-sizing: border-box !important;
}


.stacked-contact-form input:focus,
.stacked-contact-form select:focus,
.stacked-contact-form textarea:focus {
/*   border-color: #0073e6 !important; */
/*   box-shadow: 0 0 6px rgba(0,115,230,0.25) !important; */
/*   outline: none !important; */
}

.remove-file-btn {
  display: none;
  margin-top: 8px;
  background: #dc3545; /* لون أحمر */
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
}

.remove-file-btn:hover {
  background: #b02a37;
}

.stacked-contact-form input[type="submit"] {
    display: flex !important;
    justify-content: center !important; 
    align-items: center !important;     
    text-align: center !important;     
}


.wpcf7-not-valid-tip {
  position: relative !important;
  display: block !important;
  margin-top: 2px !important;
  color: #d93025 !important;   /* لون أحمر */
  font-size: 14px !important;
  line-height: 1.4 !important;
  direction: ltr !important;   /* يخلي العربي طبيعي */
  text-align: left !important; /* للمحتوى العربي */
  font-weight: 500 !important;
}


/* End Contact US Page */




