@font-face {
    font-family: "iransans";
    src: url("fonts/Sans\ a4fran3.woff") format("woff");
  }

body {
    background: #f3f3f38c;
    font-family: "iransans"!important;
    background-color: #f9f9f9;
    text-align: center;
    margin: 0;
    padding: 0;
  }
  .baner-slide {
    position: relative;
    background-image: url('../images/banermenu.jpg');
    background-size: cover;
    background-position: center;
    padding: 70px 20px;
    border-radius: 10px;    color: #fff;
    text-align: center;
    overflow: hidden;
    margin-top: 15px;
  }
  
  .header-content {
    position: relative;
    z-index: 2; 
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.baner-slide h1 {
    margin: 0;
    font-size: 2.5rem;
}

.baner-slide p {
    margin-top: 10px;
    font-size: 1.2rem;
}

.cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: -36px;
    position: relative;
    z-index: 100;
}

.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 250px;
    margin: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.card h2 {
    font-size: 15px;
    color: #333;
    margin: 0;
}

.expandable-box {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    text-align: justify;
    direction: rtl;
}

.expandable-box h2 {
    margin-bottom: 15px;
    color: #333;
}

.text-content {
    font-size: 13px;
    color: #555;
    line-height: 1.8;
    overflow: hidden;
    max-height: 100px; 
    transition: max-height 0.3s ease;
    position: relative;
}

.text-content .more-text {
    display: none;
}

.text-content.expanded {
    max-height: 1000px; 
}

.text-content.expanded .more-text {
    display: inline;
}

.toggle-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.toggle-icon {
    width: 21px;
    height: 21px;
    transition: transform 0.3s ease;
}
.icon {
    width: 21px;
    height: 21px;
    transition: transform 0.3s ease;
}

  .grid-container {
    margin: 50px auto;
    max-width: 800px;
  }
  .grid-container h2{
    font-size: 19px;
  }
  
  h2 {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
  }
  
  .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: center;
  }
  
  .grid-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: background-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
  }
  
  .grid-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: -6px;
    border: 1px solid #800080;
  }
  
  .grid-item h3 {
    font-size: 16px;
    margin-bottom: -4px;
    color: #333;
  }
  
  .grid-item p {
    font-size: 14px;
    color: #666;
  }
  
  .grid-item:hover {
    background-color: #007bff;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .grid-item:hover p,.grid-item:hover h3 {
    color: #e9f0ff;
  }
  
.active-psychologists {
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .active-psychologists h2 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
  }
  
  .psychologists-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  
  .psychologist-item {
    border: 1px solid #dcdedc;
    border-radius: 10px;
    padding: 15px;
    width: calc(25% - 47px);
    text-align: center;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  }
  .psychologist-item:hover{
    transform: translateY(-10px);
    background-color: #f9f9f9;
  }
  .more-psychologist {
    display: none; 
    transition: all 0.3s ease-in-out;
}

.more-psychologist.expanded {
    display: contents; 
}
  
  .profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 1px solid #800080;
  }
  
  .psychologist-item h3 {
    font-size: 18px;
    margin: 10px 0 5px;
    color: #444;
  }
  
  .psychologist-item p {
    font-size: 14px;
    color: #666;
  }
  
  .consult-btn {
    margin-top: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    font-family: "iransans"!important;
  }
  
  .consult-btn:hover {
    background-color: #0056b3;
  }
  
  .load-more {
    margin-top: 20px;
  }
  
  .load-more-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
  }
  
  .load-more-btn:hover {
    background-color: #218838;
  }
  
.related-posts {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
  }
  
  .related-posts h2 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
  }
  
  .posts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  
  .post-item {
    background-color: #ffffff;
    border: 1px solid #008000;
    border-radius: 10px;
    padding: 10px;
    width: calc(25% - 40px);
    text-align: center;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  }
  
  .post-img {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
  }
  
  .post-img img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .category-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #007bff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
  }
  
  .post-title {
    margin: 15px 0 10px;
    font-size: 18px;
    color: #444;
  }
  
  .post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
  }
  
  .post-date {
    font-size: 12px;
    color: #777;
  }
  
  .read-more-btn {
    background-color: #fff;
    color: #800080;
    border: 1px solid #800080;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    font-family: "iransans"!important;
  }
  
  .read-more-btn:hover {
    background-color: #f0f0f0;
  }
  
  .faq-section {
    margin: 50px auto;
    max-width: 800px;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .faq-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
  }
  
  .faq-item {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
  }
  
  .faq-question {
    width: 100%;
    text-align: right;
    background-color: #f9f9f9;
    border: none;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'iransans'!important;
  }
  
  .faq-question:hover {
    background-color: #007bffa6;
  }
  
  .faq-answer {
    display: none;
    padding: 15px;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    background-color: #fff;
  }
  
  .icon {
    font-size: 18px;
    color: #777;
  }
  
  .faq-item.active .faq-answer {
    display: block;
  }
  
  .faq-item.active .icon {
    transform: rotate(45deg);
    color: #007bff;
  }
  
  .breadcrumb {
    display: flex;
    align-items: center;
    margin: 20px 0;
    font-size: 14px;
    color: #555;
  }
  
  .breadcrumb a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s;
  }
  
  .breadcrumb a:hover {
    color: #0056b3;
  }
  
  .breadcrumb .separator {
    margin: 0 5px;
    color: #999;
  }
  
  @media (max-width: 768px) {
      .grid{
    gap: 5px;
  }
  .grid-item{
    padding: 13px;
  }
  .psychologists-list{
    flex-direction: column;
  }
  .psychologist-item{
    width: unset;
  }
  .posts-list{
    flex-direction: column;
  }
  .post-item{
    width: unset;
  }
}

@media (max-width: 480px) {
    .grid{
    gap: 5px;
  }
  .grid-item{
    padding: 13px;
  }
  .psychologists-list{
    flex-direction: column;
  }
  .psychologist-item{
    width: unset;
  }
  .posts-list{
    flex-direction: column;
  }
  .post-item{
    width: unset;
  }
}