@font-face {
    font-family: irans;
    src: url("/assets/fonts/IranianSans.ttf");
}

@font-face {
    font-family: irannas;
    src: url("/assets/fonts/IranNastaliq.ttf");
}

@font-face {
    font-family: sahel;
    src: url("/assets/fonts/Sahel.ttf");
}

@font-face {
    font-family: sahelB;
    src: url("/assets/fonts/Sahel-Bold.ttf");
}

@font-face {
    font-family: vazir;
    src: url("/assets/fonts/Vazir.ttf");
}

@font-face {
    font-family: vazirB;
    src: url("/assets/fonts/Vazir-Bold.ttf");
}

@font-face {
    font-family: yekan;
    src: url("/assets/fonts/BYekan+.ttf");
}

@font-face {
    font-family: yekanB;
    src: url("/assets/fonts/BYekan+Bold.ttf");
}

@font-face {
    font-family: shekaste;
    src: url("/assets/fonts/Shekasteh.ttf");
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
}

/* پس‌زمینه بافت‌دار مرمر تیره */
body {
    background-color: #1b1b1b;
    background-image:
        radial-gradient(circle at 50% 20%, rgba(30, 30, 40, 0.5) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(20, 20, 25, 0.8) 0%, transparent 50%);
    color: #e0d8c3;
    direction: rtl;
    line-height: 1.7;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
}

html {
    scroll-snap-type: y mandatory;
}

/* متون طلایی گرادینت */
.gold-text {
    background: linear-gradient(135deg, #f7e7b4 0%, #c5a059 50%, #8a6d3b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* کارت‌های اسلیمی با کادر طلایی درخشان */
.ornate-card {
    background: rgba(15, 15, 18, 0.85);
    border: 1px solid #c5a059;
    border-radius: 10px;
    padding: 24px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(197, 160, 89, 0.15);
    backdrop-filter: blur(5px);
}

/* افکت گوشه‌های اسلیمی برای کارت‌ها */
.ornate-card::before,
.ornate-card::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid #c5a059;
}

.ornate-card::before {
    top: 4px;
    right: 4px;
    border-left: none;
    border-bottom: none;
}

.ornate-card::after {
    bottom: 4px;
    left: 4px;
    border-right: none;
    border-top: none;
}

/* هدر و تصویر امین حمیدی */
.hero-section {
    text-align: center;
    padding: 30px 20px 10px;
}

.hero-container {
    max-width: 500px;
    margin: 0 auto;
}

.hero-image-wrapper {
    width: 160px;
    height: 160px;
    margin: 0 auto 15px;
    border-radius: 50%;
    border: 2px solid #c5a059;
    padding: 5px;
    background: linear-gradient(145deg, #1f1f25, #0a0a0c);
    box-shadow: 0 0 25px rgba(197, 160, 89, 0.25);
}

.hero-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.hero-name {
    font-size: 2.2rem;
    font-weight: bold;
    color: #e6c687;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-dates {
    display: block;
    font-size: 0.95rem;
    color: #777788;
    margin-top: 5px;
}

/* بنر کادر طلایی بالای صفحه */
.quote-banner {
    margin: 25px auto 0;
    max-width: 700px;
}

.frame-ornament {
    padding: 12px 25px;
    border: 1px solid #c5a059;
    border-radius: 30px;
    background: rgba(197, 160, 89, 0.04);
    color: #d1b880;
    font-size: 0.95rem;
    box-shadow: inset 0 0 10px rgba(197, 160, 89, 0.1);
}

/* بدنه اصلی */
.main-content {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.section-title {
    font-family: sahelB;
    text-align: center;
    color: #c5a059;
    margin: 45px 0 25px;
    font-size: 2rem;
    letter-spacing: 1px;
}

/* بخش یادنامه */
.section-yadnameh {
    text-align: center;
}

.section-icon {
    margin-bottom: -15px;
    position: relative;
    z-index: 2;
}

.section-icon img {
    width: 32px;
    filter: drop-shadow(0 0 8px rgba(197, 160, 89, 0.5));
}

.section-yadnameh h2 {
    color: #e6c687;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.section-yadnameh p {
    color: #a0a0b0;
    font-size: 0.9rem;
    line-height: 1.9;
    text-align: justify;
}

/* دیوان اشعار */
.poems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.poem-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.quote-mark {
    font-size: 1.8rem;
    color: #c5a059;
    opacity: 0.8;
}

.poem-body {
    margin: 10px 0 20px;
    font-size: 0.85rem;
    color: #cccccc;
    line-height: 1.8;
}

.poem-year {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 15px;
}

.btn-poem {
    padding: 6px 18px;
    border: 1px solid #c5a059;
    border-radius: 20px;
    color: #c5a059;
    text-decoration: none;
    font-size: 0.8rem;
    background: rgba(197, 160, 89, 0.05);
    transition: all 0.3s ease;
}

.btn-poem:hover {
    background: #c5a059;
    color: #08080a;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.4);
}

/* گالری خاطرات */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: #777;
    font-size: 0.9rem;
    cursor: pointer;
    padding-bottom: 5px;
}

.tab-btn.active {
    color: #c5a059;
    border-bottom: 2px solid #c5a059;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.3);
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #c5a059;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c5a059;
    font-size: 0.7rem;
}

/* بخش دل‌نوشته‌ها */
.comments-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.comment-form-box form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-form-box input,
.comment-form-box textarea {
    width: 100%;
    padding: 10px;
    background: #09090c;
    border: 1px solid #2a2a35;
    border-radius: 6px;
    color: #fff;
    font-size: 0.85rem;
}

.comment-form-box input:focus,
.comment-form-box textarea:focus {
    border-color: #c5a059;
    outline: none;
}

.comment-form-box .btn-submit {
    background: transparent;
    border: 1px solid #c5a059;
    padding: 8px;
    border-radius: 6px;
    color: #c5a059;
    cursor: pointer;
    transition: 0.3s;
}

.comment-form-box .btn-submit:hover {
    background: #c5a059;
    color: #000;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-card h4 {
    color: #c5a059;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.comment-card p {
    font-size: 0.8rem;
    color: #999;
}

/* فوتر */
.main-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
}

.btn-back-to-top {
    background: transparent;
    border: 1px solid #c5a059;
    color: #c5a059;
    padding: 6px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 12px;
}

.social-icon {
    color: #c5a059;
    text-decoration: none;
}

.footer-bless {
    font-size: 0.85rem;
    color: #666;
}

#headerLand {
    position: relative;
    display: block;
}

