:root {
  --bs-body-font-family: 'Almarai', 'IBM Plex Sans Arabic', sans-serif;
  --bs-font-sans-serif: 'Almarai', 'IBM Plex Sans Arabic', sans-serif;
}

/* Shared RTL / Arabic rules used across the theme */
html, body { direction: rtl; }
html { overflow-x: hidden; }

body {
  font-family: 'Almarai', 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 700;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Strictly enforce solid typography weight across all elements */
body, p, span, a, li, input, textarea, select, button, label {
  font-family: 'Almarai', 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 700;
}

p {
  color: #2b303a;
  line-height: 1.8;
}

.hero_section .content p {
  color: #2b303a !important;
  font-weight: 700 !important;
}

.about_section .content p,
.about_section_s2 .content p,
.about_section_s3 .content p,
.faq .faq_wrapper p,
.stay_section .content p,
.testimonial_card p {
  color: #2b303a !important;
  font-weight: 700 !important;
}

.fw-light, .fw-lighter, .lead, [class*="light"] {
  font-weight: 700 !important;
}

section,
header,
.fixed-navbar,
.wpo-site-header,
.wpo-site-footer,
.wpo-breadcumb-area {
  width: 100%;
}

.wpo-site-header,
.wpo-site-header-s2 {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.container,
.container-fluid {
  width: 90% !important;
  max-width: 90% !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.logo-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-link .logo-icon { height: 60px; width: auto; }
.logo-text { font-family: 'Almarai', 'IBM Plex Sans Arabic', sans-serif; font-size: 40px; line-height: 1; color: #000b47; font-weight: 700; }

.flaticon-right-arrow { display: inline-block; transform: scaleX(-1); }
.theme-btn:before, .view-cart-btn:before { transform: scaleX(-1); }

.about_section .content h3,
.about_section_s2 .content h3,
.about_section_s3 .content h3,
.section_title h3,
.project_section .section_title h3,
.project_section_s2 .section_title h3,
.project_section_s3 .section_title h3,
h1, h2, h4, h5, h6,
.entry-title,
.wpo-section-title h2,
.wpo-breadcumb-area .wpo-breadcumb-wrap h2,
.single-page-title h2,
.article_toc_widget .toc_title,
.article_toc_widget .toc_link,
.article_toc_widget .toc_text {
  padding-bottom: 6px;
  line-height: 1.4em !important;
}

.section_title,
.service_section .section_title {
  margin-bottom: 90px;
}

@media (min-width: 992px) {
  .section-padding {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

.program_single {
  text-align: right;
}
.program_single__media {
  margin-bottom: 24px;
  border-radius: 24px;
  overflow: hidden;
}
.program_single__media img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.program_single__excerpt {
  color: #5b6b7a;
  font-size: 18px;
}

.wpcf7 .screen-reader-response {
  position: absolute;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
}

.wpcf7 .hidden-fields-container {
  display: none;
}

.wpcf7-form.init .wpcf7-response-output {
  display: none;
}

.wpcf7-spinner {
  visibility: hidden;
}

.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.wpcf7-form .wpcf7-not-valid-tip {
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

.wpcf7-response-output {
  margin: 12px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.ti-angle-left, .ti-angle-right, .ti-arrow-left, .ti-arrow-right { display: inline-block; transform: scaleX(-1); }
.post-control-link:before { transform: scaleX(-1); }

/* =========================================================
   Make Blog Cards Fully Clickable Across the Entire Site
   ========================================================= */
.blog_card {
  cursor: pointer !important;
}

.blog_card .card_image_link {
  display: block !important;
  text-decoration: none !important;
  cursor: pointer !important;
  border-radius: 20px !important;
  overflow: hidden !important;
}

.blog_card .content h3 a,
.blog_card .content a.card_title_link {
  all: unset !important;
  display: inline !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: color 0.2s ease !important;
}

.blog_card:hover .content h3 a,
.blog_card:hover .content a.card_title_link,
.blog_card .content a.card_title_link:hover,
.blog_card .content h3 a:hover,
.blog_card:hover h3 {
  color: #0080d2 !important;
  text-decoration: none !important;
}

.blog_card h3 {
  transition: color 0.2s ease !important;
}

.recent-post-widget .post {
  cursor: pointer !important;
}

/* Dates and author names inside cards / post meta are non-clickable */
.author-meta-name,
.entry-meta,
.entry-meta ul li,
.recent-post-widget .post .date,
.blog_card .content ul,
.blog_card .content ul li {
  cursor: default !important;
}

/* Only the author name under the article links to the author page */
.wpo-blog-single-section .author-box .author-name a {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.wpo-blog-single-section .author-box .author-name a:hover {
  color: #0080d2;
}

.wpo-blog-single-section .entry-meta ul li .author-meta-name,
.wpo-blog-pg-section .entry-meta ul li .author-meta-name {
  color: inherit;
}

/* =========================================================
   Default pages (privacy, terms, licenses, ...)
   ========================================================= */
.wpo-blog-single-section .post.page-content {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e3eaf1;
  border-radius: 20px;
  padding: 40px 44px;
  box-shadow: 0 10px 40px rgba(62, 65, 159, .06);
}
.page-content > *:first-child { margin-top: 0 !important; }
.page-content > *:last-child { margin-bottom: 0 !important; }
.wpo-blog-single-section .post.page-content h2,
.wpo-blog-single-section .post.page-content h3 {
  color: #000b47;
  font-size: 26px;
  line-height: 1.6;
  font-weight: 700;
  margin: 34px 0 12px;
  padding-right: 14px;
  border-right: 4px solid #0080d2;
}
.wpo-blog-single-section .post.page-content h3 { font-size: 22px; line-height: 1.5; }
.page-content p,
.page-content li {
  color: #4a5568;
  font-size: 17px;
  line-height: 2;
}
.page-content p { margin: 0 0 14px; }
.page-content ul,
.page-content ol { margin: 0 0 16px; padding-right: 22px; }
.page-content a { color: #0080d2; text-decoration: underline; }
@media (max-width: 767px) {
  .wpo-blog-single-section .post.page-content { padding: 24px 20px; border-radius: 16px; }
  .wpo-blog-single-section .post.page-content h2 { font-size: 22px; }
  .wpo-blog-single-section .post.page-content h3 { font-size: 19px; }
  .page-content p, .page-content li { font-size: 16px; }
}

/* Whole author box (under the article) is clickable -> author page */
.wpo-blog-single-section .author-box {
  position: relative;
  cursor: pointer;
  transition: box-shadow .2s ease, transform .2s ease;
}
.wpo-blog-single-section .author-box:hover {
  box-shadow: 0 10px 30px rgba(0, 128, 210, .12);
}
.wpo-blog-single-section .author-box .author-name a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.wpo-blog-single-section .author-box .author-name a:hover,
.wpo-blog-single-section .author-box:hover .author-name a {
  color: #0080d2;
}

/* =========================================================
   Pagination (archive pages): consistent boxes incl. current page
   ========================================================= */
.pagination-wrapper .pg-pagination {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  overflow: visible;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pagination-wrapper .pg-pagination li {
  float: none;
  margin: 0 !important;
}
.pagination-wrapper .pg-pagination li > a,
.pagination-wrapper .pg-pagination li > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  line-height: 1;
  border-radius: 12px;
  background: #ebf4fc;
  color: #000b47;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.pagination-wrapper .pg-pagination li > a:hover {
  background: linear-gradient(-358deg, #1e63ff -1077.15%, #187cff -690.64%, #128fff -213.19%, #0ca9ff 218.79%, #06c2ff 764.46%, #00dbff 1196.44%);
  color: #fff;
  transform: translateY(-2px);
}
.pagination-wrapper .pg-pagination li.active > span,
.pagination-wrapper .pg-pagination li > span.current {
  background: linear-gradient(-358deg, #1e63ff -1077.15%, #187cff -690.64%, #128fff -213.19%, #0ca9ff 218.79%, #06c2ff 764.46%, #00dbff 1196.44%);
  color: #fff;
  cursor: default;
}
.pagination-wrapper .pg-pagination li > span.dots {
  background: transparent;
  width: auto;
  min-width: 24px;
}
.pagination-wrapper .pg-pagination .fi:before,
.pagination-wrapper .pg-pagination i { font-size: 15px; line-height: 1; }
@media (max-width: 767px) {
  .pagination-wrapper .pg-pagination li > a,
  .pagination-wrapper .pg-pagination li > span { width: 42px; height: 42px; font-size: 15px; }
}
