/* 
 Theme Name:   Akhbar Taiz
 Theme URI:    
 Description:  
 Author:       Ayman
 Author URI:   
 Template:     covernews
 Version:      1.0

--------------------------------------------*/

@font-face {
  font-family: "Thmanyahsans";
  src: url("assets/fonts/thmanyahsans/thmanyahsans-Regular.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Thmanyahsans";
  src: url("assets/fonts/thmanyahsans/thmanyahsans-Medium.woff2")
    format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Thmanyahsans";
  src: url("assets/fonts/thmanyahsans/thmanyahsans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Thmanyahsans";
  src: url("assets/fonts/thmanyahsans/thmanyahsans-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

body,
button,
input,
select,
textarea,
.site,
.entry-content,
.entry-header,
.widget,
.main-navigation,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Thmanyahsans", sans-serif !important;
}

/* Top Posts and Pages widget styling */
#secondary .widget_block .tptn_posts_block,
.tptn-sidebar.tptn_posts_block,
.tptn-sidebar .tptn_posts_block {
  background: #ffffff;
  border: 1px solid #e9e9e9;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  padding: 16px;
}

#secondary .widget_block .tptn_posts_block > h3,
.tptn-sidebar.tptn_posts_block > h3,
.tptn-sidebar .tptn_posts_block > h3 {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #c4121a;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  text-align: right;
}

#secondary .widget_block .tptn_posts_block ul,
.tptn-sidebar.tptn_posts_block ul,
.tptn-sidebar .tptn_posts_block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#secondary .widget_block .tptn_posts_block li,
.tptn-sidebar.tptn_posts_block li,
.tptn-sidebar .tptn_posts_block li {
  display: flex !important;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 6px;
  margin: 0;
  border-bottom: 1px solid #efefef;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

#secondary .widget_block .tptn_posts_block li:hover,
.tptn-sidebar.tptn_posts_block li:hover,
.tptn-sidebar .tptn_posts_block li:hover {
  background: #fafafa;
}

#secondary .widget_block .tptn_posts_block li:last-child,
.tptn-sidebar.tptn_posts_block li:last-child,
.tptn-sidebar .tptn_posts_block li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

#secondary .widget_block .tptn_posts_block .tptn_link,
.tptn-sidebar .tptn_link {
  text-decoration: none;
}

#secondary .widget_block .tptn_posts_block li > .tptn_link:first-child,
.tptn-sidebar .tptn_posts_block li > .tptn_link:first-child {
  flex: 0 0 98px;
  max-width: 98px;
  display: block;
  float: none !important;
  margin: 0 !important;
}

#secondary .widget_block .tptn_posts_block .tptn_featured,
.tptn-sidebar .tptn_featured {
  width: 98px;
  height: 72px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  float: none !important;
  margin: 0 !important;
}

#secondary .widget_block .tptn_posts_block .tptn_after_thumb,
.tptn-sidebar .tptn_after_thumb {
  flex: 1 1 auto;
  width: auto !important;
  max-width: none;
  min-width: 0;
  display: block;
  margin: 0;
  float: none !important;
}

#secondary .widget_block .tptn_posts_block .tptn_after_thumb .tptn_link,
.tptn-sidebar .tptn_after_thumb .tptn_link {
  display: block;
  margin: 0;
}

#secondary .widget_block .tptn_posts_block .tptn_title,
.tptn-sidebar .tptn_title {
  display: block;
  color: #1a1a1a;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  text-align: right;
  overflow: visible;
  white-space: normal;
  word-break: break-word;
}

#secondary .widget_block .tptn_posts_block .tptn_link:hover .tptn_title,
.tptn-sidebar .tptn_link:hover .tptn_title {
  color: #c4121a;
}

#secondary .widget_block .tptn_posts_block .tptn_clear,
.tptn-sidebar .tptn_clear {
  display: none;
}

@media (max-width: 600px) {
  #secondary .widget_block .tptn_posts_block > h3,
  .tptn-sidebar.tptn_posts_block > h3,
  .tptn-sidebar .tptn_posts_block > h3 {
    font-size: 20px;
  }

  #secondary .widget_block .tptn_posts_block li > .tptn_link:first-child,
  .tptn-sidebar .tptn_posts_block li > .tptn_link:first-child {
    flex-basis: 88px;
    max-width: 88px;
  }

  #secondary .widget_block .tptn_posts_block .tptn_featured,
  .tptn-sidebar .tptn_featured {
    width: 88px;
    height: 64px;
  }

  #secondary .widget_block .tptn_posts_block .tptn_title,
  .tptn-sidebar .tptn_title {
    font-size: 14px;
  }
}
