/*=============== GOOGLE FONTS ===============*/
/* @import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,200..1000&display=swap"); */

/*=============== FORM VALIDATION ICONS ===============*/

/*=============== CHAT ROOM BUTTON ===============*/
.chat-room-btn {
    background: var(--first-color);
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 1rem;
    color: #fff !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 131, 117, 0.2);
}

.chat-room-btn:hover {
    background: #006b5f;
    color: white;
    text-decoration: none;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 131, 117, 0.4);
}

.chat-room-btn:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

.chat-room-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.chat-room-btn:hover:before {
    left: 100%;
}

.chat-room-btn i {
    font-size: 1.1rem;
    margin-left: 8px;
    color: white !important;
    transition: transform 0.3s ease;
}

.chat-room-btn:hover i {
    transform: scale(1.1) rotate(5deg);
}

.chat-room-btn-container {
    text-align: right;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .chat-room-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .chat-room-btn-container {
        text-align: center;
    }
}
/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: #008375;
  --title-color: #151413;
  --text-color: #454649;
  --text-color-2: #eee;
  --body-color: #ffffff;
  --body-box-color: #ffffff;
  --body-bg-color: #008375;
  --shadow-color: hsla(228, 80%, 4%, .1);
  /*========== Font and typography ==========*/
  --body-font: "IRANSansWeb", system-ui;
  --title-font:  "DanaBold", sans-serif;
  --normal-font-size: .938rem;
  --smaller-font-size: .75rem;
  --tiny-font-size: .75rem;

  --font-size-1: 1.2rem;
  --font-size-2: 1.1rem;
  --font-size-3: 1rem;
  --font-size-4: 0.9rem;
  --font-size-5: 0.8rem;
  --font-size-6: 0.7rem;

  --h1-font-size: 3rem;
  --h2-font-size: 1.28rem;
  --h3-font-size: 1.02rem;
  --h4-font-size: 0.95rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media (max-width: 1399.98px) {
  /* لپ‌تاپ‌های کوچک‌تر از ۱۴ اینچ */
}

@media (max-width: 1199.98px) {
  /* لپ‌تاپ‌های ۱۳ اینچ و پایین‌تر */

}

@media (max-width: 991.98px) {
  /* تبلت‌های بزرگ مثل Zenbook Fold */
}

@media (max-width: 767.98px) {
  /* تبلت‌های معمولی */
  --font-size-1: 1.1rem;
  --font-size-2: 1rem;
  --font-size-3: 0.9rem;
  --font-size-4: 0.8rem;
  --font-size-5: 0.7rem;
  --font-size-6: 0.6rem;
}

@media (max-width: 575.98px) {
  /* گوشی‌های متوسط */
  --font-size-1: 1rem;
  --font-size-2: 0.9rem;
  --font-size-3: 0.8rem;
  --font-size-4: 0.7rem;
  --font-size-5: 0.6rem;
  --font-size-6: 0.5rem;
}

@media (max-width: 479.98px) {
  /* گوشی‌های کوچک */
  --font-size-1: 1rem;
  --font-size-2: 0.9rem;
  --font-size-3: 0.8rem;
  --font-size-4: 0.7rem;
  --font-size-5: 0.6rem;
  --font-size-6: 0.5rem;
}

.border-top {
  border-top: var(--bs-border-width) var(--bs-border-style) var(--first-color) !important;
  border-bottom: var(--bs-border-width) var(--bs-border-style) var(--first-color) !important;
}
/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --normal-font-size: 1rem;
    --smaller-font-size: .813rem;
  }
}
/*=============== BASE ===============*/
* {box-sizing: border-box;padding: 0;margin: 0;}
body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  transition: background-color .4s;
}

a {text-decoration: none;}
h1, h2, h3, h4 {font-family: var(--title-font);}
img {display: block;max-width: 100%;height: auto;}
button {all: unset;}
.text-color-1{color: var(--first-color)}
/*=============== VARIABLES DARK THEME ===============*/
body.dark-theme {
  --first-color: #00d4bb;
  --title-color: hsl(225, 20%, 96%);
  --text-color: hsl(228, 12%, 61%);
  --body-color: hsl(228, 24%, 16%);
  --body-box-color: #242738;
  --body-bg-color: #242738;
  --shadow-color: hsla(228, 80%, 4%, .3);
}

/*========== 
	Color changes in some parts of 
	the website, in dark theme
==========*/
.dark-theme .sidebar__content::-webkit-scrollbar {background-color: hsl(228, 16%, 30%);}
.dark-theme .sidebar__content::-webkit-scrollbar-thumb {background-color: hsl(228, 16%, 40%);}

/*=============== REUSABLE CSS CLASSES ===============*/
/*.container {*/
/*  margin-inline: 1.5rem;*/
/*}*/
.text-color-a{color:var(--first-color) !important;}
.bg-color-a{background-color:var(--first-color) !important;}
.main {padding-top: 5rem;}
/*=============== HEADER ===============*/
.header {position: fixed;top: 0;left: 0.75rem;right: 0.75rem;z-index: var(--z-fixed);margin-top: 0.75rem;}
.header__container {width: 100%;height: 3.5rem;background-color: var(--body-box-color);box-shadow: 0 2px 24px var(--shadow-color);display: flex;justify-content: space-between;align-items: center;padding-inline: 1.5rem;border-radius: 1rem;transition: background-color .4s;}
.header__logo {display: inline-flex;align-items: center;column-gap: .25rem;padding: 0;margin: 0;}
.header__logo-img {width: 100px;height: auto;}
.header__logo i {font-size: 1.5rem;color: var(--first-color);}
.header__logo span {color: var(--title-color);font-weight: var(--font-semi-bold);}
.header__toggle {
    font-size: 1.8rem;
    color: var(--title-color);
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    transition: color 0.3s ease;
}
.header__toggle:hover {
    color: var(--first-color);
}

@media (max-width: 1149.98px) {
  .header {
    top: 0;
    left: 0;
    right: 0;
    margin-top: 0;
  }
  .header__container {
    border-radius: 0 0 1rem 1rem;
  }
  .main {
    padding-top: 4.5rem;
  }
}

.sliderIndex h2{font-size: 60px !important;}
.sliderIndex p{font-size: 26px !important;}
/*=============== SIDEBAR ===============*/
.sidebar {position: fixed;right: -120%;top: 0;bottom: 0;z-index: var(--z-fixed);width: 260px;background-color: var(--body-box-color);
  box-shadow: 2px 0 22px var(--shadow-color);padding-block: 1.25rem;margin: .65rem;border-radius: 1rem;transition: right .4s, background-color .4s, width .4s;}
