:root {
    --glass-bg: rgba(255,255,255,0.08);
    --glass-border: rgba(255,255,255,0.15);
    --neon: #ef3340;
}

/* ===== 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);
}
/* =========================================================
   CEREMONY CARDS
   Theme: Gold / Charcoal / White
========================================================= */

:root {
    --gold: #ef3340;
    --gold-light: #ffe08a;
    --gold-dark: #b8860b;

    --card-bg: #151515;
    --card-bg-2: #1d1d1d;

    --text-main: #ffffff;
    --text-muted: #aaa;

    --border: rgba(244, 191, 53, 0.22);
}


/* ===== Card entrance animation ===== */

@keyframes cardEnter {
    0% {
        opacity: 0;
        transform: translateY(35px) scale(.96);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ===== Very subtle floating animation ===== */
 
/* ===== Golden shine ===== */

@keyframes goldenShine {
    0% {
        transform: translateX(-120%);
    }

    50%,
    100% {
        transform: translateX(120%);
    }
}


/* ===== Golden glow ===== */

@keyframes goldenGlow {
    0%, 100% {
        box-shadow:
            0 12px 30px rgba(0,0,0,.35),
            0 0 0 rgba(244,191,53,0);
    }

    50% {
        box-shadow:
            0 16px 35px rgba(0,0,0,.45),
            0 0 22px rgba(244,191,53,.10);
    }
}


/* =========================================================
   CARD
========================================================= */

.ceremony-card {
    position: relative;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.07),
            rgba(255,255,255,.025)
        ),
        linear-gradient(
            145deg,
            var(--card-bg),
            var(--card-bg-2)
        );

    border: 1px solid var(--border);
    border-radius: 18px;

    padding: 9px;

    color: var(--text-main);

    overflow: hidden;

    display: flex;
    flex-direction: column;

    box-shadow:
        0 12px 30px rgba(0,0,0,.35);

    animation:
        cardEnter .7s ease both,
        cardFloat 5s ease-in-out infinite,
        goldenGlow 4s ease-in-out infinite;

    transition:
        border-color .35s ease,
        box-shadow .35s ease;
}


/* ===== Stagger animation ===== */

.ceremony-item:nth-child(1) .ceremony-card {
    animation-delay: .05s, .8s, 1s;
}

.ceremony-item:nth-child(2) .ceremony-card {
    animation-delay: .15s, 1s, 1.2s;
}

.ceremony-item:nth-child(3) .ceremony-card {
    animation-delay: .25s, 1.2s, 1.4s;
}

.ceremony-item:nth-child(4) .ceremony-card {
    animation-delay: .35s, 1.4s, 1.6s;
}

.ceremony-item:nth-child(5) .ceremony-card {
    animation-delay: .45s, 1.6s, 1.8s;
}

.ceremony-item:nth-child(6) .ceremony-card {
    animation-delay: .55s, 1.8s, 2s;
}


/* =========================================================
   GOLDEN BORDER EFFECT
========================================================= */

.ceremony-card::before {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: inherit;

    padding: 1px;

    background:
        linear-gradient(
            120deg,
            transparent 20%,
           #ef3340,
            transparent 80%
        );

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;

    opacity: .7;
}


/* =========================================================
   IMAGE
========================================================= */

.ceremony-image-wrapper {
    position: relative;

    width: 100%;
    height: 250px;

    border-radius: 13px;

    overflow: hidden;

    background: #101010;
}


.ceremony-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    border-radius: 13px;

    cursor: pointer;

    animation: imageBreath 6s ease-in-out infinite;
}


/* تصویر کمی زنده باشد ولی خیلی زوم نشود */

@keyframes imageBreath {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.025);
    }
}


/* =========================================================
   IMAGE DARK GRADIENT
========================================================= */

.ceremony-image-wrapper::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.65),
            transparent 55%
        );

    pointer-events: none;
}


/* =========================================================
   GOLDEN SHINE
========================================================= */