#banner {
    display: flex;
    width: 100%;
    justify-content: center;
}

#Bim {
    width: 100%;
    height: auto;
}

#v1s div {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 75%;
    max-width: 100%;
    background: url("/assets/images/v1.webp");
    aspect-ratio: 5 / 1;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
}

#linev1 {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #00000000 -10%, #f0b73b 50%, #00000000 110%);
    border-radius: 40%;
}

#v1s h3 {
    font-family: shekaste;
    font-size: 4vw;
    color: #000;
}

#boxv {
    width: 100%;
    position: absolute;
    bottom: 0;
    display: grid;
    place-items: center;
    transform: translateY(50%);
}

.boxvv {
    grid-area: 1/1;
}

#v1s {
    display: flex;
    justify-content: center;
    width: 100%;
    height: auto;
}

/* ========================================= */
/* کد اولیه شما برای بخش قاب عکس (بدون تغییرات من) */
/* ========================================= */
#shamdoon {
    margin: 8% auto;
    position: relative;
    display: grid;
    width: 90%;
    max-width: 1400px;
}

#shamdoon img {
    display: block;
    margin: 8% auto 0 auto;
    width: 100%;
    max-width: 800px;
    grid-area: 1/1;
}

#shamdoon .text-overlay {
   
    text-wrap-mode: wrap;
    display: block;
    margin: 21% auto 0 auto;
    /* قرارگیری دقیق در مرکز تصویر */
    text-align: center;
    grid-area: 1/1;
    color: #fff;
    width: 100%;
    max-height: 40%;
    
}

.text-overlay h3 {
    display: block;
    width: 60%;
    margin: 47% auto 0 auto;
    font-family: sahelB;
    font-size: clamp(1.5rem, 5vw, 4rem);
}

.text-overlay p {
    display: block;
    margin: 0px auto 0 auto;
    width: 70%;
    font-family: yekan;
    font-size: clamp(1rem, 3vw, 2rem);
}