.sidebar__container,.sidebar__content {display: flex;flex-direction: column;row-gap: 1.6rem;}
.sidebar__container {height: 100%;overflow: hidden;}
.sidebar__user {display: grid;grid-template-columns: repeat(2, max-content);align-items: center;column-gap: .8rem;padding-right: 1.2rem;}
.sidebar__img {
    position: relative;
    width: 48px;
    height: 48px;
    background-color: var(--first-color);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar__info h3 {font-size: var(--normal-font-size);color: var(--title-color);transition: color .4s;}
.sidebar__info span {font-size: var(--smaller-font-size);}
.sidebar__content {overflow: hidden auto;}
.sidebar__content::-webkit-scrollbar {width: .4rem;background-color: hsl(228, 8%, 85%);}
.sidebar__content::-webkit-scrollbar-thumb {background-color: hsl(228, 8%, 75%);}
.sidebar__title {width: max-content;font-size: var(--tiny-font-size);font-weight: var(--font-semi-bold);padding-right: 1.25rem;margin-bottom: 1.2rem;}
.sidebar__list,
.sidebar__actions {display: grid;row-gap: .95rem;}
.sidebar__link {position: relative;display: grid;grid-template-columns: repeat(2, max-content);align-items: center;column-gap: .8rem;color: var(--text-color);padding-right: 1.25rem;transition: color .4s, opacity .4s;}
.sidebar__link i {font-size: 1.18rem;}
.sidebar__link span {font-weight: var(--font-semi-bold);}
.sidebar__link:hover {color: var(--first-color);}
.sidebar__actions {margin-top: auto;}
.sidebar__actions button {cursor: pointer;}
.sidebar__theme {width: 100%;font-size: 1.25rem;}
.sidebar__theme span {font-size: var(--normal-font-size);font-family: var(--body-font);}
/* Show sidebar */
.show-sidebar {right: 0;}
/* Active link */
.active-link {color: var(--first-color);}
.active-link::after {content: "";position: absolute;right: 0;width: 3px;height: 20px;background-color: var(--first-color);}

/*=============== BREAKPOINTS ===============*/
.custom-canvas {
  width: auto;
  height: 118px;
  margin-bottom: 0.35rem;
  margin-inline-end: 0px;
}
/* For small devices */
@media screen and (max-width: 360px) {
  .header__container {
    padding-inline: 1rem;}
  .sidebar {
    width: max-content;
  }
  .sidebar__info, 
  .sidebar__link span {
    display: none;
  }
  .sidebar__user, 
  .sidebar__list, 
  .sidebar__actions {
    justify-content: center;
  }
  .sidebar__user, 
  .sidebar__link {
    grid-template-columns: max-content;
  }
  .sidebar__user {
    padding: 0;
  }
  .sidebar__link {
    padding-inline: 2rem;
  }
  .sidebar__title {
    padding-inline: .5rem;
    margin-inline: auto;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .header {margin: 1rem;padding-right: 296px;transition: padding .4s;}
  .header__container {height: calc(var(--header-height) + 0.75rem);padding-inline: 2rem;}
  .header__logo-img {width: 88px;}
  .header__logo {order: 1;}
  .sidebar {right: 0;width: 280px;margin: .8rem;}
  .sidebar__info, 
  .sidebar__link span {transition: opacity .4s;}
  .sidebar__user, .sidebar__title {transition: padding .4s;}
  /* Collapsed sidebar: same top alignment as expanded, no scroll, centered icons */
  .show-sidebar {width: 88px; padding-block: 1.25rem;}
  .show-sidebar .sidebar__container {row-gap: 1.6rem;}
  .show-sidebar .sidebar__content {overflow: hidden;}
  .show-sidebar .sidebar__list,
  .show-sidebar .sidebar__actions {row-gap: .95rem;}
  .show-sidebar .sidebar__user {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-right: 0;
    padding-inline: 0;
  }
  /* In collapsed state hide the text block so it doesn't reserve vertical space */
  .show-sidebar .sidebar__info {
    display: none;
  }
  /* Reduce top padding inside the user area so first menu item sits closer to the logo */
  .show-sidebar .sidebar__user {
    padding-top: .35rem;
    padding-bottom: .35rem;
  }
  .show-sidebar .sidebar__title {padding-right: 0;margin-inline: auto;}
  .show-sidebar .sidebar__info, 
  .show-sidebar .sidebar__link span {opacity: 0;}
  .show-sidebar .sidebar__link#notificationToggle > span:first-child {
    opacity: 1 !important;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .show-sidebar .sidebar__link#notificationToggle > span:first-child i {opacity: 1 !important;}
  /* badge در حالت collapsed: فقط زمانی نمایش داده می‌شود که JavaScript آن را نمایش دهد */
  /* badge به صورت پیش‌فرض مخفی است (از طریق .count-noti که display: none !important دارد) */
  .main {padding-right: 296px;padding-top: 6.5rem;transition: padding .4s;}

  /* Collapsed sidebar (icons-only) — keep original spacing and center icons.
     Show menu label as a tooltip on hover (non-interactive to avoid flicker). */
  .show-sidebar .sidebar__list .sidebar__link,
  .show-sidebar .sidebar__actions .sidebar__link {
    grid-template-columns: max-content;
    padding-right: 0;
    position: relative;
    column-gap: .8rem; /* keep same gap as expanded state */
    justify-content: center; /* center the icon within the collapsed column */
  }

  .show-sidebar .sidebar__link i {
    margin: 0;
    display: block;
    align-self: center;
    justify-self: center;
    font-size: 1.35rem;
  }

  /* Tooltip: only the text span gets tooltip styling (not notification icon wrapper) */
  .show-sidebar .sidebar__link span:last-of-type {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background: var(--body-box-color);
    color: var(--text-color);
    padding: .4rem .65rem;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 1200;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
  }

  .show-sidebar .sidebar__link:hover span:last-of-type {
    opacity: 1;
    visibility: visible;
  }

/* Responsive adjustments: progressively reduce gaps and sizes on narrower viewports */
@media screen and (max-width: 1200px) {
  .sidebar {width: 270px;}
  .sidebar__img {width: 44px;height:44px;}
  .sidebar__list, .sidebar__actions {row-gap: .8rem;}
  .sidebar__link i {font-size: 1.08rem;}
  .sidebar__link {column-gap: .6rem;padding-right: 1rem;}
  .main {padding-right: 286px;}
  .header {padding-right: 286px;}
}

@media screen and (max-width: 992px) {
  .sidebar {width: 250px; margin: .5rem;}
  .sidebar__img {width: 40px;height:40px;}
  .sidebar__list, .sidebar__actions {row-gap: .6rem;}
  .sidebar__link i {font-size: 1rem;}
  .sidebar__link span {font-size: .95rem;}
  .sidebar__title {margin-bottom: .9rem;}
  .main {padding-right: 266px;}
  .header {padding-right: 266px;}
}
  /* Add padding left */
  /*.left-pd {*/
  /*  padding-left: 114px;*/
  /*}*/
  .right-pd {padding-right: 114px;}
}
.title-h1{font-size: var(--h2-font-size);color: var(--title-color);text-align: center;margin-top: 3rem;line-height: 1.8rem}
/*=============== Home ===============*/
.carousel-inner {border-radius: 1rem;}
li, ul, ol{content: none;list-style-type: none;}
.home .carousel-item{min-height: 80vh;background-position: center;background-size: cover;position: relative;z-index: 1;border-radius: 1rem;}
.home .carousel-item:before{content: '';position: absolute;left:0;top:0;width: 100%;height: 100%;background-color: rgba(0,0,0,0.3);z-index: -1;border-radius: 1rem;}
.home .carousel-item .container {position: absolute;right: 50%;top: 50%;left: auto;transform: translate(50%, -50%);text-align: center;}
.home .carousel-item h2{font-size: 3.1rem;color: #ffffff;margin:0 0 10px;opacity: 0;}
.home .carousel-item p{font-size: 1.3rem;margin:0;color: #eeeeee;opacity:0;}
.home .carousel-item.active h2{animation: fadeInLeft 0.5s ease forwards;}
.home .carousel-item.active p{animation: fadeInRight 0.5s ease forwards;}
@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0px);
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0px);
  }
}
.home .carousel-controls{position: absolute;left: 50%;bottom: 30px;z-index: 10;transform: translateX(-50%);}
.home .carousel-indicators{position: relative;margin:0;}
.home .carousel-indicators li{height: 70px;width: 70px;margin:0 5px;border-radius: 50%;background-position: center;background-size: cover;border:3px solid transparent;transition: all 0.3s ease;}
.home .carousel-indicators li.active{border-color: #ffffff;transform: scale(1.2);}
.home .carousel-control-next,
.home .carousel-control-prev{height: 60px;width: 60px;opacity: 1;z-index: 3;top: 50%;transform: translateY(-50%);border-radius: 50%;transition: all 0.3s ease;}
.home .carousel-control-next:hover,
.home .carousel-control-prev:hover{box-shadow: 0 0 10px #ffffff;}
.home .carousel-control-next img,
.home .carousel-control-prev img{width: 30px;}
.home .carousel-control-prev {right: -90px;left: auto;}
.home .carousel-control-next {left: -90px;right: auto;}
/*responsive*/
@media(max-width: 767px){
  .home .carousel-control-next,
  .home .carousel-control-prev{
    display: none;
  }
  .home .carousel-indicators li{
    height: 60px;
    width: 60px;
  }
  .home .carousel-item h2{
    font-size: 45px;
  }
  .home .carousel-item p{
    font-size: 22px;
  }
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #008375;
  --bs-btn-border-color: #008375;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #006e64;
  --bs-btn-hover-border-color: #006359;
  --bs-btn-focus-shadow-rgb: 0, 131, 117;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #006359;
  --bs-btn-active-border-color: #00594f;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #008375;
  --bs-btn-disabled-border-color: #008375;
}
.disabled-link {pointer-events: none;cursor: default;opacity: 0.5;text-decoration: none;color: gray;}
.btn-icon{font-size: 2rem;color: var(--first-color)}
.title-section{font-size: var(--h2-font-size);color: var(--first-color);text-align: center;margin-top: 2.25rem;line-height: 1.55;}
.section_book .card__container {padding-block: 3rem;overflow: hidden;}
.section_book .card__container.card__content,
.section_book .card__content {margin-inline: 1.75rem;border-radius: 1.25rem;overflow: hidden;}
.section_book .card__article {width: 300px;border-radius: 1.25rem;overflow: hidden;box-shadow: 2px 0px 20px var(--shadow-color);background-color:var(--body-box-color)}
.section_book .card__image {position: relative;background-color: var(--first-color-light);margin-bottom: -.75rem;overflow: visible;}
.section_book .card__data {padding: 1rem 1rem 0.4rem;border-radius: 1rem;text-align: center;position: relative;line-height: 1.8rem;z-index: 10;}
.section_book .card__img {width: 100%;margin: 0 auto;position: relative;z-index: 5;display: block;}
.section_book .card__shadow {width: 200px;height: 200px;background-color: var(--first-color-alt);border-radius: 50%;position: absolute;top: 3.75rem;left: 0;right: 0;margin-inline: auto;filter: blur(45px);}
.section_book .card__name {font-size: var(--h3-font-size);color: var(--first-color);margin-top: 0.5rem;}
.section_book .card__description {font-weight: 500;font-size: 1rem;direction: rtl;margin-bottom: 0.35rem;}
.section_book .swiper-slide {height: auto;}
.section_book .swiper-pagination,
.section_book .swiper-pagination-books,
.section-book-excerpts .swiper-pagination,
.section-book-excerpts .swiper-pagination-excerpts,
.m11-publishers .swiper-pagination-publishers,
.awards .swiper-pagination-awards,
.swiper-pagination-awards {
  display: none !important;
}

@media (max-width: 767.98px) {
  .section_book .card__container.card__content,
  .section_book .card__content {
    margin-inline: 0.5rem;
  }
}

@media (max-width: 479.98px) {
  .section_book .card__article,
  .section_book .swiper-slide {
    width: 100%;
    max-width: 100%;
  }
}

/* Swiper class */
.swiper-button-prev:after,.swiper-button-next:after {content: "";}
.swiper-button-prev,.swiper-button-next {width: initial;height: initial;font-size: 3rem;color: var(--second-color);display: none;}
.swiper-button-prev {left: 0;}
.swiper-button-next {right: 0;}
.swiper-pagination-bullet {background-color: #888888;opacity: 1;}
.swiper-pagination-bullet-active {background-color: var(--first-color);}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .section_book .card__data {
    padding: 1rem;
  }
}

/* For medium devices */
@media screen and (min-width: 768px) {
  .section_book .card__container.card__content,
  .section_book .card__content {margin-inline: 3rem;}
  .section_book .swiper-button-next,
  .section_book .swiper-button-prev {
    display: block;
  }
}

/* For large devices */
@media screen and (min-width: 1120px) {
  .swiper-button-prev {left: -1rem;}
  .swiper-button-next {right: -1rem;}
}
.section_quote .content-body {position: relative;display: flex;align-items: center;flex-direction: column;padding-block: 1rem;}
.section_quote .collection .content {
  height: auto;width: 25rem;background-color: #ffffff;box-shadow: 2px 0px 20px var(--shadow-color);
  border: .2rem solid rgba(255,255,255,.1);border-radius: .7rem;border-bottom: .4rem solid #008274;border-top: .4rem solid #008274;overflow: hidden;flex-direction: column;align-items: center;padding: 1rem;}
.section_quote{overflow-x: hidden;}
.collection{padding-block: 3rem;position: relative;overflow-x: hidden;}
.section_quote .mySwiper{max-width: 100%;}
body.dark-theme .section_quote .collection .content {
  background-color:  var(--body-color);
  color:var(--text-color);
  border-bottom: .4rem solid #005a4d;
  border-top: .4rem solid #005a4d;
  box-shadow: 2px 0px 20px rgba(0, 0, 0, 0.5);
}
.read-more-icon{position: relative;left: 1rem}
.section_quote .content img {width: 100px;height: 100px;border-radius: 50%;background-color: #0a3622;margin-bottom: 1rem;}
.section_quote .text-content {display: flex;justify-content: center;align-items: center;flex-direction: column;}
.section_quote .text-content h4{font-size: 1rem;color: var(--first-color);}
.section_quote .content-body i {position: absolute;left: 10px;color: #008274;font-size: 2rem;}
.section_quote .text-content .aa p{max-width: 22rem;font-size: .9rem;font-weight: 400;padding-top: 10px;text-align: center;line-height: 1.6rem; }
.section_quote .swiper-slide:not(.swiper-slide-active) .content-body {filter: blur(2px) !important;opacity: 0.6 !important;transition: filter 0.3s, opacity 0.3s;}
.section_quote .swiper-slide-active .content-body {filter: blur(0) !important;opacity: 1 !important;}
.box-style-quote {text-align: center;}
.box-style-quote .quote-body {padding: 15px;border-radius: 10px;box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);margin-bottom: 20px;position: relative;align-items: center;transition: transform 0.3s ease, box-shadow 0.3s ease;background-color: var(--body-box-color);}
.box-style-quote .quote-body:hover {transform: translateY(-5px);box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);}
.box-style-quote .content-wrapper {display: flex;flex-direction: column;align-items: center;justify-content: flex-start;gap: 15px;}
.box-style-quote .content-wrapper img {max-width: 80%;height: auto;border-radius: 10px;margin-bottom: 10px;}
.box-style-quote .quote-content {text-align: center;font-size: 1rem;line-height: 1.7; color: var(--text-color);padding: 10px;height: 180px;width: 100%}
.box-style-quote .quote-content .name-link {font-weight: bold;color: var(--first-color);text-decoration: none;font-size: var(--font-size-3)}
.box-style-quote .quote-content p {font-size: 0.9rem;line-height: 1.7;font-weight: 600;text-align: center}
.box-style-quote .quote-footer {display: flex;justify-content: space-between;align-items: center;width: 100%;padding: 0 15px;margin-top: 10px;}
.box-style-quote .quote-footer .copy-btn {cursor: pointer;font-size: 1.5rem;transition: color 0.3s ease, transform 0.2s ease;}
.box-style-quote .quote-footer .copy-btn:hover {color: #007bff;transform: scale(1.2);}
.box-style-quote .quote-footer .like-wrapper {display: flex;align-items: center;gap: 5px;}
.box-style-quote .quote-footer .like-btn {cursor: pointer;font-size: 1.5rem;border: none;background: none;transition: color 0.3s ease, transform 0.2s ease;}
.box-style-quote .quote-footer .like-btn.liked {color: #e63946;transform: scale(1.2);}
.box-style-quote .quote-footer .like-count {font-size: 1rem;color: #666;padding-left: 5px;}

.box-style-quote .quote-footer .save-btn {cursor: pointer;font-size: 1.4rem;border: none;background: none;transition: color 0.3s ease, transform 0.2s ease;}
.box-style-quote .quote-footer .save-btn.saved {color: var(--first-color);transform: scale(1.2);}
.box-style-book-e .body-book-e{background-color: var(--body-box-color);box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);padding: 30px;height: 100%;border-radius: 10px;overflow: hidden;margin-top: 10px;transition: transform 0.3s ease, box-shadow 0.3s ease;}
.box-style-book-e .body-book-e:hover{transform: translateY(-5px);box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);}
.box-style-book-e .post-category {font-size: 1rem;font-weight: bold;color: var(--first-color);margin-bottom: 10px;}
.box-style-book-e .booke-content {height: 110px;font-size: 0.9rem;line-height: 1.8;padding: 0;margin: 0 0 20px 0;color: var(--text-color);transition: 0.3s}
.box-style-book-e .booke-content:hover {color: var(--first-color);}
.box-style-book-e .name-link {font-weight: bold;color: var(--first-color);text-decoration: none;font-size: var(--font-size-3)}
.box-style-book-e .booke-name {font-size: 0.9rem;font-family: var(--title-font);color: var(--first-color);font-weight: 500;margin-bottom: 5px;}
.box-style-book-e .post-author-img {width: 50px;border-radius: 50%;margin-left: 15px;}
.style-box-book h3{color: var(--first-color);font-size: 1.3rem}
.box-style-book-e .post-author {font-weight: 500;font-size: 1rem;margin-bottom: 5px;}
.box-style-book-e .booke-footer {display: flex;justify-content: space-between;align-items: center;width: 100%;padding: 0 15px;margin-top: 20px;}
.box-style-book-e .booke-footer .copy-btn {cursor: pointer;font-size: 1.5rem;transition: color 0.3s ease, transform 0.2s ease;}
.box-style-book-e .booke-footer .copy-btn:hover {color: #007bff;transform: scale(1.2);}
.box-style-book-e .booke-footer .like-wrapper {display: flex;align-items: center;gap: 5px;}
.box-style-book-e .booke-footer .like-btn {cursor: pointer;font-size: 1.5rem;border: none;background: none;transition: color 0.3s ease, transform 0.2s ease;}
.box-style-book-e .booke-footer .like-btn.liked {color: #e63946;transform: scale(1.2);}
.box-style-book-e .booke-footer .like-count {font-size: 1rem;color: #666;padding-left: 5px;}
.box-style-book-e .booke-footer .save-btn {cursor: pointer;font-size: 1.4rem;border: none;background: none;transition: color 0.3s ease, transform 0.2s ease;}
.box-style-book-e .booke-footer .save-btn.saved {color: var(--first-color);transform: scale(1.2);}
.style-box-books .card__book i{font-size: 1rem;margin-top: 0.5rem;}
.style-box-books .card__book{font-size: var(--h4-font-size);margin-top: 0.5rem;}
.style-box-books .card__name{font-size: 0.8rem;color: var(--first-color);margin-top: 0.5rem;padding-bottom: 0.5rem;text-align: right !important;cursor: pointer;float: right}
#toast-message {background-color: #008375 !important;color: #fff;}
.box-style-publications{}
.data-and-time{font-size: 0.8rem;}
.notification-popup {position: absolute;right: 2rem;min-width: 300px;max-width: 90vw;background-color: #fff;border: 1px solid #e5e5e5;z-index: 9999;direction: rtl;font-size: 0.8rem;box-shadow: 0 0 15px rgba(0,0,0,0.1);}
/* مودال اعلان‌ها باید بالاتر از پاپ‌آپ باشد */
#notificationModal {z-index: 10050 !important;}
#notificationModal .modal-dialog {z-index: 10051 !important;}
#notificationModal .modal-content {z-index: 10052 !important;}
.modal-backdrop {z-index: 10000 !important;}

/* مودال تماس با ما — باید بالای backdrop باشد */
#contactModal {z-index: 10055 !important;}
#contactModal .modal-dialog {z-index: 10056 !important;}
#contactModal .modal-content {z-index: 10057 !important;}

/* مودال جزئیات پیام داشبورد — بالاتر از backdrop سراسری */
#ticketDetailsModal {z-index: 10055 !important;}
#ticketDetailsModal .modal-dialog {z-index: 10056 !important;}
#ticketDetailsModal .modal-content {z-index: 10057 !important;}

/* استایل برای مودال گزارش نظرات */
#reportCommentModal {
    z-index: 10060 !important;
}
#reportCommentModal .modal-dialog {
    z-index: 10061 !important;
}
#reportCommentModal .modal-content {
    z-index: 10062 !important;
    max-height: 90vh;
}
#reportCommentModal .modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 1rem;
}
#reportCommentModal .list-group {
    max-height: 50vh;
    overflow-y: auto;
}

/* تم تاریک برای مودال گزارش */
body.dark-theme #reportCommentModal .modal-content {
    background-color: var(--body-box-color) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text-color) !important;
}

body.dark-theme #reportCommentModal .modal-header {
    background-color: var(--body-box-color) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme #reportCommentModal .modal-title {
    color: #ffffff !important;
    font-weight: bold !important;
}

body.dark-theme #reportCommentModal .modal-body {
    background-color: var(--body-box-color) !important;
    color: var(--text-color) !important;
}

body.dark-theme #reportCommentModal .modal-body p {
    color: #e5e5e5 !important;
}

