/********** Walimah Page **********/

.walimah-hero {
    position: relative;
    padding: 118px 0 88px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 16%, rgba(6, 187, 204, 0.10), transparent 24%),
        radial-gradient(circle at 86% 12%, rgba(244, 180, 0, 0.16), transparent 18%),
        radial-gradient(circle at 82% 78%, rgba(15, 39, 71, 0.08), transparent 24%),
        linear-gradient(180deg, #fbfdff 0%, #f6fbff 42%, #ffffff 100%);
}

.walimah-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.38;
}

.walimah-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 24% 28%, rgba(255,255,255,0.32), transparent 10%),
        radial-gradient(circle at 74% 34%, rgba(255,255,255,0.25), transparent 12%),
        radial-gradient(circle at 58% 82%, rgba(255,255,255,0.18), transparent 12%);
    animation: walimahSparkle 10s linear infinite;
}

@keyframes walimahSparkle {
    0% {
        transform: translateY(0);
        opacity: 0.75;
    }
    50% {
        transform: translateY(-8px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 0.75;
    }
}

.walimah-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.97fr);
    align-items: center;
    gap: 48px;
}

.walimah-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.74rem 1.02rem;
    border-radius: 999px;
    background: rgba(6, 187, 204, 0.10);
    color: var(--primary-dark);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin-bottom: 18px;
    box-shadow: 0 12px 34px rgba(6, 187, 204, 0.10);
    backdrop-filter: blur(8px);
}

.walimah-kicker i {
    color: var(--accent);
}

.walimah-hero-title {
    font-size: clamp(2.5rem, 5.2vw, 4.7rem);
    line-height: 0.97;
    margin-bottom: 18px;
    color: var(--secondary);
    text-shadow: 0 14px 32px rgba(15, 39, 71, 0.07);
}

.walimah-hero-text {
    font-size: 1.04rem;
    line-height: 1.95;
    max-width: 700px;
    margin-bottom: 26px;
}

.walimah-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.walimah-hero-pills span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0.86rem 1rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(15, 39, 71, 0.08);
    box-shadow: 0 16px 38px rgba(8, 26, 51, 0.08);
    font-weight: 800;
    color: var(--secondary);
    backdrop-filter: blur(12px);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.walimah-hero-pills span:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(8, 26, 51, 0.12);
}

.walimah-hero-pills i {
    color: var(--primary);
}

.walimah-hero-quote {
    position: relative;
    max-width: 520px;
    padding: 22px 22px 20px;
    border-radius: 24px;
    background: rgba(255,255,255,0.93);
    border: 1px solid rgba(15, 39, 71, 0.08);
    box-shadow: 0 18px 42px rgba(8, 26, 51, 0.09);
    overflow: hidden;
}

.walimah-hero-quote::before {
    content: "";
    position: absolute;
    inset: auto auto 0 0;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(244,180,0,0.18), transparent 70%);
    pointer-events: none;
}

.walimah-hero-quote i {
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.walimah-hero-quote p {
    margin: 0 0 8px;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.65;
}

.walimah-hero-quote span {
    display: inline-block;
    color: var(--primary-dark);
    font-size: 0.95rem;
    font-weight: 700;
}

.walimah-hero-visual {
    position: relative;
}

.walimah-hero-main-card {
    position: relative;
    min-height: 690px;
    border-radius: 36px;
    overflow: hidden;
    background: #eef8fb;
    border: 1px solid rgba(15, 39, 71, 0.10);
    box-shadow: 0 30px 76px rgba(8, 26, 51, 0.16);
    isolation: isolate;
}

.walimah-hero-main-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(8, 26, 51, 0.03) 0%, rgba(8, 26, 51, 0.11) 48%, rgba(8, 26, 51, 0.54) 100%);
    pointer-events: none;
}

.walimah-hero-main-card::after {
    content: "";
    position: absolute;
    inset: auto auto 22px 22px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244,180,0,0.18), transparent 68%);
    z-index: 1;
    pointer-events: none;
}

.walimah-hero-main-card img {
    width: 100%;
    height: 100%;
    min-height: 690px;
    display: block;
    object-fit: cover;
    object-position: center center;
    transition: transform 1s ease, filter 0.6s ease;
}

