﻿.events-page {
    background: #f7f8fc;
    min-height: 100vh;
}

/* ================= HERO ================= */

.events-hero {
    background: linear-gradient(135deg, #101c3c, #172b5c);
    color: white;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

    .events-hero::after {
        content: "";
        position: absolute;
        width: 350px;
        height: 350px;
        background: rgba(255, 138, 0, 0.15);
        border-radius: 50%;
        left: -100px;
        top: -150px;
    }

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 20px;
}

.events-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 18px;
}

    .events-hero h1 span {
        color: #ff8a00;
    }

.events-hero p {
    color: rgba(255,255,255,0.8);
    font-size: 17px;
    max-width: 600px;
}

/* ================= CONTENT ================= */

.events-content {
    padding: 45px 0 80px;
}

/* ================= HEADER ================= */

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

    .events-header h2 {
        font-size: 25px;
        font-weight: 800;
        margin-bottom: 5px;
    }

    .events-header span {
        color: #7c8497;
        font-size: 14px;
    }

/* ================= CARD - REFINED ================= */

.event-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(17, 27, 53, 0.06);
    border: 1px solid #eef0f5;
    height: 100%;
    transition: 0.3s ease;
}

    .event-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(17, 27, 53, 0.10);
        border-color: #e5e8f0;
    }

/* IMAGE */

.event-image {
    height: 160px;
    position: relative;
    background: #eef1f7;
    overflow: hidden;
}

    .event-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: 0.4s;
    }

.event-card:hover .event-image img {
    transform: scale(1.04);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    color: #c3c9d8;
}

.event-type {
    position: absolute;
    right: 12px;
    top: 12px;
    background: rgba(16, 28, 60, 0.85);
    backdrop-filter: blur(4px);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.expired-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #dc3545;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(220, 53, 69, .25);
    z-index: 5;
}

/* BODY */

.event-body {
    padding: 14px 16px 16px;
}

    .event-body h3 {
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 6px;
        color: #17213b;
        line-height: 1.4;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.event-description {
    color: #8a91a3;
    font-size: 12px;
    line-height: 1.7;
    height: 34px;
    overflow: hidden;
    margin-bottom: 10px;
}

/* INFO */

.event-info {
    border-top: 1px solid #f2f3f7;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .event-info div {
        display: flex;
        align-items: center;
        gap: 7px;
        color: #737b8f;
        font-size: 12px;
    }

    .event-info i {
        color: #ff8a00;
        font-size: 13px;
    }

/* FOOTER (card) */

.event-footer {
    border-top: 1px solid #f2f3f7;
    margin-top: 12px;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.event-price {
    font-weight: 700;
    color: #17213b;
    font-size: 13px;
}

.free-price {
    color: #20a464;
}

.event-details-btn {
    background: #101c3c;
    color: white;
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: 0.2s;
}

    .event-details-btn:hover {
        background: #ff8a00;
        color: white;
    }

/* ================= EMPTY ================= */

.empty-events {
    background: white;
    border-radius: 18px;
    padding: 80px 20px;
    text-align: center;
}

    .empty-events i {
        font-size: 60px;
        color: #c4cad7;
    }

    .empty-events h3 {
        margin-top: 20px;
        font-weight: 800;
    }

    .empty-events p {
        color: #7b8497;
    }

/* ================= PAGINATION ================= */

.events-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 45px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e0e4eb;
    background: white;
    border-radius: 9px;
}

    .pagination-btn.active {
        background: #ff8a00;
        color: white;
        border-color: #ff8a00;
    }

/* ================= BOT CTA BANNER ================= */

.bot-cta-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 18px 26px;
    margin-bottom: 20px;
    border-radius: 18px;
    text-decoration: none;
    overflow: hidden;
    background: linear-gradient(100deg, #101c3c 0%, #1a2c5c 35%, #ff8a00 100%);
    background-size: 200% 200%;
    animation: botCtaGradient 6s ease infinite;
    box-shadow: 0 10px 30px rgba(255, 138, 0, 0.25), 0 4px 14px rgba(16, 28, 60, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .bot-cta-banner:hover {
        transform: translateY(-3px) scale(1.005);
        box-shadow: 0 16px 40px rgba(255, 138, 0, 0.35), 0 6px 18px rgba(16, 28, 60, 0.3);
    }

    .bot-cta-banner:active {
        transform: translateY(-1px) scale(0.998);
    }

@keyframes botCtaGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.bot-cta-shine {
    position: absolute;
    top: 0;
    right: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    animation: botCtaShine 3.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes botCtaShine {
    0% {
        right: -60%;
    }

    45%, 100% {
        right: 130%;
    }
}

.bot-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 24px;
    position: relative;
    z-index: 2;
    animation: botCtaPulse 2.4s ease-in-out infinite;
}

@keyframes botCtaPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255,255,255,0.35);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255,255,255,0);
    }
}

.bot-cta-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
    z-index: 2;
    flex: 1;
}

    .bot-cta-text strong {
        color: #fff;
        font-size: 17px;
        font-weight: 800;
    }

    .bot-cta-text small {
        color: rgba(255,255,255,0.8);
        font-size: 12.5px;
        font-weight: 500;
    }