/* استایل نوار اسکرول */
#shamdoon .text-overlay::-webkit-scrollbar {
    width: 5px;
}

#shamdoon .text-overlay::-webkit-scrollbar-track {
    background: transparent;
}

#shamdoon .text-overlay::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
}

/* ========================================= */
/* ادامه فایل اصلی... */
/* ========================================= */
#disher {
    text-align: center;
    margin-top: 30px;
}

#disher h1 {
    font-family: sahelB;
}

/* بخش دیوان اشعار - کاروسل ۳بعدی */
.section-poems {
    position: relative;
    padding: 20px 0;
    overflow: hidden;
    direction: rtl;
}

.poems-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 380px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.poems-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

/* ساختار هر کارت */
.poem-card {
    position: absolute;
    width: 270px;
    height: 320px;
    background-image: url('../images/cdish.webp');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 16px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease, filter 0.6s ease;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
}

.poem-card-inner {
    width: 100%;
    height: 100%;
    padding: 65px 22px 30px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.poem-content {
    color: #ffffff;
    font-size: 1rem;
    line-height: 3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.poem-content p {
    font-family: yekanB;
}

.btn-poem-pill {
    width: 82%;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f0d598;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
    background: transparent;
    border-radius: 20px;
}

.btn-poem-pill:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(240, 213, 152, 0.9);
}

/* حالت‌های سه بعدی (Positions) */
.poem-card.active {
    transform: translateX(0) translateZ(100px) rotateY(0deg) scale(1);
    z-index: 10;
    opacity: 1;
    filter: brightness(1);
}

.poem-card.prev-1 {
    transform: translateX(170px) translateZ(-50px) rotateY(-22deg) scale(0.88);
    z-index: 8;
    opacity: 0.9;
    filter: brightness(0.75);
}

.poem-card.next-1 {
    transform: translateX(-170px) translateZ(-50px) rotateY(22deg) scale(0.88);
    z-index: 8;
    opacity: 0.9;
    filter: brightness(0.75);
}

.poem-card.prev-2 {
    transform: translateX(310px) translateZ(-160px) rotateY(-38deg) scale(0.72);
    z-index: 6;
    opacity: 0.65;
    filter: brightness(0.45);
}

.poem-card.next-2 {
    transform: translateX(-310px) translateZ(-160px) rotateY(38deg) scale(0.72);
    z-index: 6;
    opacity: 0.65;
    filter: brightness(0.45);
}

.poem-card.hidden {
    transform: translateX(0) translateZ(-300px) scale(0.5);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

/* فلش‌های ناوبری */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 15, 20, 0.8);
    border: 1px solid #c5a059;
    color: #c5a059;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: #c5a059;
    color: #0b0b0d;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.6);
}

.prev-btn {
    right: 10px;
}

.next-btn {
    left: 10px;
}

/* تنظیمات ریسپانسیو */
@media (max-width: 768px) {
    .poems-carousel-container {
        height: 320px;
    }

    .poem-card {
        width: 220px;
        height: 260px;
    }

    .poem-card-inner {
        padding: 50px 15px 20px 15px;
    }

    .poem-content {
        font-size: 0.78rem;
    }

    .poem-card.prev-1 {
        transform: translateX(100px) translateZ(-40px) rotateY(-20deg) scale(0.85);
    }

    .poem-card.next-1 {
        transform: translateX(-100px) translateZ(-40px) rotateY(20deg) scale(0.85);
    }

    .poem-card.prev-2,
    .poem-card.next-2 {
        opacity: 0;
        pointer-events: none;
    }
}

/* بخش گالری خاطرات */
.section-gallery {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 15px;
    direction: rtl;
}

/* تب‌های کپسولی فیلتر */
.gallery-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.gallery-tabs-capsule {
    display: inline-flex;
    background: #141418;
    border: 1px solid #2a2a35;
    padding: 4px;
    border-radius: 30px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6);
}

.gallery-tab-btn {
    font-family: sahel;
    background: transparent;
    border: none;
    color: #8a8a95;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-tab-btn.active {
    background: #2a2a35;
    color: #d8b873;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.gallery-tab-btn:hover:not(.active) {
    color: #e0d8c3;
}