.walimah-hero-main-card:hover img {
    transform: scale(1.045);
    filter: saturate(1.05);
}

.walimah-hero-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(15, 39, 71, 0.08);
    box-shadow: 0 18px 40px rgba(8, 26, 51, 0.14);
    color: var(--secondary);
    font-weight: 800;
    backdrop-filter: blur(12px);
    animation: walimahFloatBadge 5.4s ease-in-out infinite;
}

.walimah-hero-badge i {
    color: var(--accent);
}

.badge-one {
    left: 22px;
    bottom: 94px;
}

.badge-two {
    right: 22px;
    bottom: 24px;
    animation-delay: 0.55s;
}

@keyframes walimahFloatBadge {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-9px);
    }
}

.walimah-section {
    position: relative;
    padding: 92px 0;
}

.walimah-section-radiance {
    background:
        linear-gradient(180deg, rgba(248, 251, 255, 0.84), rgba(255,255,255,1));
}

.walimah-section-crown {
    background:
        radial-gradient(circle at top right, rgba(244, 180, 0, 0.11), transparent 20%),
        linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
}

.walimah-section-reflections {
    background:
        radial-gradient(circle at left center, rgba(6, 187, 204, 0.08), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    padding-bottom: 112px;
}

.walimah-section-head {
    max-width: 900px;
    margin: 0 auto 46px;
}

.walimah-copy-block {
    max-width: 560px;
}

.walimah-section-title {
    font-size: clamp(1.85rem, 3vw, 3.05rem);
    line-height: 1.08;
    margin-top: 18px;
    margin-bottom: 16px;
    color: var(--secondary);
}

.walimah-section-text {
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 0;
}

/********** Generic Cards **********/
.walimah-mosaic-card,
.walimah-stage-card,
.walimah-reflection-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(15, 39, 71, 0.08);
    background: #eef5fb;
    box-shadow: 0 18px 42px rgba(8, 26, 51, 0.10);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.walimah-mosaic-card:hover,
.walimah-stage-card:hover,
.walimah-reflection-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 28px 60px rgba(8, 26, 51, 0.15);
}

.walimah-mosaic-card img,
.walimah-stage-card img,
.walimah-reflection-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.9s ease, filter 0.45s ease;
}

.walimah-mosaic-card:hover img,
.walimah-stage-card:hover img,
.walimah-reflection-card:hover img {
    transform: scale(1.045);
    filter: saturate(1.05);
}

.walimah-mosaic-card::after,
.walimah-stage-card::after,
.walimah-reflection-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8,26,51,0.02) 0%, rgba(8,26,51,0.12) 100%);
    pointer-events: none;
}

/********** Segment 1 Mosaic **********/
.walimah-mosaic-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 92px;
    gap: 20px;
}

.walimah-mosaic-card {
    min-height: 280px;
}

.walimah-mosaic-grid .walimah-mosaic-feature:nth-child(1) {
    grid-column: 1 / span 5;
    grid-row: span 5;
}

.walimah-mosaic-grid .walimah-mosaic-card:nth-child(2) {
    grid-column: 6 / span 3;
    grid-row: span 5;
}

.walimah-mosaic-grid .walimah-mosaic-card:nth-child(3) {
    grid-column: 9 / span 4;
    grid-row: span 3;
}

.walimah-mosaic-grid .walimah-mosaic-card:nth-child(4) {
    grid-column: 9 / span 4;
    grid-row: span 2;
}

.walimah-mosaic-grid .walimah-mosaic-feature:nth-child(5) {
    grid-column: 1 / span 8;
    grid-row: span 4;
}

.walimah-mosaic-grid .walimah-mosaic-card:nth-child(6) {
    grid-column: 9 / span 4;
    grid-row: span 4;
}

.walimah-card-caption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
}

.walimah-card-caption span {
    display: inline-flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 16px;
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(15, 39, 71, 0.08);
    box-shadow: 0 15px 34px rgba(8, 26, 51, 0.14);
    color: var(--secondary);
    font-weight: 800;
    line-height: 1.4;
    backdrop-filter: blur(12px);
}

