@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #e0e5ec;
    min-height: 100vh;
    padding-bottom: 5rem;
}

@media (min-width: 1024px) {
    body {
        padding-top: 4.5rem;
        padding-bottom: 0;
    }
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.app-nav {
    position: fixed;
    right: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.app-nav--desktop {
    top: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: none;
}

.app-nav--mobile {
    bottom: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: block;
}

@media (min-width: 1024px) {
    .app-nav--desktop {
        display: block;
    }
    .app-nav--mobile {
        display: none;
    }
}

.app-nav__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.app-nav__list {
    display: flex;
    align-items: center;
    justify-content: space-around;
    list-style: none;
    gap: 0.5rem;
}

.app-nav--desktop .app-nav__list {
    padding: 1rem 0;
}

.app-nav--mobile .app-nav__list {
    padding: 0.75rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.app-nav__item {
    flex-shrink: 0;
}

.app-nav__link {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.app-nav__link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #1b1b18;
}

.app-nav__link.is-active {
    background-color: #667eea;
    color: #ffffff;
}

.app-nav--mobile .app-nav__list::-webkit-scrollbar {
    height: 4px;
}

.app-nav--mobile .app-nav__list::-webkit-scrollbar-track {
    background: transparent;
}

.app-nav--mobile .app-nav__list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

/* ============================================
   CONTAINER
   ============================================ */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
    .app-container {
        padding: 2.5rem 2rem;
    }
}

/* ============================================
   HEADER ROW (هدر + رویدادها کنار هم)
   ============================================ */
.header-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .header-row {
        flex-direction: row;
        align-items: stretch;
    }

    .header-row__main {
        flex: 0 0 75%;
    }

    .header-row__events {
        flex: 0 0 23%;
    }
}

.header-row__main,
.header-row__events {
    min-width: 0;
}

/* ============================================
   HEADER SLIDER
   ============================================ */
.page-header-slider {
    position: relative;
    width: 100%;
    min-height: 350px;
    border-radius: 24px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .page-header-slider {
        min-height: 400px;
    }
}

/* اسلایدها */
.page-header-slider .page-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    pointer-events: none;
    border-radius: 24px;
}

.page-header-slider .page-header.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* استایل پایه هدر */
.page-header--large {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2rem;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .page-header--large {
        padding: 2.5rem;
        min-height: 400px;
    }
}

/* Background Layer */
.page-header__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    transition: all 0.8s ease;
}

.page-header__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    border-radius: 24px;
}

/* Content Layer */
.page-header__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
}

.page-header__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header__back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

[dir="rtl"] .page-header__back-btn svg {
    transform: scaleX(-1);
}

.page-header__back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-4px);
}

[dir="rtl"] .page-header__back-btn:hover {
    transform: translateX(4px);
}

.page-header__back-btn svg {
    width: 24px;
    height: 24px;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.25rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.lang-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border: none;
    background-color: transparent;
    color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-weight: 500;
}

.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
    background-color: #ffffff;
    color: #667eea;
    font-weight: 600;
}

.page-header__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-header__icon-btn:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #1a202c;
}

body.dark-theme .page-header__icon-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #e2e8f0 !important;
}

body.dark-theme .page-header__icon-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.page-header__icon-btn svg {
    width: 24px;
    height: 24px;
}

/* Page Header Main */
.page-header__main {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.page-header__icon-large {
    display: none;
}

@media (min-width: 768px) {
    .page-header__icon-large {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 80px;
        height: 80px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        color: #ffffff;
        flex-shrink: 0;
    }
}

@media (min-width: 1024px) {
    .page-header__icon-large {
        width: 100px;
        height: 100px;
    }
}

.page-header__icon-large svg {
    width: 48px;
    height: 48px;
}

.page-header__text {
    flex: 1;
}

.page-title--large {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5),
                 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .page-title--large {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .page-title--large {
        font-size: 3rem;
    }
}

.page-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .page-subtitle {
        font-size: 1.125rem;
    }
}

/* Slider Indicators */
.header-slider-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.header-slider-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-slider-indicator:hover {
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.header-slider-indicator.is-active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 12px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .header-slider-indicators {
        bottom: 1rem;
    }
    
    .header-slider-indicator {
        width: 8px;
        height: 8px;
    }
}

/* ============================================
   EVENTS BANNER
   ============================================ */
.events-banner--compact {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .events-banner--compact {
        padding: 2rem;
    }
}

.events-banner__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.events-banner__icon {
    color: #fbbf24;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.events-banner__icon svg {
    width: 24px;
    height: 24px;
}

