body section:nth-child(odd) {
    background-color: var(--bg-cream-light);
}

body section:nth-child(even) {
    background-color: var(--white);
}



/* ==========================================================================
   1. THEME Styles 
   ========================================================================== */


/* ─── ANIMATED BG BLOBS ─── */
.blob-wrap {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -10;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .55;
    animation: drift 18s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #e8d5bb, transparent);
    top: -150px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    bottom: -100px;
    right: -80px;
    animation-delay: -7s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    top: 40%;
    left: 55%;
    animation-delay: -12s;
}

@keyframes drift {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-30px, 40px) scale(.95);
    }
}


/* FLOATING PARTICLES */
.particles {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--gold2);
    opacity: 0;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: .6;
    }

    90% {
        opacity: .3;
    }

    100% {
        transform: translateY(-100vh) scale(.3);
        opacity: 0;
    }
}



/* ==========================================================================
   1. Header Styles (Dynamic Transparent to Glass)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    display: flex;
    justify-content: center;
    background-color: rgba(253, 251, 247, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid rgba(197, 168, 128, 0);
    box-shadow: none;
    transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        backdrop-filter 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-logo img {
    height: 45px;
    object-fit: contain;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* کلاس جادویی که با اسکرول توسط JS اضافه می‌شود */
.site-header.scrolled {
    padding: 12px 0;
    /* جمع شدن هدر برای اشغال فضای کمتر موقع اسکرول */
    background-color: #d8c7b7;
    /* افکت شیشه‌ای کرم */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(197, 168, 128, 0.08);
    box-shadow: 0 4px 30px rgba(43, 37, 32, 0.03);
}

.site-header.scrolled .site-logo img {
    height: 38px;
    /* ظریف‌تر شدن لوگو در زمان اسکرول */
}


/* ==========================================================================
   2. Hero Section (Merged with Background)
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 120px;
    background: linear-gradient(180deg,
            rgba(253, 251, 247, 0.2) 0%,
            rgba(253, 251, 247, 0.7) 70%,
            rgba(253, 251, 247, 1) 100%),
        url('../images/hero-banner.jpg') center center / cover no-repeat !important;
}

.hero-content {
    max-width: 500px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 0.95rem;
    color: #5C534C;
    line-height: 1.6;
    margin-bottom: 35px;
    padding: 0 10px;
}

/* دکمه دعوت به اقدام اصلی (CTA) با استایل اپلیکیشن‌های لوکس */
.btn-cta {
    display: inline-block;
    background-color: var(--accent-gold);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 20px rgba(197, 168, 128, 0.25);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

/* افکت لمس روی موبایل (حس کامپوننت نیتیو) */
.btn-cta:active {
    transform: scale(0.96);
    background-color: var(--accent-gold-hover);
    box-shadow: 0 5px 10px rgba(197, 168, 128, 0.2);
}


/* ==========================================================================
   3. Media Queries (تبلت و دسکتاپ برای آن ۱۰ درصد کاربر غیرموبایل)
   ========================================================================== */
@media (min-width: 768px) {
    .hero-section {
        min-height: 90vh;
        padding-top: 140px;
    }

    .hero-content h2 {
        font-size: 2.3rem;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }

    .btn-cta:hover {
        background-color: var(--accent-gold-hover);
        transform: translateY(-2px);
        box-shadow: 0 12px 25px rgba(197, 168, 128, 0.35);
    }

    .btn-cta:active {
        transform: translateY(0) scale(0.98);
    }
}

/* ==========================================================================
   3. Services Section Styles
   ========================================================================== */
.services-section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 5px;
    font-weight: 700;
}

.section-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

/* ساختار گرید موبایل‌فرست (به صورت پیش‌فرض زیر هم در موبایل) */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.service-card {
    background-color: var(--white);
    border-radius: 16px;
    /* گوشه‌های نرم حس اپلیکیشن موبایل رو تقویت می‌کنه */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(43, 37, 32, 0.03);
    /* سایه بسیار ملایم شکلاتی */
    border: 1px solid rgba(197, 168, 128, 0.1);
    /* بوردر ظریف طلایی */
}

.service-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-info {
    padding: 20px;
}

.service-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.service-info p {
    font-size: 0.85rem;
    color: #6E655F;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 40px;
    /* هم‌تراز شدن متن‌ها */
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed rgba(197, 168, 128, 0.2);
    padding-top: 15px;
}

.service-footer .price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.btn-select {
    background-color: var(--bg-cream-dark);
    color: var(--text-dark);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-select:active {
    background-color: var(--accent-gold);
    color: var(--white);
    transform: scale(0.95);
}

/* تبلت و دسکتاپ (تبدیل به گرید ۳ ستونه) */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .section-header h3 {
        font-size: 1.8rem;
    }

    .btn-select:hover {
        background-color: var(--accent-gold);
        color: var(--white);
    }
}

/* ==========================================================================
   4. Portfolio Section Styles
   ========================================================================== */
.portfolio-section {
    padding: 60px 0;
    direction: ltr;
}

