/* --- GENERAL --- */

html, body {
  height: 100%;
  margin: 0;
}

body {
  background-image: url('/files/blog/background/texture.png');
  line-height: 1.8;
  font-family: Darvish;
  font-variation-settings: "wght" 550;
  font-size: 14px;
  color: #271a0c;
}

a {
  text-decoration: none!important;
}

.container {
  margin: 0 auto;
  max-width: 800px;
  height: 100%;
}

.flex-container {
  display: flex;
  flex-flow: column;
  height: 100%;
}

.header-row {
  flex: 0 1 auto;
}

.content-row {
  flex: 1 1 auto;
}

.footer-row {
  flex: 0 1 auto;
}

.header {
  margin-top: 20px;
}

.content {
  margin-top: 50px;
}

.footer {
  margin-top: 50px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 12px;
  color: #666666;
}

.profile-image {
  display: block;
  width: 120px;
  margin: 0 auto 10px auto;
  border: solid white 4px;
  border-radius: 50%;
}

.blog-name {
  margin-bottom: 15px;
  text-align: center;
  line-height: 1;
  font-family: Darvish-Expanded;
  font-size: 18px;
  font-variation-settings: "wght" 600;
}

.menu {
  direction: rtl;
  text-align: center;
  line-height: 1;
  font-size: 12px;
  font-variation-settings: "wght" 600;
}

.menu a {
  color: #271a0c;
}

.menu a:hover {
  color: #0033cc;
}

.footer .category-list {
  display: inline;
}

.footer .category-list a {
  color: #666666;
}

.footer .category-list a:hover {
  color: #0033cc;
}

.footer .site-url {
  margin-top: 10px;
}

@media screen and (max-width: 799px) {
  .header {
    margin-right: 20px;
    margin-left: 20px;
  }

  .content {
    margin-right: 20px;
    margin-left: 20px;
  }

  .footer {
    margin-right: 20px;
    margin-left: 20px;
  }

  .footer .category-list {
    display: block;
  }
}

@media screen and (min-width: 800px) {
  .footer .category-list .break-line-category:after {
    content: ' | ';
  }
}



/* --- POST INDEX --- */

.post-index:not(:last-of-type) {
  margin-bottom: 20px;
}

.flex-post-index {
  display: flex;
  flex-flow: row wrap;
  height: 100%;
}

.post-index .banner-block {
  width: 20%;
}

.post-index .text-block {
  width: 80%;
}

.post-index .banner-block .container {
  height: 100%;
}

.post-index .banner-block .container .banner {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: solid 5px #f4f4f0;
  /*border-radius: 5%;*/
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
  box-sizing: border-box;
}

.post-index .text-block h1 {
  margin: 2px 0 5px 0;
  padding: 0;
  line-height: 2;
  font-family: Darvish-Condensed;
  font-size: 14px;
  font-variation-settings: "wght" 950;
}

.post-index .text-block h1 a, .post-index .text-block h1 a:visited {
  color: #271a0c;
}

.post-index .text-block h1 a:hover {
  color: #0033cc;
}

.post-index .text-block p {
  margin: 0!important;
  padding: 0!important;
}

.post-index .text-block p a, .post-index .text-block p a:visited {
  color: #271a0c;
}

.post-index .text-block p a:hover {
  color: #0033cc;
}

.post-index .description {
  margin-bottom: 5px;
  font-size: 12px;
  color: #666666;
}

.post-index .description a.category {
  color: #666666;
}

.post-index .description a.category:hover {
  color: #0033cc;
}

.navigation {
  margin-top: 20px;
}

.navigation ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  line-height: 0;
}

.navigation ul li a {
  display: block;
  padding: 15px;
  color: #666666;
}

.navigation ul li a:visited {
  color: #666666;
}

.navigation ul li a:hover {
  color: #0033cc;
}

.navigation ul li span {
  display: block;
  padding: 15px;
  color: #666666;
}

@media screen and (max-width: 799px) {
  .post-index:not(:last-of-type) {
    margin-bottom: 50px!important;
  }

  .post-index .banner-block {
    width: 100%;
  }

  .post-index .banner-block .container {
    padding: 0!important;
  }

  .post-index .banner-block .container .banner {
    border: solid 15px #f4f4f0;
  }

  .post-index .text-block {
    width: 100%;
  }

  .post-index .text-block h1 {
    margin: 15px 0 10px 0!important;
    text-align: center;
  }

  .post-index .text-block .description {
    text-align: center;
    margin-bottom: 10px;
  }
}



/* --- POST VIEW --- */

.post-view .banner {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: solid 15px #f4f4f0;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
  box-sizing: border-box;
}

.post-view h1 {
  margin: 25px 0 10px 0;
  padding: 0;
  text-align: center;
  line-height: 2;
  font-family: Darvish-Condensed;
  font-size: 16px;
  font-variation-settings: "wght" 950;
}

.post-view h1 a, .post-view h1 a:visited {
  color: #271a0c;
}

.post-view h1 a:hover {
  color: #0033cc;
}

.post-view .description {
  margin-bottom: 20px;
  text-align: center;
  font-size: 12px;
  color: #666666;
}

.post-view .description a.category {
  color: #666666;
}

.post-view .description a.category:hover {
  color: #0033cc;
}

@media screen and (max-width: 799px) {
  .post-view h1 {
    margin-top: 15px!important;
    font-size: 14px;
  }

  .post-view .description {
    margin-bottom: 10px!important;
  }
}



/* --- FULL CONTENT --- */

