/*
Theme Name: Qabsa
*/

/* =========================
   Fonts
========================= */
@font-face { font-family: label; src: url(Somar-Bold.otf); font-display: swap; }
@font-face { font-family: logo; src: url(Somar-Bold.otf); font-display: swap; }
@font-face { font-family: thetitle; src: url(Alyamama-Regular.ttf); font-display: swap; }
@font-face { font-family: caption; src: url(Alyamama-Light.ttf); font-display: swap; }
@font-face { font-family: contentfont; src: url(Alyamama-Light.ttf); font-display: swap; }
@font-face { font-family: fact; src: url(Somar-Light.otf); font-display: swap; }
@font-face { font-family: factbold; src: url(Somar-Bold.otf); font-display: swap; }

/* =========================
   Base
========================= */
* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  direction: rtl;
}

body {
  margin: 0;
  min-height: 100%;
  background: #F4F4F4;
  color: #111;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
}

.wrapper,
.header,
.container {
  overflow-x: hidden;
}

.wrapper {
  width: 100%;
  margin: 0 auto;
  background: #FFF;
}

/* =========================
   Header
========================= */
.header {
  position: relative;
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFF;
  border-bottom: 1px solid #EEE;
  direction: rtl;
  overflow: visible;
}

/* Logo centered */
.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: logo, Arial, sans-serif;
  color: #000;
  z-index: 5;
}

.logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #000;
  font-size: 34px;
  font-weight: bold;
  line-height: 1;
  text-decoration: none;
}

.logo img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