.events-banner__title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.event-card-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.event-card-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.event-card-mini__content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.event-card-mini__discount {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.event-card-mini__title {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-card-mini__arrow {
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.event-card-mini:hover .event-card-mini__arrow {
    opacity: 1;
    transform: translateX(4px);
}

[dir="rtl"] .event-card-mini:hover .event-card-mini__arrow {
    transform: translateX(-4px);
}

.event-card-mini__arrow svg {
    width: 20px;
    height: 20px;
}

[dir="rtl"] .event-card-mini__arrow svg {
    transform: scaleX(-1);
}

/* ============================================
   SEARCH BAR
   ============================================ */
.search-bar {
    position: relative;
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1.25rem;
    padding-right: 3.5rem;
    border: none;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    color: #1b1b18;
    backdrop-filter: blur(10px);
    transition: box-shadow 0.2s ease;
}

[dir="rtl"] .search-input {
    padding-right: 1.25rem;
    padding-left: 3.5rem;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.search-icon {
    position: absolute;
    top: 50%;
    right: 1.25rem;
    transform: translateY(-50%);
    color: #667eea;
    pointer-events: none;
}

[dir="rtl"] .search-icon {
    right: auto;
    left: 1.25rem;
}

.search-icon svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   CATEGORY SECTION
   ============================================ */
.category-section {
    margin-bottom: 2rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
}

.category-header__icon {
    color: #ffffff;
    opacity: 0.9;
}

.category-header__icon svg {
    width: 24px;
    height: 24px;
}

.category-header__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .category-header__title {
        font-size: 1.5rem;
    }
}

/* ============================================
   MENU GRID
   ============================================ */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .menu-grid {
        gap: 1.25rem;
    }
}

@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.menu-card, .item-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #4a5568;
    background: #e0e5ec;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 12px 12px 24px rgba(163, 177, 198, 0.7), -12px -12px 24px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 140px;
    text-align: center;
    font-family: 'Vazirmatn', sans-serif !important;
}

.menu-card:hover, .item-card:hover {
    transform: translateY(-5px);
    background: #e0e5ec;
    box-shadow: 16px 16px 32px rgba(163, 177, 198, 0.8), -16px -16px 32px rgba(255, 255, 255, 0.9);
}

.menu-card__icon {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.menu-card__icon svg {
    width: 36px;
    height: 36px;
}

.menu-card__label {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .menu-card__label {
        font-size: 1rem;
    }
}

.menu-card--wide {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    min-height: auto;
}

[dir="rtl"] .menu-card--wide {
    flex-direction: row-reverse;
}

.menu-card--wide .menu-card__info {
    text-align: left;
}

[dir="rtl"] .menu-card--wide .menu-card__info {
    text-align: right;
}

.menu-card--wide .menu-card__label {
    font-size: 1.125rem;
}

.menu-card--wide .menu-card__icon {
    margin-bottom: 0;
    font-size: 2.5rem;
}

.menu-card--wide .menu-card__icon svg {
    width: 40px;
    height: 40px;
}

/* ============================================
   LATEST POSTS
   ============================================ */
.latest-posts-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 0 0.5rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }
}

.latest-posts-scroller {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.latest-posts-scroller::-webkit-scrollbar {
    height: 6px;
}

.latest-posts-scroller::-webkit-scrollbar-track {
    background: transparent;
}

.latest-posts-scroller::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
}

.post-card {
    flex: 0 0 220px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s ease;
    scroll-snap-align: start;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.post-card__image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background-color: #e5e7eb;
}

.post-card__content {
    padding: 1rem;
}

.post-card__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1b1b18;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-card__excerpt {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
}
.electric-border {
  position: relative;
  border-radius: 16px;
  overflow: visible;
  isolation: isolate;
  --electric-border-color: #7df9ff;
}

.electric-border::before,
.electric-border::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--electric-border-color);
  filter: blur(2px);
  opacity: 0.8;
  animation: electric-move 4s linear infinite;
}

.electric-border::after {
  filter: blur(12px);
  opacity: 0.4;
}

@keyframes electric-move {
  0% { box-shadow: 0 0 10px var(--electric-border-color); }
  50% { box-shadow: 0 0 25px var(--electric-border-color); }
  100% { box-shadow: 0 0 10px var(--electric-border-color); }
}
.search-bar.glass-effect {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 16px; /* با کارت‌های دیگر هماهنگ کنید */
    
    /* افکت شیشه‌ی مات */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    /* یک سایه ظریف برای عمق دادن */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    
    /* انیمیشن برای زمانی که کاربر روی آن کلیک می‌کند */
    transition: background 0.3s ease, border 0.3s ease;
}

