* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #e9e3d2
}

.bd-root {
    --green-deep: #0d3d39;
    --green: #1f5e58;
    --green-soft: #29756f;
    --gold: #c9a24a;
    --gold-soft: #e1c27a;
    --cream: #f6efdc;
    --ink: #1a1a1a;
    --shadow: 0 30px 60px -20px rgba(0,0,0,.35);
    background: #e9e3d2;
    min-height: 100vh;
    font-family: 'Helvetica Neue',Arial,sans-serif;
    color: var(--ink);
    -webkit-font-smoothing: antialiased
}

.bd-root img {
    max-width: 100%;
    display: block
}

.bd-page {
    max-width: 1100px;
    margin: 32px auto;
    background: var(--cream);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 340px 1fr;
    min-height: 1400px;
    position: relative
}

.bd-left {
    /* background:radial-gradient(circle at 80% 90%,rgba(255,255,255,.06),transparent 60%),radial-gradient(circle at 20% 10%,rgba(255,255,255,.08),transparent 60%),linear-gradient(160deg,var(--green-deep),var(--green) 60%,#0a2f2c); */
    color: #fff;
    padding: 34px 28px 40px;
    position: relative;
    overflow: hidden;
    background-image: url(/images/marble.jpeg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    /* opacity: 0.4; */
}

.bd-left:after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.05) 1px,transparent 1px);
    background-size: 14px 14px;
    opacity: .4;
    pointer-events: none
}

.bd-bismillah {
    font-family: 'Times New Roman',serif;
    color: var(--gold-soft);
    font-size: 18px;
    text-align: center;
    margin-bottom: 18px;
    direction: rtl
}

.bd-title {
    text-align: center;
    margin-bottom: 26px;
    animation: bdFadeUp .8s ease both
}

.bd-title h1 {
    font-family: 'Brush Script MT','Lucida Handwriting',cursive;
    font-weight: 400;
    font-size: 54px;
    line-height: 1;
    color: var(--gold-soft);
    text-shadow: 0 2px 6px rgba(0,0,0,.3);
    margin: 0
}

.bd-title h2 {
    font-family: 'Brush Script MT','Lucida Handwriting',cursive;
    font-weight: 400;
    font-size: 42px;
    color: var(--gold);
    margin-top: 4px
}

.bd-photo {
    width: 230px;
    height: 230px;
    margin: 8px auto 28px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    padding: 5px;
    background: rgba(0,0,0,.2);
    cursor: zoom-in;
    position: relative;
    transition: transform .3s ease,box-shadow .3s ease;
    animation: bdFadeUp 1s .15s ease both
}

.bd-photo:hover {
    transform: scale(1.03);
    box-shadow: 0 0 0 6px rgba(201,162,74,.18)
}

.bd-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover
}

.bd-photo:after {
    content: "⛶";
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 34px;
    height: 34px;
    background: var(--gold);
    color: var(--green-deep);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,.3)
}

.bd-left h3 {
    font-size: 13px;
    letter-spacing: 2px;
    color: #fff;
    font-weight: 700;
    margin: 22px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(201,162,74,.5)
}

.bd-left ul {
    list-style: none;
    padding: 0;
    margin: 0
}

.bd-left li {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 6px;
    display: flex;
    gap: 8px
}

.bd-left li:before {
    content: "\2022";
    color: var(--gold);
    font-size: 18px;
    line-height: 1.4
}

.bd-left li b {
    color: #fff;
    font-weight: 700
}

.bd-right {
    padding: 46px 50px 50px;
    background: var(--cream);
    position: relative
}

.bd-right:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 160px;
    height: 160px;
    /* background: linear-gradient(135deg,var(--green-deep),var(--green-soft)); */
    border-bottom-left-radius: 100%;
    /* opacity: .85; */
    background-image: url(/images/marble.jpeg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.bd-right:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 170px;
    height: 170px;
    border-bottom-left-radius: 100%;
    border-left: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    pointer-events: none
}

.bd-section {
    margin-bottom: 26px;
    animation: bdFadeUp .7s ease both
}

.bd-section h3 {
    color: var(--green-soft);
    font-size: 15px;
    letter-spacing: 2px;
    font-weight: 700;
    padding-bottom: 4px;
    margin: 0 0 12px;
    border-bottom: 1.5px solid var(--gold);
    display: inline-block;
    padding-right: 60px
}

.bd-section h4 {
    font-size: 16px;
    color: var(--ink);
    margin: 8px 0 4px;
    font-weight: 700
}

.bd-section p,.bd-section li {
    font-size: 14px;
    line-height: 1.7;
    color: #222
}

.bd-section ul {
    list-style: disc;
    padding-left: 18px;
    margin: 0 0 10px
}

.bd-row {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.7
}

.bd-row b {
    min-width: 140px;
    display: inline-block
}