body.dark-theme #reportCommentModal .modal-footer {
    background-color: var(--body-box-color) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme #reportCommentModal .btn-close {
    filter: invert(1) !important;
}

body.dark-theme #reportCommentModal .btn-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
}

body.dark-theme #reportCommentModal .list-group-item {
    background-color: var(--body-box-color) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-color) !important;
}

body.dark-theme #reportCommentModal .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

body.dark-theme #reportCommentModal .list-group-item.reported {
    background-color: rgba(40, 167, 69, 0.2) !important;
    border-color: rgba(40, 167, 69, 0.5) !important;
    color: #90ee90 !important;
}

body.dark-theme #reportCommentModal .list-group-item.reported .badge {
    background-color: #28a745 !important;
    color: #fff !important;
}

body.dark-theme #reportCommentModal .report-send-btn {
    background-color: #008375 !important;
    border-color: #008375 !important;
    color: #fff !important;
}

body.dark-theme #reportCommentModal .report-send-btn:hover:not(:disabled) {
    background-color: #006b5f !important;
    border-color: #006b5f !important;
}

body.dark-theme #reportCommentModal .report-send-btn:disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* z-index برای SweetAlert2 بالاتر از مودال گزارش */
.swal2-container {
    z-index: 10070 !important;
}
.swal2-popup {
    z-index: 10071 !important;
}
.notification-item {transition: all 0.3s ease;cursor: pointer;}
.notification-item.unseen {background-color: #008375;color: #fff;border-color: #008375 !important;}
.notification-item.unseen:hover {background-color: #019e89;transform: translateX(-3px);}
.notification-item.seen {background-color: #f8f9fa;color: #6c757d;border-color: #dee2e6 !important;opacity: 0.8;}
.notification-item.seen:hover {background-color: #e9ecef;color: #495057;}

/* استایل تم تاریک برای پاپ‌آپ اعلان‌ها */
body.dark-theme .notification-popup {
    background-color: var(--body-box-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

body.dark-theme .notification-popup h6 {
    color: #ffffff !important;
    font-weight: bold;
}

body.dark-theme .notification-item.seen {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border-color: rgba(255, 255, 255, 0.1) !important;
    opacity: 0.7;
}

body.dark-theme .notification-item.seen:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

body.dark-theme .notification-item .text-muted {
    color: #d0d0d0 !important;
    opacity: 1 !important;
}

body.dark-theme .notification-item small.text-muted {
    color: #d0d0d0 !important;
    opacity: 1 !important;
}

body.dark-theme .notification-item strong {
    color: #ffffff !important;
    font-weight: bold;
}

/* استایل تم تاریک برای مودال اعلان‌ها */
body.dark-theme #notificationModal .modal-content {
    background-color: var(--body-box-color);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme #notificationModal .modal-header {
    background-color: var(--body-box-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--title-color);
}

body.dark-theme #notificationModal .modal-body {
    background-color: var(--body-box-color);
    color: var(--text-color);
}

body.dark-theme #notificationModal .modal-footer {
    background-color: var(--body-box-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme #notificationModal .modal-title {
    color: #ffffff !important;
}

body.dark-theme #notificationModal h6 {
    color: #ffffff !important;
    font-weight: bold;
}

body.dark-theme #notificationModal .text-muted {
    color: #e0e0e0 !important;
    opacity: 1 !important;
}

body.dark-theme #notificationModal small.text-muted {
    color: #d0d0d0 !important;
    opacity: 1 !important;
    font-size: 0.9rem;
}

body.dark-theme #notificationModal .modal-body p {
    color: #e5e5e5 !important;
}

body.dark-theme #notificationModal .border-top {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme #notificationModal .btn-close {
    filter: invert(1);
}

body.dark-theme #notificationModal .btn-secondary {
    background-color: var(--body-color);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
}