/* درخشش ظریف هنگام فوکوس (مانند افکت الکتریکی) */
.search-bar.glass-effect:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(0, 234, 255, 0.5); /* رنگ آبی درخشان شما */
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.2);
}

.glass-input {
    flex-grow: 1; /* تمام فضای خالی را پر می‌کند */
    font-size: 1rem;
    color: #ffffff; /* رنگ متن تایپ شده */
    padding: 0 10px; /* فاصله بین آیکون و متن */
    text-align: right; /* برای همخوانی با placeholder شما */
    
    /* --- ریست تهاجمی استایل پیش‌فرض مرورگر --- */
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* ۳. استایل دادن به متن placeholder */
.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

/* ۴. استایل دادن به آیکون */
.glass-icon {
    color: rgba(255, 255, 255, 0.7);
    width: 24px;
    height: 24px;
    flex-shrink: 0; /* جلوگیری از کوچک شدن آیکون */
}
/* --- استایل‌دهی بخش "جدیدترین مطالب" --- */

.latest-posts-section {
    width: 100%;
    margin-top: 40px; /* فاصله از بخش دسته‌بندی‌ها */
}

/* --- استایل عنوان بخش (جدیدترین مطالب) --- */
.section-title {
    color: #ffffff;
    font-size: 1.5rem; /* 24px */
    font-weight: 600;
    margin-bottom: 20px;
    padding-right: 24px; /* هم‌راستا با اسکرولر */
    position: relative;
    /* (چون صفحه شما فارسی است، متن تراز راست است) */
}

/* اضافه کردن خط عمودی آبی رنگ کنار عنوان */
.section-title::after {
    content: '';
    position: absolute;
    right: 0; /* چسبیده به راست */
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 28px;
    background-color: #00eaff; /* رنگ آبی درخشان شما */
    border-radius: 4px;
}


/* --- محفظه اسکرول افقی --- */
.latest-posts-scroller {
    display: flex;
    overflow-x: auto; /* فعال کردن اسکرول افقی */
    overflow-y: hidden; /* مخفی کردن اسکرول عمودی */
    gap: 20px; /* فاصله بین کارت‌ها */
    padding: 16px 24px; /* فاصله از لبه‌های صفحه */

    /* (اختیاری) افکت محو شدن زیبا در لبه چپ */
    -webkit-mask-image: linear-gradient(to left, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to left, transparent 0%, black 5%, black 95%, transparent 100%);
    
    /* (مهم) برعکس کردن افکت برای فارسی (RTL) */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

/* --- استایل خود کارت پست --- */
.post-card {
    display: block;
    width: 280px; /* عرض ثابت برای هر کارت */
    flex-shrink: 0; /* مهم: جلوگیری از کوچک شدن کارت‌ها */
    border-radius: 16px; /* هماهنگ با بقیه طرح */
    overflow: hidden; /* برای گرد کردن گوشه‌های تصویر */
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    
    /* --- افکت شیشه‌ی مات --- */
    background: rgba(255, 255, 255, 0.05); /* شیشه‌ای بسیار تیره */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.post-card:hover {
    transform: translateY(-5px); /* افکت هاور */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 234, 255, 0.5); /* درخشش آبی دور کارت */
}

/* --- تصویر کارت --- */
.post-card__image {
    width: 100%;
    height: 130px;
    object-fit: cover; /* جلوگیری از دفرمه شدن تصویر */
    display: block;
}

/* --- محتوای متنی کارت --- */
.post-card__content {
    padding: 16px;
}

.post-card__title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    
    /* برای عناوین طولانی (جلوگیری از شکست خط) */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-card__excerpt {
    color: rgba(255, 255, 255, 0.7); /* متن خلاصه کمی محو تر */
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* --- استایل اسکرول‌بار سفارشی --- */
.latest-posts-scroller::-webkit-scrollbar {
    height: 8px; /* ارتفاع اسکرول‌بار */
}
.latest-posts-scroller::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}
.latest-posts-scroller::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
.latest-posts-scroller::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 234, 255, 0.5); /* رنگ آبی شما */
}

.app-footer {
    width: 100%;
    padding: 3rem 1rem 2rem 1rem;
    margin-top: 4rem; /* فاصله از آخرین بخش محتوا */
    
    /* هماهنگ با تم شیشه‌ای */
    background: rgba(10, 10, 15, 0.5); /* پس‌زمینه تیره‌تر و نیمه‌شفاف */
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* خط جداکننده شیشه‌ای */
    
    color: #a0a0a0; /* رنگ پیش‌فرض متن فوتر */
}

