/* ===================================================
   Tarsaf Architecture Theme
   Pixel-perfect replica of Next Office (Taghaboni) design
   ===================================================*/

/* @import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap'); */

/* ===== Variables ===== */
:root {
  --bg: rgba(0, 0, 0, 0.9);
  --text: #fff; /*#92a49c;*/
  --text-hover: #ffffff;
  --accent: #806f47; /*#64897a;*/
  --accent-dark: #806f47; /*#4d5854;*/
  --accent-dark-transparent: #4d585488;
  --nav-bg: black; /* rgba(255, 255, 255, 0.8);*/
  --font: "Vazirmatn", Tahoma, sans-serif;
  --loop-w: 540px;
  --loop-h: 70vh;

}
.shop-card__meta span, .shop-card__body p{
    color: black;

}
/* ===== Reset ===== */
*::after {
  background: var(--bg);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: none;
  scroll-behavior: unset;
}

html {
  background: black;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  direction: rtl;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

html,
body {
  overflow: hidden;
  height: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

::-webkit-scrollbar {
  display: none;
}

.copyright {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ===== Splash ===== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 1s, height 1s;
}

.splash img {
  width: 120px;
}

.splash__text {
  font-size: 1.8rem;
  color: var(--accent);
  letter-spacing: 4px;
}

/* ===== Logo ===== */
.next-logo {
  text-align: center;
  margin-top: 10px;
  position: relative;
  z-index: 10;
}

.next-logo img,
.next-logo .site-logo {
  width: 70px;
  margin: 0 auto;
  display: block;
}

.next-logo .site-name {
  display: block;
  color: var(--accent);
  font-size: 1.4rem;
  letter-spacing: 4px;
  font-weight: 300;
}

/* ===== Main Loop ===== */
.loop {
  max-width: var(--loop-w);
  height: 65%;
  margin: 20px auto 0;
  position: relative;
  transition: max-width 1s 1s ease;
}

html[data-changewidth="true"] .loop {
  max-width: 740px;
}

html[data-changewidth="false"] .loop {
  max-width: var(--loop-w);
}

.border-image {
  position: absolute;
  top: 0;
  width: 5px;
  height: 100%;
  pointer-events: none;
}

.border-image--left {
  left: -3%;
  transition: left 1s ease;
}

.border-image--right {
  right: -3%;
  transition: right 1s ease;
}


.content-wrapper {
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* ===== Screens ===== */
.screen {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  overflow: hidden;
}

.screen--waiting {
  opacity: 0;
  transition: opacity 1s;
  z-index: 5;
  pointer-events: none;
}

.screen--content {
  transition: top 1s;
  top: 0;
}

.screen--content.visible,
html[data-screen="AjaxContentScreen"] .screen--content {
  top: -5000px;
}

html[data-screen="AjaxContentScreen"][data-changewidth="true"] .screen--content {
  transition-delay: 2s;
}

html[data-screen="AjaxContentScreen"][data-changewidth="false"] .screen--content {
  transition-delay: 1s;
}

.waiting-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--accent);
}

.loading-svg {
  width: 80px;
  margin-bottom: 1rem;
  opacity: 0.6;
}

/* ===== Front Screen (Home) ===== */
.front-screen {
  display: flex;
  white-space: nowrap;
  height: 100%;
}

.front-screen__item {
  width: 25%;
  display: inline-flex;
  height: 100%;
  text-align: center;
  color: var(--accent);
  position: relative;
  transition: width 0.5s;
}

.front-screen__label {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
}

.front-screen__label>div {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  text-align: center;
  transition: left 5s 15s;
  left: -100%;
}

.front-screen__divider {
  position: absolute;
  top: 0;
  right: -2px;
  width: 5px;
  height: 100%;
  overflow: hidden;
  transition: width 0.5s 1s;
}

html[data-screen="FrontScreen"] .front-screen__divider {
  width: 5px;
}

.front-screen__divider img {
  width: 5px;
  height: 100%;
}

.front-screen:hover .front-screen__item {
  width: 23%;
}

.front-screen:hover .front-screen__item:hover {
  width: 30.5%;
}

/* ===== Archive (Projects) ===== */
.archive {
  height: 100%;
}

.taxonomy {
  float: right;
  width: 18%;
  height: 100%;
  position: relative;
  overflow-y: auto;
}

.taxonomy__inner {
  padding: 5px;
}

.taxonomy__border {
  position: absolute;
  top: 0;
  left: -1px;
  width: 5px;
  height: 100%;
}

.filter-group {
  margin-bottom: 25px;
}

.filter-group h2 {
  font-size: medium;
  font-weight: normal;
  text-align: right;
  margin-bottom: 4px;
}

.filter-group__all {
  cursor: pointer;
  opacity: 0.1;
  transition: opacity 0.5s;
}

.taxonomy.emphasized .filter-group__all.active,
.filter-group__all:hover {
  opacity: 1;
}

.filter-item {
  cursor: pointer;
  height: 25px;
  transition: all 0.5s;
}

.filter-item>div {
  height: 25px;
  overflow: hidden;
  padding: 5px 3px;
  text-align: right;
  color: #92a49c;
  font-size: 14px;
  transition: all 0.5s;
}

.filter-item:hover>div,
.filter-item.emphasized>div {
  background-color: var(--accent-dark);
  color: white;
}

.filter-item a {
  color: inherit;
  display: block;
}

.archive__content {
  float: left;
  width: 80%;
  height: 100%;
  position: relative;
  overflow-y: auto;
}

.project-grid {
  position: relative;
  width: 100%;
  min-height: 560px;
}

.project-tile {
  position: absolute;
  overflow: hidden;
  transition: opacity 0.4s;
  border-radius: 0;
}

.project-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-tile__hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s;
}