body.dark-theme #notificationModal .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-color);
}
.count-noti{position: absolute; top: 0; right: 0;transform: translate(50%, -50%);display: none !important;font-size: 0.7rem;padding: 0.4em;min-width: 1.5em;height: 1.5em;line-height: 1.5em;text-align: center;opacity: 0;visibility: hidden;}
.style-figure-biography h2{font-size: 1.5rem;padding-bottom: 2rem; padding-top: 1rem;line-height: 2 !important;}
.style-figure-biography h3{color: var(--first-color);font-size: 1.3rem}
.style-figure-biography p{line-height: 2 !important;}
.style-figure-biography ul li{line-height: 2.1 !important;}
.style-box-books .card__button {
  font-size: 0.8rem;
  margin-top: 0.1rem;
  padding: 0;
  text-align: right !important;
  cursor: pointer;
  float: left;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border-radius: 0;
  border: none;
  background-color: transparent;
  color: var(--first-color);
  text-decoration: none;
  transition: transform 0.3s ease;
  box-shadow: none;
}
.style-box-books .card__button:hover {
  transform: scale(1.1);
  background-color: transparent;
  color: var(--first-color);
}
.style-box-books .card__button i {font-size: 1.75rem;color: var(--first-color);transition: transform 0.3s ease;position: static;}
/* استایل ورودی جستجو */
.search-container {position: relative;margin: 0 auto;}
.search-container input {width: 100%;padding: 10px 40px 10px 10px;border: 2px solid #ccc;border-radius: 25px;transition: 0.3s;}
/* تغییر رنگ هنگام کلیک */
.search-container input:focus {border-color: #008375;outline: none;box-shadow: 0 0 8px rgba(0, 212, 187, 0.5);}
/* آیکون جستجو */
.search-container .search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 20px;
  cursor: pointer;
}
  .list-group-item.active {z-index: 2;color: var(--bs-list-group-active-color);background-color: var(--first-color);border-color: var(--first-color);}
/*@keyframes blink {*/
/*  0%, 100% {*/
/*    opacity: 1; !* کاملاً visible *!*/
/*  }*/
/*  50% {*/
/*    opacity: 0; !* ناپدید شدن *!*/
/*  }*/
/*}*/

/*.style-box-books .card__button:hover i {*/
/*  transform: translateX(-5px); !* حرکت آیکون به سمت چپ هنگام hover *!*/
/*}*/

article .publishing h2{font-size: 1.5rem;color: var(--first-color)}
article .publishing h3{font-size: 1.3rem;color: var(--first-color)}
.section-text-book .card{text-align: center;background-color: #ccc;padding:20px 30px;}
.section-text-book .swiper-slide{display:flex;align-items:center;}
.section-text-book .card img{width: 110px;border-radius: 50%;}
.section-text-book h3,
.section-text-book h4{margin-bottom: 0px;margin-top: 0px;}
.section-text-book p{font-size:15px;line-height:1.8rem;color:#222222;}
.section-text-book h3{font-size: 16px;color: var(--first-color);}
.section-text-book h4{font-size: 12px;margin-top: 10px;color:#0096FF;}
.section-text-book .swiper-button-next, .swiper-rtl .swiper-button-prev{color:#0096FF;}
.section-text-book.swiper-button-next:after, .swiper-button-prev:after{font-size:32px;}
.section-text-book .review i{color:orange;}

/* برشی خواندنی از دل کتاب‌ها - کارت مدرن، ۲ در هر صفحه */
.section-book-excerpts{overflow-x: hidden;position: relative;z-index: 2;}
.section-book-excerpts .title-section{position: relative;z-index: 0;}
.book-excerpts-swiper-wrap{padding-inline: 0.5rem;padding-top: 1.25rem;position: relative;z-index: 2;}
.swiper-book-excerpts{padding-bottom: 3.5rem; padding-top: 0.5rem;overflow-y: visible !important;}
.swiper-book-excerpts .swiper-wrapper{overflow-y: visible !important;}
.swiper-book-excerpts .swiper-slide{overflow: visible !important;}
.book-excerpt-card{
  background: var(--body-box-color);
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
  height: 100%;
  min-height: 165px;
  position: relative;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.book-excerpt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(0, 131, 117, 0.1) 50%, transparent 70%);
  transition: left 0.6s ease;
  transform: skewX(-15deg);
  pointer-events: none;
  z-index: 2;
}
.book-excerpt-card:hover::before {
  left: 100%;
}
.book-excerpt-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--first-color);
  z-index: 10;
}
body.dark-theme .book-excerpt-card{border-color: rgba(0, 211, 187, 0.3);}
body.dark-theme .book-excerpt-card:hover{border-color: var(--first-color);}
.book-excerpt-content{
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1rem;
  height: 100%;
  min-height: 165px;
  position: relative;
  z-index: 1;
}
.book-excerpt-text{flex: 1;min-width: 0;text-align: right;}
.book-excerpt-review{
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-color);
  margin: 0 0 0.5rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-excerpt-title{font-size: 1rem;font-weight: 600;color: var(--title-color);margin: 0 0 0.2rem 0;transition: color 0.3s ease, transform 0.3s ease;}
.book-excerpt-card:hover .book-excerpt-title{color: var(--first-color);transform: translateY(-2px);}
.book-excerpt-author{font-size: 0.8rem;color: var(--first-color);margin: 0;}
.book-excerpt-img{
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--first-color);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.book-excerpt-card:hover .book-excerpt-img{transform: scale(1.08) rotate(-3deg);}
.book-excerpt-img img{width: 100%;height: 100%;object-fit: cover;}
.swiper-pagination-excerpts{bottom: 0.75rem !important;}
.swiper-pagination-excerpts .swiper-pagination-bullet{background: var(--first-color);opacity: 0.4;}
.swiper-pagination-excerpts .swiper-pagination-bullet-active{opacity: 1;}
@media (max-width: 767.98px) {
  .swiper-pagination-excerpts {
    display: none !important;
  }
  .swiper-book-excerpts {
    padding-bottom: 1.25rem;
  }
}
@media (min-width: 576px) {
  .book-excerpt-card{min-height: 185px;}
  .book-excerpt-content{gap: 1.25rem;padding: 1.5rem 1.25rem;min-height: 185px;align-items: center;}
  .book-excerpt-review{font-size: 1rem;-webkit-line-clamp: 4;}
  .book-excerpt-img{width: 88px;height: 88px;}
}

.style-box-book {color: var(--text-color)}
.style-box-book .creating-address{color: var(--text-color);font-size: var(--font-size-5)}
.style-box-book .box-date-time span {font-size: var(--font-size-5)}
.style-box-book a {color: var(--first-color)}
.style-box-book h1 {font-size: var(--h2-font-size);color: var(--first-color)}
.style-box-book h2 {font-size: 1.4rem;color: var(--title-color)}
.style-box-fig .value-fig {color: var(--first-color);font-size: var(--font-size-4);font-weight: bold}
.style-box-fig h1 {color: var(--first-color);font-size: var(--h3-font-size);line-height: 2rem}


.book-box {position: relative;width: 100%;height: auto;overflow: hidden;}
.book-box img {width: 100%;height: 100%;object-fit: cover;transition: transform 0.3s ease;}
.book-title {position: absolute;bottom: -60px;left: 0;right: 0;background: rgba(0, 0, 0, 0.7);color: white;padding: 10px;text-align: center;font-size: 1rem;transition: bottom 0.3s ease}
.book-box:hover img {transform: scale(1.05);}
.book-box:hover .book-title {bottom: 0;}

.testimonial {position: relative;width: 100%;padding: 50px 0;overflow: hidden;}
.testimonial .image {height: 160px;width: 160px;object-fit: cover;border-radius: 50%;}
.testimonial .slide {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: var(--body-box-color);
  padding:50px 0px !important;
  border-bottom: .3rem solid #008274;
  border-top: .3rem solid #008274;
  border-radius: 15px;
  row-gap: 10px;
  height: 100%;
  width: 100%;
}
.slide p {text-align: center;padding: 0 100px;font-size: 1rem;font-weight: 500;color: var(--text-color);}
.slide .quote-icon {font-size: 30px;color: #4070f4;}
.slide .details {display: flex;flex-direction: column;align-items: center;}
.details .name {font-size: 14px;font-weight: 600;color: #333;}
.details .job {font-size: 12px;font-weight: 400;color: #333;}
.nav-btn {border-radius: 50%;transition: 0.2s;}
.nav-btn:hover {}
.nav-btn::after,
.nav-btn::before {font-size: 26px;padding: 50px;color: #008375;}
.swiper-pagination-bullet {background-color: rgba(0, 0, 0, 0.6);}
.swiper-pagination-bullet-active {background-color: #008375;}
@media screen and (max-width: 768px) {
  .slide p {
    padding: 0 20px;
  }
  .nav-btn {
    display: none;
  }
}
.notable-figures-style{background-color: var(--body-box-color);}
/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services {padding: 40px 0 20px 0;}

/* Responsive Services */
@media (max-width: 768px) {
    .services {padding: 20px 0 10px 0;}
}
.services .servies-title {font-size: 2.5rem;margin-bottom: 1.5rem;}
.services .btn-outline-primary {
  color: var(--first-color);
  border-color: #0a6aa1;
  padding: 10px 30px;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.services .btn-outline-primary:hover {background-color: #27cd3e;color: #0d9700;}
.services .service-item {
  background-color: var(--body-box-color);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 100%;
  border: 2px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.services .service-item:hover {
  border-color: var(--first-color);
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
body.dark-theme .services .service-item {border-color: rgba(0, 211, 187, 0.3);}
body.dark-theme .services .service-item:hover {border-color: var(--first-color);}
body.dark-theme #publications-end,
body.dark-theme #publications-loading {
    color: var(--text-color);
}
body.dark-theme #publications-end .text-muted,
body.dark-theme #publications-loading .text-muted {
    color: hsl(228, 15%, 78%) !important;
}
.services .service-item .image-logo {width: 80px;height:80px;background-color:#fff;}
.services .service-item i {font-size: 2.5rem;color: var(--first-color);display: inline-block;margin-bottom: 15px;}
.services .service-item h3 {font-size: 1.25rem;margin-bottom: 10px;margin-top: 1rem;color: var(--first-color)}
.services .service-item h3 a {color: #008375;}
.services .service-item h3 a:hover {color: #006a5e;}
.services .service-item p {font-size: 1rem;color: var(--text-color);line-height: 1.6rem;}

/* Module 11 — Publishers swipe carousel */
.m11-publishers .swiper-publishers-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 1.5rem 0 2.75rem;
    overflow: hidden;
}

.m11-publishers .swiper-publishers-container .swiper-slide {
    height: auto;
    display: flex;
    box-sizing: border-box;
}

.m11-publishers .m11-publisher-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s ease,
                border-color 0.3s ease,
                opacity 0.35s ease;
}

.m11-publishers .m11-publisher-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 131, 117, 0.1) 50%, transparent 70%);
    transition: left 0.6s ease;
    transform: skewX(-15deg);
    pointer-events: none;
    z-index: 2;
}

.m11-publishers .m11-publisher-card:hover::before {
    left: 100%;
}

.m11-publishers .m11-publisher-card > * {
    position: relative;
    z-index: 1;
}

.m11-publishers .m11-publisher-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--first-color);
}

.m11-publishers .m11-publisher-card h3 {
    transition: color 0.3s ease, transform 0.3s ease;
}

.m11-publishers .m11-publisher-card:hover h3 {
    color: var(--first-color);
    transform: translateY(-3px);
}

.m11-publishers .m11-publisher-card .image-logo {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.m11-publishers .m11-publisher-card:hover .image-logo {
    transform: scale(1.08) rotate(-3deg);
}

.m11-publishers .m11-publisher-card .image-logo {
    box-shadow: 0 8px 22px rgba(0, 131, 117, 0.18);
    overflow: hidden;
    flex-shrink: 0;
}

.m11-publishers .m11-publisher-card .image-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m11-publishers .swiper-pagination-publishers {
    position: relative;
    margin-top: 1.1rem;
    bottom: auto !important;
}

.m11-publishers .swiper-pagination-publishers .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.22);
    opacity: 1;
    transition: transform 0.25s ease, width 0.25s ease, background 0.25s ease;
}

.m11-publishers .swiper-pagination-publishers .swiper-pagination-bullet-active {
    background: var(--first-color);
    width: 22px;
    border-radius: 999px;
}

body.dark-theme .m11-publishers .swiper-pagination-publishers .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.28);
}

body.dark-theme .m11-publishers .swiper-pagination-publishers .swiper-pagination-bullet-active {
    background: var(--first-color);
}

@media (max-width: 767.98px) {
    .m11-publishers .swiper-pagination-publishers {
        display: none !important;
    }

    .m11-publishers .swiper-publishers-container {
        padding-bottom: 1.25rem;
    }

    .m11-publishers .m11-publisher-card {
        padding: 1.35rem 1.2rem;
        border-radius: 1.15rem;
    }

    .m11-publishers .m11-publisher-card h3 {
        font-size: 1.1rem;
    }

    .m11-publishers .m11-publisher-card p {
        font-size: 0.92rem;
        line-height: 1.65;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

.ltr-direction {direction: ltr;unicode-bidi: bidi-override;}
footer{background-color:var(--body-bg-color);border-radius: 1rem 1rem 0rem 0rem;}
footer h5{color: var(--text-color-2);font-weight: bold;font-size: var(--h3-font-size);}
footer .footer-link{color: var(--text-color-2);font-size: var(--font-size-4)}
footer .social-links i{font-size: 1.3rem;padding: 0.4rem}

/* Footer text colors for theme compatibility */
footer p{color: var(--text-color-2);}
footer .text-white{color: var(--text-color-2) !important;}

/* Footer icons */
footer i{color: var(--text-color-2);}

/* Dark theme footer text */
body.dark-theme footer h5{color: var(--text-color);}
body.dark-theme footer .footer-link{color: var(--text-color);}
body.dark-theme footer p{color: var(--text-color);}
body.dark-theme footer .text-white{color: var(--text-color) !important;}
body.dark-theme footer i{color: var(--text-color);}

/* ===== MODERN FOOTER BOTTOM ===== */
.footer-bottom-section {
    background: rgba(0, 0, 0, 0.1);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
}

.copyright-info {
    text-align: center;
}

@media (min-width: 768px) {
    .copyright-info {
        text-align: right;
    }
}

.copyright-text {
    color: var(--text-color-2);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.brand-highlight {
    color: var(--text-color-2);
    font-weight: 600;
    position: relative;
}

.brand-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--first-color), transparent);
    border-radius: 1px;
}

.developer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .developer-info {
        justify-content: flex-end;
    }
}

.developed-by {
    color: var(--text-color-2);
    font-size: 0.9rem;
    opacity: 0.8;
}

.developer-link {
    color: var(--text-color-2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.developer-link:hover {
    background: var(--first-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--first-color);
}

.developer-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.developer-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.developer-link:hover i {
    transform: translate(2px, -2px);
}

/* Dark theme adjustments */
body.dark-theme .footer-bottom-section {
    background: rgba(0, 0, 0, 0.3);
    border-top-color: rgba(255, 255, 255, 0.05);
}

/* ===== FOOTER MOBILE ===== */
@media (max-width: 767.98px) {
    .footer-wrapper {
        margin-top: 2rem !important;
    }

    .site-footer {
        padding-top: 1.25rem !important;
        border-radius: 0.75rem 0.75rem 0 0;
    }

    .site-footer .row.g-4 {
        --bs-gutter-y: 0.75rem;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .footer-about {
        text-align: center;
    }

    .footer-brand-title {
        font-size: 1.05rem !important;
        margin-bottom: 0.35rem !important;
    }

    .footer-tagline {
        font-size: 0.82rem;
        margin-bottom: 0.75rem !important;
        opacity: 0.9;
    }

    .footer-desc,
    .footer-quick-links,
    .footer-other-links,
    .footer-contact {
        display: none !important;
    }

    .footer-socials {
        justify-content: center;
        margin-top: 0.5rem !important;
        gap: 12px;
    }

    .footer-socials a {
        width: 36px;
        height: 36px;
    }

    .footer-socials a svg {
        height: 18px;
    }

    .footer-bottom-section {
        margin-top: 1rem;
        padding: 0.85rem 0;
    }

    .footer-bottom-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .copyright-text,
    .developed-by,
    .developer-name {
        font-size: 0.78rem;
    }

    .developer-link {
        padding: 0.3rem 0.65rem;
    }

    .developer-info {
        margin-top: 0.5rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .footer-desc {
        display: none;
    }

    .footer-logo {
        margin-top: 1.5rem !important;
    }

    .footer-logo div[style*="140px"] {
        width: 100px !important;
        height: 100px !important;
    }

    .footer-bottom-section {
        margin-top: 1.5rem;
        padding: 1.25rem 0;
    }
}

.footer-desc {
    line-height: 1.8;
}

/* ===== BOOK PAGE EXCERPTS ===== */
.book-page-excerpts {
    border-top: 1px solid rgba(0, 131, 117, 0.25);
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.book-page-excerpts__header {
    margin-bottom: 1rem;
}

.book-page-excerpts__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--title-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.book-page-excerpts__title i {
    color: var(--first-color);
}

.book-page-excerpts__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .book-page-excerpts__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.book-page-excerpt-card {
    background: var(--body-box-color);
    border: 1px solid rgba(0, 131, 117, 0.18);
    border-radius: 12px;
    padding: 1.1rem 1.15rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 12rem;
}

.book-page-excerpt-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 131, 117, 0.35);
}

.book-page-excerpt-card__content {
    flex: 1 1 auto;
    min-height: 0;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.9;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.book-page-excerpt-card__content p {
    margin-bottom: 0.75rem;
}

.book-page-excerpt-card__content p:last-child {
    margin-bottom: 0;
}

.book-page-excerpt-card__meta {
    margin-top: auto;
    flex-shrink: 0;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(0, 131, 117, 0.2);
    font-size: 0.82rem;
}

.book-page-excerpt-card__book {
    color: var(--first-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

body.dark-theme .book-page-excerpt-card {
    border-color: rgba(0, 211, 187, 0.25);
}

body.dark-theme .book-page-excerpt-card:hover {
    border-color: var(--first-color);
}

body.dark-theme .copyright-text {
    color: var(--text-color);
}

body.dark-theme .developed-by {
    color: var(--text-color);
}

body.dark-theme .developer-link {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .developer-link:hover {
    background: var(--first-color);
    color: white;
}

body.dark-theme .brand-highlight {
    color: var(--text-color);
}

/* ===== SIDEBAR WELCOME MESSAGE ===== */
.welcome-link {
    color: var(--text-color) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.welcome-link:hover {
    color: var(--first-color) !important;
}

/* ===== BOOKS CATEGORY MENU ===== */
.list-group-item {
    background-color: var(--body-box-color) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: var(--text-color) !important;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: var(--first-color) !important;
    color: white !important;
    transform: translateX(5px);
}

.list-group-item.active {
    background-color: var(--first-color) !important;
    border-color: var(--first-color) !important;
    color: white !important;
}

.list-group-item.active:hover {
    background-color: var(--first-color) !important;
    color: white !important;
}

.list-group-item-back {
    background-color: #ffc107 !important;
    color: #000 !important;
    font-weight: 600;
    border: none !important;
}

.list-group-item-back:hover {
    background-color: #e6c200 !important;
    color: #222 !important;
}
/* Dark theme adjustments for books category menu */
body.dark-theme .list-group-item {
    background-color: var(--body-box-color) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-color) !important;
}

body.dark-theme .list-group-item:hover {
    background-color: var(--first-color) !important;
    color: white !important;
}

body.dark-theme .list-group-item.active {
    background-color: var(--first-color) !important;
    border-color: var(--first-color) !important;
    color: white !important;
}

/* ===== BOOKS SORT SELECT ===== */
.books-sort {
    position: relative;
    width: 100%;
}

.books-sort__icon {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: var(--first-color);
    font-size: 1.05rem;
    pointer-events: none;
    z-index: 1;
}

.books-sort__select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0.72rem 2.6rem 0.72rem 2.4rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 131, 117, 0.22);
    background-color: var(--body-box-color);
    color: var(--title-color);
    font-family: var(--body-font);
    font-size: var(--font-size-4);
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 0 2px 10px var(--shadow-color);
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23008375' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.9rem center;
    background-size: 0.9rem;
}

.books-sort__select:hover {
    border-color: rgba(0, 131, 117, 0.45);
}

.books-sort__select:focus {
    outline: none;
    border-color: var(--first-color);
    box-shadow: 0 0 0 3px rgba(0, 131, 117, 0.16);
}

.books-sort__select:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

body.dark-theme .books-sort__select {
    border-color: rgba(0, 212, 187, 0.28);
    background-color: var(--body-box-color);
    color: var(--title-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%2300d4bb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

body.dark-theme .books-sort__select:hover {
    border-color: rgba(0, 212, 187, 0.5);
    background-color: hsl(228, 22%, 20%);
}

body.dark-theme .books-sort__select:focus {
    border-color: var(--first-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 187, 0.18);
}

body.dark-theme .books-sort__select option {
    background-color: var(--body-box-color);
    color: var(--title-color);
}

/* ===== BACK BUTTON STYLING ===== */
.list-group-item.bg-warning {
    background-color: #ffd801 !important; /* رنگ طلایی/زرد اصلی */
    border-color: #ffd801 !important;
    color: #333 !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.list-group-item.bg-warning:hover {
    background-color: #e6c200 !important; /* کمی تیره‌تر در hover */
    border-color: #e6c200 !important;
    color: #222 !important;
    transform: translateX(5px);
}

/* Dark theme for back button */
body.dark-theme .list-group-item.bg-warning {
    background-color: #d4b800 !important; /* تیره‌تر در تم تاریک */
    border-color: #d4b800 !important;
    color: #222 !important;
}

body.dark-theme .list-group-item.bg-warning:hover {
    background-color: #b8a000 !important; /* تیره‌تر در hover تم تاریک */
    border-color: #b8a000 !important;
    color: #111 !important;
}

/* ===== DASHBOARD BIO STYLING ===== */
.user-bio-section {
    max-width: 600px;
    margin: 0 auto;
}

.bio-content {
    position: relative;
    transition: all 0.3s ease;
}

.bio-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bio-text {
    line-height: 1.6;
    font-size: 1rem;
}

/* Dark theme for bio */
body.dark-theme .bio-content {
    background: rgba(255, 255, 255, 0.1) !important;
    border-left-color: var(--first-color) !important;
}

body.dark-theme .bio-text {
    color: var(--text-color) !important;
}

body.dark-theme .bio-content .bi-quote {
    color: var(--text-color) !important;
}

/* ===== DASHBOARD INFO SECTION ===== */
.dashboard-info-section {
    transition: all 0.3s ease;
}

.dashboard-info-section:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-info-section p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Dark theme for info section */
body.dark-theme .dashboard-info-section {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .dashboard-info-section p {
    color: var(--text-color) !important;
}

/* ===== WELCOME SECTION DARK THEME ===== */
body.dark-theme .welcome-section {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .welcome-section h4 {
    color: var(--text-color) !important;
}

body.dark-theme .welcome-section p {
    color: var(--text-color) !important;
}

/* ===== SETTINGS DARK THEME ===== */
body.dark-theme .settings-content {
    background-color: var(--body-box-color) !important;
}

body.dark-theme .tab-pane {
    background-color: var(--body-box-color) !important;
}

body.dark-theme .settings-form-group {
    background-color: transparent !important;
}

body.dark-theme .settings-input-group {
    background-color: var(--body-box-color) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .settings-input-group .form-control {
    background-color: var(--body-box-color) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-color) !important;
}

body.dark-theme .settings-input-group .input-group-text {
    background-color: var(--body-box-color) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-color) !important;
}

body.dark-theme .form-control {
    background-color: var(--body-box-color) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-color) !important;
}

body.dark-theme .form-control:focus {
    background-color: var(--body-box-color) !important;
    border-color: var(--first-color) !important;
    color: var(--text-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

body.dark-theme .form-label {
    color: var(--text-color) !important;
}

body.dark-theme .form-text {
    color: var(--text-color) !important;
}

body.dark-theme .alert {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-color) !important;
}

body.dark-theme .alert-info {
    background-color: rgba(13, 202, 240, 0.1) !important;
    border-color: rgba(13, 202, 240, 0.2) !important;
    color: var(--text-color) !important;
}

body.dark-theme .alert-info .text-muted {
    color: var(--text-color) !important;
}

body.dark-theme .alert-info small {
    color: var(--text-color) !important;
}

body.dark-theme .settings-btn {
    background-color: var(--first-color) !important;
    border-color: var(--first-color) !important;
    color: white !important;
}

body.dark-theme .settings-btn:hover {
    background-color: #1e7e34 !important;
    border-color: #1e7e34 !important;
    color: white !important;
}

/* ===== SETTINGS NAVIGATION DARK THEME ===== */
body.dark-theme .settings-nav {
    background-color: var(--body-box-color) !important;
}

body.dark-theme .settings-nav-btn {
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-color) !important;
}

body.dark-theme .settings-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
}

body.dark-theme .settings-nav-btn.active {
    background-color: var(--first-color) !important;
    border-color: var(--first-color) !important;
    color: white !important;
}

body.dark-theme .settings-nav-btn.active:hover {
    background-color: #1e7e34 !important;
    border-color: #1e7e34 !important;
    color: white !important;
}

body.dark-theme .settings-header {
    background-color: var(--body-box-color) !important;
}

body.dark-theme .settings-header h2 {
    color: var(--text-color) !important;
}

body.dark-theme .settings-header p {
    color: var(--text-color) !important;
}

body.dark-theme .settings-section-title {
    color: var(--text-color) !important;
}

/* ===== PLACEHOLDER AND ICONS DARK THEME ===== */
body.dark-theme .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1 !important;
}

body.dark-theme .form-control::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1 !important;
}

body.dark-theme .form-control::-moz-placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1 !important;
}

body.dark-theme .form-control:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1 !important;
}

body.dark-theme .form-control:-moz-placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1 !important;
}

body.dark-theme .settings-input-group .input-group-text i {
    color: white !important;
}

body.dark-theme .input-group-text i {
    color: white !important;
}

body.dark-theme .settings-input-group .bi {
    color: white !important;
}

body.dark-theme .form-control:disabled {
    background-color: var(--body-box-color) !important;
    color: var(--text-color) !important;
    opacity: 0.7 !important;
}

body.dark-theme .form-control:disabled::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* ===== SESSION MANAGEMENT DARK THEME ===== */
body.dark-theme .settings-activity-table {
    background-color: var(--body-box-color) !important;
}

body.dark-theme .settings-activity-table table {
    background-color: var(--body-box-color) !important;
}

body.dark-theme .settings-activity-table thead th {
    background-color: var(--body-box-color) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .settings-activity-table thead th i {
    color: white !important;
}

body.dark-theme .settings-activity-table thead th .bi {
    color: white !important;
}

body.dark-theme .settings-activity-table tbody td {
    background-color: var(--body-box-color) !important;
    color: var(--text-color) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .settings-activity-table tbody tr {
    background-color: var(--body-box-color) !important;
}

body.dark-theme .settings-activity-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

body.dark-theme .current-session-row {
    background-color: rgba(40, 167, 69, 0.1) !important;
}

body.dark-theme .current-session-row td {
    background-color: rgba(40, 167, 69, 0.1) !important;
}

body.dark-theme .sessions-mobile {
    background-color: var(--body-box-color) !important;
}

body.dark-theme .session-card {
    background-color: var(--body-box-color) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .session-card .session-header {
    background-color: transparent !important;
}

body.dark-theme .session-card .session-body {
    background-color: transparent !important;
}

body.dark-theme .session-card .session-footer {
    background-color: transparent !important;
}

body.dark-theme .session-card .device-info {
    color: var(--text-color) !important;
}

body.dark-theme .session-card .detail-item {
    color: var(--text-color) !important;
}

body.dark-theme .session-card code {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-color) !important;
}

body.dark-theme .session-bulk-actions {
    background-color: var(--body-box-color) !important;
}

body.dark-theme .session-bulk-actions .btn {
    background-color: var(--first-color) !important;
    border-color: var(--first-color) !important;
    color: white !important;
}

body.dark-theme .session-bulk-actions .btn:hover {
    background-color: #1e7e34 !important;
    border-color: #1e7e34 !important;
    color: white !important;
}

body.dark-theme .terminate-session {
    background-color: transparent !important;
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}

body.dark-theme .terminate-session:hover {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

/* ===== SESSION MANAGEMENT TEXT AND ICONS DARK THEME ===== */
body.dark-theme .settings-activity-table small {
    color: var(--text-color) !important;
}

body.dark-theme .settings-activity-table .text-muted {
    color: var(--text-color) !important;
}

body.dark-theme .settings-activity-table .badge {
    color: white !important;
}

body.dark-theme .settings-activity-table .badge.bg-primary {
    background-color: #0d6efd !important;
    color: white !important;
}

body.dark-theme .settings-activity-table .badge.bg-success {
    background-color: #198754 !important;
    color: white !important;
}

body.dark-theme .settings-activity-table .badge.bg-secondary {
    background-color: #6c757d !important;
    color: white !important;
}

body.dark-theme .settings-activity-table .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

body.dark-theme .settings-activity-table i {
    color: var(--text-color) !important;
}

body.dark-theme .settings-activity-table .bi {
    color: var(--text-color) !important;
}

body.dark-theme .settings-activity-table tbody td i {
    color: white !important;
}

body.dark-theme .settings-activity-table tbody td .bi {
    color: white !important;
}

body.dark-theme .settings-activity-table tbody td .badge i {
    color: white !important;
}

body.dark-theme .settings-activity-table tbody td .badge .bi {
    color: white !important;
}

body.dark-theme .session-card .badge {
    color: white !important;
}

body.dark-theme .session-card .badge.bg-primary {
    background-color: #0d6efd !important;
    color: white !important;
}

body.dark-theme .session-card .badge.bg-success {
    background-color: #198754 !important;
    color: white !important;
}

body.dark-theme .session-card .badge.bg-secondary {
    background-color: #6c757d !important;
    color: white !important;
}

body.dark-theme .session-card .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

body.dark-theme .session-card i {
    color: var(--text-color) !important;
}

body.dark-theme .session-card .bi {
    color: var(--text-color) !important;
}

body.dark-theme .session-card small {
    color: var(--text-color) !important;
}

body.dark-theme .session-card .text-muted {
    color: var(--text-color) !important;
}

body.dark-theme .session-card strong {
    color: var(--text-color) !important;
}

body.dark-theme .session-bulk-actions small {
    color: var(--text-color) !important;
}

body.dark-theme .session-bulk-actions .text-muted {
    color: var(--text-color) !important;
}

/* ===== COPY BUTTON ANIMATION ===== */
.copy-btn.clicked {
    transform: scale(0.9);
    transition: transform 0.1s ease;
}

.socials-container{display: flex;gap: 20px;}
.socials-container a{
  background-color: white;
  padding: 0em;
  border-radius: 50%;
  height: 40px;
  width: 40px;
  box-sizing: border-box;
  flex-shrink: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}
.socials-container a svg{height: 20px;}
.socials-container a::before{
  content: attr(data-social);
  position: absolute;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  padding: 0.4em 0.9em;
  border-radius: 100px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  transform: translateY(-10px) rotate(25deg);
  opacity: 0;
  transition: 200ms cubic-bezier(.42,0,.44,1.68);
}
.socials-container a:hover{background-color: var(--accent-color);fill: white;}
.socials-container a:hover::before{
  opacity: 1;
  transform: translateY(-35px) rotate(0deg);
}
.socials-container a::after{
  content: '';
  position: absolute;
  height: 0;
  width: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--accent-color);
  transform: translateY(0) rotate(25deg);
  opacity: 0;
  transition: 200ms cubic-bezier(.42,0,.44,1.68);
}

.socials-container a:hover::after{
  opacity: 1;
  transform: translateY(-25px) rotate(0deg);
}

/* ===== NOTABLE FIGURES STYLES ===== */
.notable-figures-style {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--body-box-color);
}

.notable-figures-style:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--first-color);
}

.notable-figures-style img {
    object-fit: cover;
    border: 2px solid var(--first-color);
}

.notable-figures-style a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.notable-figures-style a:hover {
    color: var(--first-color) !important;
}

/* Responsive adjustments for notable figures */
@media (max-width: 991.98px) {
    .notable-figures-style {
        margin-bottom: 1rem;
    }
}

@media (max-width: 575.98px) {
    .notable-figures-style {
        flex-direction: column;
        text-align: center;
        padding: 1rem !important;
    }
    
    .notable-figures-style img {
        margin-bottom: 0.5rem;
        margin-right: 0 !important;
    }
}
  width: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--accent-color);
  transform: translateY(0) rotate(25deg);
  opacity: 0;
  transition: 200ms cubic-bezier(.42,0,.44,1.68);
}
.socials-container a:hover::before{transform: translateY(-45px) rotate(0);opacity: 1;}
.socials-container a:hover::after{transform: translateY(-25px) rotate(0);opacity: 1;}