/********** Quote Stack **********/
.walimah-quote-stack {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.walimah-mini-quote {
    position: relative;
    padding: 20px 20px 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(15, 39, 71, 0.08);
    box-shadow: 0 16px 38px rgba(8, 26, 51, 0.08);
    overflow: hidden;
}

.walimah-mini-quote::before {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6,187,204,0.12), transparent 68%);
    pointer-events: none;
}

.walimah-mini-quote i {
    color: var(--accent);
    margin-bottom: 10px;
}

.walimah-mini-quote p {
    margin: 0 0 8px;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.6;
}

.walimah-mini-quote span {
    color: var(--primary-dark);
    font-size: 0.94rem;
    font-weight: 700;
}

/********** Animated Stage **********/
.walimah-stage {
    position: relative;
    min-height: 650px;
    border-radius: 36px;
    padding: 22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.97), rgba(247,251,255,0.96));
    border: 1px solid rgba(15, 39, 71, 0.08);
    box-shadow: 0 24px 60px rgba(8, 26, 51, 0.12);
    overflow: hidden;
}

.walimah-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 84% 14%, rgba(244, 180, 0, 0.16), transparent 18%),
        radial-gradient(circle at 14% 84%, rgba(6, 187, 204, 0.14), transparent 22%);
    pointer-events: none;
}

.walimah-stage::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.55);
    pointer-events: none;
}

.walimah-slide-grid {
    position: absolute;
    inset: 22px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(34px) scale(0.985);
    transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s ease;
}

.walimah-slide-grid.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.walimah-slide-grid .walimah-stage-card:nth-child(1) {
    grid-column: 1 / span 5;
    grid-row: 1 / span 12;
}

.walimah-slide-grid .walimah-stage-card:nth-child(2) {
    grid-column: 6 / span 3;
    grid-row: 1 / span 6;
}

.walimah-slide-grid .walimah-stage-card:nth-child(3) {
    grid-column: 9 / span 4;
    grid-row: 1 / span 12;
}

.walimah-stage-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.walimah-stage-indicators button {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 999px;
    background: rgba(15, 39, 71, 0.20);
    transition: all 0.35s ease;
}

.walimah-stage-indicators button:hover {
    transform: scale(1.1);
    background: rgba(15, 39, 71, 0.34);
}

.walimah-stage-indicators button.active {
    width: 34px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.walimah-overlay-note {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
}

.walimah-overlay-note span {
    display: inline-flex;
    align-items: center;
    padding: 11px 14px;
    border-radius: 15px;
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(15, 39, 71, 0.08);
    box-shadow: 0 14px 34px rgba(8, 26, 51, 0.14);
    color: var(--secondary);
    font-size: 0.92rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

/********** Slide Animation **********/
.slide-in-soft {
    opacity: 0;
    transform: translateY(44px) scale(0.96);
}

.walimah-slide-grid.active .slide-in-soft {
    animation: walimahSlideSoft 1s ease forwards;
}

.walimah-slide-grid.active .delay-1 {
    animation-delay: 0.10s;
}

.walimah-slide-grid.active .delay-2 {
    animation-delay: 0.28s;
}

.walimah-slide-grid.active .delay-3 {
    animation-delay: 0.46s;
}

@keyframes walimahSlideSoft {
    0% {
        opacity: 0;
        transform: translateY(56px) scale(0.94);
    }
    60% {
        opacity: 1;
        transform: translateY(-6px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/********** Segment 3 Reflection Layout **********/
.walimah-reflection-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 112px;
    gap: 18px;
}

.walimah-reflection-tall {
    grid-column: 1 / span 5;
    grid-row: span 6;
    animation: walimahBreath 6s ease-in-out infinite;
}

.walimah-reflection-wide:nth-child(2) {
    grid-column: 6 / span 7;
    grid-row: span 3;
}

.walimah-reflection-wide:nth-child(3) {
    grid-column: 6 / span 7;
    grid-row: span 3;
}

.walimah-reflection-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
}

.walimah-reflection-caption span {
    display: inline-flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 16px;
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(15, 39, 71, 0.08);
    box-shadow: 0 15px 34px rgba(8, 26, 51, 0.14);
    color: var(--secondary);
    font-weight: 800;
    line-height: 1.4;
    backdrop-filter: blur(12px);
}

.walimah-reflection-content {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 26px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,251,255,0.96));
}

.walimah-reflection-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 187, 204, 0.16), rgba(244, 180, 0, 0.18));
    color: var(--secondary);
    font-size: 1.22rem;
    box-shadow: 0 16px 30px rgba(8, 26, 51, 0.08);
}