.project-tile:hover .project-tile__hover {
  opacity: 1;
}

.taxonomy.emphasized~.archive__content .project-tile {
  opacity: 0.3;
}

.no-results {
  padding: 40px 20px;
  text-align: center;
  color: var(--accent);
}

/* ===== Project Detail ===== */
.project-detail {
  padding: 20px;
  overflow-y: auto;
  height: 100%;
  color: var(--text);
}

.project-detail__header h1 {
  font-size: 1.1rem;
  font-weight: normal;
  margin-bottom: 8px;
  color: var(--text-hover);
}

.project-detail__meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.project-detail__meta span {
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-dark);
  border-top: 1px solid var(--accent-dark);
  padding: 2px 6px;
}

.project-detail__gallery {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.project-detail__hero {
  width: 100%;
  cursor: pointer;
  transition: opacity 0.3s;
}

.project-detail__hero:hover {
  opacity: 0.85;
}

.project-detail__description {
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 20px;
  text-align: justify;
}

.project-detail__types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.project-detail__types span {
  font-size: 12px;
  padding: 2px 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.project-detail__types a {
  color: inherit;
}

.project-detail__back {
  font-size: 13px;
  color: var(--accent);
  transition: letter-spacing 0.3s;
  display: inline-block;
  margin-bottom: 20px;
}

.project-detail__back:hover {
  letter-spacing: 1px;
}

.project-detail__nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(100, 137, 122, 0.2);
}

.project-nav {
  font-size: 12px;
  color: var(--accent);
  flex: 1;
}

.project-nav span {
  display: block;
  opacity: 0.6;
  font-size: 11px;
}

.project-nav strong {
  display: block;
  color: var(--accent-dark);
}

.project-nav--next {
  text-align: left;
}

/* ===== About ===== */
.about-page {
  padding: 20px;
  overflow-y: auto;
  height: 100%;
}

.about-page__intro h1 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 12px;
  color: var(--text-hover);
}

