@import "../moon/style.css";
@import "components/common/header.css";
@import "components/common/footer.css";
@import "components/mobile-nav.css";

:root {
  --app-inner-size: 1280px;
  --primary-color: hsla(314, 69%, 34%, 1);
  --secondary-color: hsla(215, 67%, 20%, 1);
  --water-color: #69d1d8;

  --bg-color: #FAFAFA;;

  --extra-light-gray: hsl(0, 0%, 93%);
  --gray-light: hsl(0, 0%, 69%);
  --gray-medium: hsl(0, 0%, 58%);
  --gray-dark: hsl(0, 0%, 43%);
  --gray-dark-extra: hsl(0, 0%, 31%);
  --gray-black: hsl(0, 0%, 17%);

  --black: #525252;



  /*font styles*/
  --font-normal: 400;
  --font-medium: 500;
  --font-bold: 600;


  --headerHeight: 160px;

  --grid-columns: 3;
  --grid-columns-md: 2;
  --grid-columns-sm: 1;
  --padding-card: 20px;
  --spacer-1: 4px;
  --spacer-2: 8px;
  --spacer-3: 16px;
  --spacer-4: 24px;
  --spacer-5: 32px;
  --spacer-6: 64px;
  --radius-1: 4px;
  --radius-2: 8px;
  --radius-3: 16px;
  --radius-4: 24px;


  --shadow-card: 0 4px 25px rgba(0, 0, 0, 0.10);
  --shadow-card-2: 0 4px 15px 0 rgba(0, 0, 0, 0.05);

  --font-size-title-lg: clamp(2rem, 5vw, 2.5rem);
  --font-size-title-md: clamp(1.6rem, 4vw, 2.2rem);
  --font-size-title-sm: clamp(1.3rem, 4vw, 1.9rem);

  --font-size-body-lg: clamp(1.3rem, 3.5vw, 2rem);
  --font-size-body-md: clamp(1.1rem, 3vw, 1.7rem);
  --font-size-body-sm: clamp(1rem, 2.5vw, 1.5rem);

  --font-main: "NotoNaskhArabic", sans-serif;
  --padding-section: 35px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  line-height: 1.5;
  font-weight: var(--font-normal);
}

@font-face {
  font-family: "NotoNaskhArabic";
  src: url("../font/NotoNaskhArabic-VariableFont_wght.ttf") format("truetype");
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../font/IBMPlexSans-VariableFont_wdth,wght.ttf") format("truetype");
}

html[dir="ltr"] body {
  --font-main: "IBM Plex Sans Arabic", sans-serif;
}

.text-truncation {
  --max-lines: 4;
  display: -webkit-box;
  -webkit-line-clamp: var(--max-lines);
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section:not(:first-child) {
  padding-block: var(--padding-section);
}

main.inner-page {
  min-height: 85vh;
}


.app-wrapper {
  width: var(--app-inner-size);
  max-width: 100%;
  margin: 0 auto;
}

.bg-pattern>.section {
  padding-block: var(--padding-section);
  position: relative;
  z-index: 1;
}

.section-description {
  font-size: var(--font-size-body-lg);
  color: var(--gray-dark);
  text-align: center;
  line-height: 1.4;
}

.section-title {
  text-align: center;
  color: var(--gray-black);
  font-size: var(--font-size-title-lg);
  line-height: 1.1;
  margin-bottom: 6px;
}

.inner-page :is(.section-title, .section-description) {
  text-align: start;
}

.card-title {
  font-size: clamp(1.3rem, 3.5vw, 2.2rem);
  font-weight: 300;
  margin-bottom: 6px;
  --max-lines: 2;
}

html[dir="ltr"] .card-title {
  font-weight: 500;
}

.card-desc {
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
}

.editor-content-title {
  font-size: var(--font-size-title-lg);
}



.social-media {
  position: fixed;
  inset-inline-end: 0;
  top: 200px;
  z-index: 11;
}

.social-media .social-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
}

.social-media .social-item a {
  text-decoration: unset;
  color: hsl(from var(--gray-light) h s 40%);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  aspect-ratio: 1;
  transition: .4s;
  box-shadow: var(--shadow-card-2);
  background-color: white;
}

html[dir="ltr"] .social-media .social-item a{
}

.social-media .social-item a:hover {
  color: hsl(from var(--gray-light) h s 20%);
}


/*share section in inner pages*/
.section-share .social-list {
  display: flex;
  gap: 6px;
  list-style: none;
}

.section-share .social-item a {
  text-decoration: unset;
  color: black;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  aspect-ratio: 1;
  transition: .4s;
  background-color: white;
  border: 1px solid var(--extra-light-gray);
}

.section-share .btn-share-native {
  text-decoration: unset;
  color: black;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  aspect-ratio: 1;
  transition: .4s;
  background-color: white;
  border: 1px solid var(--extra-light-gray);
  cursor: pointer;
}

