/* Islamic holidays and blessed nights (event.php, events-hub.php) */
.ev-page { --ev-pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23a07a4a' stroke-opacity='.16' stroke-width='1'%3E%3Crect x='16' y='16' width='24' height='24'/%3E%3Crect x='16' y='16' width='24' height='24' transform='rotate(45 28 28)'/%3E%3Ccircle cx='28' cy='28' r='5'/%3E%3C/g%3E%3C/svg%3E"); }

/* ── hero ── */
.ev-hero { position: relative; overflow: hidden; margin: 6px 0 28px; padding: 34px clamp(20px, 4vw, 44px) 30px; border-radius: 28px; border: 1px solid var(--t-border);
    background: radial-gradient(circle at 85% -20%, color-mix(in srgb, var(--t-accent) 26%, transparent), transparent 60%), var(--ev-pat), var(--t-card); }
.ev-deco { position: absolute; right: clamp(14px, 4vw, 48px); top: 50%; transform: translateY(-50%); font: 400 clamp(64px, 11vw, 150px)/1.1 'Amiri', serif; color: var(--t-accent); opacity: .13; pointer-events: none; white-space: nowrap; max-width: 55%; text-align: center; }
.ev-kicker { position: relative; margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--t-accent); }
.ev-h1 { position: relative; margin: 0; font-family: "Space Grotesk", sans-serif; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.05; color: var(--t-text); }
.ev-y { color: var(--t-accent); }
.ev-aka { position: relative; margin: 8px 0 0; font-size: 14px; color: var(--t-text-secondary); }
.ev-when { position: relative; display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 10px 16px; border-radius: 14px; background: var(--t-bg); border: 1px solid var(--t-border); font-size: 16.5px; font-weight: 600; color: var(--t-text); }
.ev-when svg { flex: none; width: 19px; height: 19px; color: var(--t-accent); }
.ev-state { position: relative; display: inline-block; margin: 16px 0 0; padding: 10px 18px; border-radius: 999px; background: var(--t-accent); color: var(--t-bg); font-weight: 700; font-size: 16px; animation: ev-glow 2.4s ease-in-out infinite; }
.ev-state[hidden], .ev-cd[hidden] { display: none; }
@keyframes ev-glow { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--t-accent) 18%, transparent); } }
.ev-hero.is-after .ev-state { background: var(--t-bg); color: var(--t-text); border: 1px solid var(--t-border); animation: none; }
.ev-cd { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 92px)); gap: 10px; margin: 20px 0 0; }
.ev-cd > div { display: flex; flex-direction: column; align-items: center; padding: 12px 6px 10px; border-radius: 16px; background: var(--t-bg); border: 1px solid var(--t-border); }
.ev-cd b { font-family: "Space Grotesk", sans-serif; font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 700; line-height: 1; color: var(--t-text); font-variant-numeric: tabular-nums; }
.ev-cd > div:first-child b { color: var(--t-accent); }
.ev-cd span { margin-top: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--t-text-secondary); }
.ev-next { position: relative; margin: 12px 0 0; font-size: 14.5px; font-weight: 600; color: var(--t-text-secondary); }
.ev-short { position: relative; max-width: 640px; margin: 18px 0 0; font-size: 16px; line-height: 1.65; color: var(--t-text); }
.ev-links { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.ev-links a { padding: 8px 14px; border-radius: 999px; background: var(--t-bg); border: 1px solid var(--t-border); color: var(--t-text); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.ev-links a:hover { border-color: var(--t-accent); color: var(--t-accent); }

/* ── content ── */
.ev-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: start; }
.ev-sec { margin: 0 0 32px; }
.ev-sec h2, .ev-side h2 { margin: 0 0 12px; font-family: "Space Grotesk", sans-serif; font-size: 1.4rem; color: var(--t-text); }
.ev-sec p { margin: 0 0 12px; font-size: 16px; line-height: 1.75; color: var(--t-text); }
.ev-do { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ev-do li { position: relative; padding: 13px 16px; padding-inline-start: 44px; border-radius: 15px; background: var(--t-card); font-size: 15px; line-height: 1.6; color: var(--t-text); }
.ev-do li::before { content: ''; position: absolute; inset-inline-start: 17px; top: 19px; width: 12px; height: 12px; border-radius: 3px; background: var(--t-accent); transform: rotate(45deg); opacity: .8; }
.ev-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--t-border); }
.ev-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ev-table th, .ev-table td { padding: 11px 14px; text-align: start; border-bottom: 1px solid var(--t-border); color: var(--t-text); }
.ev-table thead th { background: var(--t-card); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--t-text-secondary); }
.ev-table tbody th { font-family: "Space Grotesk", sans-serif; font-weight: 700; }
.ev-table tr:last-child th, .ev-table tr:last-child td { border-bottom: 0; }
.ev-table tr.is-cur { background: color-mix(in srgb, var(--t-accent) 12%, transparent); }
.ev-table tr.is-cur th { color: var(--t-accent); }
.ev-approx { margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: var(--t-text-secondary); }
.ev-approx a { color: var(--t-accent); font-weight: 600; }
.ev-faq details { border-bottom: 1px solid var(--t-border); }

