/* تنظیمات عمومی */
body {
    background: #f4f4f4;
    padding-bottom: 90px;
    min-height: 100vh;
    margin: 0;
    font-family: 'IRANYekanX', Tahoma, sans-serif !important;
}
/* هدر بالا */
.page-top-logo {
    background: #000;
    padding: 20px 0;
    text-align: center;
	background-image: url('../images/header.png');  /* مسیر عکس رو اینجا بگذارید */
    background-repeat: no-repeat;         /* تصویر تکرار نشه */
    background-position: center center;   /* تصویر وسط چین بشه */
    background-size: cover;               /* این مهمترین بخشه: تصویر رو بزرگ می‌کنه تا کل فضا رو پوشش بده و در همه سایزها رسپانسیو می‌مونه */

}
.page-top-logo img { max-height: 180px; margin-bottom: 10px; }
.header-text h1 { color: #fff; font-size: 24px; font-weight: bold; margin: 0; }
.header-text h2 { color: var(--event-color); font-size: 17px; margin-top: 6px; }
/* منوی پایترین سلکتورها */
.bottom-menu {
    position: fixed !important;
    bottom: 0 !important; left: 0 !important; right: 0 !important;
    background: #ffffff !important;
    border-top: 1px solid #ddd !important;
    padding: 8px 0 !important;
    z-index: 9999 !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
}

/* ==== فقط این ۳ تغییر انجام شده ==== */


.bottom-menu li {
    flex: 1 1 20% !important;    
    min-width: 0 !important;
    max-width: none !important;
    text-align: center !important;
    padding: 0 !important;
    background: transparent !important;
}

/* ۳. این خط تکراری آخر فایل رو حذف کردم (چون بالا قبلاً درستش کردیم) */
/* حذف شد → .bottom-menu ul { display: flex... } آخر فایل */

/* بقیه دقیقاً همون کد خودت بدون تغییر */
.bottom-menu .mod-menu a,
.bottom-menu .menu a,
.bottom-menu a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #555 !important;
    text-decoration: none !important;
    padding: 10px 4px !important;
    min-height: 62px !important;
    gap: 7px !important;
    background: transparent !important;
    border-radius: 12px !important;
    transition: all 0.3s !important;
    min-width: 130px;
}
.bottom-menu a i,
.bottom-menu a svg {
    font-size: 26px !important;
    color: #555 !important;
    display: block !important;
}
.bottom-menu a.active,
.bottom-menu a.active i,
.bottom-menu a.router-link-active,
.bottom-menu a.router-link-active i {
    color: #000 !important;
    font-weight: bold !important;
}
.bottom-menu a:hover,
.bottom-menu a:hover i {
    color: #000 !important;
}
.bottom-menu,
.bottom-menu .mod-menu,
.bottom-menu .menu,
.bottom-menu ul {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.bottom-menu ul {
    display: flex !important;
    justify-content: space-between !important;
}
.bottom-menu a {
    font-size:14px;
    width: 100% !important;
    height: 100% !important;
    padding: 10px 4px !important;
    box-sizing: border-box !important;
}

.bottom-menu ul {
    justify-content: space-around !important;   /* ← این خط کلید اصلیه */
}
.nav-item {
    color: #444;
    text-decoration: none;
    white-space: nowrap;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.nav-item i { font-size: 18px; margin-bottom: 3px; }
.nav-item.active { color: #000; font-weight: bold; }

/* ========================================
   لودینگ حرفه‌ای — لوگو شفاف بدون دایره و پس‌زمینه
   ======================================== */
#site-loader {
    position: fixed;
    inset: 0;
    background: #095e64;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.9s ease;
}

#site-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    color: var(--event-color);
    font-family: 'IRANYekanX', Tahoma, sans-serif;
}

/* لوگو شفاف — بدون دایره، بدون سایه، بدون پس‌زمینه */
.loader-logo {
    width: 120px;
    height: auto;
    animation: float 3s ease-in-out infinite;

}

/* افکت شناور شدن لوگو */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-18px); }
}