/*=============== settings ===============*/
.set-btn{width: 100px;background-color: #eee;margin-top: 10px;color: #222}
.set-btn:hover, .set-btn:active, .set-btn:after{background-color:#008375;color: #fff}
.set-btn.active{background-color:#008375 !important;color: #fff}

@media (max-width: 1399.98px) {
  /* لپ‌تاپ‌های کوچک‌تر از ۱۴ اینچ */
}
@media (max-width: 1199.98px) {
  /* لپ‌تاپ‌های ۱۳ اینچ و پایین‌تر */
  .content-hide {
    display: none !important;
  }
  .content-show {
    display: block !important;
  }
}
@media (max-width: 991.98px) {
  /* تبلت‌های بزرگ مثل Zenbook Fold */
  .content-hide {
    display: none !important;
  }
  .content-show {
    display: block !important;
  }
}
@media (max-width: 767.98px) {
  /* تبلت‌های معمولی */
  .content-hide {display: none !important;}
  .content-show {display: block !important;}
  .title-h1{font-size: var(--h4-font-size);}
  .title-section{font-size: var(--h3-font-size);margin-top: 2rem}
  .custom-canvas { height: 96px; }
  .sliderIndex h2{font-size: 32px !important;}
  .sliderIndex p{font-size: 16px !important;}
  .home .carousel-item h2{font-size: 1.45rem;}
  .home .carousel-item p{font-size: 0.95rem;}
  .style-box-book h1 {font-size: 1.4rem}
  .style-box-book h2 {font-size: 1.3rem;}
  .style-box-book h3{font-size: 1.2rem}
  article .publishing h2{font-size: 1.4rem;}
  article .publishing h3{font-size: 1.2rem;}
  .style-figure-biography h2{font-size: 1.3rem;padding-bottom: 2rem; padding-top: 1rem;line-height: 2 !important;}
  .style-figure-biography h3{color: var(--first-color);font-size: 1.2rem}
  .style-figure-biography p{line-height: 2 !important;}
}
@media (max-width: 575.98px) {
  /* گوشی‌های متوسط */
  .home .carousel-item{min-height: 65vh;}
  .home .carousel-item h2{font-size: 1.25rem;}
  .home .carousel-item p{font-size: 0.75rem;}
  .home .carousel-indicators li{height: 55px;width: 55px;}
  .content-hide {display: none !important;}
  .content-show {display: block !important;}
  .title-h1{font-size: var(--h4-font-size);}
  .title-section{font-size: var(--h4-font-size);margin-top: 1.75rem}
  .custom-canvas { height: 84px; }
  .header__container {height: 4.2rem;}
  .sliderIndex h2{font-size: 24px !important;}
  .sliderIndex p{font-size: 14px !important;}
  .style-box-book h1 {font-size: 1.3rem}
  .style-box-book h2 {font-size: 1.2rem;}
  .style-box-book h3{font-size: 1.1rem}
  article .publishing h2{font-size: 1.2rem;}
  article .publishing h3{font-size: 1.1rem;}
  .style-figure-biography h2{font-size: 1.2rem;padding-bottom: 2rem; padding-top: 1rem;line-height: 2 !important;}
  .style-figure-biography h3{color: var(--first-color);font-size: 1.1rem}
  .style-figure-biography p{line-height: 2 !important;}
}

@media (max-width: 479.98px) {
  /* گوشی‌های کوچک */
  .home .carousel-item{min-height: 65vh;}
  .home .carousel-item h2{font-size: 1.15rem;}
  .home .carousel-item p{font-size: 0.7rem;}
  .home .carousel-indicators li{height: 55px;width: 55px;}
  .content-hide {display: none !important;}
  .content-show {display: block !important;}
  .title-h1{font-size: var(--h4-font-size);}
  .title-section{font-size: 0.9rem;margin-top: 1.5rem}
  .custom-canvas { height: 76px; }
  .header__container {height: 4.2rem;}
  .sliderIndex h2{font-size: 22px !important;}
  .sliderIndex p{font-size: 13px !important;}
  .style-box-book h1 {font-size: 1.3rem}
  .style-box-book h2 {font-size: 1.2rem;}
  .style-box-book h3{font-size: 1.1rem}
  article .publishing h2{font-size: 1.2rem;}
  article .publishing h3{font-size: 1.1rem;}
  .style-figure-biography h2{font-size: 1.2rem;padding-bottom: 2rem; padding-top: 1rem;line-height: 2 !important;}
  .style-figure-biography h3{color: var(--first-color);font-size: 1.1rem}
  .style-figure-biography p{line-height: 2 !important;}
}

@media (min-width: 576px) {  }

@media (min-width: 768px) {  }

@media (min-width: 992px) {  }

@media (min-width: 1200px) {  }

@media (min-width: 1400px) {  }

/*=============== 404 ERROR PAGE ===============*/
.error-404-page {
    background: linear-gradient(135deg, var(--first-color) 0%, #006e64 100%);
    min-height: 100vh;
    overflow: hidden;
}

.error-404-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.error-404-floating-element {
    position: absolute;
    opacity: 0.1;
    animation: error-404-float 6s ease-in-out infinite;
}

.error-404-floating-element:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.error-404-floating-element:nth-child(2) {
    top: 20%;
    right: 10%;
    animation-delay: 2s;
}

.error-404-floating-element:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes error-404-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.error-404-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
    max-width: 450px;
    margin: 0 auto;
}

.error-404-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--first-color), #ff6b6b, #4ecdc4);
    border-radius: 15px 15px 0 0;
}

.error-404-number {
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--first-color), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.error-404-lottie-container {
    max-width: 400px;
    margin: 0 auto;
}

.error-404-lottie-container canvas {
    width: 100% !important;
    height: auto !important;
}

@media (max-width: 768px) {
    .error-404-number {
        font-size: 4rem;
    }
    
    .error-404-card {
        max-width: 350px;
    }
}

/*=============== POEM STYLES ===============*/
/* استایل کلاسیک برای اشعار */
.poem-container {
    background: linear-gradient(135deg, #faf8f3 0%, #f0ead6 50%, #e8dcc0 100%);
    border: 1px solid #d4af37;
    border-radius: 12px;
    box-shadow: 
        0 0 0 1px #f4e4bc,
        inset 0 0 0 1px #d4af37,
        0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    padding: 18px;
    margin: 15px 0;
    font-family: 'Amiri', 'Times New Roman', serif;
    animation: fadeInUp 0.6s ease-out;
}

.poem-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #d4af37, #f4e4bc, #d4af37);
    border-radius: 14px;
    z-index: -1;
}

.poem-container::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid #f4e4bc;
    border-radius: 8px;
    pointer-events: none;
}