/* Portfolio Slider */
.divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
 .divider::before, .divider::after { content: ''; flex: 1; max-width: 60px; height: 1px; background: linear-gradient(to left, transparent, var(--gold2)); }
 .divider-icon { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }

.pf-track-outer { direction: ltr !important; position: relative; overflow: hidden; padding: 12px 0 24px; }
.pf-track-outer::before, .pf-track-outer::after { content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 10; pointer-events: none; }
.pf-track-outer::before { right: 0; background: linear-gradient(to left, var(--bg-cream-light) 10%, transparent); }
.pf-track-outer::after { left: 0; background: linear-gradient(to right, var(--bg-cream-light) 10%, transparent); }

.pf-track { direction: ltr !important; display: flex; justify-content: flex-start;  scroll-snap-type: x mandatory; gap: 20px; padding: 0 20px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; cursor: grab; user-select: none; }
.pf-track::-webkit-scrollbar { display: none; }
.pf-track.grabbing { cursor: grabbing; }

.pf-card {scroll-snap-align: start; direction: ltr !important; flex: 0 0 280px; position: relative; border-radius: 16px; overflow: hidden; background: #e8ddd0; aspect-ratio: 3/4; transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.4s ease; box-shadow: 0 4px 20px rgba(61,44,30,0.12); }
.pf-card:hover { transform: translateY(-6px) scale(1.015); box-shadow: 0 16px 40px rgba(61,44,30,0.22); -webkit-transform: translateY(-6px) scale(1.015); -moz-transform: translateY(-6px) scale(1.015); -ms-transform: translateY(-6px) scale(1.015); -o-transform: translateY(-6px) scale(1.015); }
.pf-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94); }
.pf-card:hover img { transform: scale(1.06); }
.pf-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(30,18,10,0.82) 0%, rgba(30,18,10,0.18) 45%, transparent 70%); opacity: 0; transition: opacity 0.4s ease; }
.pf-card:hover .pf-card-overlay { opacity: 1; }
.pf-card-frame { position: absolute; inset: 10px; border: 1px solid rgba(197,168,128,0.3); border-radius: 10px; pointer-events: none; opacity: 0; transition: opacity 0.4s ease; }
.pf-card:hover .pf-card-frame { opacity: 1; }
.pf-card-badge { position: absolute; top: 14px; right: 14px; background: rgba(197,168,128,0.92); color: var(--dark); font-size: 10px; letter-spacing: 1px; padding: 4px 10px; border-radius: 20px; font-weight: 600; opacity: 0; transform: translateY(-4px); transition: all 0.4s ease; }
.pf-card:hover .pf-card-badge { opacity: 1; transform: translateY(0); }
.pf-card-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 18px 18px; transform: translateY(8px); opacity: 0; transition: transform 0.4s ease, opacity 0.4s ease; }
.pf-card:hover .pf-card-info { transform: translateY(0); opacity: 1; }
.pf-card-info .cat { font-size: 10px; letter-spacing: 2px; color: var(--gold2); text-transform: uppercase; margin-bottom: 4px; }
.pf-card-info .title { font-size: 15px; font-weight: 600; color: #fff; }

.pf-dots { direction: ltr !important; display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.pf-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warm); transition: all 0.3s ease; cursor: pointer; border: none; padding: 0; }
.pf-dot.active { width: 22px; border-radius: 3px; background: var(--gold); }

