:root {
    --glass-bg: rgba(255,255,255,0.08);
    --glass-border: rgba(255,255,255,0.15);
    --neon: #f4bf35;
}

/* ===== Title ===== */
h2 {
    margin-top: 50px;
    color: var(--neon);
    animation: fadeInDown 1s ease-out;
    text-align: center;
}
 h2{
        font-size:34px;
        font-weight:800;
     }


h2::after {
    content: "";
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, transparent, #3e3e3e, transparent);
    display: block;
    margin: 15px auto;
    border-radius: 20px;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

p {
    animation: fadeIn 1s ease forwards;
}

/* ===== Ceremony Card ===== */
.ceremony-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    color: white;
    transition: all 0.4s ease;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    animation: fadeIn 1s ease forwards;

    display: flex;
    flex-direction: column;
    height: 100%;
}

.ceremony-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--neon);
    box-shadow:
        0 20px 40px rgba(0,0,0,0.5),
        0 0 20px rgba(0,255,213,0.3);
}

/* image */
.ceremony-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.4s;
}

.ceremony-card:hover img {
    transform: scale(1.05);
}

/* text */
.ceremony-card h4 {
    min-height: 30px;
    font-size: 16px;
    font-weight: bold;
}

.ceremony-card p {
    min-height: 24px;
    font-size: 14px;
    color: var(--neon);
}

/* button */
.ceremony-card .btn {
    margin-top: auto;
    background: linear-gradient(135deg, #00ffd5, #00d4ff);
    border: none;
    color: black;
    font-weight: bold;
    border-radius: 10px;
    padding: 10px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.ceremony-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,255,213,0.4);
}

.ceremony-card .btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: 0.5s;
}

.ceremony-card .btn:hover::before {
    width: 220px;
    height: 220px;
}

/* ===== Modal close ===== */
.btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1100;
    background-color: white;
}

/* ===== Pagination ===== */
.pagination {
    gap: 8px;
}

.pagination .page-link {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    border-radius: 12px;
    padding: 8px 14px;
    transition: 0.3s;
    min-width: 40px;
    text-align: center;
}

.pagination .page-link:hover {
    background: rgba(0,255,213,0.1);
    border-color: var(--neon);
    color: var(--neon);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,255,213,0.2);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #00ffd5, #00d4ff);
    color: black;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0,255,213,0.5);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255,255,255,0.03);
}

.pagination .page-item:hover {
    transform: scale(1.05);
}

/* ===== Custom Dropdown ===== */
.dropdown-wrapper {
    position: relative;
    display: inline-block;
    z-index: 1000; /* 🔥 مهم */
        animation: fadeIn 1s ease forwards;

}

.dropdown-menu {
    z-index: 1001; /* 🔥 بالاتر از کارت‌ها */
}

.dropdown-btn {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.dropdown-btn:hover {
    border-color: var(--neon);
    box-shadow: 0 0 10px rgba(0,255,213,0.3);
}

/* dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%) scale(0.95);

    background: rgba(30,30,30,0.95);
    backdrop-filter: blur(15px);

    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 15px;

    padding: 8px;
    min-width: 120px;

    display: flex;
    flex-direction: column;
    gap: 6px;

    opacity: 0;
    pointer-events: none;

    transition: 0.25s;
    
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
}

.dropdown-menu a {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: white;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.25s;
}

.dropdown-menu a:hover {
    color: var(--neon);
    border-color: var(--neon);
    background: rgba(0,255,213,0.1);
    transform: translateY(-2px);
}