/*
Theme Name: Uncode Child
Description: Child theme for Uncode theme
Author: Undsgn™
Author URI: http://www.undsgn.com
Template: uncode
Version: 1.0.0
Text Domain: uncode
*/
/* IRANYekan (fanum) */

@font-face {
  font-family: "IRANYekan";
  src: url("fonts/iranyekanwebthinfanum.woff2") format("woff2"),
       url("fonts/iranyekanwebthinfanum.woff") format("woff");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekan";
  src: url("fonts/iranyekanweblightfanum.woff2") format("woff2"),
       url("fonts/iranyekanweblightfanum.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekan";
  src: url("fonts/iranyekanwebregularfanum.woff2") format("woff2"),
       url("fonts/iranyekanwebregularfanum.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekan";
  src: url("fonts/iranyekanwebmediumfanum.woff2") format("woff2"),
       url("fonts/iranyekanwebmediumfanum.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekan";
  src: url("fonts/iranyekanwebboldfanum.woff2") format("woff2"),
       url("fonts/iranyekanwebboldfanum.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekan";
  src: url("fonts/iranyekanwebextraboldfanum.woff2") format("woff2"),
       url("fonts/iranyekanwebextraboldfanum.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekan";
  src: url("fonts/iranyekanwebblackfanum.woff2") format("woff2"),
       url("fonts/iranyekanwebblackfanum.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekan";
  src: url("fonts/iranyekanwebextrablackfanum.woff2") format("woff2"),
       url("fonts/iranyekanwebextrablackfanum.woff") format("woff");
  font-weight: 950;
  font-style: normal;
  font-display: swap;
}

/* New correct class */
.iranyekan,
.iranyekan * { font-family: "IRANYekan" !important; }

/* Backward compatibility: old class now points to IRANYekan */
.iransans,
.iransans * { font-family: "IRANYekan" !important; }


/* RAVI VF (Variable Font) */

@font-face {
  font-family: "Ravi VF";
  src: url("fonts/Ravi-VF.woff2") format("woff2"),
       url("fonts/Ravi-VF.woff") format("woff");
  font-weight: 1 950;
  font-style: normal;
  font-display: swap;
}


/*global location*/
/*
@font-face {
  font-family: "Ravi VF";
  src: url("/wp-content/uploads/uncode-fonts/Ravi-VF.woff2") format("woff2"),
       url("/wp-content/uploads/uncode-fonts/Ravi-VF.woff") format("woff"),
	   url("/wp-content/uploads/uncode-fonts/Ravi-VF.ttf") format("truetype");
  font-weight: 1 950;   
  font-style: normal;
  font-display: swap;
}
*/

/*font faces for ravi vf*/

.ravivf-thin      { font-family: "Ravi VF", sans-serif; font-weight: 1; }
.ravivf-light     { font-family: "Ravi VF", sans-serif; font-weight: 150; }
.ravivf-regular   { font-family: "Ravi VF", sans-serif; font-weight: 325; }
.ravivf-medium    { font-family: "Ravi VF", sans-serif; font-weight: 400; }
.ravivf-semibold  { font-family: "Ravi VF", sans-serif; font-weight: 500; }
.ravivf-bold      { font-family: "Ravi VF", sans-serif; font-weight: 625; }
.ravivf-black     { font-family: "Ravi VF", sans-serif; font-weight: 775; }
.ravivf-extrablack{ font-family: "Ravi VF", sans-serif; font-weight: 950; }


/* classes for forcing ravi vf font*/

.ravivf,
.ravivf * {
    font-family: "Ravi VF" !important;
}

.ravivf-text,
.ravivf-text * {
  font-family: "Ravi VF", sans-serif;
}

/* Try to avoid overriding icon-font selectors */
.ravivf-text i,
.ravivf-text [class*="fa-"],
.ravivf-text .tmb-social i,
.ravivf-text .tmb-social a,
.ravivf-text svg {
  font-family: initial;
}


/*styles for the sidebar line*/
/* Sidebar title separator */
.sidebar-title-sep{
  margin: 10px 0 18px;
  border: 0;
  border-bottom: 1px solid rgba(0,0,0,.15); /* change if your sidebar is light */
}

/*changing the color of infobox in blog header to c4ccdd*/
.tr-post-infobox,
.tr-post-infobox a{
  color: #c4ccdd !important;
}


/* Hide specific social share icons on single posts */
.share-button.share-inline .social.top li.social-bluesky,
.share-button.share-inline .social.top li.social-xing {
  display: none !important;
}

/* Post content line-height (Classic Editor + general) */
.single-post .post-content,
.single-post .post-content p,
.single-post .post-content li {
  line-height: 1.9;
}

/* Optional: headings a bit tighter */
.single-post .post-content h1,
.single-post .post-content h2,
.single-post .post-content h3 {
  line-height: 1.35;
}



/*fixing the location of author text in author profile*/
/* Author profile: stable layout on desktop + mobile */
.author-profile.el-author-profile{
  display: flex !important;
  align-items: center !important;     /* fixes the “desktop top alignment” */
  justify-content: flex-end !important;
  gap: 12px;
  direction: ltr !important;          /* keep flex ordering predictable */
}

/* Text block: RTL text, right aligned */
.author-profile.el-author-profile .author-profile-content{
  display: flex !important;
  direction: rtl !important;
  text-align: right !important;
  align-items: center !important;     /* fixes the “desktop top alignment” */

}

/* Avatar block: keep its size, prevent weird stretching */
.author-profile.el-author-profile .uncode-avatar-wrapper{
  flex: 0 0 auto !important;
}

/* If Uncode forces stacking on mobile, override it back to flex */
@media (max-width: 959px){
  .author-profile.el-author-profile{
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
  }
}
@media (min-width: 960px){
  .author-profile.author-profile-box-right.has-thumb .author-profile-content{
    padding-inline-end: 3px !important;
    padding-right: 0 !important; /* optional, to neutralize old rule */
  }
}


