/* ============================================================
   Author page
   ============================================================ */

.author__container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}

.author__section {
    padding: 80px 0;
}

.author__section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 38px;
}

.author__section-title {
    font-family: 'Peyda', Tahoma, Arial, sans-serif;
    font-size: 32px;
    line-height: 1.4;
    margin: 0;
}

.author__section-subtitle {
    font-size: 14px;
    color: #7b817d;
    max-width: 520px;
    margin: 8px 0 0;
}

/* ---------- Intro ---------- */
.author__intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.author__intro-image {
    aspect-ratio: 4 / 5;
    border-radius: 28px;
    overflow: hidden;
    background: #dce5df;
}

.author__intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author__eyebrow {
    font-size: 13px;
    color: #247b76;
    margin-bottom: 12px;
}

.author__intro-name {
    font-family: 'Peyda', Tahoma, Arial, sans-serif;
    font-size: 42px;
    margin: 0 0 6px;
}

.author__intro-role {
    font-size: 17px;
    color: #68716d;
    margin-bottom: 26px;
}

.author__intro-text {
    font-size: 16px;
    color: #515b57;
    line-height: 2.2;
}

.author__intro-text p + p {
    margin-top: 18px;
}

/* ---------- Literary quote ---------- */
.author__literary {
    background: #ebe8df;
    border-radius: 32px;
    padding: 75px 10%;
    text-align: center;
}

.author__literary-mark {
    font-size: 52px;
    color: #247b76;
    line-height: 1;
    margin-bottom: 22px;
}

.author__literary-text {
    font-size: clamp(24px, 3vw, 38px);
    line-height: 2;
    color: #37413e;
    max-width: 850px;
    margin: auto;
}

.author__literary-meta {
    margin-top: 25px;
    font-size: 13px;
    color: #858984;
}

/* ---------- Story ---------- */
.author__story {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 65px;
    align-items: center;
}

.author__story-content {
    padding: 10px;
}

.author__story-image {
    height: 440px;
    border-radius: 28px;
    overflow: hidden;
    background: #dce4df;
}

.author__story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author__story-title {
    font-family: 'Peyda', Tahoma, Arial, sans-serif;
    font-size: 31px;
    margin: 0 0 20px;
}

.author__story-text {
    color: #626a66;
    font-size: 15px;
    line-height: 2.25;
}

.author__story-text p + p {
    margin-top: 18px;
}

/* ---------- Music ---------- */
.author__music {
    background: #223633;
    color: #f5f4ed;
    border-radius: 32px;
    padding: 65px;
}

.author__music-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 55px;
    align-items: center;
}

.author__music-cover {
    aspect-ratio: 1;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    background: #506f69;
}

.author__music-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author__music-cover::after {
    content: "";
    position: absolute;
    width: 145px;
    height: 145px;
    border-radius: 50%;
    background: #202523ab;
    right: -35px;
    bottom: -35px;
    border: 12px solid #606f636e;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08);
}

.author__music-eyebrow {
    font-size: 13px;
    color: #a9c8c1;
    margin-bottom: 12px;
}

.author__music-title {
    font-family: 'Peyda', Tahoma, Arial, sans-serif;
    font-size: 34px;
    margin: 0 0 20px;
    color: #f5f4ed;
}

.author__music-text {
    font-size: 15px;
    color: #c5ceca;
    line-height: 2.2;
    max-width: 700px;
    margin: 0;
}

.author__music-note {
    margin-top: 22px;
    padding: 18px 20px;
    border-right: 3px solid #6da59c;
    color: #e1e7e3;
    font-size: 14px;
}