.poem-content {
    background: #faf8f3;
    border: 1px solid #f4e4bc;
    border-radius: 6px;
    padding: 20px;
    margin: 8px 0;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    text-align: center;
    line-height: 2.2;
    font-size: 1.1em;
    color: #2c1810;
}

.poem-content::before {
    content: '❦';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #faf8f3;
    color: #d4af37;
    font-size: 16px;
    padding: 0 10px;
}

.poem-content::after {
    content: '❦';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #faf8f3;
    color: #d4af37;
    font-size: 16px;
    padding: 0 10px;
}

.poem-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f4e4bc;
}

/* افکت کهنگی */
.poem-container {
    background-image: 
        radial-gradient(circle at 15% 85%, rgba(212, 175, 55, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 85% 15%, rgba(212, 175, 55, 0.03) 0%, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.02) 0%, transparent 70%),
        radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.025) 0%, transparent 45%),
        radial-gradient(circle at 70% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
}

/* استایل تم تاریک برای اشعار */
body.dark-theme .poem-container {
    background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 50%, #4a4a4a 100%);
    border: 1px solid #666;
    box-shadow: 
        0 0 0 1px #888,
        inset 0 0 0 1px #666,
        0 2px 8px rgba(0,0,0,0.3);
}

body.dark-theme .poem-container::before {
    background: linear-gradient(45deg, #666, #888, #666);
}

body.dark-theme .poem-container::after {
    border: 1px solid #888;
}

body.dark-theme .poem-content {
    background: #2a2a2a;
    border: 1px solid #555;
    color: #e0e0e0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

body.dark-theme .poem-content::before,
body.dark-theme .poem-content::after {
    background: #2a2a2a;
    color: #888;
}

body.dark-theme .poem-footer {
    border-top: 1px solid #555;
}

body.dark-theme .poem-container {
    background-image: 
        radial-gradient(circle at 15% 85%, rgba(136, 136, 136, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 15%, rgba(136, 136, 136, 0.06) 0%, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(136, 136, 136, 0.04) 0%, transparent 70%),
        radial-gradient(circle at 30% 20%, rgba(136, 136, 136, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 70% 80%, rgba(136, 136, 136, 0.06) 0%, transparent 50%);
}

/*=============== GSAP TEXT ANIMATION STYLES (INDEX PAGE ONLY) ===============*/
/* These styles are specifically for index.php GSAP animations */
.word {
    display: inline-block;
    margin-left: 0.05em;
    margin-right: 0.05em;
    transform-origin: center bottom;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.word-modern {
    display: inline-block;
    margin-left: 0.1em;
    margin-right: 0.1em;
    transform-origin: center bottom;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.title-section .word {
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
}

.title-h1 .word-modern {
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
    position: relative;
    cursor: pointer;
}

/* Smooth text rendering */
.title-section,
.title-h1 {
    transform: translateZ(0);
    will-change: transform;
}

/* Modern title styling */
.title-h1 {
    position: relative;
    overflow: hidden;
}

.title-h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/*=============== CUSTOM BOX SHADOW ===============*/
.shadow-custom {
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

/*=============== BOOK PAGE STYLES ===============*/
/* Book Image Container Styles */
.book-page-image-container {
    overflow: hidden;
    border-radius: 1rem;
    position: relative;
}

.book-page-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,123,255,0.1), rgba(255,193,7,0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.book-page-image-container:hover::before {
    opacity: 1;
}

/* Tag Badge Styles */
.book-page-tag-badge {
    transition: all 0.3s ease;
}

.book-page-tag-badge:hover {
    transform: scale(1.1) translateY(-3px);
}

/* Publishers Section Styles */
.publishers-section {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Dark Theme for Publishers Section */
body.dark-theme .publishers-section {
    background: var(--body-box-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.publishers-title {
    color: var(--first-color);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid var(--first-color);
    padding-bottom: 0.5rem;
}

.publishers-title i {
    color: var(--first-color);
    font-size: 1.2rem;
}

/* Responsive Publishers Title */
@media (max-width: 768px) {
    .publishers-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .publishers-title {
        font-size: 0.9rem;
    }
}

.publishers-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.publisher-item {
    background: transparent;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: auto;
    max-width: 300px;
}

.publisher-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 131, 117, 0.1) 50%, transparent 70%);
    transition: left 0.6s ease;
    transform: skewX(-15deg);
}

.publisher-item:hover {
    transform: translateY(-3px);
    box-shadow: 0px 4px 15px rgba(0, 131, 117, 0.2);
    text-decoration: none;
    color: #008375;
    border-color: #008375;
}

.publisher-item:hover::before {
    left: 100%;
}

/* Dark Theme for Publisher Items */
body.dark-theme .publisher-item {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

body.dark-theme .publisher-item:hover {
    color: var(--first-color);
    border-color: var(--first-color);
    box-shadow: 0px 4px 15px rgba(0, 131, 117, 0.3);
}

/* Tags Container */
.book-page-tags-row {
    margin-top: 1.25rem !important;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* Publisher Badge Styles (for backward compatibility) */
.book-page-publisher-badge {
    transition: all 0.3s ease;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

.book-page-publisher-badge:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* Related Books Styles */
.book-page-related-books .book-page-related-header {
    background-color: var(--first-color);
}

.book-page-related-heading {
    font-family: var(--title-font);
    font-size: var(--font-size-3);
    font-weight: 600;
}

.book-page-related-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.book-page-related-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.25rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.book-page-related-item:hover {
    background-color: rgba(0, 131, 117, 0.08);
}

.book-page-related-thumb {
    flex-shrink: 0;
    width: 46px;
    height: 62px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.book-page-related-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.book-page-related-thumb--logo {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #f8f9fa;
}

.book-page-related-thumb--logo .book-page-related-image {
    object-fit: contain;
    padding: 3px;
}

.book-page-related-title {
    font-family: var(--title-font);
    font-size: var(--font-size-4);
    color: var(--first-color);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .book-page-related-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .book-page-related-list {
        grid-template-columns: 1fr;
    }

    .book-page-related-heading {
        font-size: var(--font-size-4);
    }

    .book-page-related-thumb {
        width: 42px;
        height: 56px;
    }

    .book-page-related-thumb--logo {
        width: 42px;
        height: 42px;
    }

    .book-page-related-title {
        font-size: var(--font-size-5);
    }
}

.book-page-related-card {
    height: 100%;
}

.book-page-cover-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 3/4;
    transition: all 0.4s ease;
}

.book-page-cover-container:hover {
    transform: translateY(-3px) scale(1.02);
}

.book-page-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.book-page-cover-container:hover .book-page-cover-image {
    transform: scale(1.1);
}

/*=============== PROFILE IMAGE STYLES ===============*/
.profile-image-container {
    position: relative;
    display: inline-block;
}

.profile-image-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--first-color);
    box-shadow: 0 4px 15px rgba(0,131,117,0.2);
    transition: all 0.3s ease;
}

.profile-image-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,131,117,0.3);
}

.image-preview-container {
    margin-top: 1rem;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    border: 2px dashed var(--first-color);
}

.preview-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 0.5rem;
}

.preview-info {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Form file input styling */
.form-control[type="file"] {
    padding: 0.5rem;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control[type="file"]:hover {
    border-color: var(--first-color);
    background-color: rgba(0,131,117,0.05);
}

.form-control[type="file"]:focus {
    border-color: var(--first-color);
    box-shadow: 0 0 0 0.2rem rgba(0,131,117,0.25);
}

/* Profile image upload button */
#uploadProfileImageBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

#uploadProfileImageBtn .upload-btn-spinner {
    width: 0.85rem !important;
    height: 0.85rem !important;
    border-width: 0.15em !important;
    flex-shrink: 0;
}

.settings-btn[type="submit"] {
    background: linear-gradient(135deg, var(--first-color), #00a085);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.settings-btn[type="submit"]:hover {
    background: linear-gradient(135deg, #00a085, var(--first-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,131,117,0.3);
}

.settings-btn[type="submit"]:active {
    transform: translateY(0);
}

/* Profile image preview styling */
.profile-image-preview[src*="logo-avatar"] {
    background: linear-gradient(135deg, #6c757d, #495057);
    padding: 0.5rem;
    border-radius: 50%;
    border: 3px solid #ffffff;
}

/* Delete button styling */
.settings-btn.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.settings-btn.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220,53,69,0.3);
}

.settings-btn.btn-danger:active {
    transform: translateY(0);
}

/*=============== SIDEBAR USER AVATAR ===============*/
.sidebar__img .user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: absolute;
    top: 0;
    left: 0;
}

.sidebar__img .user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,131,117,0.3);
    border-color: #00a085;
}

/* Special styling for uploaded profile images */
.sidebar__img .user-avatar[src*="/uploads/users/"] {
    border: 3px solid var(--first-color);
    box-shadow: 0 2px 10px rgba(0,131,117,0.2);
}

/* Fallback for default avatar */
.sidebar__img img[src*="logo-avatar"] {
    background: linear-gradient(135deg, #6c757d, #495057);
    padding: 0.3rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.book-page-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7), rgba(0,0,0,0.9));
    padding: 15px 12px 12px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.book-page-cover-container:hover .book-page-title-overlay {
    transform: translateY(0);
}

.book-page-title-text {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    line-height: 1.2;
    letter-spacing: 0.3px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .book-page-title-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent, rgba(0,0,0,0.8));
    }
    
    .book-page-title-text {
        font-size: 0.7rem;
        letter-spacing: 0.2px;
    }
}

/*=============== DASHBOARD STYLES ===============*/
/* Dashboard Navigation Styles */
.dashboard-nav-link {
    color: #eee;
    transition: all 0.3s ease;
}

.dashboard-nav-tabs .nav-link {
    border: 0px;
    border-top-right-radius: 0px;
    border-top-left-radius: 0px;
}

/* Dashboard Tab Hover Effect */
.dashboard-nav-link:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

.dashboard-nav-link.active {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

/* Dashboard Stat Cards */
.dashboard-stat-card {
    background: linear-gradient(135deg, var(--first-color), #00a085);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 131, 117, 0.3);
}

.dashboard-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 131, 117, 0.4);
}

.dashboard-stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.dashboard-stat-card:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.dashboard-stat-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.dashboard-stat-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.dashboard-stat-card p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 500;
}

.dashboard-stats-section {
    margin-bottom: 2rem;
}

/*=============== SETTINGS STYLES ===============*/
/* Settings Page Layout */

.settings-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--first-color);
}