.bd-italic {
    font-style: italic;
    color: #444
}

.bd-indent {
    margin-left: 148px
}

.top-gap {
    margin-top: 10px
}

.bd-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
    animation: bdFade .25s ease
}

.bd-lightbox.bd-open {
    display: flex
}

.bd-lightbox img.bd-main {
    max-width: 88vw;
    max-height: 75vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    object-fit: contain;
    animation: bdZoom .3s ease
}

.bd-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: var(--gold);
    color: #000;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    font-weight: 700
}

.bd-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background .2s
}

.bd-nav:hover {
    background: var(--gold);
    color: #000
}

.bd-prev {
    left: 24px
}

.bd-next {
    right: 24px
}

.bd-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 88vw
}

.bd-thumbs img {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: .6;
    transition: .2s
}

.bd-thumbs img.bd-active,.bd-thumbs img:hover {
    opacity: 1;
    border-color: var(--gold)
}

.bd-caption {
    color: #ddd;
    font-size: 13px;
    margin-top: 10px;
    letter-spacing: 1px
}

.bd-toolbar {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    gap: 10px;
    z-index: 100
}

.bd-btn {
    background: linear-gradient(135deg,var(--gold),#a8821e);
    color: #1a1a1a;
    border: 0;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    font-weight: 600;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: .2s
}

.bd-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0,0,0,.3)
}

@keyframes bdFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes bdFade {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes bdZoom {
    from {
        opacity: 0;
        transform: scale(.92)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

.bd-section:nth-child(1) {
    animation-delay: .05s
}

.bd-section:nth-child(2) {
    animation-delay: .15s
}

.bd-section:nth-child(3) {
    animation-delay: .25s
}

.bd-section:nth-child(4) {
    animation-delay: .35s
}

.bd-section:nth-child(5) {
    animation-delay: .45s
}

.bd-section:nth-child(6) {
    animation-delay: .55s
}

@media(max-width: 860px) {
    .bd-page {
        grid-template-columns:1fr;
        margin: 0;
        border-radius: 0;
        min-height: 0
    }

    .bd-right {
        padding: 32px 24px
    }

    .bd-right:before,.bd-right:after {
        width: 110px;
        height: 110px
    }

    .bd-title h1 {
        font-size: 44px
    }

    .bd-title h2 {
        font-size: 34px
    }

    .bd-photo {
        width: 200px;
        height: 200px
    }

    .bd-toolbar {
        bottom: 16px;
        right: 16px;
        left: 16px;
        justify-content: center
    }

    .bd-btn {
        padding: 10px 16px;
        font-size: 13px
    }

    .bd-indent {
        margin-left: 0
    }
}

@media print {
    @page {
        size: A4;
        margin: 0
    }

    html,body {
        background: #fff!important;
        margin: 0!important;
        padding: 0!important;
        width: 210mm;
        height: 297mm;
        overflow: hidden
    }

    .bd-root {
        background: #fff!important;
        width: 210mm;
        height: 297mm;
        overflow: hidden;
        display: block
    }

    .bd-toolbar,.bd-lightbox {
        display: none!important
    }

    .bd-page {
        margin: 0!important;
        box-shadow: none!important;
        border-radius: 0!important;
        max-width: none!important;
        width: 210mm!important;
        min-height: 297mm!important;
        height: 297mm!important;
        grid-template-columns: 280px 1fr!important;
        page-break-after: avoid;
        page-break-inside: avoid;
        break-inside: avoid;
        overflow: hidden
    }

    .bd-left,.bd-right {
        padding: 18px 20px!important;
        font-size: 12px
    }

    .bd-right {
        padding: 24px 26px!important
    }

    .bd-title h1 {
        font-size: 42px
    }

    .bd-title h2 {
        font-size: 32px
    }

    .bd-photo {
        width: 170px;
        height: 170px;
        margin: 4px auto 16px;
        cursor: default
    }

    .bd-photo:after {
        display: none
    }

    .bd-left h3,.bd-section h3 {
        margin: 10px 0 6px
    }

    .bd-section {
        margin-bottom: 14px;
        animation: none!important;
        opacity: 1!important;
        transform: none!important;
        break-inside: avoid;
        page-break-inside: avoid
    }

    .bd-section p,.bd-section li,.bd-row,.bd-left li {
        font-size: 12px;
        line-height: 1.5
    }

    .bd-left,.bd-right,* {
        -webkit-print-color-adjust: exact!important;
        print-color-adjust: exact!important;
        color-adjust: exact!important
    }
}

.bd-exporting .bd-page {
    grid-template-columns: 340px 1fr!important;
    margin: 0!important;
    border-radius: 0!important
}

.bd-exporting .bd-section {
    animation: none!important;
    opacity: 1!important;
    transform: none!important
}

.bd-exporting .bd-photo:after {
    display: none
}
