/*
	Theme Name:   Jannah Child
	Theme URI:    http://jannah.tielabs.com/
	Description:  Jannh Child Theme
	Author:       TieLabs
	Author URI:   https://tielabs.com
	Template:     jannah
	Version:      1.0.2
	License:      license purchased
	License URI:  http://themeforest.net/licenses/regular_extended
	Tags:         Tags: two-columns, buddypress, left-sidebar, right-sidebar, custom-menu, editor-style, featured-images, full-width-template, microformats, rtl-language-support, sticky-post, threaded-comments, translation-ready
	Text Domain:  jannah-child
*/

/* @import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,700;1,400&family=Roboto:wght@100;300;400;500;700;900&display=swap'); */

/* write custom css after this line */


/* TOC in single blog */
.toc-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
	margin-top: 10px;
}
.toc-widget-list li {
margin: 6px 0;
transition: background 0.3s, color 0.3s;
}
.toc-widget-list a {
text-decoration: none;
display: block;
}
.toc-widget-list li.toc-active > a {
color: #fff;
background: #ffc20e;
padding: 3px 6px;
border-radius: 4px;
}
.toc-level-2 { margin-left: 0; font-weight: bold; }
.toc-level-3 { margin-left: 15px; font-size: 0.95em; }
.toc-level-4 { margin-left: 30px; font-size: 0.9em; }
.toc-level-5 { margin-left: 45px; font-size: 0.85em; }
/* /TOC in single blog */

.widget{
    padding: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    margin-bottom: 8px !important;
}