/* ── related (aside) ── */
.ev-side { position: sticky; top: 84px; }
.ev-side h2 { font-size: 1.1rem; }
.ev-rel { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.ev-rel a { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 11px 14px; border-radius: 14px; background: var(--t-card); border: 1px solid transparent; color: var(--t-text); text-decoration: none; transition: border-color .15s; }
.ev-rel a:hover { border-color: var(--t-accent); }
.ev-rel strong { font-size: 14px; }
.ev-rel small { grid-column: 1; font-size: 12.5px; color: var(--t-text-secondary); }
.ev-rel em { grid-column: 2; grid-row: 2; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--t-accent); white-space: nowrap; align-self: end; }
.ev-rel-ar { grid-column: 2; grid-row: 1; font: 400 15px/1.3 'Amiri', serif; color: var(--t-accent); opacity: .8; white-space: nowrap; }
.ev-side-all { font-size: 13.5px; font-weight: 700; color: var(--t-accent); text-decoration: none; }

/* ── hub ── */
.ev-hub-head { margin: 6px 0 24px; }
.ev-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.ev-card a { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; height: 100%; box-sizing: border-box; padding: 18px 18px 16px; border-radius: 20px; border: 1px solid var(--t-border); background: var(--ev-pat), var(--t-card); color: var(--t-text); text-decoration: none; transition: border-color .15s, transform .15s; }
.ev-card a:hover { border-color: var(--t-accent); transform: translateY(-2px); }
.ev-card-ar { position: absolute; right: 16px; bottom: 12px; font: 400 21px/1.3 'Amiri', serif; color: var(--t-accent); opacity: .55; }
.ev-card-k { align-self: flex-start; margin-bottom: 4px; padding: 3px 9px; border-radius: 999px; background: var(--t-accent); color: var(--t-bg); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ev-card strong { margin-top: 0; font-family: "Space Grotesk", sans-serif; font-size: 1.15rem; line-height: 1.25; }
.ev-card.is-first strong { margin-top: 0; }
.ev-card-when { font-size: 14px; font-weight: 600; }
.ev-card-h { font-size: 12.5px; color: var(--t-text-secondary); }
.ev-card-in { margin-top: auto; padding-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--t-accent); }
.ev-card.is-first a { border-color: color-mix(in srgb, var(--t-accent) 55%, transparent); background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--t-accent) 22%, transparent), transparent 60%), var(--ev-pat), var(--t-card); }
.ev-card.is-during a { border-color: var(--t-accent); }
.ev-hub .ev-approx { margin-top: 16px; }

@media (max-width: 960px) {
    .ev-cols { grid-template-columns: 1fr; }
    .ev-side { position: static; }
}
@media (max-width: 560px) {
    .ev-cd { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .ev-cd span { font-size: 10px; }
    .ev-when { font-size: 15px; }
    .ev-deco { opacity: .08; }
}