.full-content .ar-block, .full-content .fa-block, .full-content .ar-text, .full-content .fa-text {
  direction: rtl;
}

.full-content .ar-block, .full-content .fa-block {
  text-align: justify;
}

.full-content .fa-block {
  font-feature-settings: "ss07" on;
}

.full-content .en-block, .full-content .en-text {
  direction: ltr;
  font-size: 15px;
}

.full-content .en-block {
  text-align: left;
}

.full-content .ar-block strong, .full-content .fa-block strong {
  font-variation-settings: "wght" 800;
  font-size: 13px;
}

.full-content .en-block strong {
  font-variation-settings: "wght" 800;
  font-size: 14px;
}

.full-content q:before {
  content: "«";
}

.full-content q:after {
  content: "»";
}

.full-content abbr {
  text-decoration: none !important;
}

.full-content a, .full-content a:visited {
  color: #0033cc;
}

.full-content a:hover {
  color: #99b3ff;
}

.full-content mark {
  background-color: #fcf8e3;
  padding: 0;
}

.full-content kbd {
  display: inline-block;
  padding: 2px 5px 0 5px;
  font-family: Darvish;
  font-size: 87.5%;
  line-height: 15px;
  color: #fff;
  background-color: #555;
  border-radius: 15%;
}

.full-content h2 {
  margin: 30px 0 15px 0;
  padding: 0;
  line-height: 2;
  font-family: Darvish-Condensed;
  font-variation-settings: "wght" 900;
}

.full-content .fa-block h2 {
  font-feature-settings: "ss03" on;
}

.full-content .ar-block h2, .full-content .fa-block h2 {
  font-size: 14px;
}

.full-content .en-block h2 {
  font-size: 15px;
}

.full-content p {
  margin: 0 0 15px 0;
  padding: 0;
}

.full-content div:last-of-type p:last-of-type {
  margin-bottom: 0!important;
}

.full-content .align-left {
  text-align: left;
}

.full-content .align-center {
  text-align: center;
}

.full-content .align-right {
  text-align: right;
}

.full-content .align-justify {
  text-align: justify;
}

.full-content ul {
  padding-inline-start: 15px;
  list-style-position: outside;
  list-style-type: "•\002009";
}

.full-content ul li {
    margin-bottom: 8px;
}

.full-content ul > li > ul {
  list-style-type: "◦\002009";
}

.full-content ul > li > ul > li > ul {
  list-style-type: "∗\002009";
}

.full-content ul li::marker {
  padding: 0;
  margin: 0;
  font-size: 15px;
}

.full-content ol {
  padding-inline-start: 25px;
  list-style-position: outside;
}

.full-content img {
  display: block;
  width: 50%;
  height: auto;
  margin: 0 auto 20px auto;
  padding: 0;
  box-sizing: border-box;
  border: solid 5px #f4f4f0;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
}

.full-content .img-cap img {
  margin-bottom: 10px!important;
}

.full-content .img-cap .caption {
  display: inline-block;
  width: 100%;
  text-align: center;
  font-size: 12px;
}

.full-content .emb-video {
  width: 50%;
  height: auto;
  margin: 0 auto 16px auto;
}

.full-content .tbl-res {
  display: block;
  width: 100%;
  overflow-x: auto;
}

.full-content table {
  width: 100%;
  margin-bottom: 15px;
  border: 1px solid rgba(0, 0, 0, 0.1)!important;
  border-collapse: collapse;
  font-family: Darvish-Condensed;
}

.full-content .fa-block table {
  font-feature-settings: "ss03" on;
}

.full-content table thead {
  background-color: rgba(0, 0, 0, 0.1);
}

.full-content table > thead > tr > th {
  padding: 5px;
  white-space: nowrap;
}

.full-content table tr th.min-width, .full-content table tr td.min-width {
  width: 1%;
}

.full-content table tr th.max-width, .full-content table tr td.max-width {
  width: auto;
}

.full-content table tbody tr {
  border-bottom: solid 1px rgba(0, 0, 0, 0.1)!important;
}

.full-content table tbody tr:nth-of-type(even) {
  background-color: rgba(0, 0, 0, 0.04);
}

.full-content table > tbody > tr > td {
  padding: 5px;
  border: 0!important;
}

.full-content blockquote {
  width: 50%;
  margin: 0 auto 20px auto;
  padding: 10px 15px;
  background-color: rgba(0, 0, 0, 0.05);
  color: #444;
  box-sizing: border-box;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
}

.full-content blockquote p a {
  color: #444;
}

.full-content blockquote p a:hover {
  color: #0033cc;
}

.full-content footer {
  font-size: 12px;
  color: #666;
  font-style: italic;
}

.full-content .ar-block blockquote footer, .full-content .fa-block blockquote footer {
  text-align: left;
}

.full-content .en-block blockquote footer {
  text-align: right;
}

.full-content blockquote footer:before {
  content: " — ";
}

.full-content blockquote footer a {
  color: #666;
}

.full-content blockquote footer a:hover {
  color: #0033cc;
}

.full-content hr {
  margin-top: 15px;
  margin-bottom: 15px;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.full-content pre {
  max-height: 300px;
  overflow-y: scroll;
  padding: 5px;
  direction: ltr;
  font-size: 14px;
  background-color: #555;
  color: #FFF;
}

@media screen and (max-width: 799px) {
  .full-content img, .full-content blockquote {
    width: 80%!important;
  }
  
  .full-content .emb-video {
    width: 100%!important;
  }
}