.ceremony-image-wrapper::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 45%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.16),
            transparent
        );

    transform: translateX(-120%);

    z-index: 2;

    animation: goldenShine 5s ease-in-out infinite;
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.image-overlay {
    position: absolute;

    left: 50%;
    bottom: 15px;

    transform: translateX(-50%);

    z-index: 3;

    padding: 6px 13px;

    border-radius: 20px;

    background: rgba(0,0,0,.65);

    border: 1px solid rgba(244,191,53,.35);

    color: var(--gold-light);

    font-size: 11px;

    white-space: nowrap;

    backdrop-filter: blur(8px);

    opacity: .9;
}


/* =========================================================
   CONTENT
========================================================= */

.ceremony-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 12px 6px 4px;
}


/* ===== Title ===== */

.ceremony-card h4 {
    min-height: 42px;

    margin: 4px 0 8px;

    color: #fff;

    font-size: 16px;
    font-weight: 800;

    line-height: 1.7;

    text-align: center;

    display: flex;
    align-items: center;
    justify-content: center;

    animation: titleGlow 4s ease-in-out infinite;
}


@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 0 transparent;
    }

    50% {
        text-shadow:
            0 0 12px rgba(244,191,53,.18);
    }
}


/* =========================================================
   DATE
========================================================= */

.ceremony-date {
    min-height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-bottom: 12px;

    color: var(--text-muted);

    font-size: 12px;
}


.date-icon {
    color: var(--gold);

    font-size: 9px;

    animation: datePulse 2s ease-in-out infinite;
}


@keyframes datePulse {
    0%, 100% {
        opacity: .5;
        transform: scale(.85);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}


/* =========================================================
   BUTTON
========================================================= */

.ceremony-btn {
    position: relative;

    margin-top: auto;

    width: 100%;

    min-height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    text-decoration: none;

    color: #171717;

    background:
        linear-gradient(
            135deg,
            var(--gold-light),
            var(--gold),
            #ef3340
        );

    border-radius: 11px;

    font-size: 13px;

    font-weight: 800;

    overflow: hidden;

    box-shadow:
        0 6px 18px rgba(244,191,53,.15);

    animation: buttonGlow 3s ease-in-out infinite;
}


@keyframes buttonGlow {
    0%, 100% {
        box-shadow:
            0 6px 18px rgba(244,191,53,.12);
    }

    50% {
        box-shadow:
            0 8px 24px rgba(244,191,53,.28);
    }
}


.ceremony-btn::before {
    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 60%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.35),
            transparent
        );

    animation: buttonShine 4s ease-in-out infinite;
}


@keyframes buttonShine {
    0% {
        left: -100%;
    }

    35%,
    100% {
        left: 130%;
    }
}


.btn-arrow {
    font-size: 16px;

    animation: arrowMove 2s ease-in-out infinite;
}


@keyframes arrowMove {
    0%, 100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-4px);
    }
}


/* =========================================================
   HOVER
   فقط استایل، نه انیمیشن اصلی
========================================================= */

.ceremony-card:hover {
    border-color: rgba(244,191,53,.65);

    box-shadow:
        0 20px 40px rgba(0,0,0,.5),
        0 0 25px rgba(244,191,53,.12);
}


.ceremony-card:hover .ceremony-btn {
    filter: brightness(1.08);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .ceremony-image-wrapper {
        height: 210px;
    }

    .ceremony-card {
        border-radius: 15px;
        padding: 7px;
    }

    .ceremony-card h4 {
        font-size: 14px;
        min-height: 40px;
    }

    .ceremony-date {
        font-size: 11px;
    }

    .ceremony-btn {
        min-height: 39px;
        font-size: 12px;
    }
}


@media (max-width: 480px) {

    .ceremony-image-wrapper {
        height: 190px;
    }

    .ceremony-card h4 {
        font-size: 13px;
    }

    .image-overlay {
        font-size: 10px;
        padding: 5px 10px;
    }
}


/* =========================================================
   REDUCE MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .ceremony-card,
    .ceremony-card img,
    .ceremony-card h4,
    .ceremony-date,
    .ceremony-btn,
    .btn-arrow,
    .date-icon {
        animation: none !important;
    }
}