.about-page__intro p,
.about-page__content p {
  font-size: 13px;
  margin-bottom: 12px;
  text-align: justify;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.team-member {
  cursor: pointer;
  padding: 8px;
  transition: background 0.3s;
}

.team-member:hover {
  background: rgba(255, 255, 255, 0.05);
}

.team-member__img {
  margin-bottom: 6px;
}

.team-member__img img {
  width: 100%;
  border-radius: 2px;
}

.team-member h3 {
  font-size: 13px;
  font-weight: normal;
  color: var(--text);
}

.team-member__role {
  font-size: 11px;
  color: var(--accent);
  margin-top: 2px;
}

.team-former {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.team-former p {
  font-size: 12px;
  opacity: 0.6;
  margin-bottom: 8px;
}

.team-former h3 {
  font-size: 13px;
  font-weight: normal;
}

/* ===== Contact ===== */
.contact-page {
  padding: 20px;
  overflow-y: auto;
  height: 100%;
  font-size: 13px;
}

.contact-page h1 {
  font-size: 1.1rem;
  font-weight: normal;
  margin-bottom: 20px;
  color: var(--text-hover);
}

.contact-page__hours {
  margin-bottom: 20px;
  color: var(--text-hover);
}

.contact-page__block {
  margin-bottom: 20px;
}

.contact-page__block p {
  margin-bottom: 8px;
}

.contact-page a {
  color: var(--accent);
  transition: opacity 0.3s;
}

.contact-page a:hover {
  opacity: 0.7;
}

.contact-page__legal {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 30px;
  line-height: 1.8;
}

/* ===== Blog / Articles ===== */
.news-page {
  padding: 20px;
  overflow-y: auto;
  height: 100%;
}

.news-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.news-item time {
  font-size: 11px;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.news-item h2 {
  font-size: 1rem;
  font-weight: normal;
  margin: 6px 0;
  color: var(--text-text);
}

.news-item h2 a {
  color: inherit;
  transition: color 0.3s;
}

.news-item h2 a:hover {
  color: var(--accent);
}

.news-item p {
  font-size: 13px;
}

.read-more {
  font-size: 12px;
  color: var(--accent);
  transition: letter-spacing 0.3s;
  display: inline-block;
  margin-top: 8px;
}

.read-more:hover {
  letter-spacing: 1px;
}

/* ===== Single Article ===== */
.single-article {
  padding: 20px;
  overflow-y: auto;
  height: 100%;
}

.article-header {
  margin-bottom: 20px;
}

.article-header h1 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-hover);
}

.article-meta {
  font-size: 11px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--accent);
}

.article-hero {
  margin-bottom: 20px;
}

.article-hero__img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.article-body {
  font-size: 13px;
  line-height: 2;
  text-align: justify;
}

.article-body h2,
.article-body h3 {
  color: var(--accent-dark);
  margin: 20px 0 8px;
}

.article-body p {
  margin-bottom: 14px;
}

.article-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(100, 137, 122, 0.2);
}

.article-tags {
  font-size: 12px;
  margin-bottom: 12px;
}

.article-share {
  display: flex;
  gap: 12px;
  font-size: 12px;
}

.article-share a {
  color: var(--accent);
}

.article-cats {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.course-cat-tag {
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 2px;
}

/* ===== Shop Pages (Courses / Books) ===== */
.shop-page {
  padding: 20px;
  overflow-y: auto;
  height: 100%;
}

.shop-page__header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(100, 137, 122, 0.2);
}

.shop-page__header h1 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent-dark);
  margin-bottom: 4px;
}

.shop-page__header p {
  font-size: 12px;
  color: var(--text);
}

.shop-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.shop-filter__btn {
  font-size: 11px;
  padding: 3px 9px;
  border: 1px solid rgba(100, 137, 122, 0.3);
  color: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
  cursor: pointer;
}