/* ---------- Process cards ---------- */
.author__process {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.author__process-card {
    background: #fffdf9;
    border: 1px solid #e6e1d8;
    border-radius: 28px;
    padding: 40px;
}

.author__process-title {
    font-family: 'Peyda', Tahoma, Arial, sans-serif;
    font-size: 25px;
    margin: 0 0 15px;
}

.author__process-text {
    font-size: 14px;
    color: #68716d;
    line-height: 2.2;
    margin: 0;
}

/* ---------- Latest works ---------- */
.author__works {
    padding-top: 30px;
}

.author__work-more {
    font-size: 13px;
    color: #247b76;
    text-decoration: none;
    white-space: nowrap;
}

.author__work-more:hover {
    color: #0f172a;
}

.author__works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.author__work-card {
    background: #fffdf9;
    border: 1px solid #e6e1d8;
    border-radius: 22px;
    padding: 25px;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.author__work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(40, 50, 47, 0.07);
}

.author__work-type {
    font-size: 12px;
    color: #247b76;
    margin-bottom: 12px;
}

.author__work-title {
    font-family: 'Peyda', Tahoma, Arial, sans-serif;
    font-size: 19px;
    margin: 0 0 10px;
}

.author__work-title a {
    color: inherit;
    text-decoration: none;
}

.author__work-title a:hover {
    color: #247b76;
}

.author__work-excerpt {
    font-size: 13px;
    color: #747b77;
    line-height: 2;
    margin: 0;
    white-space: pre-line;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author__work-footer {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.author__work-date {
    font-size: 11px;
    color: #9b9d98;
}

.author__work-sound {
    width: 16px;
    height: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .author__intro,
    .author__story,
    .author__music-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .author__intro-image {
        max-height: 500px;
    }

    .author__music {
        padding: 40px 25px;
    }

    .author__music-cover {
        max-width: 330px;
        margin: auto;
    }

    .author__process {
        grid-template-columns: 1fr;
    }

    .author__works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .author__container {
        width: calc(100% - 24px);
    }

    .author__section {
        padding: 55px 0;
    }

    .author__section-title {
        font-size: 27px;
    }

    .author__intro-name {
        font-size: 34px;
    }

    .author__literary {
        padding: 50px 25px;
    }

    .author__literary-text {
        font-size: 22px;
    }

    .author__story-image {
        height: 300px;
    }

    .author__music-title {
        font-size: 28px;
    }

    .author__process-card {
        padding: 30px 25px;
    }

    .author__works-grid {
        grid-template-columns: 1fr;
    }

    .author__work-card {
        min-height: 175px;
    }
}

.hero {
position: relative;
width: 90%;
aspect-ratio: 3/ 1;
border-radius: 16px;
overflow: hidden;
background: #0f172a;
padding:0;
margin: 5%;
}

.hero__track {
position: relative;
width: 100%;
height: 100%;
}

.hero__slide {
position: absolute;
inset: 0;
opacity: 0;
animation: heroFade 12s infinite;
}

.hero__slide:nth-child(1) { animation-delay: 0s; }
.hero__slide:nth-child(2) { animation-delay: 4s; }
.hero__slide:nth-child(3) { animation-delay: 8s; }

.hero__slide img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

@keyframes heroFade {
0%   { opacity: 0; }
5%   { opacity: 1; }
30%  { opacity: 1; }
35%  { opacity: 0; }
100% { opacity: 0; }
}

.hero__indicator {
position: absolute;
top: 50%;
right: 24px;
transform: translateY(-50%);
z-index: 2;
display: flex;
flex-direction: column;
align-items: center;
gap: 0;
}

.hero__line {
width: 1px;
height: 80px;
background: rgba(255, 255, 255, 0.25);
margin-bottom: 12px;
}

.hero__dots {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}

.hero__dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.35);
animation: heroDot 12s infinite;
}

.hero__dot:nth-child(1) { animation-delay: 0s; }
.hero__dot:nth-child(2) { animation-delay: 4s; }
.hero__dot:nth-child(3) { animation-delay: 8s; }

@keyframes heroDot {
0%, 30% {
  background: #fff;
  transform: scale(1.35);
}
35%, 100% {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1);
}
}

.hero__counter {
margin-top: 14px;
font-size: 12px;
color: rgba(255, 255, 255, 0.7);
letter-spacing: 1px;
}

.hero__counter span {
display: none;
animation: heroCounterShow 12s infinite;
}

.hero__counter span:nth-child(1) { animation-delay: 0s; }
.hero__counter span:nth-child(2) { animation-delay: 4s; }
.hero__counter span:nth-child(3) { animation-delay: 8s; }

@keyframes heroCounterShow {
0%, 30%  { display: inline; }
33%, 100% { display: none; }
}

/* ========== Slider Section ========== */
.slider__section {
margin: 0 5%;
}

.slider__container {
position: relative;
width: 100%;
aspect-ratio: 3 / 1;
border-radius: 16px;
overflow: hidden;
background: #1a1a1a;
}

.slider__track {
position: relative;
width: 100%;
height: 100%;
}

.slider__slide {
position: absolute;
inset: 0;
opacity: 0;
animation: sliderFade 12s infinite; /* ۳ اسلاید × ۴ ثانیه */
}

.slider__slide:nth-child(1) {
animation-delay: 0s;
}

.slider__slide:nth-child(2) {
animation-delay: 4s;
}

.slider__slide:nth-child(3) {
animation-delay: 8s;
}

.slider__slide img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

/* انیمیشن فید */
@keyframes sliderFade {
0% {
  opacity: 0;
}
5% {
  opacity: 1;
}
30% {
  opacity: 1;
}
35% {
  opacity: 0;
}
100% {
  opacity: 0;
}
}

/* نقطه‌ها (تزئینی + همگام با انیمیشن) */
.slider__dots {
position: absolute;
bottom: 14px;
left: 50%;
transform: translateX(-50%);
z-index: 2;
display: flex;
gap: 6px;
}

.slider__dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.45);
animation: dotPulse 12s infinite;
}

.slider__dot:nth-child(1) {
animation-delay: 0s;
}

.slider__dot:nth-child(2) {
animation-delay: 4s;
}

.slider__dot:nth-child(3) {
animation-delay: 8s;
}

@keyframes dotPulse {
0%, 30% {
  background: #fff;
  transform: scale(1.15);
}
35%, 100% {
  background: rgba(255, 255, 255, 0.45);
  transform: scale(1);
}
}