.walimah-reflection-text h3 {
    font-size: 1.18rem;
    margin: 0 0 6px;
    color: var(--secondary);
}

.walimah-reflection-text p {
    margin: 0;
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.75;
}

@keyframes walimahBreath {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 18px 45px rgba(8, 26, 51, 0.10);
    }
    50% {
        transform: scale(1.012);
        box-shadow: 0 24px 55px rgba(8, 26, 51, 0.14);
    }
}

/********** Closing Strip **********/
.walimah-closing-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.walimah-closing-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 78px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(15, 39, 71, 0.08);
    box-shadow: 0 16px 38px rgba(8, 26, 51, 0.08);
    color: var(--secondary);
    font-weight: 800;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.walimah-closing-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(8, 26, 51, 0.13);
}

.walimah-closing-item i {
    color: var(--accent);
}

/********** Scroll Reveal Support **********/
.walimah-reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.walimah-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/********** Responsive **********/
@media (max-width: 1399.98px) {
    .walimah-hero-main-card,
    .walimah-hero-main-card img {
        min-height: 640px;
    }
}

@media (max-width: 1199.98px) {
    .walimah-hero {
        padding-top: 96px;
    }

    .walimah-hero-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .walimah-hero-main-card,
    .walimah-hero-main-card img {
        min-height: 570px;
    }

    .walimah-mosaic-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 240px;
    }

    .walimah-mosaic-grid .walimah-mosaic-card,
    .walimah-mosaic-grid .walimah-mosaic-feature:nth-child(1),
    .walimah-mosaic-grid .walimah-mosaic-feature:nth-child(5),
    .walimah-mosaic-grid .walimah-mosaic-card:nth-child(2),
    .walimah-mosaic-grid .walimah-mosaic-card:nth-child(3),
    .walimah-mosaic-grid .walimah-mosaic-card:nth-child(4),
    .walimah-mosaic-grid .walimah-mosaic-card:nth-child(6) {
        grid-column: auto !important;
        grid-row: auto !important;
        min-height: 240px;
    }

    .walimah-stage {
        min-height: 590px;
    }

    .walimah-reflection-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 230px;
    }

    .walimah-reflection-card,
    .walimah-reflection-tall,
    .walimah-reflection-wide:nth-child(2),
    .walimah-reflection-wide:nth-child(3) {
        grid-column: auto !important;
        grid-row: auto !important;
        min-height: 230px;
    }
}