.settings-header h2 {
    color: var(--first-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.settings-header p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

/* Settings Navigation */
.settings-nav {
    background: #ffffff;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.settings-nav-btn {
    border: none;
    background: transparent;
    color: #6c757d;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 100%;
    text-align: right;
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

.settings-nav-btn:hover {
    background: linear-gradient(135deg, var(--first-color), #00a085);
    color: white;
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0,131,117,0.3);
}

.settings-nav-btn.active {
    background: linear-gradient(135deg, var(--first-color), #00a085);
    color: white;
    box-shadow: 0 5px 15px rgba(0,131,117,0.3);
}

/* Tab content transitions */
.settings-content .tab-pane {
    transition: opacity 0.3s ease-in-out;
    display: none;
}

.settings-content .tab-pane.fade:not(.show) {
    opacity: 0;
    display: none;
}

.settings-content .tab-pane.fade.show {
    opacity: 1;
    display: block;
}

.settings-content .tab-pane.active {
    display: block;
}

.settings-nav-btn i {
    margin-left: 0.5rem;
    font-size: 1.2rem;
}

/* Settings Content */
.settings-content {
    background: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    min-height: 400px;
}

.settings-section-title {
    color: var(--first-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
}

.settings-section-title i {
    margin-left: 0.5rem;
    font-size: 1.3rem;
}

/* Form Styles */
.settings-form-group {
    margin-bottom: 1.5rem;
}

.settings-input-group {
    position: relative;
    margin-bottom: 1rem;
}

.settings-input-group .input-group-text {
    background: linear-gradient(135deg, var(--first-color), #00a085);
    color: white;
    border: none;
    border-radius: 10px 10px 0 0;
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    min-width: 50px;
    justify-content: center;
}

.settings-input-group .form-control {
    border: 2px solid #e9ecef;
    border-radius: 0 0 10px 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.settings-input-group .form-control:focus {
    border-color: var(--first-color);
    box-shadow: 0 0 0 0.2rem rgba(0,131,117,0.25);
    background: white;
}

.settings-input-group .form-control:disabled {
    background: #e9ecef;
    color: #6c757d;
}

.settings-btn {
    background: linear-gradient(135deg, var(--first-color), #00a085);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,131,117,0.3);
}

.settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,131,117,0.4);
    background: linear-gradient(135deg, #00a085, var(--first-color));
}

/* Activity Table */
.settings-activity-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.settings-activity-table .table {
    margin: 0;
}

.settings-activity-table .table thead th {
    background: linear-gradient(135deg, var(--first-color), #00a085);
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-align: center;
}

.settings-activity-table .table tbody td {
    padding: 1rem;
    border: none;
    border-bottom: 1px solid #f8f9fa;
    vertical-align: middle;
}

.settings-activity-table .table tbody tr:hover {
    background: #f8f9fa;
}

.settings-device-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.settings-device-icon:hover {
    transform: scale(1.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .settings-nav {
        margin-bottom: 1rem;
    }
    
    .settings-content {
        padding: 1rem;
    }
    
    .settings-nav-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* =============== SESSION MANAGEMENT STYLES =============== */
.current-session-row {
    background: linear-gradient(45deg, #e8f5e8, #f0f8f0) !important;
    border: 2px solid #28a745 !important;
}

.current-session-row td {
    border-color: #28a745 !important;
}

.session-bulk-actions {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border: 1px dashed #dee2e6;
}

.terminate-session {
    transition: all 0.3s ease;
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}

.terminate-session:hover {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

#terminate-all-sessions {
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #ffc107, #ffcd39);
    border: none;
    color: #212529;
    font-weight: 500;
}

#terminate-all-sessions:hover {
    background: linear-gradient(45deg, #e0a800, #ffc720);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

/* استایل کارت‌های موبایل برای نشست‌ها */
.sessions-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.session-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.session-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.current-session-card {
    background: linear-gradient(45deg, #e8f5e8, #f0f8f0);
    border: 2px solid #28a745;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.session-status .badge {
    font-size: 0.8rem;
}

.session-time .badge {
    font-size: 0.75rem;
}

.session-body {
    margin-bottom: 1rem;
}

.session-devices {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
}

.device-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #495057;
}

.device-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.session-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6c757d;
}

.detail-item i {
    color: #007bff;
    flex-shrink: 0;
}

.detail-item strong {
    color: #495057;
    margin-left: 0.25rem;
    margin-right: 0.25rem;
}

.session-footer {
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.session-footer .btn {
    border-color: #dc3545;
    color: #dc3545;
    font-weight: 500;
}

.session-footer .btn:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

/* موبایل - بهبودهای اضافی */
@media (max-width: 768px) {
    .session-devices {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .device-info {
        font-size: 0.8rem;
    }
    
    .detail-item {
        font-size: 0.8rem;
    }
    
    .session-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .session-status {
        align-self: stretch;
    }
    
    .session-time {
        align-self: flex-end;
    }
}

@media (max-width: 576px) {
    .device-icon {
        width: 20px;
        height: 20px;
    }
    
    .session-card {
        padding: 0.75rem;
    }
    
    .session-devices {
        padding: 0.5rem;
    }
}

/* =============================================================================
   Books Page Styles - بهبود ظاهر کارت‌های کتاب
   ============================================================================= */

.style-box-books {
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.08);
    padding: 9px 9px 5px;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.style-box-books:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);
}

/* Scoped to books listing page only — do not leak onto homepage .section_book */
.style-box-books .card__image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.style-box-books .card__img {
    aspect-ratio: 3/4;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.style-box-books:hover .card__img {
    transform: scale(1.05);
}

.style-box-books .card__date {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
}

.style-box-books .card__data {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.style-box-books .card__book {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

.style-box-books .card__summary {
    flex-grow: 1;
    margin-bottom: 15px;
    line-height: 1.4;
    height: 2.8em; /* ارتفاع ثابت برای 2 خط */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.style-box-books .card__actions {
    margin-top: auto;
    padding-top: 6px;
}

.style-box-books .card__author {
    color: #7f8c8d;
    font-size: 0.85rem;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 60px);
    transform: translateY(4px);
}

.style-box-books .card__button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.style-box-books .card__button i {
    font-size: 1.2rem;
    transform: translateY(-2px);
}

.style-box-books .card__button:hover {
    transform: translateY(-2px) scale(1.1);
}

.section_book .card__button {
    width: 54px;
    height: 54px;
    margin-top: 0.15rem;
}

.section_book .card__button .btn-icon,
.section_book .card__button i {
    font-size: 2.35rem;
    color: var(--first-color);
}

.style-box-books .card__button {
    width: auto;
    height: auto;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
}

.style-box-books .card__button i {
    font-size: 1.75rem;
    color: var(--first-color);
    transform: none;
}

/* انیمیشن loading */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* بهبود responsive */
@media (max-width: 768px) {
    .style-box-books {
        padding: 12px;
    }
    
    .card__book {
        font-size: 1rem;
    }
}

body.dark-theme .style-box-books {
    background-color: var(--body-box-color);
    box-shadow: 0 2px 15px var(--shadow-color);
}

body.dark-theme .style-box-books:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

body.dark-theme .card__book,
body.dark-theme .style-box-books .card__book {
    color: var(--title-color);
}

body.dark-theme .card__summary,
body.dark-theme .card__summary .text-muted,
body.dark-theme .card__summary small {
    color: hsl(228, 15%, 78%) !important;
}

body.dark-theme .card__author {
    color: var(--text-color);
}

/*=============== ABOUT US PAGE ===============*/
.about-hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23008375" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23008375" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23008375" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.about-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--title-color);
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.title-highlight {
    color: var(--first-color);
    position: relative;
}

.title-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--first-color), transparent);
    border-radius: 2px;
}

.about-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    margin-top: 1rem;
    line-height: 1.6;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 131, 117, 0.1) 50%, transparent 70%);
    transition: left 0.6s ease;
    transform: skewX(-15deg);
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--first-color);
    margin-bottom: 0.3rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

.about-hero-image {
    position: relative;
}

.image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.image-container:hover .hero-img {
    transform: scale(1.05);
}

.hero-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--first-color), #00a896);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.values-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--first-color);
    position: relative;
    overflow: hidden;
}

.values-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hearts" width="30" height="30" patternUnits="userSpaceOnUse"><path d="M15 25c-5-5-10-10-10-15 0-5 5-10 10-10s10 5 10 10c0 5-5 10-10 15z" fill="rgba(0,131,117,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23hearts)"/></svg>');
    opacity: 0.5;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--first-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(0, 131, 117, 0.3);
}

.floating-icon.icon-1 {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.floating-icon.icon-2 {
    bottom: 30%;
    left: 15%;
    animation-delay: 1s;
}

.floating-icon.icon-3 {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.mission-card {
    background: var(--body-box-color);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 131, 117, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 131, 117, 0.1) 50%, transparent 70%);
    transition: left 0.6s ease;
    transform: skewX(-15deg);
}

.mission-card:hover::before {
    left: 100%;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
}

.mission-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.mission-title i {
    color: var(--first-color);
}

.mission-text {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-color);
    margin: 0 0 1.5rem 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--body-box-color);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 131, 117, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 131, 117, 0.1) 50%, transparent 70%);
    transition: left 0.6s ease;
    transform: skewX(-15deg);
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--first-color), #00a896);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 131, 117, 0.3);
}

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 0.8rem;
}

.feature-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
}

/* CTA Section */

/* CTA Section */

.cta-card {
    background: linear-gradient(135deg, var(--first-color), #00a896);
    border-radius: 25px;
    padding: 4rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--first-color);
    border: 2px solid white;
}