/* شبکه کارت‌ها (Grid) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

/* ساختار هر کارت */
.gallery-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #121216;
    border: 1px solid rgba(197, 160, 89, 0.25);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-4px);
    border-color: #d8b873;
    box-shadow: 0 0 18px rgba(216, 184, 115, 0.35);
}

.gallery-card.hidden {
    display: none;
}

.gallery-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-thumb img {
    transform: scale(1.06);
}

/* دکمه پخش ویدیو طلایی در مرکز */
.play-btn-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #e6c885 0%, #b38f48 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 12px rgba(216, 184, 115, 0.5);
    z-index: 2;
    transition: transform 0.3s ease;
}

.play-icon {
    color: #0d0d11;
    font-size: 0.9rem;
    margin-left: -2px;
}

.gallery-card:hover .play-btn-circle {
    transform: translate(-50%, -50%) scale(1.1);
}

/* زیرنویس و کپشن روی تصویر */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 10px 8px 10px;
    background: linear-gradient(to top, rgba(10, 10, 14, 0.95) 0%, rgba(10, 10, 14, 0) 100%);
    display: flex;
    align-items: flex-end;
    z-index: 1;
}

.gallery-caption {
    color: #c9c9d4;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-caption i {
    font-style: normal;
    font-size: 0.7rem;
}

/* واکنش‌گرایی (Responsive) */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .play-btn-circle {
        width: 38px;
        height: 38px;
    }

    .play-icon {
        font-size: 0.8rem;
    }
}

/* بخش دل‌نوشته‌ها و یادداشت‌ها */
.section-notes {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 15px;
    direction: rtl;
    font-family: inherit;
}

.notes-title-wrapper {
    text-align: right;
    margin-bottom: 18px;
}

.notes-title {
    color: #f0f0f5;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* شبکه اصلی */
.notes-content-grid {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

/* کادرهای اصلی با فریم فلزی ۳بعدی و پس‌زمینه دارک مرمر */
.notes-card {
    background: #09090b linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.6) 100%);
    border-radius: 18px;
    padding: 22px;
    box-shadow:
        0 0 0 1px #1a1a20,
        inset 0 0 25px rgba(0, 0, 0, 0.95),
        0 12px 35px rgba(0, 0, 0, 0.8);
    position: relative;
}

/* فرم ارسال نظر (سمت راست) */
.form-card {
    background: linear-gradient(45deg, rgba(21, 22, 23, 1) 40%, rgb(34, 34, 34) 60%, rgba(0, 0, 0, 1) 100%);
    flex: 1;
    max-width: 360px;
}

.notes-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: url('/assets/images/backc.webp');
    border: 1px solid #3e3e48;
    border-radius: 8px;
    padding: 10px 14px 30px 14px;
    color: #e5e5eb;
    font-size: 0.88rem;
    outline: none;
    box-sizing: border-box;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #71717a;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #cca047;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 8px rgba(204, 160, 71, 0.3);
}

.form-group textarea {
    resize: none;
}

/* دکمه فلزی تایید (استیل) */
.btn-metal-submit {
    width: 100%;
    padding: 10px;
    background: linear-gradient(45deg, #292929 0%, #adadad 40%, #636363 60%, #2c2c2c 85%, #838383 140%);
    border: 1px solid #000000;
    border-radius: 10px;
    color: #050507;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.btn-metal-submit:hover {
    background: linear-gradient(45deg, #292929 0%, #adadad 30%, #636363 50%, #2c2c2c 85%, #838383 120%);
}

/* لیست نظرات (سمت چپ) */
.list-card {
    background: url("/assets/images/backc.webp");
    flex: 1.6;
    display: flex;
    flex-direction: column;
}

/* اسکرول‌بار در سمت چپ داخل کادر */
.comments-scroll-container {
    max-height: 310px;
    overflow-y: auto;
    direction: ltr;
    padding-right: 15px;
    padding-left: 6px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comments-scroll-container::-webkit-scrollbar {
    width: 5px;
}

.comments-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

.comments-scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #9a9a9a 0%, #4a4a50 100%);
    border-radius: 10px;
}

/* آیتم هر نظر (راست‌چین‌سازی مجدد محتوا) */
.comment-item {
    direction: rtl;
    display: flex;
    flex-direction: column;
}

/* نشان طلایی نام کاربر */
.comment-badge {
    background: linear-gradient(90deg, #8a6a3a 0%, #f4d685 28%, #9e7a3f 50%, #eacc89 72%, #8a6218 100%);
    border: 1px solid #fce09b;
    border-bottom: none;
    color: #08080a;
    font-weight: 800;
    font-size: 0.88rem;
    width: 100%;
    padding: 5px 18px;
    border-radius: 8px 8px 0 0;
    display: inline-block;
    align-self: flex-start;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* کادر اصلی متن نظر */
.comment-box {
    border: 1px solid #cca047;
    border-radius: 0 0px 8px 8px;
    padding: 20px 16px;
    color: #e2dccf;
    font-size: 0.83rem;
    line-height: 1.8;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.9);
}

/* واکنش‌گرایی در موبایل (کادر نظرات زیر فرم ارسال) */
@media (max-width: 768px) {
    .notes-content-grid {
        flex-direction: column;
    }

    .form-card {
        max-width: 100%;
    }

    .comments-scroll-container {
        max-height: 280px;
        padding-right: 0;
        padding-left: 10px;
    }
}

/* =========================================
   Lightbox (Popup Gallery) Styles
========================================= */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 11, 13, 0.95);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #c5a059;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100000;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #fff;
}

.lightbox-content-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 1000px;
    height: 80%;
}

#lightboxMediaContainer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightboxMediaContainer img,
#lightboxMediaContainer video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.lightbox-nav {
    background: rgba(28, 28, 36, 0.8);
    color: #c5a059;
    border: 1px solid #32323f;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100000;
}