.shop-filter__btn:hover,
.shop-filter__btn.active {
  background: var(--accent-dark);
  color: white;
  border-color: var(--accent-dark);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.books-grid {
  grid-template-columns: repeat(4, 1fr);
}

.shop-card {
  background: white;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s, box-shadow 0.3s;
}

.shop-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.shop-card__img {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/10;
  position: relative;
}

.shop-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.shop-card:hover .shop-card__img img {
  transform: scale(1.04);
}

.shop-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.shop-card__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: white;
  color: var(--accent);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 2px;
}

.shop-card__body {
  padding: 12px;
}

.shop-card__title {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--accent-dark);
}

.shop-card__title a {
  color: inherit;
  transition: color 0.3s;
}

.shop-card__title a:hover {
  color: var(--accent);
}

.shop-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 11px;
  margin-bottom: 8px;
  color: var(--text);
}

.shop-card__excerpt {
  font-size: 12px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 10px;
}

.shop-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.book-card .shop-card__img {
  aspect-ratio: 3/4;
}

.book-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 16px;
}

.book-card__placeholder span {
  color: white;
  font-size: 0.85rem;
  text-align: center;
}

/* Single Course / Book */
.single-course,
.single-book {
  padding: 20px;
  overflow-y: auto;
  height: 100%;
}