.section-share .social-item a:hover {
  background-color: hsl(from var(--primary-color) h s 96%);
  color: hsl(from var(--primary-color) h s 30%);
}

.section-share .btn-share-native:hover {
  background-color: hsl(from var(--primary-color) h s 96%);
  color: hsl(from var(--primary-color) h s 30%);
}

.section-share .share-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-share .share-wrapper .share-title {
  color: var(--primary-color);
  font-size: var(--font-size-body-md);
  margin-inline-end: 16px;
}

/*a11y styling*/
.a11y-action {
  background: white;
  position: fixed;
  inset-inline-end: 20px;
  bottom: 20px;
  z-index: 11;
  border-radius: 50%;
  width: 60px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px #0000002b;
}

.a11y-action img {
  max-width: 35px;
}



/*editor style*/

.editor-content > * + *:not(:is(h1,h2,h3,h4,h5,h6)) {
  margin-top: 8px;
}

.editor-content {
  font-size: var(--font-size-body-lg);
  line-height: 1.7;
  color: var(--gray-dark-extra);
}

.editor-content :is(h1,h2,h3,h4,h5,h6) {
  color: var(--primary-color);
}

.editor-content :is(ul, ol) {
  padding-inline-start: 26px;
}

.editor-content :is(ul, ol) li::marker {
  color: var(--primary-color);
}

.editor-content :is(h1,h2,h3,h4,h5,h6):not(:first-child) {
  /*margin-top: 30px;*/
}

:is(.editor-content-subtitle, .content) > * + * {
  margin-top: 8px;
}


.page-header {
  background: hsla(0, 0%, 64%, 1);
  color: white;
}

.page-header .page-header-title {
  font-weight: 400;
  font-size: var(--font-size-title-lg);
  margin-bottom: 12px;
  line-height: 1;
}

.page-header .page-header-list {
  --gap: 10px;
  display: flex;
  align-items: baseline;
  gap: var(--gap);
  list-style: none;
}

.page-header .list-item a {
  text-decoration: unset;
  color: inherit;
  display: block;
  transition: opacity 0.3s ease;
}

.page-header .list-item a.active {
  opacity: 0.8;
  font-weight: var(--font-bold);
}

.page-header .page-header-wrapper {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  padding: 20px 0;
}

.page-header .list-item:not(:last-child):after {
  content: "\e91f";
  font-family: 'icomoon' !important;
  font-size: 10px;
}

html[dir="ltr"] .page-header .list-item:not(:last-child):after {
  transform: scale(-1);
}

.page-header .list-item {
  display: flex;
  align-items: center;
  gap: var(--gap);
  font-size: var(--font-size-body-md);
}

.pagination-list {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  justify-content: center;
}

.pagination-list__item > a {
  text-decoration: unset;
  width: 36px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-family: sans-serif;
  color: inherit;
  border: 2px solid var(--extra-light-gray);
  background: white;
  transition: .4s;
}

.pagination-list__item > a:hover {
  border-color: black;
}

a.media-item {
}

.section-preview .image-wrapper.no-cover {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.section-preview .image-wrapper.lg-wrapper {
  height: 300px;
  overflow: hidden;
  margin-bottom: 20px;
}

.section-preview .image-wrapper.lg-wrapper .image-wrapper {
  display: block;
  width: 100%;
  height: 100%;
}

.section-preview .image-wrapper.lg-wrapper .image-wrapper img {
  margin: 0 auto;
}

body:has(.section-form) .section.section-share {
  display:none
}

body:has(.cards-wrapper)  section.section.section-share {
  display: none;
}


.filter-wrap {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 10px 14px;
  /*border: 1px solid var(--extra-light-gray);*/
  width: 50%;
  margin-top: 10px;
}

.filter-wrap label {
  font-size: var(--font-size-body-md);
  color: #6b7280;
  white-space: nowrap;
  font-weight: 400;
}

.filter-wrap select {
  appearance: none;
  -webkit-appearance: none;
  border: 0.5px solid #d1d5db;
  padding: 6px 12px 6px 32px;
  font-size: var(--font-size-body-sm);
  font-weight: 500;
  color: #111827;
  background: #f9fafb
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E")
  no-repeat left 10px center;
  cursor: pointer;
  transition: border-color 0.15s;
  min-width: 230px;
  outline: none;
}

.filter-wrap select:hover { border-color: #9ca3af; }

.filter-wrap select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.15);
}

.filter-wrap .clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #6b7280;
  text-decoration: none;
  padding: 6px 10px;
  border: 0.5px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.filter-wrap .clear-btn:hover {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.divider {
  width: 0.5px;
  height: 20px;
  background: #e5e7eb;
  flex-shrink: 0;
}




@media (max-width: 1280px) {
  .section {
    --padding-section: 20px;
  }

  .section:not(.section-hero) {
    padding-inline: 20px;
  }
  .header-inner {
    padding-inline: 20px;
  }

  .filter-wrap {
    width: 100%;
    flex-wrap: wrap;
  }
}
