/* ========================================
   Droid Arabic Kufi Font Definitions
   ======================================== */

/* Regular (400) */
@font-face {
  font-family: 'DroidArabicKufi';
  src: url('/public/fonts/DroidKufi/DroidKufi-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Bold (700) */
@font-face {
  font-family: 'DroidArabicKufi';
  src: url('/public/fonts/DroidKufi/DroidKufi-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Arabic subset – Regular */
@font-face {
  font-family: 'DroidArabicKufiArabic';
  src: url('/public/fonts/DroidKufi/DroidKufi-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Arabic subset – Bold */
@font-face {
  font-family: 'DroidArabicKufiArabic';
  src: url('/public/fonts/DroidKufi/DroidKufi-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Menu subset – Regular */
@font-face {
  font-family: 'DroidArabicKufiMenu';
  src: url('/public/fonts/DroidKufi/DroidKufi-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Menu subset – Bold */
@font-face {
  font-family: 'DroidArabicKufiMenu';
  src: url('/public/fonts/DroidKufi/DroidKufi-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ========================================
   RTL Layout for Arabic (Iraq)
   ======================================== */
html[lang="ar-IQ"] {
  direction: rtl;
  text-align: right;
}

/* Float columns for medium+ screens (optional) */
@media (min-width: 992px) {
  html[lang="ar-IQ"] .col-md-1,
  html[lang="ar-IQ"] .col-md-2,
  html[lang="ar-IQ"] .col-md-3,
  html[lang="ar-IQ"] .col-md-4,
  html[lang="ar-IQ"] .col-md-5,
  html[lang="ar-IQ"] .col-md-6,
  html[lang="ar-IQ"] .col-md-7,
  html[lang="ar-IQ"] .col-md-8,
  html[lang="ar-IQ"] .col-md-9,
  html[lang="ar-IQ"] .col-md-10,
  html[lang="ar-IQ"] .col-md-11,
  html[lang="ar-IQ"] .col-md-12 {
    float: right;
  }
}

/* ========================================
   Global Styles
   ======================================== */
body {
  font-family: 'DroidArabicKufi', "Noto Sans", -apple-system, BlinkMacSystemFont,
               "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell",
               "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  color: #000;
  background-color: #fff;
  letter-spacing: 0.01em;
  word-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  font-feature-settings: "liga", "kern";
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'DroidArabicKufi', "Noto Sans", sans-serif;
  line-height: 1.2;
  color: inherit;
}

/* Paragraphs */
p {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.01em;
  word-spacing: 0.01em;
  hyphens: auto;
}

/* Small text & captions */
caption { font-size: 0.667rem; }
small   { font-size: 0.444rem; }

/* Specific page styles */
.pkp_structure_main h3 {
  font-family: inherit;
  font-size: 1.143rem;
  line-height: 1.43rem;
}

.pkp_site_name {
  position: absolute;
  left: 2.857rem;
  right: 0;
  margin: 0;
  padding-left: 0.714rem;
  text-align: end;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(0, 0, 0, 0.84);
  font-family: "Noto Sans", -apple-system, BlinkMacSystemFont,
               "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell",
               "Helvetica Neue", sans-serif;
  font-size: 0.93rem;
}

/* Arabic content */
.arabic-content,
.arabic-text {
  font-family: 'DroidArabicKufiArabic', "Noto Sans", sans-serif;
  direction: rtl;
}

/* Menu labels */
.menu-label {
  font-family: 'DroidArabicKufiMenu', "Noto Sans", sans-serif;
}