@media (max-width: 991.98px) {
    .walimah-section {
        padding: 76px 0;
    }

    .walimah-hero-text,
    .walimah-section-text {
        line-height: 1.82;
    }

    .walimah-mosaic-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
        gap: 16px;
    }

    .walimah-stage {
        min-height: 525px;
        padding: 16px;
        border-radius: 30px;
    }

    .walimah-slide-grid {
        inset: 16px;
        gap: 12px;
    }

    .walimah-slide-grid .walimah-stage-card:nth-child(1) {
        grid-column: 1 / span 5;
        grid-row: 1 / span 10;
    }

    .walimah-slide-grid .walimah-stage-card:nth-child(2) {
        grid-column: 6 / span 3;
        grid-row: 1 / span 5;
    }

    .walimah-slide-grid .walimah-stage-card:nth-child(3) {
        grid-column: 9 / span 4;
        grid-row: 1 / span 10;
    }

    .walimah-closing-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .walimah-hero {
        padding: 74px 0 56px;
    }

    .walimah-hero-title {
        font-size: 2rem;
    }

    .walimah-hero-text {
        font-size: 0.96rem;
        margin-bottom: 22px;
    }

    .walimah-hero-pills {
        gap: 10px;
    }

    .walimah-hero-pills span {
        padding: 0.76rem 0.9rem;
        border-radius: 14px;
        font-size: 0.92rem;
    }

    .walimah-hero-main-card,
    .walimah-hero-main-card img {
        min-height: 440px;
        border-radius: 24px;
    }

    .walimah-hero-badge {
        font-size: 0.88rem;
        padding: 11px 13px;
        border-radius: 14px;
    }

    .badge-one {
        left: 14px;
        bottom: 74px;
    }

    .badge-two {
        right: 14px;
        bottom: 14px;
    }

    .walimah-section-title {
        font-size: 1.62rem;
    }

    .walimah-mosaic-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 320px;
        gap: 14px;
    }

    .walimah-mosaic-card {
        min-height: 320px;
        border-radius: 20px;
    }

    .walimah-stage {
        min-height: 730px;
        border-radius: 22px;
    }

    .walimah-slide-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(12, 1fr);
    }

    .walimah-slide-grid .walimah-stage-card:nth-child(1),
    .walimah-slide-grid .walimah-stage-card:nth-child(2),
    .walimah-slide-grid .walimah-stage-card:nth-child(3) {
        grid-column: 1 / -1 !important;
    }

    .walimah-slide-grid .walimah-stage-card:nth-child(1) {
        grid-row: 1 / span 4 !important;
    }

    .walimah-slide-grid .walimah-stage-card:nth-child(2) {
        grid-row: 5 / span 3 !important;
    }

    .walimah-slide-grid .walimah-stage-card:nth-child(3) {
        grid-row: 8 / span 5 !important;
    }

    .walimah-reflection-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
        gap: 14px;
    }

    .walimah-reflection-card,
    .walimah-reflection-tall {
        min-height: 240px;
        border-radius: 20px;
    }

    .walimah-reflection-content {
        padding: 20px;
    }

    .walimah-closing-strip {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .walimah-closing-item {
        border-radius: 18px;
        min-height: 68px;
    }
}

@media (max-width: 575.98px) {
    .walimah-hero-title {
        font-size: 1.74rem;
    }

    .walimah-kicker {
        font-size: 0.68rem;
        padding: 0.58rem 0.85rem;
    }

    .walimah-hero-main-card,
    .walimah-hero-main-card img {
        min-height: 345px;
    }

    .walimah-hero-quote {
        padding: 18px 16px;
        border-radius: 18px;
    }

    .walimah-stage {
        min-height: 645px;
        padding: 12px;
    }

    .walimah-slide-grid {
        inset: 12px;
        gap: 10px;
    }

    .walimah-mosaic-grid {
        grid-auto-rows: 292px;
    }

    .walimah-mosaic-card,
    .walimah-reflection-card {
        min-height: 292px;
    }

    .walimah-card-caption span,
    .walimah-overlay-note span,
    .walimah-reflection-caption span {
        font-size: 0.86rem;
        padding: 10px 12px;
    }
}

@media (max-width: 430px) {
    .walimah-hero {
        padding: 58px 0 48px;
    }

    .walimah-hero-title {
        font-size: 1.5rem;
        line-height: 1.05;
    }

    .walimah-hero-text,
    .walimah-section-text {
        font-size: 0.90rem;
        line-height: 1.72;
    }

    .walimah-section {
        padding: 62px 0;
    }

    .walimah-section-title {
        font-size: 1.38rem;
    }

    .walimah-hero-main-card,
    .walimah-hero-main-card img {
        min-height: 294px;
    }

    .walimah-hero-badge {
        gap: 8px;
        padding: 9px 11px;
        font-size: 0.80rem;
    }

    .badge-one {
        left: 10px;
        bottom: 62px;
    }

    .badge-two {
        right: 10px;
        bottom: 10px;
    }

    .walimah-stage {
        min-height: 585px;
        border-radius: 18px;
    }

    .walimah-mosaic-grid {
        grid-auto-rows: 260px;
    }

    .walimah-mosaic-card,
    .walimah-reflection-card {
        min-height: 260px;
        border-radius: 18px;
    }

    .walimah-reflection-content {
        gap: 12px;
        padding: 18px;
    }

    .walimah-reflection-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 14px;
        font-size: 1rem;
    }

    .walimah-reflection-text h3 {
        font-size: 1rem;
    }

    .walimah-reflection-text p {
        font-size: 0.88rem;
    }
}