.bot-cta-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    color: #fff;
    font-size: 16px;
    position: relative;
    z-index: 2;
    transition: transform 0.25s ease, background 0.25s ease;
}

.bot-cta-banner:hover .bot-cta-arrow {
    background: rgba(255,255,255,0.28);
    transform: translateX(-4px);
}

/* ================= FREE EVENT CTA BANNER (رنگ‌بندی متفاوت) ================= */

.free-cta-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 18px 26px;
    margin-bottom: 20px;
    border-radius: 18px;
    text-decoration: none;
    overflow: hidden;
    background: linear-gradient(100deg, #0d3b32 0%, #0f6e4f 40%, #22c55e 100%);
    background-size: 200% 200%;
    animation: botCtaGradient 6s ease infinite;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.25), 0 4px 14px rgba(13, 59, 50, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .free-cta-banner:hover {
        transform: translateY(-3px) scale(1.005);
        box-shadow: 0 16px 40px rgba(34, 197, 94, 0.35), 0 6px 18px rgba(13, 59, 50, 0.3);
    }

    .free-cta-banner:active {
        transform: translateY(-1px) scale(0.998);
    }

    .free-cta-banner .bot-cta-icon {
        background: rgba(255, 255, 255, 0.16);
    }

    .free-cta-banner .bot-cta-text small {
        color: rgba(255,255,255,0.85);
    }

@media (max-width: 500px) {
    .bot-cta-banner {
        padding: 14px 16px;
        gap: 12px;
    }

    .bot-cta-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 19px;
    }

    .bot-cta-text strong {
        font-size: 15px;
    }

    .bot-cta-text small {
        font-size: 11.5px;
    }

    .bot-cta-arrow {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
}

/* ================= CATEGORY MENU ================= */

.event-categories {
    background: white;
    border-radius: 16px;
    padding: 6px;
    margin-bottom: 20px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.05);
    overflow: hidden;
}

.category-scroll {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

    .category-scroll::-webkit-scrollbar {
        display: none;
    }

.category-item {
    border: none;
    background: transparent;
    color: #626b7d;
    white-space: nowrap;
    padding: 12px 17px;
    border-radius: 11px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}

    .category-item:hover {
        color: #ff8a00;
        background: #fff5e9;
    }

    .category-item.active {
        background: #ff8a00;
        color: white;
    }

/* ================= SEARCH / FILTER ================= */

.filter-box {
    display: flex;
    gap: 10px;
    background: white;
    padding: 12px;
    border-radius: 15px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.search-wrapper {
    position: relative;
    flex: 1;
}

    .search-wrapper i {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #9aa1b1;
    }

    .search-wrapper input {
        height: 48px;
        border: none;
        background: #f7f8fb;
        padding-right: 45px;
        border-radius: 10px;
        font-family: inherit;
    }

        .search-wrapper input:focus {
            box-shadow: none;
            background: #f3f5f9;
        }

.filter-button {
    min-width: 110px;
    background: #101c3c;
    color: white;
    border-radius: 10px;
    font-weight: 700;
    height: 48px;
    border: none;
}

    .filter-button:hover {
        background: #ff8a00;
        color: white;
    }

/* =========================================================
   SITE FOOTER - STRONG VERSION
   ========================================================= */
.site-footer {
    position: relative;
    margin-top: 80px;
    padding: 65px 0 25px;
    background: #111b35 !important;
    color: #ffffff !important;
    overflow: hidden;
}

    .site-footer::before {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        top: -180px;
        left: -100px;
        background: rgba(255, 107, 26, 0.15);
        border-radius: 50%;
        pointer-events: none;
    }

    .site-footer::after {
        content: "";
        position: absolute;
        width: 250px;
        height: 250px;
        bottom: -150px;
        right: -80px;
        background: rgba(255, 107, 26, 0.10);
        border-radius: 50%;
        pointer-events: none;
    }

    .site-footer .container {
        position: relative;
        z-index: 2;
    }

.footer-logo {
    color: #ffffff !important;
}

    .footer-logo span {
        color: #ffffff !important;
    }

    .footer-logo strong {
        color: #ff6b1a !important;
    }

.footer-description {
    color: rgba(255,255,255,.70) !important;
}

.site-footer h5 {
    color: #ffffff !important;
    font-weight: 900;
}

.site-footer a {
    color: rgba(255,255,255,.72) !important;
}

    .site-footer a:hover {
        color: #ff6b1a !important;
    }

.site-footer p {
    color: rgba(255,255,255,.68) !important;
}

.site-footer hr {
    border-color: rgba(255,255,255,.15) !important;
}

.footer-bottom {
    color: rgba(255,255,255,.50) !important;
}

.footer-social a {
    background: rgba(255,255,255,.10) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,.08);
}

    .footer-social a:hover {
        background: #ff6b1a !important;
        color: #ffffff !important;
    }

/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .events-hero {
        padding: 50px 0;
    }

        .events-hero h1 {
            font-size: 30px;
        }

    .events-content {
        padding-top: 30px;
    }

    .event-image {
        height: 150px;
    }

    .event-categories {
        border-radius: 12px;
    }

    .category-item {
        padding: 11px 14px;
        font-size: 12px;
    }

    .filter-box {
        padding: 8px;
    }

    .filter-button {
        min-width: 80px;
    }
}