.lightbox-nav:hover {
    background: #c5a059;
    color: #0b0b0d;
}

.lightbox-nav.prev {
    right: -70px;
}

.lightbox-nav.next {
    left: -70px;
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #e5e5eb;
    font-size: 1.2rem;
    text-align: center;
    text-shadow: 0 2px 5px #000;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================================
   Responsive (موبایل)
========================================= */
@media (max-width: 768px) {
    .lightbox-nav {
        display: none !important;
    }

    .lightbox-content-wrapper {
        width: 100%;
        height: 100%;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 50px;
    }

    .lightbox-caption {
        bottom: 15px;
        font-size: 1rem;
    }
}

/* =========================================
   Music Player Styles
========================================= */
.section-music {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.music-container {
    width: 100%;
    max-width: 800px;
}

.music-player-card {
    background: rgba(28, 28, 36, 0.6);
    border: 1px solid #32323f;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.player-header {
    border-bottom: 1px solid #32323f;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.track-info h3 {
    color: #c5a059;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

.progress-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    color: #8a8a95;
    font-size: 0.9rem;
    direction: ltr; 
}

input[type="range"]#trackProgress {
    flex-grow: 1;
    cursor: pointer;
    accent-color: #c5a059; 
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    direction: ltr;
}

.ctrl-btn {
    background: none;
    border: none;
    color: #e5e5eb;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ctrl-btn:hover {
    color: #c5a059;
}

.play-btn {
    background: #c5a059;
    color: #0b0b0d;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.play-btn:hover {
    background: #e5e5eb;
    color: #0b0b0d;
}

/* Playlist Styles */
.playlist-wrapper {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

.playlist-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.playlist-item {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    background: rgba(11, 11, 13, 0.4);
    color: #e5e5eb;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.playlist-item::before {
    content: '🎵';
    margin-left: 10px;
    font-size: 0.9rem;
    opacity: 0.5;
}

.playlist-item:hover {
    background: rgba(197, 160, 89, 0.1);
    color: #c5a059;
}

.playlist-item.active-track {
    background: rgba(197, 160, 89, 0.2);
    color: #c5a059;
    border-right: 3px solid #c5a059;
}

.playlist-item.active-track::before {
    content: '▶';
    opacity: 1;
}

.playlist-wrapper::-webkit-scrollbar {
    width: 6px;
}
.playlist-wrapper::-webkit-scrollbar-thumb {
    background: #c5a059;
    border-radius: 10px;
}
#ft{
    font-family: sahelB;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 20px;
}