.single-course__top,
.single-book__top {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.single-course__media,
.single-book__cover {
  width: 45%;
  flex-shrink: 0;
}

.single-course__media img,
.single-book__cover img {
  width: 100%;
  border-radius: 3px;
}

.single-course__info,
.single-book__info {
  flex: 1;
}

.single-course__info h1,
.single-book__info h1 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.course-video-preview {
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 3px;
  overflow: hidden;
}

.course-video-preview iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.course-specs,
.book-specs {
  font-size: 13px;
  margin: 10px 0 16px;
}

.course-specs li,
.book-specs li {
  padding: 5px 0;
  border-bottom: 1px solid rgba(100, 137, 122, 0.1);
}

.course-specs strong,
.book-specs strong {
  color: var(--accent-dark);
}

.single-course__content,
.single-book__description {
  font-size: 13px;
  line-height: 2;
  text-align: justify;
  margin-bottom: 20px;
}

.course-price-box {
  margin-bottom: 14px;
}

/* Level badges */
.level-badge {
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 10px;
  color: white;
}

.level-badge.level-مقدماتی {
  background: #6baf92;
}

.level-badge.level-متوسط {
  background: #e6a847;
}

.level-badge.level-پیشرفته {
  background: #c0452e;
}

/* Price */
.price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.price-old {
  text-decoration: line-through;
  opacity: 0.5;
  font-size: 0.85rem;
  display: block;
}

.price-sale {
  font-size: 1rem;
  font-weight: 600;
  color: #c0452e;
}

.price.free {
  color: var(--accent);
}

/* Buy button */
.btn-buy {
  display: inline-block;
  padding: 7px 16px;
  background: var(--accent-dark);
  color: white;
  border-radius: 3px;
  font-size: 12px;
  transition: background 0.3s, letter-spacing 0.3s;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

.btn-buy:hover {
  background: var(--accent);
  letter-spacing: 1px;
}

.btn-buy--large {
  padding: 10px 24px;
  font-size: 13px;
  display: block;
  text-align: center;
  width: 100%;
}

.btn-buy--free {
  background: var(--accent);
}

/* Default/Search/404 pages */
.default-page {
  padding: 20px;
  overflow-y: auto;
  height: 100%;
}

.default-page h1 {
  font-size: 1.1rem;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.page-content {
  font-size: 13px;
  line-height: 2;
  text-align: justify;
}

.page-content p {
  margin-bottom: 12px;
}

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px;
  text-align: center;
}

.error-page h1 {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 300;
}

.error-page p {
  margin-bottom: 20px;
}

.search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.search-form input {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid rgba(100, 137, 122, 0.3);
  font-family: var(--font);
  font-size: 13px;
  border-radius: 2px;
  direction: rtl;
}

.breadcrumb {
  font-size: 12px;
  color: var(--text);
}

.breadcrumb a {
  color: var(--accent);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

.pagination a,
.pagination span {
  padding: 3px 9px;
  border: 1px solid rgba(100, 137, 122, 0.3);
  font-size: 12px;
}

.pagination .current {
  background: var(--accent-dark);
  color: white;
  border-color: var(--accent-dark);
}

.articles-list .news-item {
  display: flex;
  gap: 14px;
}

.news-item__thumb {
  width: 110px;
  flex-shrink: 0;
}

.news-item__thumb img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.news-item__content {
  flex: 1;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 20px 0;
}

/* ===== Meta Bar ===== */
.meta-bar {
  max-width: var(--loop-w);
  margin: 15px auto 15px;
  height: 10px;
  opacity: 0;
  transition: opacity 0.5s;
  position: relative;
}

html[data-changewidth="true"] .meta-bar {
  max-width: 740px;
}

html[data-changewidth="false"] .meta-bar {
 display: none;
}

.meta-bar.active {
  opacity: 1;
}

/* ===== Language Switch ===== */
.lang-switch {
  position: fixed;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  background: #fff;
  opacity: 0;
  transition: opacity 0.4s;
  padding: 4px 0;
  z-index: 50;
  display: none;
}

.lang-switch.visible {
  opacity: 1;
}

.lang-switch a {
  margin: 0 7px;
  font-size: 10px;
  color: #333;
  transition: opacity 0.3s;
}

.lang-switch a.active {
  font-weight: 600;
}

.lang-switch a:hover {
  opacity: 0.6;
}

.show {
  display: block !important;
}

/* ===== Bottom Nav ===== */
.bottom-nav {
  width: 100%;
  margin-top: 10px;
  background: var(--nav-bg);
  transition: opacity 0.4s 1s;
  position: relative;
  z-index: 40;
}

.bottom-nav__links {
  max-width: var(--loop-w);
  margin: 5px auto;
  display: flex;
}

html[data-changewidth="true"] .bottom-nav__links {
  max-width: 740px;
}

.bottom-nav__links a {
  display: inline-block;
  width: 20%;
  text-align: center;
  overflow: hidden;
  padding: 3px 0;
  font-size: 13px;
  transition: all 0.4s;
}

.bottom-nav__links a:hover,
.bottom-nav__links a.active {
  letter-spacing: 1px;
  color: #a5aaa8;

}

.bottom-nav__links a.active {
  border-right: 1px solid #a5aaa8;
  border-left: 1px solid #a5aaa8;
  border-radius: 0%;
}

.nav-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.nav-cart__count {
  background: var(--accent);
  color: white;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav__menu {
  display: none;
}

/* ===== Image Overlay ===== */
.image-overlay {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  text-align: center;
  overflow-y: auto;
  z-index: 99999;
  transition: top 0.4s;
}

.image-overlay.open {
  top: 0;
}

.image-overlay__close {
  position: absolute;
  right: 0;
  top: 20px;
  background: var(--accent);
  color: white;
  border: none;
  padding: 5px 20px 5px 10px;
  font-size: 1.1rem;
  cursor: pointer;
  font-family: var(--font);
}

.image-overlay__main {
  padding-top: 50px;
  max-width: 90%;
  margin: 0 auto;
}

.image-overlay__main img {
  max-width: 100%;
      margin: auto;

}

.image-overlay__thumbs {
  max-width: 1000px;
  margin: 16px auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.image-overlay__thumbs img {
  width: 14%;
  min-width: 60px;
  opacity: 0.6;
  filter: grayscale(100%);
  cursor: pointer;
  transition: opacity 0.5s;
}

.image-overlay__thumbs img:hover {
  opacity: 1;
  filter: none;
}
/* ===================================================
   Responsive – اصلاح‌شده
   =================================================== */



/* --- برای موبایل (عرض کمتر از 560px) --- */
@media (max-width: 1000px) {
  html,
  body {
    overflow: auto;
    height: auto;
  }

  .next-logo {
    margin-top: 80px;
  }
  .logo > img {
    display: none;
  }

  .loop {
    height: auto;
    margin-top: 0px;
    max-width: 100% !important;
    padding: 0 10px;
  }

  .border-image {
    display: none;
  }

  .content-wrapper {
    height: auto;
    overflow: visible;
  }

  .screen {
    position: static;
    height: auto;
    overflow: visible;
  }

  .screen--content {
    top: 0;
  }

  .front-screen {
    flex-direction: column;
  }

  .front-screen__item {
    width: 100% !important;
    height: 80px;
    align-items: center;
    justify-content: center;
  }

  .front-screen__divider {
    display: none;
  }

  .archive {
    flex-direction: column;
  }

  .taxonomy {
    display: none;
  }

  .archive__content {
    float: none;
    width: 100%;
  }

  .project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: auto !important;
    gap: 6px;
    padding: 6px;
  }

  .project-tile {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1;
    margin: 0;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }

  .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  html[data-changewidth="true"] .bottom-nav__links {
    max-width: 100%;
  }

  .meta-bar {
    display: none;
  }

  /* ===== منوی موبایل (همبرگری) ===== */
  .bottom-nav {
    background: var(--accent-dark);
    position: fixed;
    top: 0;
    bottom: auto;
    margin: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* دکمهٔ همبرگری */
  .bottom-nav__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    transition: opacity 0.3s;
    color: white;
  }
  .bottom-nav__menu:hover {
    opacity: 0.7;
  }

  /* آیکون همبرگری (با همان استایل SVG) */
  .bottom-nav__menu svg {
    width: 28px;
    height: 28px;
    stroke: white;
    stroke-width: 2;
    fill: none;
  }

  /* منوی بازشو */
  .bottom-nav__links {
    overflow: hidden;
    max-height: 0;
    flex-direction: column;
    transition: max-height 0.5s ease, opacity 0.3s;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--accent-dark);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .bottom-nav__links.open {
    max-height: 400px;
    opacity: 1;
  }

  .bottom-nav__links a {
    color: white;
    display: block;
    width: auto;
    padding: 12px 20px;
    font-size: 1rem;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: right;
    padding-right: 24px;
    transition: background 0.2s;
  }
  .bottom-nav__links a:hover,
  .bottom-nav__links a.active {
    background: rgba(255, 255, 255, 0.1);
    letter-spacing: 0.5px;
  }

  /* گزینهٔ خانه را در موبایل مخفی می‌کنیم (چون لوگو هم لینک دارد) */
  .bottom-nav__links a[data-route="home"] {
    display: none;
  }

  .splash {
    display: none;
  }

  .lang-switch {
    display: none;
  }

  .image-overlay__close {
    top: 60px;
  }

  .single-course__top,
  .single-book__top {
    flex-direction: column;
  }

  .single-course__media,
  .single-book__cover {
    width: 100%;
  }

  .news-item {
    flex-direction: column;
  }

  .news-item__thumb {
    width: 100%;
  }
}

/* ===== Tagline & Splash extras ===== */
.splash__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.splash__name {
  font-size: 2rem;
  color: var(--accent);
  letter-spacing: 5px;
  font-weight: 300;
}

.splash__tagline {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeInTagline 0.8s 0.8s forwards;
}

@keyframes fadeInTagline {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tagline under logo on home page */
.site-tagline {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1.5px;
  margin-top: 6px;
  opacity: 0.75;
  text-align: center;
  font-weight: 300;
}

/* ===== About page intro paragraphs ===== */
.about-page__content p {
  font-size: 13px;
  line-height: 1.95;
  margin-bottom: 14px;
  text-align: justify;
  color: var(--text);
}

.about-page__content p:first-child {
  font-size: 14px;
  color: var(--accent-dark);
  font-weight: 400;
  border-right: 2px solid var(--accent);
  padding-right: 10px;
  margin-bottom: 18px;
}

/* ===== Social links in footer ===== */
.social-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.social-link {
  font-size: 10px;
  color: var(--accent);
  transition: opacity 0.3s;
}

.social-link:hover {
  opacity: 0.6;
}

.about-page__extra {
  display: none;
}

.logo {
  display: none;
  top: 50%;
  right: 50%;
  opacity: 0;
    margin-top: 20px;

  transition: display 1s ease, opacity 1s ease;
}

.archive__hover-description {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  color: var(--accent-dark);
  padding: 10px 20px;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  text-align: center;
  direction: rtl;
  width: 100%;
  border-top: 1px solid var(--accent-dark);
}

.archive__hover-description.active {
  opacity: 1;
}

.hover-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  direction: rtl;
}

.hover-title {
  font-weight: bold;
  display: inline;
  font-size: 1.2rem;
}

.hover-desc {
  font-size: 0.9rem;
  opacity: 0.8;
}

.bottom-nav__menu > span{
  font-family: "Vazirmatn" !important;
  color: var(--accent) !important;
}


/* ===================================================
   Splash Logo Motion (سکانس باز شدن لوگو)
   sketch (circle + pen line + letters) → final logo
   =================================================== */
.splash-logo-stage {
  position: relative;
  width: min(58vw, 260px);
  height: min(58vw, 260px);
}

.splash-sketch {
  position: absolute;
  inset: 0;
  animation: splashSketchFade 0.55s ease-in 1.55s forwards;
}

.splash-sketch svg {
  margin-top: 5px;
  width: 100%;
  height: 100%;
  display: block;
}

.splash-sketch-circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1068;
  stroke-dashoffset: 1068;
  animation: splashDrawCircle 0.95s cubic-bezier(.65, 0, .35, 1) 0.45s forwards;
}

.splash-sketch-line {
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-dasharray: 5 7;
  stroke-dashoffset: 430;
  animation: splashDrawLine 0.6s ease-out 0.15s forwards;
}

@keyframes splashDrawCircle { to { stroke-dashoffset: 0; } }
@keyframes splashDrawLine   { to { stroke-dashoffset: 0; } }
@keyframes splashSketchFade { to { opacity: 0; } }

.splash-brand-word {
  position: absolute;
  top: 2%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5em;
  font-family: var(--font);
  font-size: clamp(12px, 2.8vw, 17px);
  letter-spacing: 0.12em;
  color: var(--accent);
}

.splash-brand-word span {
  opacity: 0;
  display: inline-block;
  transform: translateY(10px);
  animation: splashLetterIn 0.45s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: calc(0.92s + var(--i) * 0.075s);
}

@keyframes splashLetterIn { to { opacity: 1; transform: translateY(0); } }

.splash-final-logo {
  position: absolute;
  margin:  0 auto;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.93);
  animation: splashLogoIn 0.85s cubic-bezier(.16, 1, .3, 1) 1.55s forwards;
}

@keyframes splashLogoIn { to { opacity: 1; transform: scale(1); } }

.splash-glow {
  position: absolute;
  left: 78%;
  top: 25%;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  margin-top: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 106, .85) 0%, rgba(201, 168, 106, 0) 70%);
  opacity: 0;
  transform: scale(0.6);
  animation: splashGlowPulse 0.75s ease-out 2.3s forwards;
}

@keyframes splashGlowPulse {
  0%   { opacity: 0;   transform: scale(.5);  }
  35%  { opacity: .9;  transform: scale(1.25); }
  100% { opacity: 0;   transform: scale(1.6);  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-sketch,
  .splash-glow {
    display: none;
  }
  .splash-final-logo {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