.pf-nav { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.pf-nav-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--gold2); background: transparent; color: var(--brown); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; font-size: 20px; line-height: 1; }
.pf-nav-btn:hover { background: var(--gold2); color: #fff; }

.pf-cta-wrap { display: flex; justify-content: center; margin-top: 32px; }
.pf-cta { display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px; border-radius: 50px; border: 1.5px solid var(--gold); color: var(--brown); font-size: 14px; font-weight: 600; background: transparent; cursor: pointer; transition: all 0.35s cubic-bezier(0.25,0.46,0.45,0.94); position: relative; overflow: hidden; }
.pf-cta::before { content: ''; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94); z-index: 0; }
.pf-cta:hover::before { transform: scaleX(1); transform-origin: left; }
.pf-cta span, .pf-cta svg { position: relative; z-index: 1; transition: color 0.35s ease; }
.pf-cta:hover span, .pf-cta:hover svg { color: #fff; }
.btn-secondary {
    display: inline-block;
    border: 1px solid var(--accent-gold);
    color: var(--text-dark);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-secondary:active {
    background-color: var(--bg-cream-dark);
    transform: scale(0.97);
}

/* تبلت و دسکتاپ (تبدیل به گرید ۴ ستونه و افکت هاور زوم) */
@media (min-width: 768px) {
    /* .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    } */

    /* .portfolio-box:hover img {
        transform: scale(1.06);
    } */

    .btn-secondary:hover {
        background-color: var(--accent-gold);
        color: var(--white);
    }
}

/* ==========================================================================
   5. About Section Styles
   ========================================================================== */
.about-section {
    padding: 60px 0;
}

/* در حالت موبایل المان‌ها زیر هم هستند */
.about-wrapper {
    display: flex;
    flex-direction: column;
    gap: 35px;
    align-items: center;
}

.about-img {
    width: 100%;
    max-width: 320px;
    /* سایز بهینه پرتره در گوشی */
    border-radius: 24px;
    /* گوشه‌های کاملاً نرم و مدرن */
    overflow: hidden;

    /* فریم سفید لوکس دور عکس */
}

.about-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-content {
    width: 100%;
}

/* راست‌چین کردن هدر سکشن برای هماهنگی با متن درباره ما */
.section-header.right-align {
    text-align: right;
    margin-bottom: 20px;
}

.about-text {
    font-size: 0.9rem;
    color: #5C534C;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 25px;
}

/* استایل شیک نقل قول مدیریت */
.about-quote {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-dark);
    font-weight: 700;
    border-right: 3px solid var(--accent-gold);
    /* خط عمودی طلایی سمت راست متن فارسی */
    padding-right: 15px;
    line-height: 1.6;
}

/* تبلت و دسکتاپ (تبدیل به ساختار دو ستونه صفی) */
@media (min-width: 768px) {
    .about-wrapper {
        flex-direction: row;
        /* عکس سمت راست، متن سمت چپ در دسکتاپ (با توجه به rtl) */
        gap: 60px;
        align-items: center;
    }

    .about-img {
        max-width: 400px;
        flex-shrink: 0;
    }

    .about-text {
        font-size: 1rem;
    }

    .about-quote {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   6. Education Section Styles (VIP Area)
   ========================================================================== */
.education-section {
    padding: 60px 0;
    background-color: var(--bg-cream-dark) !important;
    /* تم نسکافه‌ای/کرم تیره برای تفکیک بخش آموزش */
    border-top: 1px solid rgba(197, 168, 128, 0.15);
}

.courses-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.course-card {
    position: relative;
    background-color: var(--white);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(43, 37, 32, 0.04);
    border-left: 4px solid var(--accent-gold);
    /* خط تاکید طلایی در سمت چپ کارت */
}

/* تگ ظریف بالای کارت */
.course-badge {
    position: absolute;
    top: -12px;
    right: 25px;
    background-color: var(--text-dark);
    color: var(--bg-cream-light);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 30px;
    letter-spacing: -0.3px;
}

.course-body h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    margin-top: 5px;
}

.course-body p {
    font-size: 0.88rem;
    color: #6E655F;
    line-height: 1.7;
    margin-bottom: 20px;
}


.course-features {
    list-style: none;
    margin-bottom: 25px;
    padding-right: 0;
}

.course-features li {
    font-size: 0.85rem;
    color: var(--text-dark);
    position: relative;
    padding-right: 18px;
    margin-bottom: 8px;
}


.course-features li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--accent-gold);
    font-weight: 700;
}

.course-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-top: 1px solid rgba(197, 168, 128, 0.15);
    padding-top: 20px;
}

.course-type {
    font-size: 0.85rem;
    color: #8C7E74;
    font-weight: 700;
}

.btn-course-action {
    display: block;
    text-align: center;
    background-color: var(--text-dark);
    color: var(--white);
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn-course-action:active {
    transform: scale(0.98);
    background-color: #423831;
}


@media (min-width: 768px) {
    .courses-wrapper {
        flex-direction: row;
        gap: 30px;
    }

    .course-card {
        flex: 1;
        padding: 35px;
    }

    .course-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .btn-course-action {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   7. Site Footer Styles
   ========================================================================== */
.site-footer {
    background-color: var(--text-dark);
    color: var(--bg-cream-light);
    padding: 60px 0 20px 0;
    border-top: 3px solid var(--accent-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 5px;
}


.footer-brand .footer-logo {
    height: 45px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    /* سفید کردن لوگوی تیره روی بک‌گراند مشکی فوتر */
}

.footer-about {
    font-size: 0.88rem;
    color: #A69B93;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-address {
    font-style: normal;
    font-size: 0.88rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--bg-cream-light);
}

.certificates {
    display: flex;
    gap: 10px;
}

.certificates img {
    width: 70px;
}


.footer-contact h4,
.footer-map h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-contact h4::after,
.footer-map h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 20px;
    border-bottom: 2px solid var(--accent-gold);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #A69B93;
}

.contact-item:active {
    color: var(--accent-gold);
}


.icon {
    width: 20px;
    height: 20px;
    color: var(--accent-gold);
    flex-shrink: 0;
}


.map-container {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(197, 168, 128, 0.2);
}

/* ==========================================================================
   Footer Bottom (Copyright & Credits)
   ========================================================================== */
.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(197, 168, 128, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    font-size: 0.8rem;
    color: #8C7E74;
}

.footer-bottom b {
    color: var(--accent-gold);
    font-weight: 700;
}

.footer-bottom a {
    display: inline-block;
}

.footer-grid .footer-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}


@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1.2fr;
        gap: 50px;
    }

    .footer-grid .footer-brand {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        text-align: right;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: right;
    }

    .contact-item:hover {
        color: var(--accent-gold);
        transform: translateX(-3px);
    }
}


@media (min-width: 992px) {
    .sticky-cart-bar {
        position: sticky !important;
        margin-top: 30px;
        border-radius: 16px;
        width: 100% !important;
        left: auto !important;
        bottom: 20px !important;
    }
}
