body {
    margin: 0;
    font-family: Inter, system-ui, Arial, sans-serif;
    color: #0f172a;
    background: linear-gradient(135deg, #ccfbff 0%, #e7d9ff 50%, #ef96c5 100%);
}

/* Theme variables (default) */
:root {
    --accent: #0ea5e9;
    --accent-bg: #e0f2fe;
    --accent-contrast: #075985;
}

.wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 24px;
}

a {
    color: #0ea5e9;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

header a {
    padding: 8px 12px;
    background: #e2e8f0;
    border-radius: 8px;
    color: #0f172a;
}

header a:hover {
    background: #cbd5e1;
}

h1 {
    margin: 0 0 8px;
    font-size: 28px;
}

h2 {
    margin: 20px 0 10px;
    font-size: 20px;
}

.meta {
    color: #475569;
    margin-bottom: 20px;
}

.meta .chip {
    display: inline-block;
    padding: 4px 10px;
    background: var(--accent-bg);
    border-radius: 999px;
    font-size: 12px;
    color: var(--accent-contrast);
}

.card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(2, 6, 23, 0.05);
    border-top: 4px solid var(--accent);
}

.card p {
    line-height: 1.7;
    margin: 12px 0 0;
}

img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

/* Prominent hero image at top of card */
img.hero {
    margin-bottom: 12px;
}

/* Layout helpers */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: 1.1fr 1fr;
        align-items: start;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 22px;
    }
}

/* Lists */
.list-check {
    margin: 8px 0 0;
    padding-left: 18px;
}

.list-check li {
    margin: 6px 0;
    list-style: disc;
}

.facts {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.facts li {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.facts li:last-child {
    border-bottom: 0;
}

.facts .label {
    min-width: 120px;
    color: #475569;
}

.facts .value {
    font-weight: 600;
}

.note {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #334155;
}

/* Subtle divider */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 12px 0;
}

/* Blurred hero background using page image */
.hero-header {
    position: relative;
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin-bottom: 12px;
}

.hero-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-url);
    background-size: cover;
    background-position: center;
    filter: blur(12px) brightness(0.9);
    transform: scale(1.08);
}

.hero-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(248,250,252,0.15), rgba(248,250,252,0.45));
}

/* Holiday-specific themes */
body.theme-newyear {
    --accent: #2563eb;
    --accent-bg: #dbeafe;
    --accent-contrast: #1e3a8a;
}

body.theme-christmas {
    --accent: #16a34a;
    --accent-bg: #dcfce7;
    --accent-contrast: #065f46;
}

body.theme-goodfriday {
    --accent: #64748b;
    --accent-bg: #e2e8f0;
    --accent-contrast: #334155;
}

body.theme-maundythursday {
    --accent: #475569;
    --accent-bg: #e2e8f0;
    --accent-contrast: #1f2937;
}

body.theme-valor {
    --accent: #ea580c;
    --accent-bg: #ffedd5;
    --accent-contrast: #7c2d12;
}

body.theme-labor {
    --accent: #0ea5e9;
    --accent-bg: #e0f2fe;
    --accent-contrast: #075985;
}

body.theme-independence {
    --accent: #dc2626;
    --accent-bg: #fee2e2;
    --accent-contrast: #7f1d1d;
}

body.theme-heroes {
    --accent: #7c3aed;
    --accent-bg: #ede9fe;
    --accent-contrast: #4c1d95;
}

body.theme-rizal {
    --accent: #0d9488;
    --accent-bg: #ccfbf1;
    --accent-contrast: #115e59;
}

body.theme-adha {
    --accent: #059669;
    --accent-bg: #d1fae5;
    --accent-contrast: #065f46;
}

body.theme-fitr {
    --accent: #10b981;
    --accent-bg: #d1fae5;
    --accent-contrast: #065f46;
}