@import "../../../components/com_myinvation/assets/css/currenevent.css";
/* مسیر درست فونت‌ها در جوملا */
@font-face {
    font-family: 'IRANYekanX';
    src: url('../fonts/IRANYekanX/IRANYekanX-Regular.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekanX';
    src: url('../fonts/IRANYekanX/IRANYekanX-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekanX';
    src: url('../fonts/IRANYekanX/IRANYekanX-Bold.woff2') format('woff2');
    font-weight: bold;
    font-display: swap;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, h1, h2, h3, p, a, button, span {
    font-family: 'IRANYekanX', sans-serif;
}

/* صفحه اصلی */
body {
    background: #f4f4f4;
}

.header-text {
    padding: 20px;
    text-align: center;
}

.header-text h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.header-text p {
    font-size: 14px;
    margin-bottom: 10px;
}

.header-text h2 {
    font-size: 18px;
    color: #444;
    font-weight: 500;
}

.main-button {
    background: var(--event-color);
    color: #000;
    padding: 15px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.main-button i {
    font-size: 22px;
}

.main-button-section {
    padding: 20px;
}

.section-title {
    font-size: 20px;
    padding: 10px 20px;
    font-weight: 500;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 20px 18px;
    padding-bottom: 90px; /* ← این خط رو اضافه کن (یا 100px) */
}

.grid-item {
    background: #2f3336;
    color: #fff;
    padding: 20px 5px;
    border-radius: 10px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.grid-item span {
    font-size: 14px;
    line-height: 1.3;
}

.icon-yellow {
    color: var(--event-color);
    font-size: 26px;
}

.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #ccc;
    padding: 8px 0;
    z-index: 10;
}

.menu-item {
    color: #444;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    display: flex;
    flex-direction: column; /* آیکون بالای متن */
    align-items: center;
}

.menu-item i {
    font-size: 18px;
    margin-bottom: 3px;
}

.menu-item.active {
    color: #000;
    font-weight: bold;
}

/* موبایل */
@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-item {
        min-height: 100px;
        padding: 15px 5px;
    }

    .icon-yellow {
        font-size: 24px;
    }

    .grid-item span {
        font-size: 13.5px;
    }
}

/* فاصله بهتر دکمه‌های گرید — صفحه اصلی */
.grid {
    gap: 18px; /* قبلاً 12px بود → حالا فاصله بیشتر و شیک‌تر */
    padding: 20px 18px; /* کمی فاصله از لبه‌های صفحه */
}

.grid-item {
    min-height: 105px; /* کمی بلندتر که متن‌ها راحت‌تر جا بشن */
    padding: 18px 8px; /* فاصله داخلی بهتر */
    gap: 12px; /* فاصله بین آیکون و متن */
}

/* ====================== صفحه محتوا / اخبار / مطالب (content.html) ====================== */

.content-page {
    padding: 20px 20px 90px;
    background: #f4f4f4; /* درست ← #f4f4f4 (خاکستری روشن و تمیز) */
    min-height: 100vh;
    margin-top: 12px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.12);
}

.content-header {
    background: linear-gradient(135deg, var(--workshop-color-start), var(--workshop-color-end));
    color: #000;
    padding: 18px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(247, 198, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.article-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.article-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.article-body {
    padding: 18px 20px;
}

.article-title {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-meta {
    color: #666;
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.article-excerpt {
    color: #444;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.read-more {
    color: var(--event-color);
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #e6b500;
}

.read-more:hover i {
    transform: translateX(6px);
}

/* برای مطالبی که عکس ندارن */
.article-card.no-image .article-body {
    padding-top: 25px;
}

/* لوگوی بالای صفحه — content.html و صفحات مشابه */
.page-top-logo {
    text-align: center;
    padding: 16px 20px 8px;
    background: #000;
    width: 100%;
}

.page-top-logo img {
    height: 68px;
    width: auto;
    max-width: 90%;
    display: block;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInLogo 1.1s ease-out 0.3s forwards;
}

@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-top-logo {
    text-align: center;
    padding: 16px 20px 8px;
    background: #000;
    width: 100%;
}

.page-top-logo img {
    height: 68px;
    width: auto;
    max-width: 90%;
    display: block;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInLogo 1.1s ease-out 0.3s forwards;
}

@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* فاصله و شکل جدید برای محتوای اصلی */
.content-page {
    padding: 20px 20px 90px;
    background: #f4f4f4;
    min-height: 100vh;
    margin-top: 12px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.12);
}

/* هدر زرد با افکت درخشش */
.content-header {
    background: linear-gradient(135deg, var(--workshop-color-start), var(--workshop-color-end));
    color: #000;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    font-weight: bold;
    font-size: 21px;
    margin: 0 8px 28px;
    box-shadow: 0 6px 20px rgba(247, 198, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.content-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* کارت‌های خبر — سایه و حرکت نرم */
.article-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    margin: 0 12px 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.35s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

/* خط زرد زیر عنوان خبر */
.article-title {
    font-size: 19px;
    margin-bottom: 8px;
    position: relative;
    padding-bottom: 10px;
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--event-color);
    border-radius: 3px;
}

body {
    padding-bottom: 100px !important;
}

.grid-item {
    background: #2f3336;
    color: #fff;
    padding: 18px 8px;
    border-radius: 16px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    min-height: 105px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;

    /* افکت‌های جدید */
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* درخشش زرد هنگام هاور */
.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(247, 198, 0, 0.4);
    background: #383d41;
}

/* خط زرد متحرک از پایین */
.grid-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--event-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.4s ease;
}

.grid-item:hover::before {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* آیکون زرد کمی بزرگ‌تر و درخشان‌تر هنگام هاور */
.grid-item .icon-yellow {
    transition: all 0.3s ease;
}

.grid-item:hover .icon-yellow {
    transform: scale(1.2);
    filter: brightness(1.3) drop-shadow(0 0 12px var(--event-color));
}


/* بخش مربوط به اسپانسرها */

/* ====================== اسپانسرها - استایل‌های جدید ====================== */

/* یکسان‌سازی فونت ورودی‌ها و سلکت‌ها */
.search-input,
.filter-select,
.search-button,
.filter-input {
    font-family: 'IRANYekanX', sans-serif !important;
    font-size: 16px !important;
}

/* استایل بخش جستجو */
.search-section {
    padding: 20px;
    background: #f4f4f4;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-input {
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #ddd;
    font-size: 16px;
}

.filter-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-select {
    flex: 2;
    padding: 14px;
    border-radius: 10px;
    border: 2px solid #ddd;
    font-size: 16px;
}

.search-button {
    flex: 1;
    background: var(--event-color);
    color: #000;
    font-weight: bold;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .15);
}

