:root {
    --c-bg: #f8f6fb;
    --c-surface: #ffffff;
    --c-surface2: #f4eef7;
    --c-border: #eaddec;
    --c-border-hi: #d7c1dc;
    --c-text: #2f2034;
    --c-text-2: #6f5f75;
    --c-text-3: #9c8ca2;
    --c-accent: #e4007c;
    --c-accent-lt: rgba(228, 0, 124, 0.1);
    --c-accent-hover: #bd0067;
    --g-header: linear-gradient(135deg, #4c1b5b 0%, #78216c 100%);
    --g-btn: linear-gradient(135deg, #e4007c 0%, #b8d322 120%);
}

[data-theme="dark"] {
    --c-bg: #160b1b;
    --c-surface: #201128;
    --c-surface2: #2b1734;
    --c-border: rgba(255, 255, 255, 0.1);
    --c-border-hi: rgba(255, 255, 255, 0.18);
    --c-text: #fff8ff;
    --c-text-2: #d9c9de;
    --c-text-3: #ad9ab5;
    --c-accent: #ff3fa0;
    --c-accent-hover: #ff6ab7;
    --g-header: linear-gradient(135deg, #2a1033 0%, #4c1b5b 100%);
}

body {
    background:
        radial-gradient(circle at 8% 12%, rgba(184, 211, 34, 0.18), transparent 28rem),
        radial-gradient(circle at 92% 20%, rgba(228, 0, 124, 0.13), transparent 24rem),
        var(--c-bg);
}

.site-logo {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: contain;
}

.site-title {
    font-size: 21px;
}

.site-slogan {
    color: rgba(255, 255, 255, 0.86);
}

.casamaaf-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 36px;
    align-items: center;
    min-height: 520px;
    padding: 54px;
    margin-bottom: 34px;
    border: 1px solid var(--c-border);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(76, 27, 91, 0.96), rgba(228, 0, 124, 0.86)),
        var(--c-surface);
    color: #fff;
    box-shadow: 0 24px 70px rgba(76, 27, 91, 0.26);
    overflow: hidden;
    position: relative;
}

.casamaaf-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -160px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(184, 211, 34, 0.28);
}

.hero-copy,
.hero-card {
    position: relative;
    z-index: 1;
}

.hero-kicker,
.panel-label,
.title-icon {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(184, 211, 34, 0.18);
    color: #e7f27c;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.casamaaf-hero h1 {
    max-width: 760px;
    margin: 20px 0;
    color: #fff;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.casamaaf-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary,
.btn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
}

.btn-primary {
    background: var(--g-btn);
    color: #fff;
    box-shadow: 0 12px 28px rgba(228, 0, 124, 0.25);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.34);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.hero-card {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--c-text);
    text-align: center;
}

.hero-card img {
    width: 210px;
    height: 210px;
    object-fit: contain;
}

.hero-card strong {
    color: #4c1b5b;
    font-size: 22px;
}

.hero-card span {
    color: #e4007c;
    font-weight: 800;
    text-transform: uppercase;
}

.mission-grid,
.casamaaf-two-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 34px;
}

.mission-grid article,
.casamaaf-panel {
    border: 1px solid var(--c-border);
    border-radius: 22px;
    background: var(--c-surface);
    box-shadow: var(--shadow-sm);
}

.mission-grid article {
    padding: 28px;
}

.mission-grid span {
    color: var(--c-accent);
    font-weight: 900;
}

.mission-grid h2,
.casamaaf-panel h2,
.section-heading h2 {
    margin: 10px 0;
    color: var(--c-text);
    letter-spacing: -0.03em;
}

.mission-grid p,
.casamaaf-panel p {
    color: var(--c-text-2);
    line-height: 1.7;
}

.casamaaf-two-cols {
    grid-template-columns: 1fr 1fr;
}

.casamaaf-panel {
    padding: 32px;
}

.casamaaf-panel .panel-label {
    color: #4c1b5b;
    background: rgba(184, 211, 34, 0.24);
}

.casamaaf-panel .btn-primary {
    margin-top: 14px;
}

.panel-purple {
    background: linear-gradient(135deg, #4c1b5b, #6b2467);
    color: #fff;
}

.panel-purple h2,
.panel-purple p {
    color: #fff;
}

.panel-purple .panel-label {
    color: #e7f27c;
    background: rgba(255, 255, 255, 0.12);
}

.casamaaf-news {
    padding: 30px;
    border: 1px solid var(--c-border);
    border-radius: 24px;
    background: var(--c-surface);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section-heading .title-icon {
    color: #4c1b5b;
}

.empty-state {
    padding: 32px;
    border-radius: 16px;
    background: var(--c-surface2);
    color: var(--c-text-2);
    text-align: center;
}

.article-thumb img {
    object-fit: contain;
    background: #fff;
}

@media (max-width: 900px) {
    .casamaaf-hero,
    .mission-grid,
    .casamaaf-two-cols {
        grid-template-columns: 1fr;
    }

    .casamaaf-hero {
        padding: 34px 24px;
        min-height: auto;
    }

    .hero-card img {
        width: 160px;
        height: 160px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}