.cta-buttons .btn-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn-outline-primary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn-outline-primary:hover {
    background: white;
    color: var(--first-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Dark Theme */
body.dark-theme .about-hero {
    background: linear-gradient(135deg, var(--body-color) 0%, var(--body-box-color) 100%);
}

body.dark-theme .stat-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* رسپانسیو برای صفحه درباره ما */
@media (max-width: 1200px) {
    .stat-item {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 992px) {
    .about-hero {
        padding: 3rem 0;
        margin: 1.5rem 0;
    }
    
    .about-title {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }
    
    .about-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-item {
        width: 100px;
        height: 100px;
        margin: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 2rem 0;
        margin: 1rem 0;
        border-radius: 15px;
    }
    
    .about-title {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .about-subtitle {
        font-size: 0.95rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .stat-item {
        height: 120px;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .mission-card {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .mission-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .mission-text {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }
    
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .feature-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .cta-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .cta-description {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 1.2rem;
    }
    
    .cta-buttons .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    .cta-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .cta-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .about-hero {
        padding: 1.5rem 0;
        margin: 0.5rem 0;
        border-radius: 10px;
    }
    
    .about-title {
        font-size: 1.2rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }
    
    .about-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .stat-item {
        height: 100px;
        padding: 0.8rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
        margin-bottom: 0.4rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
        line-height: 1.1;
    }
    
    .mission-card {
        padding: 1rem;
        margin: 0.5rem 0;
    }
    
    .mission-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .mission-text {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }
    
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-card {
        padding: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .feature-title {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .feature-description {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .cta-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
        margin-bottom: 0.8rem;
    }
    
    .cta-description {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 1.2rem;
    }
    
    .cta-buttons .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

body.dark-theme .mission-card {
    background: var(--body-box-color);
    border-color: rgba(0, 211, 187, 0.2);
}

body.dark-theme .feature-card {
    background: var(--body-box-color);
    border-color: rgba(0, 211, 187, 0.2);
}

body.dark-theme .value-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .about-title {
        font-size: 1.8rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 0.8rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .mission-card {
        padding: 2rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .values-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .cta-card {
        padding: 2.5rem 1.5rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .mission-title {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .values-title {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}
.awards {
    padding: 0;
    background: #ffffff;
    border-radius: 20px;
    margin: 0;
    position: relative;
    overflow: hidden;
}

/* Dark Theme */
body.dark-theme .awards {
    background: var(--body-box-color);
}

body.dark-theme .award-link {
    background: transparent;
    border-color: rgba(0, 211, 187, 0.3);
    color: var(--text-color);
}

body.dark-theme .award-link:hover {
    border-color: rgba(0, 211, 187, 0.8);
}

body.dark-theme .award-title {
    color: var(--title-color);
}

body.dark-theme .award-link:hover .award-title {
    color: var(--first-color);
}

body.dark-theme .award-summary {
    color: var(--text-color);
}

body.dark-theme .award-link:hover .award-summary {
    color: var(--text-color);
}

body.dark-theme .swiper-pagination-awards .swiper-pagination-bullet {
    background: rgba(0, 211, 187, 0.5);
}

body.dark-theme .swiper-pagination-awards .swiper-pagination-bullet-active {
    background: var(--first-color);
}

#awards .swiper-awards-container,
.swiper-awards-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    padding: 2rem 0 3rem 0;
    overflow: hidden;
}

.swiper-awards-container .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
}

.award-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    height: 280px;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

.award-link {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 30px;
    border-radius: 20px;
    background: var(--body-box-color);
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.award-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 131, 117, 0.1) 50%, transparent 70%);
    transition: left 0.6s ease;
    transform: skewX(-15deg);
}

.award-link:hover::before {
    left: 100%;
}

.award-link:hover {
    transform: translateY(-8px);
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #e67e22;
}

.award-image {
    width: 100px;
    height: 100px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.award-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: none;
    background: transparent;
}

.award-link:hover .award-image img {
    transform: scale(1.1) rotate(-3deg);
    filter: none;
}

.award-title {
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
    margin: 0 0 0.6rem 0;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.award-link:hover .award-title {
    color: #e67e22;
    transform: translateY(-3px);
}

.award-summary {
    font-size: 1.05rem;
    color: #666;
    text-align: center;
    line-height: 1.6;
    margin: 0;
    transition: all 0.3s ease;
}

.award-link:hover .award-summary {
    color: #555;
}

/* Swiper Pagination Styling */
.swiper-pagination-awards {
    bottom: 0 !important;
    position: relative;
    margin-top: 1rem;
}

.swiper-pagination-awards .swiper-pagination-bullet {
    background: #b3d9d4;
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

.swiper-pagination-awards .swiper-pagination-bullet-active {
    background: #008375;
    opacity: 1;
    width: 12px;
    height: 12px;
}

/* Responsive Design for Awards */
@media (max-width: 1024px) {
    .award-box {
        height: 250px;
    }

    .award-image {
        width: 90px;
        height: 90px;
    }

    .award-title {
        font-size: 1.2rem;
    }

    .award-summary {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .awards.section {
        padding: 2rem 0.75rem !important;
    }

    #awards .swiper-awards-container,
    .swiper-awards-container {
        width: 100%;
        max-width: 100%;
        padding: 1.25rem 0 3rem !important;
    }

    .swiper-awards-container .swiper-slide {
        width: 100% !important;
        max-width: 100%;
    }

    .award-box {
        height: auto;
        min-height: 240px;
    }

    .award-link {
        padding: 1.75rem 1.25rem !important;
        min-height: 240px;
    }

    .award-image {
        width: 88px;
        height: 88px;
        margin-bottom: 1rem;
    }

    .award-title {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }

    .award-summary {
        font-size: 0.95rem;
        line-height: 1.7;
        max-width: 100%;
    }
}

@media (max-width: 479.98px) {
    .awards.section {
        padding: 2rem 0.5rem !important;
    }

    #awards .swiper-awards-container,
    .swiper-awards-container {
        padding: 1rem 0 3rem !important;
    }

    .award-link {
        padding: 1.5rem 1rem !important;
        min-height: 220px;
    }

    .award-image {
        width: 80px;
        height: 80px;
    }

    .award-title {
        font-size: 1.05rem;
    }

    .award-summary {
        font-size: 0.9rem;
    }
}

/*=============== COMMENTS SYSTEM ===============*/
.comments-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

/* Dark Theme */
body.dark-theme .comments-section {
    background: var(--body-box-color);
    color: var(--text-color);
}

/* رسپانسیو برای سیستم نظرات */
@media (max-width: 768px) {
    .comment-header {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .comment-author {
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-bottom: 0.5rem !important;
    }
    
    .comment-author strong {
        margin-bottom: 0.25rem;
    }
    
    .comment-actions {
        margin-top: 0.5rem;
        width: 100%;
        justify-content: flex-start;
    }
    
    .comment-actions .btn-link {
        font-size: 0.875rem;
        padding: 0.2rem 0.4rem;
    }
    
    .reply-item {
        margin-left: 1rem !important;
    }
    
    .reply-header {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .reply-author {
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-bottom: 0.5rem !important;
    }
    
    .reply-author strong {
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 576px) {
    .comment-item {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .reply-item {
        padding: 0.75rem !important;
        margin-left: 0.5rem !important;
    }
    
    .comment-actions .btn-link {
        font-size: 0.8rem;
        padding: 0.15rem 0.3rem;
    }
    
    .comment-form textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
        min-height: 100px;
    }
}

.comments-title {
    color: var(--title-color);
    font-size: 1.5rem;
    font-weight: 700;
    border-bottom: 2px solid var(--first-color);
    padding-bottom: 0.5rem;
}

.comment-form textarea {
    border: 2px solid rgba(0, 131, 117, 0.2);
    border-radius: 10px;
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comment-form textarea:focus {
    border-color: var(--first-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 131, 117, 0.25);
    outline: none;
}

.comment-item {
    background: #f8f9fa;
    border: 1px solid rgba(0, 131, 117, 0.1) !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.comment-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 131, 117, 0.1) 50%, transparent 70%);
    transform: skewX(-15deg);
    transition: left 0.6s ease;
    z-index: 1;
}

.comment-item:hover::before {
    left: 100%;
}

.comment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 131, 117, 0.3) !important;
}

/* Dark Theme */
body.dark-theme .comment-item {
    background: var(--body-color);
    border-color: rgba(0, 211, 187, 0.2) !important;
}

body.dark-theme .comment-item:hover {
    border-color: rgba(0, 211, 187, 0.4) !important;
}

/* Dark Theme برای تاریخ و زمان */
body.dark-theme .comment-item .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark-theme .reply-item .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark-theme .comment-item small.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark-theme .reply-item small.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* اضافی برای اطمینان از نمایش تاریخ و زمان در حالت تاریک */
body.dark-theme .comment-item small {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark-theme .reply-item small {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark-theme .comment-header small {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark-theme .reply-header small {
    color: rgba(255, 255, 255, 0.6) !important;
}

.comment-author strong {
    color: var(--title-color);
    font-size: 1rem;
}

.comment-content {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.comment-actions .btn-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.comment-actions .btn-link:hover {
    background: rgba(0, 131, 117, 0.1);
    color: var(--first-color);
}

.comment-actions .btn-link.text-primary {
    color: var(--first-color) !important;
    background: rgba(0, 131, 117, 0.1);
}

.comment-actions .btn-link.text-danger {
    color: #dc3545 !important;
    background: rgba(220, 53, 69, 0.1);
}

.comment-actions .btn-outline-secondary,
.comment-actions .btn-outline-danger {
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.comment-actions .btn-outline-secondary:hover {
    background: var(--first-color);
    border-color: var(--first-color);
    color: white;
}

.comment-actions .btn-outline-danger:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Form Text */
.form-text {
    font-size: 0.875rem;
    color: var(--text-color);
}

/* Alert */
.alert-info {
    background: rgba(0, 131, 117, 0.1);
    border: 1px solid rgba(0, 131, 117, 0.2);
    color: var(--text-color);
}

.alert-info .alert-link {
    color: var(--first-color);
    font-weight: 600;
}

/* Spinner */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Load More Button */
#loadMoreBtn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

#loadMoreBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0px 4px 15px rgba(0, 131, 117, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .comments-section {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .comments-title {
        font-size: 1.3rem;
    }
    
    .comment-item {
        padding: 1rem !important;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .comment-actions {
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .comment-footer {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .comment-footer .comment-actions {
        margin-top: 0.5rem;
    }
}

/*=============== REPLY SYSTEM ===============*/
.reply-form-container {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reply-form {
    border-radius: 10px !important;
    border: 1px solid rgba(0, 131, 117, 0.2) !important;
    transition: all 0.3s ease;
}

.reply-form:hover {
    border-color: rgba(0, 131, 117, 0.4) !important;
    box-shadow: 0px 2px 10px rgba(0, 131, 117, 0.1);
}

.reply-textarea {
    border: 1px solid rgba(0, 131, 117, 0.3) !important;
    border-radius: 8px !important;
    padding: 0.75rem !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    resize: vertical !important;
    min-height: 60px !important;
    max-height: 120px !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.reply-textarea:focus {
    border-color: var(--first-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 131, 117, 0.25) !important;
    outline: none !important;
}

.reply-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.reply-actions .btn {
    border-radius: 6px !important;
    font-size: 0.875rem !important;
    padding: 0.5rem 1rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.reply-actions .btn:hover {
    transform: translateY(-1px) !important;
}

/* پاسخ‌ها */
.reply-item {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 8px !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reply-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 131, 117, 0.05) 50%, transparent 70%);
    transform: skewX(-15deg);
    transition: left 0.6s ease;
    z-index: 1;
}

.reply-item:hover::before {
    left: 100%;
}

.reply-item:hover {
    transform: translateX(5px);
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

.reply-author strong {
    font-size: 0.9rem !important;
    color: var(--first-color) !important;
}

.reply-content {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
}

/* Dark Theme */
body.dark-theme .reply-form {
    background: rgba(0, 211, 187, 0.05) !important;
    border-color: rgba(0, 211, 187, 0.2) !important;
}

body.dark-theme .reply-form:hover {
    border-color: rgba(0, 211, 187, 0.4) !important;
}

body.dark-theme .reply-textarea {
    background: var(--body-color) !important;
    border-color: rgba(0, 211, 187, 0.3) !important;
    color: var(--text-color) !important;
}

body.dark-theme .reply-textarea:focus {
    border-color: var(--first-color) !important;
}

body.dark-theme .reply-item {
    background: rgba(0, 211, 187, 0.05) !important;
}

body.dark-theme .reply-content {
    color: var(--text-color) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .reply-item {
        margin-left: 1rem !important;
    }
    
    .reply-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .reply-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/*=============== SWEETALERT2 CUSTOM STYLES ===============*/
.swal-popup-custom {
    border-radius: 15px !important;
    font-family: var(--body-font) !important;
    direction: rtl !important;
}

.swal-popup-custom * {
    font-family: var(--body-font) !important;
}

.swal-title-custom {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--title-color) !important;
    margin-bottom: 1rem !important;
    font-family: var(--body-font) !important;
}

.swal-content-custom {
    font-size: 1rem !important;
    color: var(--text-color) !important;
    line-height: 1.6 !important;
    font-family: var(--body-font) !important;
}

.swal-confirm-custom {
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    font-family: var(--body-font) !important;
}

.swal-confirm-custom:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.swal-cancel-custom {
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    background: #6c757d !important;
    border: none !important;
    font-family: var(--body-font) !important;
}

.swal-cancel-custom:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0px 4px 15px rgba(108, 117, 125, 0.3) !important;
    background: #5a6268 !important;
}

/* Dark Theme */
body.dark-theme .swal-popup-custom {
    background: var(--body-box-color) !important;
    border: 1px solid rgba(0, 211, 187, 0.2) !important;
    font-family: var(--body-font) !important;
}

body.dark-theme .swal-title-custom {
    color: var(--title-color) !important;
    font-family: var(--body-font) !important;
}

body.dark-theme .swal-content-custom {
    color: var(--text-color) !important;
    font-family: var(--body-font) !important;
}

/* Animation Classes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    to {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }
}

.animate__animated {
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

.animate__fadeInDown {
    animation-name: fadeInDown;
}

.animate__fadeOutUp {
    animation-name: fadeOutUp;
}

/* اضافی برای SweetAlert2 */
.swal2-popup {
    font-family: var(--body-font) !important;
}

.swal2-popup * {
    font-family: var(--body-font) !important;
}

.swal2-title {
    font-family: var(--body-font) !important;
}

.swal2-content {
    font-family: var(--body-font) !important;
}

.swal2-confirm {
    font-family: var(--body-font) !important;
}

.swal2-cancel {
    font-family: var(--body-font) !important;
}

/* استایل بخش مترجم‌های پیشنهادی */
.translators-section {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.translators-title {
    color: var(--first-color);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid var(--first-color);
    padding-bottom: 0.5rem;
}

.translators-title i {
    color: var(--first-color);
    font-size: 1.2rem;
}

.translators-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.translator-item {
    background: transparent;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.translator-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 131, 117, 0.1) 50%, transparent 70%);
    transition: left 0.6s ease;
    transform: skewX(-15deg);
}

.translator-item:hover {
    transform: translateY(-3px);
    box-shadow: 0px 4px 15px rgba(0, 131, 117, 0.2);
    text-decoration: none;
    color: #008375;
    border-color: #008375;
}

.translator-item:hover::before {
    left: 100%;
}

.translator-name {
    margin-bottom: 8px;
}

.translator-name strong {
    color: #008375;
    font-size: 1.1em;
}

.translator-full-name {
    color: #6c757d;
    font-size: 0.9em;
    margin-right: 5px;
}

.translator-description {
    color: #495057;
    line-height: 1.6;
    font-size: 0.95em;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    border-right: 3px solid #008375;
}

/* استایل مترجم‌های ویژه */
.featured-translator {
    border: 2px solid #ffc107 !important;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%) !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2) !important;
}

.featured-translator::before {
    background: linear-gradient(45deg, transparent 30%, rgba(255, 193, 7, 0.1) 50%, transparent 70%) !important;
}

.featured-translator:hover {
    transform: translateY(-3px);
    box-shadow: 0px 4px 15px rgba(255, 193, 7, 0.2) !important;
    border-color: #ffc107 !important;
    color: #ffc107 !important;
}

.featured-badge {
    background: transparent;
    color: #ffc107;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    margin-left: 8px;
    display: inline-block;
    box-shadow: none;
}

/* تم تاریک */
body.dark-theme .translators-section {
    background: var(--body-box-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-theme .translator-item {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

body.dark-theme .translator-item:hover {
    background: transparent;
    border-color: var(--first-color);
    color: var(--first-color);
}

body.dark-theme .translator-name strong {
    color: var(--first-color);
}

body.dark-theme .translator-full-name {
    color: var(--text-color);
}

body.dark-theme .translator-description {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border-right-color: var(--first-color);
}

body.dark-theme .featured-translator {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, transparent 100%) !important;
    border-color: #ffc107 !important;
}

body.dark-theme .featured-translator:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, transparent 100%) !important;
    border-color: #ffc107 !important;
    color: #ffc107 !important;
}

body.dark-theme .featured-badge {
    color: #ffc107;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .translators-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .translator-item {
        padding: 12px;
    }
    
    .translator-description {
        padding: 8px;
        font-size: 0.9em;
    }
}

/* نظرات در انتظار تایید */
.comment-pending {
    background-color: rgba(255, 193, 7, 0.15) !important;
    border-color: #ffc107 !important;
}

.dark-only .comment-pending {
    background-color: rgba(255, 193, 7, 0.2) !important;
    border-color: #ffc107 !important;
}

.comment-pending .comment-content {
    opacity: 0.85;
}

.dark-only .comment-pending .comment-content {
    opacity: 0.8;
}

/* پاسخ‌های در انتظار تایید */
.reply-item.comment-pending {
    background-color: rgba(255, 193, 7, 0.1) !important;
    border-left-color: #ffc107 !important;
}

.dark-only .reply-item.comment-pending {
    background-color: rgba(255, 193, 7, 0.15) !important;
    border-left-color: #ffc107 !important;
}

/* ========== PWA banners ========== */
.pwa-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .875rem 1rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(0, 131, 117, 0.18);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
    transform: translateY(calc(100% + 2rem));
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease;
    max-width: 32rem;
    margin-inline: auto;
}

.pwa-banner--visible {
    transform: translateY(0);
    opacity: 1;
}

.pwa-banner__content {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.pwa-banner__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.pwa-banner__text {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

.pwa-banner__text strong {
    font-size: .95rem;
    color: var(--first-color, #008375);
}

.pwa-banner__text span {
    font-size: .82rem;
    color: #666;
    line-height: 1.5;
}

.pwa-banner__actions {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-shrink: 0;
}

.pwa-banner__btn {
    border: none;
    border-radius: .65rem;
    padding: .5rem .85rem;
    font-size: .85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s;
}

.pwa-banner__btn:hover {
    opacity: .88;
}

.pwa-banner__btn--primary {
    background: var(--first-color, #008375);
    color: #fff;
}

.pwa-banner__btn--ghost {
    background: transparent;
    color: #666;
}

.pwa-banner--install {
    border-color: rgba(0, 131, 117, 0.25);
}

.pwa-banner--update {
    border-color: rgba(255, 193, 7, 0.45);
    background: #fffdf5;
}

@media (max-width: 575.98px) {
    .pwa-banner {
        flex-direction: column;
        align-items: stretch;
        bottom: .75rem;
    }

    .pwa-banner__actions {
        justify-content: flex-end;
    }
}

.dark-only .pwa-banner {
    background: #1e1e1e;
    border-color: rgba(0, 131, 117, 0.35);
}

.dark-only .pwa-banner__text span {
    color: #aaa;
}

.dark-only .pwa-banner--update {
    background: #252520;
}

/* PWA — دکمه نصب در منوی موبایل */
.pwa-install-menu-btn {
    width: 100%;
    border: none;
    background: transparent;
    text-align: inherit;
    font-family: inherit;
}

.pwa-install-menu-btn.is-visible {
    color: var(--first-color, #008375);
}

.pwa-install-menu-btn.is-visible i {
    color: var(--first-color, #008375);
}

@media screen and (min-width: 1150px) {
    .pwa-install-menu-btn,
    .pwa-install-menu-btn.is-visible {
        display: none !important;
    }
}

/* PWA — راهنمای نصب iOS */
.pwa-ios-guide {
    position: fixed;
    inset: 0;
    z-index: 10100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.pwa-ios-guide--visible {
    opacity: 1;
    visibility: visible;
}

.pwa-ios-guide__dialog {
    position: relative;
    width: 100%;
    max-width: 24rem;
    background: #fff;
    border-radius: 1.25rem 1.25rem 0 0;
    padding: 1.5rem 1.25rem 1.25rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform .35s ease;
    box-sizing: border-box;
    overflow: hidden;
    direction: rtl;
}

.pwa-ios-guide--visible .pwa-ios-guide__dialog {
    transform: translateY(0);
}

.pwa-ios-guide__close {
    position: absolute;
    top: .75rem;
    inset-inline-start: .75rem;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.pwa-ios-guide__icon {
    font-size: 2.5rem;
    margin-bottom: .75rem;
}

.pwa-ios-guide__title {
    font-size: 1.15rem;
    color: var(--first-color, #008375);
    margin-bottom: .5rem;
}

.pwa-ios-guide__text {
    font-size: .9rem;
    color: #666;
    margin-bottom: 1rem;
}

.pwa-ios-guide__steps {
    text-align: right;
    margin: 0 0 1.25rem;
    padding-inline: 1rem;
    font-size: .88rem;
    line-height: 1.9;
    color: #444;
    list-style-position: inside;
}

.pwa-ios-guide__share-icon {
    display: inline-block;
    font-size: 1.1rem;
    vertical-align: middle;
}

.pwa-ios-guide__footer {
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.pwa-ios-guide__btn {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: none;
    border-radius: .75rem;
    padding: .75rem 1rem;
    background: var(--first-color, #008375);
    color: #fff;
    font-size: .95rem;
    cursor: pointer;
    margin: 0;
    font-family: inherit;
}

.dark-only .pwa-ios-guide__dialog {
    background: #1e1e1e;
}

.dark-only .pwa-ios-guide__text,
.dark-only .pwa-ios-guide__steps {
    color: #bbb;
}