/* موج ۵ نقطه زرد زیر لوگو */
.wave-loader {
    margin: 35px 0 20px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wave-loader span {
    width: 12px;
    height: 12px;
    background: var(--event-color);
    border-radius: 50%;
    display: block;
    animation: wave 1.5s infinite ease-in-out;
    box-shadow: 0 0 15px var(--event-color-50);
}

.wave-loader span:nth-child(1) { animation-delay: 0s; }
.wave-loader span:nth-child(2) { animation-delay: 0.15s; }
.wave-loader span:nth-child(3) { animation-delay: 0.3s; }
.wave-loader span:nth-child(4) { animation-delay: 0.45s; }
.wave-loader span:nth-child(5) { animation-delay: 0.6s; }

@keyframes wave {
    0%, 60%, 100% { transform: translateY(0); }
    30%           { transform: translateY(-25px); }
}

#site-loader p {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* ========================================
   Category Blog — دقیقاً مثل content.html با تصویر بالای صفحه
   ======================================== */
.category-blog-page .category-header-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
    margin-bottom: -10px;
}

.category-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 40px 20px 20px;
    text-align: center;
}

.category-title-overlay h1 {
    color: #fff;
    font-size: 28px;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.category-description {
    padding: 20px;
    background: #111;
    color: #ddd;
    text-align: center;
    font-size: 15px;
    margin: -10px 0 20px;
    border-radius: 16px;
}

/* کارت‌های مطلب — دقیقاً مثل content.html */
.articles-list {
    padding: 0 16px;
}



.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(247,198,0,0.3);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.article-body {
    padding: 22px;
    color: #fff;
}

.article-title a {
    color: #6a6a6a;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
    display: block;
    margin-bottom: 10px;
}

.article-title a:hover {
    color: var(--event-color);
}

.article-meta {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.read-more:hover {
    background: #fff;
    transform: translateY(-3px);

}

.no-image .article-body {
    padding-top: 32px;
}
p {
    margin: 0 0 1.5rem 0; /* فاصله پایین 1.5rem برای جداسازی پاراگراف‌ها */
    padding: 0;
    text-align: justify; /* اختیاری: justify برای متن‌های فارسی/عربی بهتره */
    hyphens: auto; /* برای شکستن کلمات طولانی */
}

/* تیترها - اندازه decreasing، وزن bold، فاصله منظم */
h1, .h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 2rem 0 1.5rem 0; /* فاصله بالا و پایین */
    color: #222;
}

h2, .h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 2rem 0 1.2rem 0;
    color: #222;
}

h3, .h3 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    margin-right:20px;
}

h4, .h4 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 1.5rem 0 1rem 0;
}

/* برای محتوای مقاله‌ها (com_content) - تیتر مقاله، تاریخ، نویسنده و ... */
.com-content .page-header h1, /* تیتر اصلی مقاله (single article) */
.blog .article-title h2,     /* تیتر در بلاگ/لیست */
.category-blog .article-title h2 {
    margin-bottom: 0.5rem; /* فاصله کم بین تیتر و متا */
    text-align: right; /* برای RTL فارسی */
}

.article-info {
    font-size: 0.875rem; /* کوچکتر از متن اصلی */
    color: #666;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; /* فاصله مرتب بین آیتم‌ها مثل تاریخ، نویسنده، دسته‌بندی */
    align-items: center;
}

.article-info .createdby,
.article-info .create-date,
.article-info .category-name,
.article-info .hits {
    margin: 0;
}

/* اختیاری: آیکون یا جداکننده برای متا */
.article-info dd::before {
    content: "•";
    margin: 0 0.5rem;
    color: var(--cassiopeia-color-primary, #007bff);
}

/* برای لیست مقالات در بلاگ */
.blog-item {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee; /* خط جداکننده اختیاری */
}
p.sponsor-field {
	text-align: center;
}

.social-instagram{
color: #40939d;
    line-height: 25px;
    vertical-align: -5px;
    padding-left: 9px;
}

.loc-ibe{
color: #40939d;
    line-height: 25px;
    vertical-align: -5px;
    padding-left: 15px;
	font-size: 20px;
}

.speaker-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: none !important;
	box-shadow: none;
    transition: all 0.4s ease;
    margin-bottom: 10px;
}

.workshop-datetime {
    background: none !important; 
    color: var(--event-color);
    padding: 12px 20px;
    border-radius: 2px !important; 
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
    margin: 10px 0;
    border: 1px dashed var(--event-color);
}

.sponsor-logo {
    width: 115px !important;
	height: 115px !important;
	margin-bottom: 10px;
	border: none !important;
}