html:has(.aq2-cover-active),
html:has(.aq2-cover-active) body {
    overflow: hidden !important;
    height: 100%;
}

body.aq2-cover-active #nk-floating-btns,
body.aq2-cover-active .aq2-bottom-nav {
    display: none !important;
}

.nk-template-aqiqah-02 [hidden] {
    display: none !important;
}

.nk-template-aqiqah-02.nk-desktop-showcase {
    background: var(--nk-color-bg-color, #1a6855);
    color: var(--nk-color-text-color, #ffffff);
}

.nk-template-aqiqah-02 .nk-invitation-panel {
    background: var(--nk-color-bg-color, #1a6855);
}

.aq2-page {
    position: relative;
    width: 100%;
    max-width: 500px;
    min-height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    background: var(--nk-color-bg-color, #1a6855);
    box-shadow: 0 0 28px rgba(0, 0, 0, 0.28);
    font-family: var(--nk-font-body, "Lora", serif);
    color: #ffffff;
}

.aq2-cover,
.aq2-section {
    position: relative;
    min-height: 100vh;
    padding: 108px 20px 112px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--nk-color-primary-color, #1a6855) 88%, transparent), color-mix(in srgb, var(--nk-color-primary-color, #1a6855) 72%, transparent)),
        var(--aq2-asset-section-bg) center / cover no-repeat;
    color: #ffffff;
    text-align: center;
    overflow: visible;
}

.aq2-section + .aq2-section {
    margin-top: -1px;
}

.aq2-section__inner {
    position: relative;
    z-index: 4;
    max-width: 390px;
    margin: 0 auto;
}

/* Dekorasi awal section — bukan overlay; di belakang konten */
.aq2-section-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
}

.aq2-cover {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 42px 22px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--nk-color-primary-color, #1a6855) 42%, transparent), color-mix(in srgb, var(--nk-color-primary-color, #1a6855) 78%, transparent)),
        var(--aq2-asset-cover-bg) center / cover no-repeat;
    color: #ffffff;
    overflow: hidden;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.aq2-cover--open {
    transform: translateY(-100%);
    opacity: 0;
}

.aq2-cover__photo {
    width: 250px;
    max-width: 68vw;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.aq2-cover__photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.aq2-cover__label {
    margin: 20px 0 0;
    font-family: var(--nk-font-heading, "Lora", serif);
    font-size: 16px;
    font-style: italic;
    font-weight: 400;
}

.aq2-cover h1 {
    margin: 0;
    font-family: var(--nk-font-heading, "Lora", serif);
    font-size: 30px;
    line-height: 1.25;
    font-weight: 600;
    color: #ffffff;
}

.aq2-cover__date {
    margin: 0;
    font-family: var(--nk-font-heading, "Lora", serif);
    font-size: 16px;
    font-style: italic;
}

.aq2-cover__guest {
    display: grid;
    gap: 10px;
    max-width: 340px;
    margin: 4px auto 0;
    font-family: var(--nk-font-body, "Lora", serif);
    font-size: 14px;
    font-style: italic;
    line-height: 1.55;
}

.aq2-cover__guest p,
.aq2-cover__guest span {
    margin: 0;
}

.aq2-cover__guest strong {
    font-family: var(--nk-font-heading, "Lora", serif);
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    color: #ffffff;
}

.aq2-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 26px;
    border: 0;
    border-radius: 10px;
    background: var(--nk-color-button-color, #e5c07c);
    color: var(--nk-color-button-text-color, #1a6855) !important;
    font-family: var(--nk-font-ui, "Assistant", sans-serif);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    cursor: pointer;
}

.aq2-section-title {
    margin: 0 0 18px;
    font-family: var(--nk-font-heading, "Lora", serif);
    font-size: 28px;
    line-height: 1.35;
    font-weight: 600;
    color: #ffffff;
}

.aq2-subtitle,
.aq2-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 6px auto 18px;
    padding: 8px 18px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--nk-color-secondary-color, #e5c07c) 88%, transparent);
    color: var(--nk-color-primary-color, #1a6855);
    font-family: var(--nk-font-ui, "Assistant", sans-serif);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.aq2-copy,
.aq2-card,
.aq2-prayer blockquote,
.aq2-closing blockquote,
.aq2-greeting {
    font-family: var(--nk-font-body, "Lora", serif);
    font-size: 14px;
    line-height: 1.65;
    color: #ffffff;
}

.aq2-greeting {
    margin: 0 0 22px;
    text-align: center;
}

.aq2-greeting strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.aq2-card,
.aq2-prayer blockquote,
.aq2-closing blockquote {
    margin: 18px 0;
    padding: 20px 18px;
    border-radius: 12px;
    background: var(--nk-color-card-background, rgba(255, 255, 255, 0.12));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.aq2-card strong,
.aq2-prayer blockquote cite,
.aq2-closing blockquote cite {
    color: var(--nk-color-secondary-color, #e5c07c);
    font-family: var(--nk-font-heading, "Lora", serif);
    font-style: normal;
}

.aq2-ornament-top {
    position: absolute;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    z-index: 1;
    pointer-events: none;
}

.aq2-ornament-left,
.aq2-ornament-right {
    position: absolute;
    width: 110px;
    max-width: 28vw;
    height: auto;
    z-index: 2;
    pointer-events: none;
}

.aq2-ornament-left {
    left: 0;
}

.aq2-ornament-right {
    right: 0;
}

.aq2-goyang {
    animation: aq2Goyang 4.2s ease-in-out infinite;
}

.aq2-ornament-right.aq2-goyang {
    animation-delay: -1.8s;
}

/* Overlay pemisah antar section — di atas dekor, di bawah konten */
.aq2-divider {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    z-index: 3;
    pointer-events: none;
}

.aq2-baby {
    padding-top: 88px;
}

.aq2-baby .aq2-section__inner {
    max-width: 420px;
}

.aq2-baby__photo {
    width: 50%;
    max-width: 280px;
    margin: 0 auto 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.aq2-baby__photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 1024 / 741;
}

.aq2-baby h2,
.aq2-closing h2 {
    margin: 0;
    font-family: var(--nk-font-heading, "Lora", serif);
    font-size: 28px;
    line-height: 1.45;
    font-weight: 600;
    color: #ffffff;
}

.aq2-baby__parents {
    margin: 14px auto 10px;
    font-size: 14px;
    line-height: 1.6;
}

.aq2-countdown {
    min-height: auto;
    padding-top: 88px;
    padding-bottom: 112px;
}

.aq2-countdown__items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin: 20px auto 16px;
    max-width: 280px;
}

.aq2-countdown__items div {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    padding: 8px 4px;
    border-radius: 8px;
    background: var(--nk-color-secondary-color, #e5c07c);
    color: var(--nk-color-primary-color, #1a6855);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.aq2-countdown__items strong {
    display: block;
    font-family: var(--nk-font-heading, "Lora", serif);
    font-size: 22px;
    line-height: 1;
    font-weight: 600;
}

.aq2-countdown__items span {
    display: block;
    margin-top: 4px;
    font-family: var(--nk-font-ui, "Assistant", sans-serif);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.aq2-countdown__date {
    margin: 0;
    font-family: var(--nk-font-heading, "Lora", serif);
    font-size: 16px;
    font-style: italic;
    color: #ffffff;
}

.aq2-event-card h3 {
    margin: 0 0 12px;
    font-family: var(--nk-font-heading, "Lora", serif);
    font-size: 22px;
    color: #ffffff;
}

.aq2-event-card__date {
    font-size: 17px;
    font-weight: 600;
}

.aq2-gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.aq2-gallery__item {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    background: rgba(0, 0, 0, 0.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.aq2-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.aq2-gift {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--nk-color-primary-color, #1a6855) 82%, transparent), color-mix(in srgb, var(--nk-color-primary-color, #1a6855) 68%, transparent)),
        var(--aq2-asset-gift-bg) center / cover no-repeat,
        var(--aq2-asset-section-bg) center / cover no-repeat;
}

.aq2-gift__cards {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.aq2-form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    text-align: left;
}

.aq2-form label {
    display: grid;
    gap: 7px;
    font-family: var(--nk-font-ui, "Assistant", sans-serif);
    font-size: 14px;
    color: #ffffff;
}

.aq2-form input,
.aq2-form select,
.aq2-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--nk-color-primary-color, #1a6855);
    font: inherit;
}

.aq2-success {
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--nk-color-secondary-color, #e5c07c) 72%, transparent);
    color: var(--nk-color-primary-color, #1a6855);
    font-size: 14px;
}

.aq2-wishes {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    text-align: left;
}

.aq2-wish {
    padding: 14px;
    border-radius: 12px;
    background: var(--nk-color-card-background, rgba(255, 255, 255, 0.12));
}

.aq2-wish p,
.aq2-muted {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.78);
}

.aq2-inviting {
    margin: 22px 0;
}

.aq2-inviting strong {
    display: block;
    margin-bottom: 10px;
    color: var(--nk-color-secondary-color, #e5c07c);
}

.aq2-inviting p {
    margin: 8px 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--nk-color-card-background, rgba(255, 255, 255, 0.1));
}

.aq2-brand {
    display: grid;
    justify-items: center;
    gap: 6px;
    margin-top: 24px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
}

.aq2-brand img {
    max-width: 118px;
    filter: brightness(1.08);
}

.aq2-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: min(340px, calc(100vw - 40px));
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(26, 104, 85, 0.82);
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.32);
    transform: translateX(-50%);
    backdrop-filter: blur(12px);
}

.aq2-bottom-nav a {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
}

.aq2-bottom-nav a:first-child {
    background: var(--nk-color-secondary-color, #e5c07c);
    color: var(--nk-color-primary-color, #1a6855);
}

.aq2-bottom-nav span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.aq2-desktop-poster {
    position: relative;
    overflow: hidden;
    background: var(--nk-color-primary-color, #1a6855);
    color: #ffffff;
}

.aq2-desktop-poster__media,
.aq2-desktop-poster__shade {
    position: absolute;
    inset: 0;
}

.aq2-desktop-poster__media {
    background-size: cover;
    background-position: center;
    filter: saturate(0.95);
}

.aq2-desktop-poster__shade {
    background: linear-gradient(180deg, rgba(26, 104, 85, 0.22), rgba(26, 104, 85, 0.84));
}

.aq2-desktop-poster__content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px;
    text-align: center;
}

.aq2-desktop-poster__logo {
    width: 150px;
    margin-bottom: 30px;
}

.aq2-desktop-poster__content h2 {
    margin: 8px 0;
    font-family: var(--nk-font-heading, "Lora", serif);
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 600;
    color: #ffffff;
}

.aq2-desktop-poster__content p,
.aq2-desktop-poster__content span {
    font-family: var(--nk-font-ui, "Assistant", sans-serif);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@keyframes aq2Goyang {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scale3d(1.05, 1.05, 1.05); }
}

@media (max-width: 520px) {
    .aq2-section {
        padding: 100px 16px 88px;
    }

    .aq2-baby {
        padding-top: 82px;
    }

    .aq2-cover h1 {
        font-size: 26px;
    }

    .aq2-baby h2,
    .aq2-closing h2 {
        font-size: 24px;
    }

    .aq2-section-title {
        font-size: 24px;
    }

    .aq2-ornament-left,
    .aq2-ornament-right {
        width: 88px;
    }

    .aq2-countdown__items div {
        width: 54px;
        height: 54px;
    }

    .aq2-countdown__items strong {
        font-size: 18px;
    }
}

@media (min-width: 1024px) {
    .nk-template-aqiqah-02.nk-desktop-showcase.nk-mode-split_showcase {
        display: grid !important;
        grid-template-columns: 1fr minmax(390px, var(--nk-desktop-inv-panel-width, 500px)) !important;
    }

    .nk-template-aqiqah-02 .nk-invitation-panel {
        height: 100vh;
        overflow-y: auto;
    }

    .nk-template-aqiqah-02 .aq2-bottom-nav {
        left: auto;
        right: max(16px, calc((var(--nk-desktop-inv-panel-width, 500px) - 340px) / 2));
        transform: none;
    }
}