/* custom last blog .widget */
.jannah-recent-posts-widget {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.jannah-recent-posts-widget li {
display: flex;
align-items: center;
border-bottom: 1px solid #eee;
padding: 10px 0;
}

.jannah-recent-posts-widget .thumb-link {
display: block;
margin-right: 10px;
flex-shrink: 0;
}

.jannah-recent-posts-widget .thumb {
width: 70px;
height: 70px;
object-fit: cover;
border-radius: 6px;
transition: transform 0.3s;
}

.jannah-recent-posts-widget .thumb:hover {
transform: scale(1.05);
}

.jannah-recent-posts-widget .post-title a {
font-size: 14px;
font-weight: 600;
color: var(--tie-primary-color, #333);
text-decoration: none;
line-height: 1.4;
display: block;
}

.jannah-recent-posts-widget .post-title a:hover {
color: var(--tie-accent-color, #e91e63);
}
/* custom last blog .widget */

/* faq */
.post-faq {
	margin-top: 40px;
	background-color: #f9f9f9;
	padding: 20px;
	border-radius: 6px;
}

.post-faq h3 {
	margin-bottom: 20px;
	font-size: 20px;
}

.faq-accordion {
	display: flex;
	flex-direction: column;
	gap: 15px; /* فاصله بین سوالات */
}

.faq-item {
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
}

.faq-question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	background: #e9e9e9;
	padding: 12px 16px;
	border: none;
	font-weight: bold;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.3s ease;
}

.arrow-faq {
width: 20px;
height: 20px;
transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .arrow-faq {
transform: rotate(180deg);
}

.faq-answer{
	padding: 12px 16px;
}


/*  */

.main{
  width: 100%;
  padding: 0px 15px;
}

/* -------- Breadcrumb -------- */
.breadcrumb-wrapper {
  max-width: 100rem;
  margin: 0 auto;
  margin-top: 1rem;
}
.breadcrumb-nav {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
}
.breadcrumb-list {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.breadcrumb-link,
.breadcrumb-link-active {
  text-decoration: none;
  transition: color .2s;
}
.breadcrumb-link:hover,
.breadcrumb-link-active:hover {
  color: #FFC20E;
}
.breadcrumb-link-active {
  color: #1F2937;
}
.breadcrumb-separator {
  margin: 0 0.5rem;
  user-select: none;
}

/* -------- Hero Section -------- */
.hero {
  width: 100%;
  display: flex;
  flex-direction: column-reverse;
}
@media (min-width: 768px) {
  .hero { flex-direction: row; }
}

.hero-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 0;
}
@media (min-width: 768px) {
  .hero-content { width: 50%; }
}

.hero-title {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  color: #4B5563;
  font-family: 'Roboto';
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
    line-height: 1;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: #4B5563;
  margin: 1.25rem 0;
  font-family: 'Roboto';
}
@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.875rem;
    line-height: 2.25rem;
    margin: 1.75rem 0;
  }
}

.hero-text {
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: #6B7280;
  font-family: 'Roboto';

}
@media (min-width: 768px) {
  .hero-text {
    font-size: 1.5rem;
    line-height: 2rem;
  }
}

.hero-image-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}
@media (min-width: 768px) {
  .hero-image-container { width: 50%; }
}
@media (min-width: 1280px) {
  .hero-image-container { padding: 1.75rem; }
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* -------- Why Section -------- */
.why-section {
 font-family: 'Roboto';
}
.why-title {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: #6B6B6B;
  margin-top: 1.75rem;
}
@media (min-width: 768px) {
  .why-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
    margin-top: 60px;
  }
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}
@media (min-width: 640px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Card */
.card {
  text-align: center;
  box-shadow:
    0 4px 6px -1px rgba(0,0,0,0.1),
    0 2px 4px -1px rgba(0,0,0,0.06);
  border-radius: 0.5rem;
  padding: 1rem;
  padding-top: 2rem;
  background-color: white !important;
}
.card-image {
  margin: auto;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  background-color: white !important;
}
.card-title {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: #6B6B6B;
  margin-top: 0.75rem;
}
@media (min-width: 768px) {
  .card-title {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
}
.card-text {
  margin-top: 0.5rem;
  color: #6B7280;
}

/* -------- Weekly Section -------- */
/* Sections: Weekly, Coin, Related */
.weekly-section,
.coin-section,
.related-section {
  width: 100%;
  margin: 1.25rem 0;
  font-family: 'Roboto';
}

@media (min-width: 768px) {
  .weekly-section,
  .coin-section,
  .related-section {
    margin: 50px 0;
  }
}

/* Titles for all three sections */
.weekly-title,
.coin-title,
.related-title {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  color: #6B6B6B;
}

@media (min-width: 768px) {
  .weekly-title,
  .coin-title,
  .related-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

/* Descriptions for all three sections */
.weekly-description,
.coin-description,
.related-description {
  margin-top: 0.5rem;
  color: #6B7280;
  font-size: 1.4rem;
}

/* Grid containers for posts in each section */
.weekly-section > div,
.coin-section > div,
.related-section > div {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .weekly-section > div,
  .coin-section > div,
  .related-section > div {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .weekly-section > div,
  .coin-section > div,
  .related-section > div {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* Empty grid container */
.weekly-section > div {
  display: grid;
  grid-template-columns: repeat(1,1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) {
  .weekly-section > div { grid-template-columns: repeat(2,1fr); }
}
@media (min-width: 1024px) {
  .weekly-section > div { grid-template-columns: repeat(4,1fr); }
}

/* -------- FAQ Section -------- */
.faq-section { max-width: 100rem;
   margin: 50px auto;
  font-family: 'Roboto';
  }

.faq-title {
  font-size: 24px;
  line-height: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-family: 'Roboto';
}

/*  */

.weekly-description,
.coin-description,
.related-description,
.card-text {
  font-size: 1rem;
}

@media (min-width: 768px) {
.weekly-description,
.coin-description,
.related-description,
.card-text {
    font-size: 1.4rem;
  }
}




/*  */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.weekly-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.weekly-card img {
  width: 100%;
  height: auto;
  display: block;
}

.weekly-card-content {
  padding: 1rem;
  flex: 1; /* تا محتوای کارت همه‌جا پر بشه */
  display: flex;
  flex-direction: column;
}

.weekly-card-title {
  font-family: 'Roboto';
  color: #4b5563;
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.weekly-card-excerpt {
  flex: 1; /* برای پر کردن فضای میانی */
  margin-bottom: 1rem;
  color: rgb(107, 114, 128);
  font-family: 'Roboto';
}

.weekly-card-link {
  text-decoration: none;
  color: #e0a800;
  font-weight: bold;
}

.weekly-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #777;
  padding: 0.75rem 1rem;
  border-top: 1px solid #f0f0f0;
}

@media (min-width: 640px) {
  .weekly-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .weekly-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .faq-title{
    font-size: 36px !important;
  }
}

.weekly-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}


/* -------- FAQ Section -------- */


.faq-section { max-width: 100rem; margin: 50px auto; }
.faq-title {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  color: #6B6B6B;
  margin-bottom: 1.5rem;
}

/*  */

.weekly-description,
.coin-description,
.related-description,
.card-text {
  font-size: 1rem;
}

@media (min-width: 768px) {
.weekly-description,
.coin-description,
.related-description,
.card-text {
    font-size: 1.4rem;
  }
}

    .faq-container {
      width: 100%;
      margin: 2rem auto;
    }

    .faq-item {
      background-color: #ffffff;
      border-radius: 0.5rem;
      margin-bottom:  0.5rem;
      overflow: hidden;
      transition: all 0.5s ease-in-out;
      box-shadow: 0 0 5px rgba(0,0,0,0.05);
      color: #6B6B6B;
    }

    .faq-question {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem;
      cursor: pointer;
      font-weight: bold;
       color: #6B6B6B;
    }
    .span-faq{
      color: #4b5563;
      font-size: 16px;
      font-weight: 600;
      font-family: 'Roboto';
    }
    .faq-question:hover .span-faq{
      color:#FFC20E;
    }

    .icon-box{
      font-size: 16px ;
      font-weight: 600;
    }

     .faq-question:hover .icon-box{
      background-color: #FFC20E;
     }

    .icon-box {
      background-color: #f3f4f6;
      border: 1px solid #d1d5db;
      border-radius: 0.5rem;
      padding: 0.25rem 0.75rem;
      margin-left: 0.5rem;
      font-size: 1.2rem;
    }

    .span-faq{
      padding: 0px 10px;
       display: flex;
        align-items: center;
    }

    .faq-answer {
      max-height: 0;
      overflow: hidden;
      transition:  0.2s ease-in-out;
      padding: 0 10px ;
      font-family: 'Roboto';
      font-weight: 400;
      font-size: 16px;
    }

    .faq-answer.active {
      padding-top: 1rem;
      max-height: 500px;
    }

    .faq-answer p {
      margin: 0;
      padding-bottom: 1rem;
    }

    .faq-toggle-icon {
      transition: transform 0.25s ease-in-out;
    }

    .faq-question.open .faq-toggle-icon {
      transform: rotate(45deg);
    }


    /* card */


  .service-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
}


.service-card {
  display: flex;
  align-items: center;  /* عمودی وسط‌چین */
  gap: 20px;
  padding: 20px;
  border-radius: 12px;
  color: white;
  background-color: #333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  flex: 1 1 30%;
  min-width: 280px;
}

.abilities-wrapper {
  border: 2px solid #ccc;
  padding: 30px;
  border-radius: 16px;
  margin-bottom: 40px;
  margin-top: 40px;
}

.abilities-wrapper h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #6B6B6B;
  text-align: left;
}

.abilities-wrapper:hover {
  border-color: #8898aa;
}

.abilities-wrapper:hover h2 {
  color: #8898aa;
}

.service-card:hover {
  transform: translateY(-4px);
  direction: 300;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.service-card,
.service-card:hover,
.service-card:visited,
.service-card:focus {
  color: white;
  text-decoration: none;
}

.service-icon {
  width: 80px;   /* بزرگ‌تر شده */
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto;  /* افقی وسط‌چین */
}

.service-text {
  flex: 1;
}

.service-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.service-desc {
  font-size: 0.9rem;
  line-height: 1.5;
}

.portfolio { background-color: #138E41; }
.trust { background-color: #343434; }
.alert { background-color: #872E97; }
.correlation { background-color: #2D418F; }


@media (max-width: 1024px) {
  .service-card {
    flex: 1 1 45%;
  }
}

@media (max-width: 600px) {
  .service-card {
    flex: 1 1 100%;
  }
    .service-container{
      padding: 0px;
    }
}