/* Menu icon right */
.menu-toggle {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  cursor: pointer;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.menu-toggle svg {
  display: block;
  fill: currentColor;
}

/* Search icon left */
.search-icon-link {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.search-icon-link svg {
  display: block;
  fill: currentColor;
}

/* Old tools wrapper - kept safe if used elsewhere */
.tools {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.tools a {
  display: flex;
  align-items: center;
  justify-content: center;
}


.menu {
    background-color: #FFF;
    text-align: right;
    font-family: 'contentfont';
    font-size: 13px;
    padding: 10px;
	border-bottom:1px solid #EEE; 
	color:#000;
}

.menu a {
    text-decoration: none;
    color: #000;
}

.menu a:hover {
    text-decoration: underline;
    color: #404640;
}

/* Like / share tools */
.tool {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  direction: rtl;
  border-top: 1px solid #e5e5e5;
  margin-top: 12px;
  padding-top: 8px;
  padding-bottom: 0;
  margin-bottom: 0;
}

.seplist {
  border-bottom: 1px #EEE solid;
}

.post-like-box {
  text-align: right;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-size: 12px;
  font-family: courier new;
}

.article-share-box {
  text-align: left;
  direction: ltr;
  position: relative;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.article-share-box button {
  margin: 0;
  padding: 0;
  line-height: 1;
}

.post-like-box .pld-like-dislike-wrap,
.post-like-box .pld-common-wrap,
.post-like-box .pld-like-wrap,
.post-like-box .pld-dislike-wrap {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Search form - old style, kept only if you use it somewhere else */
.header-search-form {
  width: 100%;
  max-width: 280px;
  height: 30px;
  padding: 0 10px;
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFF;
  border: 2px solid #FFC90E;
  border-radius: 999px;
}

.header-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: fact, Arial, sans-serif;
  font-size: 14px;
  color: #555;
  text-align: right;
  direction: rtl;
}

.header-search-input::placeholder {
  color: #9A9A9A;
}

.header-search-btn {
  flex: 0 0 auto;
  margin: 0 8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8A8A8A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-search-btn svg {
  display: block;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: -250px;
  z-index: 1001;
  width: 250px;
  height: 100%;
  background: #FFF;
  color: #000;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
  text-align: right;
  font-family: factbold, Arial, sans-serif;
  font-size: 18px;
  transition: right 0.3s ease;
}

.sidebar.open {
  right: 0;
}

.sidebar a {
  display: block;
  padding: 15px;
  color: #000;
  border-bottom: 1px solid #EEE;
}

.sidebar a:hover {
  background: #444;
  color: #FFF;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
}

.overlay.active {
  display: block;
}

/* =========================
   Layout
========================= */
.container {
  margin: 0 auto;
  padding: 20px;
  background: #FFF;
}

/* =========================
   Titles / Labels
========================= */
h2 {
  margin: 20px 0 30px;
  text-align: right;
  line-height: 0.1em;
  font-family: thetitle, Arial, sans-serif;
  font-weight: normal;
}

h2 span {
  padding-left: 10px;
  background: #FFF;
  font-size: 16px;
}

.label {
  padding: 0 0 5px;
  color: #E87423;
  font-family: label, Arial, sans-serif;
  font-size: 16px;
  border-bottom: 1px #E87423 solid;
}

.label a {
  color: #E87423;
}

em{
	font-style: normal;

	font-weight: bold;

}
/* =========================
   Articles
========================= */
.articles-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.article-card {
  display: block;
  width: 100%;
  padding: 20px 0 22px;
  background: #FFF;
  border-bottom: 1px solid #EEE;
  border-radius: 0;
  font-family: fact, Arial, sans-serif;
}

.article-card:last-child,
.articles-grid .article-card:last-child {
  margin-bottom: 0;
  border-bottom: 0 !important;
}

.article-card:last-child::after,
.articles-grid .article-card:last-child::after {
  display: none !important;
}

.article-icon {
  flex: 1;
  margin-bottom: 10px;
  color: #111;
  font-family: factbold, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.article-text {
  color: #111;
  font-size: 13px;
  line-height: 1.9;
  text-align: justify;
  word-break: break-word;
  overflow-wrap: break-word;
}

.article-text a {
  font-size: 13px !important;
}

.article-text span {
  color: #FF7A00;
  font-weight: bold;
}

.article-card.is-clickable:hover .article-text {
  color: #000;
}

/* Single title + copy icon */
.article-head {
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  direction: rtl;
}

.article-head .article-icon {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: right;
  color: #111;
  font-family: factbold, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 700;
  word-break: break-word;
  overflow-wrap: break-word;
}

.article-head .article-share-box {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none;
}

.copy-link-btn,
.share-toggle.copy-link-btn {
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.copy-link-btn svg,
.share-toggle.copy-link-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #111;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  transition: stroke 0.2s ease;
}

.copy-link-btn:hover {
  background: #F3F3F3;
}

.copy-link-btn.copied {
  background: #E6F4EA;
}

.copy-link-btn.copied svg {
  stroke: #2E7D32;
}

.copy-msg {
  position: absolute;
  top: 50%;
  left: 42px;
  transform: translateY(-50%);
  z-index: 5;
  padding: 7px 10px;
  background: #111;
  color: #FFF;
  border-radius: 14px;
  font-family: fact, Arial, sans-serif;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
}

.article-share-box.show-copy-msg .copy-msg {
  opacity: 1;
  visibility: visible;
}

/* Article list */
ul.article-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.article-list li {
  position: relative;
  margin: 0;
  padding-right: 18px;
  direction: rtl;
}

ul.article-list li::before {
  content: "○";
  position: absolute;
  top: 0;
  right: 0;
}

/* =========================
   YARPP
========================= */
.yarpp .article-text {
  font-size: 14px;
}

.yarpp .article-text a {
  font-size: 13px !important;
}

/* =========================
   Bottom Navigation
========================= */
.bottom-nav {
  clear: both;
  overflow: hidden;
  margin-top: 25px;
  font-family: fact, Arial, sans-serif;
  font-size: 14px;
}

.bottom-nav-left {
  float: left;
}

.bottom-nav-right {
  float: right;
}

.bottom-nav a {
  display: inline-block;
  padding: 8px 14px;
  color: #000;
  background: #FFF;
  border: 1px solid #DDD;
  border-radius: 999px;
  text-decoration: none;
  transition: 0.2s ease;
}

.bottom-nav a:hover {
  background: #F5F5F5;
  border-color: #BBB;
}

/* =========================
   Footer
========================= */
.footer {
  margin: 0 auto;
  padding: 10px 15px;
  display: flex;
  background: #F4F4F4;
  border-top: 1px solid #EEE;
  border-bottom: 1px solid #EEE;
  font-family: fact, Arial, sans-serif;
}

/* =========================
   Responsive
========================= */
@media screen and (min-width: 768px) {
  .wrapper {
    width: 600px;
  }
}

@media screen and (max-width: 600px) {
  .header {
    height: 64px;
  }

  .logo a {
    font-size: 29px;
    gap: 6px;
  }

  .logo img {
    width: 26px;
    height: 26px;
  }

  .menu-toggle {
    right: 18px;
  }

  .search-icon-link {
    left: 18px;
	  color:#000;
  }

  .menu-toggle svg,
  .search-icon-link svg {
    width: 24px;
    height: 24px;
	  	  color:#000;
  }

  .header-search-form {
    max-width: 180px;
    height: 28px;
  }

  .header-search-input {
    font-size: 13px;
  }

  .header-search-btn svg {
    width: 20px;
    height: 20px;
  }

  .article-icon {
    font-size: 16px;
  }

  .article-head {
    gap: 8px;
    margin-bottom: 10px;
  }

  .article-head .article-icon {
    font-size: 14px;
    line-height: 1.55;
  }

  .copy-link-btn,
  .share-toggle.copy-link-btn {
    width: 32px;
    height: 32px;
  }

  .copy-msg {
    left: 38px;
  }

  .article-text,
  .article-text a,
  .yarpp .article-text,
  .yarpp .article-text a {
    font-size: 13px !important;
  }
}

@media screen and (max-width: 480px) {
  .wrapper {
    width: 100%;
  }
}

.section-title {
    color: #E87423;
    font-family: label;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    direction: rtl;
}

.section-title span {
    width: 110px;
    white-space: nowrap;
    text-align: right;
}

.section-title div {
    height: 1px;
    background: #f26b21;
    flex: 1;
}

.source{background:#F2F6FB; padding:5px 20px ; margin-top: 10px; text-align:right;  font-family:fact; font-size:12px;}

.tool {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.article-source-box {
    text-align: right;
	font-size: 12px;
}

.article-actions-box {
    display: flex;
    align-items: center;
    gap: 10px;
    direction: ltr;
}

.article-share-box,
.post-like-box {
    display: flex;
    align-items: center;
}

@media (max-width: 600px) {
    .tool {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .article-source-box {
        text-align: right;
    }

    .article-actions-box {
        justify-content: flex-start;
    }
}

.qabsa-random-wrap {
    direction: rtl;
    text-align: right;

}

.qabsa-random-section {
	 margin-bottom:10px;
    margin-top:10px;
}

.qabsa-random-header {
    display: block;
    margin-bottom: 0px;
background: #2F3A42;
color: #FFFFFF;
	border-radius: 5px;
}

.qabsa-random-title {
    display: block;
    padding: 10px;
    color: #FFF;
	font-family: factbold;
    font-size: 16x;
    font-weight: 700;
    text-decoration: none;
}

.qabsa-random-line {
    display: block;
    width: 100%;
    height: 1px;
    background-color: #d6d6d6;
    clear: both;
}

.qabsa-random-end {
    display: none;
}


/* إزالة النقطة بجانب العنوان */
.qabsa-random-title:before {
    content: none !important;
    display: none !important;
}



.qabsa-random-end {
    width: 7px;
    height: 7px;
    border-radius: 50%;
  //  background: rgba(232, 116, 35, 0.45);
    flex: 0 0 auto;
}

.qabsa-random-list {
    display: block;
}

.qabsa-random-card {
 
    background: #FFF;
    padding: 10px;
    margin-bottom: 0px;
    cursor: pointer;
    border-bottom: 1px solid #CCC;
    font-family: fact;
    font-size: 14px;
}

.qabsa-random-card a {
    color: #222;
    text-decoration: none;
    line-height: 1.9;
    display: block;
    transition: color 0.18s ease;
}

.qabsa-random-card a:hover {
    color: #E87423;
}

.qabsa-random-empty {
    padding: 20px;
    direction: rtl;
    text-align: right;
    background: #F8F8FF;
    border-radius: 8px;
    color: #777;
    border: 1px solid rgba(232, 116, 35, 0.08);
}

@media (max-width: 600px) {
    .qabsa-random-section {
        margin-bottom: 28px;
    }

    .qabsa-random-header {
        gap: 9px;
        margin-bottom: 13px;
		
    }

    .qabsa-random-title {
        font-size: 12px;
        padding: 7px 11px 8px;
    }

    .qabsa-random-title:before {
        content: none !important;
        display: none !important;
    }

    .qabsa-random-end {
        display: none;
    }

    .qabsa-random-card {
		padding: 3px 0px 10px;
        margin-bottom: 12px;
    }

    .qabsa-random-card a {
        font-size: 12px;
        line-height: 1.85;
    }
}
/* =========================
   Qabsa Random Cards / Category 110 Archive
   نقل من القوالب إلى ملف الستايل
========================= */
.qabsa-random-wrap {
    direction: rtl;
    text-align: right;
}

.qabsa-cat-header-dark {
    background: #2f3b43;
    color: #ffffff;
    border-radius: 5px;
    padding: 10px 10px;
    margin: 20px 0 14px 0;
    text-align: right;
    font-family: label, Arial, sans-serif;
    font-size: 20px;
    line-height: 1.2;
    font-weight: normal;
}

.qabsa-random-section {
    margin-bottom: 10px;
    margin-top: 10px;
	
}

.qabsa-random-header {
    display: block;
    margin-bottom: 10px;
    background: #2F3A42;
    color: #FFFFFF;
    border-radius: 5px;
	
}

.qabsa-random-title {
    display: block;

    color: #FFF;
    font-family: factbold, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.qabsa-random-title:before {
    content: none !important;
    display: none !important;
}

.qabsa-random-line {
    display: block;
    width: 100%;
    height: 1px;
    background-color: #d6d6d6;
    clear: both;
}

.qabsa-random-end {
    display: none;
}

.qabsa-random-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qabsa-random-card {
    cursor: pointer;
    border-radius: 6px;
    background: #F8F8FF;
    padding: 10px;
    margin-bottom: 0;
    border-bottom: 0;
    font-family: fact, Arial, sans-serif;
    font-size: 14px;
    transition: 0.2s ease;
}

.qabsa-random-card:hover {
    background: #f1f1fb;
}

.qabsa-random-card-inner {
    display: flex;
    direction: rtl;
    gap: 12px;
    align-items: flex-start;
}

.qabsa-random-thumb {
    width: 95px;
    height: 75px;
    flex: 0 0 95px;
    border-radius: 5px;
    overflow: hidden;
    background: #eee;
}

.qabsa-random-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qabsa-random-content {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.qabsa-random-post-title,
.qabsa-random-card .qabsa-random-post-title {
    display: block;
    color: #222;
    font-family: factbold, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 4px;
}

.qabsa-random-excerpt {
    color: #555;
    font-family: fact, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.8;
}

.qabsa-random-empty {
    padding: 20px;
    direction: rtl;
    text-align: right;
    background: #F8F8FF;
    border-radius: 8px;
    color: #777;
    border: 1px solid rgba(232, 116, 35, 0.08);
    font-family: fact, Arial, sans-serif;
    font-size: 13px;
}

.qabsa-bottom-border {
    border-bottom: 1px #EEE solid;
    margin-top: 18px;
}

@media (max-width: 600px) {
    .qabsa-cat-header-dark {
        font-size: 19px;
        padding: 10px 10px;
    }

    .qabsa-random-section {
        margin-bottom: 14px;
    }

    .qabsa-random-header {
        margin-bottom: 13px;
    }

    .qabsa-random-title {
        font-size: 12px;
        padding: 7px 11px 8px;
    }

    .qabsa-random-thumb {
        width: 85px;
        height: 68px;
        flex-basis: 85px;
    }

    .qabsa-random-post-title,
    .qabsa-random-card .qabsa-random-post-title {
        font-size: 15px;
    }

    .qabsa-random-excerpt {
        font-size: 13px;
    }
}


.qabsa-facts-tags-section,
    .qabsa-facts-tags-section * {
        box-sizing: border-box;
    }

    .qabsa-facts-tags-box {
        padding: 26px 24px;
        background: #F8F8FF;
        border: 1px solid #e1ebf7;
        border-radius: 5px;
		margin-bottom:20px;
    }

    .qabsa-facts-tags-list {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 12px 14px;
    }

    .qabsa-facts-tag-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        max-width: 100%;
        min-height: 44px;
        padding: 8px 18px;
        color: #161616;
        font-family: factbold, Arial, sans-serif;
        font-size: 15px;
        font-weight: normal;
        line-height: 1.5;
        text-align: center;
        text-decoration: none !important;
        background:
            linear-gradient(
                110deg,
                #f2efff 0%,
                #edf8ff 100%
            );
        border: 1px solid #d6deed;
        border-radius: 999px;
        box-shadow:
            inset 0 1px 0
            rgba(255, 255, 255, 0.75);
        transition:
            color 0.18s ease,
            background 0.18s ease,
            border-color 0.18s ease,
            box-shadow 0.18s ease,
            transform 0.18s ease;
    }

    .qabsa-facts-tag-pill:hover,
    .qabsa-facts-tag-pill:focus-visible {
        color: #000000;
        text-decoration: none;
        background:
            linear-gradient(
                110deg,
                #ebe5ff 0%,
                #e3f3ff 100%
            );
        border-color: #bfcde1;
        box-shadow:
            0 4px 12px
            rgba(42, 65, 91, 0.10);
        transform: translateY(-2px);
        outline: none;
    }

    .qabsa-facts-tags-empty {
        padding: 25px 18px;
        color: #666666;
        font-family: factbold, Arial, sans-serif;
        font-size: 14px;
        text-align: center;
        background: #edf5ff;
        border: 1px solid #e1ebf7;
        border-radius: 0 0 8px 8px;
    }