/*
|--------------------------------------------------------------------------
| Footer Section (Multi-Column)
|--------------------------------------------------------------------------
*/
.app-footer {
    width: 100%;
    padding: 4rem 1rem 0 1rem; /* پدینگ بالا، بدون پدینگ پایین */
    margin-top: 4rem;
    
    /* هماهنگ با تم شیشه‌ای */
    background: rgba(10, 10, 15, 0.5); /* پس‌زمینه تیره‌تر و نیمه‌شفاف */
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    
    color: #a0a0a0; /* رنگ پیش‌فرض متن */
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* چیدمان ۴ ستونه در دسکتاپ */
    grid-template-columns: repeat(4, 1fr); 
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-column {
    font-size: 0.95rem;
}

.footer-column__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff; /* عنوان سفید */
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

/* خط آبی زیر عنوان‌ها */
.footer-column__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0; /* برای RTL */
    width: 30px;
    height: 2px;
    background-color: var(--theme-color-accent, #00eaff);
}

.footer-column__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column__links li {
    line-height: 1.6;
}

.footer-column__links a {
    color: #c0c0c0; /* خاکستری روشن‌تر برای لینک‌ها */
    text-decoration: none;
    transition: color 0.3s ease, padding-right 0.3s ease;
}

.footer-column__links a:hover {
    color: var(--theme-color-accent, #00eaff);
    padding-right: 4px; /* افکت حرکت کوچک در هاور */
}

/* مدیریت جهت LTR */
[dir="ltr"] .footer-column__title::after {
    left: 0;
    right: auto;
}

[dir="ltr"] .footer-column__links a:hover {
    padding-left: 4px;
    padding-right: 0;
}

/* ستون برند */
.footer-column--brand {
    text-align: right; /* پیش‌فرض برای RTL */
}

[dir="ltr"] .footer-column--brand {
    text-align: left;
}

.footer-brand__logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-brand__address {
    font-size: 0.9rem;
    color: #a0a0a0;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* آیکون‌های شبکه‌های اجتماعی */
.footer-social {
    display: flex;
    justify-content: flex-end; /* برای RTL */
    gap: 1rem;
}

[dir="ltr"] .footer-social {
    justify-content: flex-start;
}

.footer-social__link {
    color: #c0c0c0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social__link svg {
    width: 24px;
    height: 24px;
}

.footer-social__link:hover {
    color: var(--theme-color-accent, #00eaff);
    transform: scale(1.1);
}


/* نوار پایینی فوتر (کپی‌رایت و حقوقی) */
.footer-bottom-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #888888;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #ffffff;
}

/* --- فوتر ریسپانسیو --- */
@media (max-width: 1024px) {
    .footer-main {
        /* چیدمان 2x2 در تبلت */
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-column--brand {
        grid-column: span 2; /* ستون برند تمام عرض می‌شود */
        text-align: center; /* در تبلت همه چیز وسط‌چین */
    }

    /* ریست کردن تراز برای هر دو جهت */
    [dir="rtl"] .footer-column--brand,
    [dir="ltr"] .footer-column--brand {
        text-align: center;
    }

    .footer-social,
    [dir="ltr"] .footer-social {
        justify-content: center; /* وسط‌چین کردن آیکون‌ها */
    }

    .footer-column__title::after {
        right: 50%; /* وسط‌چین کردن خط زیر عنوان */
        transform: translateX(50%);
    }

    [dir="ltr"] .footer-column__title::after {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
}

@media (max-width: 768px) {
    .app-footer {
        padding-top: 3rem;
    }

    .footer-main {
        /* تک ستونه در موبایل */
        grid-template-columns: 1fr;
        gap: 2.5rem; /* افزایش فاصله در حالت پشته‌ای */
        padding-bottom: 2rem;
    }

    .footer-column,
    [dir="rtl"] .footer-column,
    [dir="ltr"] .footer-column {
        text-align: center; /* وسط‌چین کردن همه ستون‌ها */
    }

    .footer-column__links a:hover {
        padding-right: 0; /* غیرفعال کردن افکت حرکت */
    }

    [dir="ltr"] .footer-column__links a:hover {
        padding-left: 0;
    }

    .footer-bottom-bar {
        flex-direction: column; /* پشته‌ای کردن بخش کپی‌رایت و لینک‌ها */
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .footer-legal-links {
        gap: 1rem;
        flex-wrap: wrap; /* اجازه شکستن خط به لینک‌ها */
        justify-content: center;
    }
}