/* ============================================================
   MUHAMMADRUJIB.COM
   PUBLIC MULTI-PAGE PHASE 1 V1
============================================================ */

:root {
    --green-950: #061f18;
    --green-900: #092d22;
    --green-800: #104637;
    --green-700: #1b5d48;

    --gold-500: #b89133;
    --gold-400: #d7b75a;
    --gold-300: #ead68f;

    --ivory: #f3f1e8;
    --paper: #faf9f4;
    --white: #fff;

    --ink: #09291f;
    --text: #52645d;
    --muted: #7b8984;
    --line: #dedfd8;

    --container: 1180px;

    --shadow:
        0 25px 65px
        rgba(6,39,29,.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;

    color: var(--ink);
    background: var(--ivory);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 16px;
    line-height: 1.5;

    -webkit-font-smoothing:
        antialiased;
}

body.public-nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

.public-container {
    width:
        min(
            calc(100% - 40px),
            var(--container)
        );

    margin-inline: auto;
}

.public-main {
    min-height: 60vh;
}

/* ============================================================
   HEADER
============================================================ */

.public-header {
    position: sticky;
    top: 0;
    z-index: 100;

    border-bottom:
        1px solid
        rgba(9,45,34,.08);

    background:
        rgba(245,243,235,.94);

    backdrop-filter:
        blur(18px);
}

.public-header-inner {
    min-height: 76px;

    display: flex;
    align-items: center;
    gap: 24px;
}

.public-brand,
.footer-brand {
    display: flex;
    align-items: center;
    gap: 11px;

    text-decoration: none;
}

.public-brand-mark,
.public-brand > img {
    width: 42px;
    height: 42px;

    flex: 0 0 auto;

    border-radius: 13px;
}

.public-brand-mark {
    display: grid;
    place-items: center;

    color: var(--green-950);
    background: var(--gold-400);

    font-family:
        Georgia,
        serif;

    font-size: 15px;
    font-weight: 700;
}

.public-brand > img {
    object-fit: contain;
}

.public-brand-copy strong {
    display: block;

    font-family:
        Georgia,
        serif;

    font-size: 17px;
    line-height: 1.1;
}

.public-brand-copy small {
    display: block;

    margin-top: 4px;

    color: var(--muted);

    font-size: 11px;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 2px;

    margin-left: auto;
}

.public-nav a {
    min-height: 42px;

    display: inline-flex;
    align-items: center;

    padding:
        0 10px;

    border-radius: 999px;

    color: #41564e;

    text-decoration: none;

    font-size: 12px;
    font-weight: 700;
}

.public-nav a:hover,
.public-nav a.active {
    color: var(--green-900);
    background:
        rgba(9,45,34,.065);
}

.public-nav
.public-nav-cta {
    margin-left: 5px;

    padding-inline: 16px;

    color: #fff;
    background: var(--green-900);
}

.public-nav
.public-nav-cta:hover,
.public-nav
.public-nav-cta.active {
    color: #fff;
    background: var(--green-800);
}

.public-menu,
.public-nav-backdrop {
    display: none;
}

/* ============================================================
   SHARED TYPOGRAPHY
============================================================ */

.eyebrow,
.card-label {
    color: var(--gold-500);

    font-size: 11px;
    line-height: 1.25;

    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

.section {
    padding:
        90px 0;
}

.section-paper {
    background: var(--paper);
}

.section-dark {
    color: #fff;
    background: var(--green-950);
}

.section-heading {
    max-width: 700px;

    margin-bottom: 32px;
}

.section-heading h2,
.library-banner h2,
.invitation-banner h2 {
    margin:
        9px 0 0;

    font-family:
        Georgia,
        serif;

    font-size:
        clamp(
            36px,
            5vw,
            58px
        );

    line-height: 1.02;
    font-weight: 600;
    letter-spacing: -.035em;
}

.section-heading p,
.library-banner p,
.invitation-banner p {
    margin:
        15px 0 0;

    color: var(--text);

    font-size: 15px;
    line-height: 1.75;
}

.section-dark
.section-heading p {
    color:
        rgba(255,255,255,.55);
}

.row-heading {
    max-width: none;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.row-heading > div {
    max-width: 690px;
}

.split-heading {
    max-width: none;

    display: grid;

    grid-template-columns:
        minmax(0,.85fr)
        minmax(0,1fr);

    gap: 60px;

    align-items: end;
}

.split-heading > div:last-child > p {
    margin: 0;
}

.text-link,
.back-link {
    color: var(--green-700);

    text-decoration: none;

    font-size: 13px;
    font-weight: 800;
}

.text-link {
    display: inline-block;
    margin-top: 14px;
}

.back-link {
    display: inline-block;
    margin-bottom: 24px;
}

.btn {
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding:
        0 20px;

    border: 1px solid transparent;
    border-radius: 12px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 800;

    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background: var(--green-900);
}

.btn-outline {
    color: var(--green-900);

    border-color:
        rgba(9,45,34,.18);

    background:
        rgba(255,255,255,.65);
}

.btn-dark-outline {
    color: #fff;

    border-color:
        rgba(255,255,255,.18);

    background:
        rgba(255,255,255,.035);
}

.btn-gold {
    color: var(--green-950);
    background: var(--gold-400);
}

/* ============================================================
   HOME HERO
============================================================ */

.home-hero {
    overflow: hidden;

    padding:
        88px 0
        100px;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(214,183,90,.18),
            transparent 24rem
        ),
        linear-gradient(
            180deg,
            var(--ivory),
            #ecece4
        );
}

.home-hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0,1.05fr)
        minmax(340px,.65fr);

    align-items: center;

    gap:
        clamp(
            45px,
            8vw,
            100px
        );
}

.home-hero-copy h1 {
    max-width: 760px;

    margin:
        14px 0 0;

    font-family:
        Georgia,
        serif;

    font-size:
        clamp(
            52px,
            6.6vw,
            86px
        );

    line-height: .96;
    letter-spacing: -.052em;
    font-weight: 600;
}

.hero-lead {
    max-width: 650px;

    margin:
        24px 0 0;

    color: var(--text);

    font-size: 18px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 30px;
}

.hero-stats {
    max-width: 620px;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        );

    margin-top: 42px;

    border-top:
        1px solid
        rgba(9,45,34,.13);
}

.hero-stats div {
    padding:
        17px 10px
        0 0;
}

.hero-stats strong {
    display: block;

    font-family:
        Georgia,
        serif;

    font-size: 29px;
    font-weight: 600;
}

.hero-stats span {
    display: block;

    margin-top: 4px;

    color: var(--muted);

    font-size: 11px;
}

.home-hero-photo {
    display: flex;
    justify-content: center;
}

.portrait-card {
    width:
        min(
            100%,
            390px
        );

    overflow: hidden;

    border:
        1px solid
        rgba(255,255,255,.65);

    border-radius: 27px;

    background: #fff;

    box-shadow: var(--shadow);
}

.portrait-card > img,
.portrait-card >
.image-fallback {
    width: 100%;
    height: 390px;

    display: block;

    object-fit: cover;
    object-position: center top;
}

.image-fallback {
    display: grid !important;
    place-items: center;

    color: var(--gold-400);
    background: var(--green-900);

    font-family:
        Georgia,
        serif;

    font-size: 45px;
}

.portrait-caption {
    padding:
        21px 22px
        23px;
}

.portrait-caption span {
    color: var(--gold-500);

    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.portrait-caption strong {
    display: block;

    margin-top: 7px;

    font-family:
        Georgia,
        serif;

    font-size: 21px;
    line-height: 1.15;
}

.portrait-caption p {
    margin:
        7px 0 0;

    color: var(--text);

    font-size: 12px;
    line-height: 1.55;
}

/* ============================================================
   HOME FEATURE
============================================================ */

.home-feature-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        );

    gap: 16px;
}

.feature-card {
    min-height: 235px;

    padding: 26px;

    border:
        1px solid
        var(--line);

    border-radius: 20px;

    background: #fff;
}

.feature-card-dark {
    color: #fff;
    background: var(--green-900);
    border-color: transparent;
}

.feature-card-gold {
    color: var(--green-950);
    background: var(--gold-400);
    border-color: transparent;
}

.feature-card > span {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.feature-card > strong {
    display: block;

    margin-top: 25px;

    font-family:
        Georgia,
        serif;

    font-size: 43px;
    line-height: 1;
    font-weight: 600;
}

.feature-card h3 {
    margin:
        8px 0 0;

    font-family:
        Georgia,
        serif;

    font-size: 23px;
    font-weight: 600;
}

.feature-card p {
    margin:
        10px 0 0;

    color: var(--text);

    font-size: 13px;
    line-height: 1.65;
}

.feature-card-dark p {
    color:
        rgba(255,255,255,.58);
}

.feature-card-gold p {
    color:
        rgba(6,31,24,.65);
}

/* ============================================================
   ARTICLE CARDS
============================================================ */

.article-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        );

    gap: 18px;
}

.article-card {
    overflow: hidden;

    border:
        1px solid
        var(--line);

    border-radius: 20px;

    background: #fff;
}

.article-cover {
    height: 215px;

    display: block;

    overflow: hidden;

    text-decoration: none;
}

.article-cover img,
.article-cover
.image-fallback {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.article-body {
    padding: 21px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;

    color: var(--muted);

    font-size: 11px;
}

.article-body h2,
.article-body h3 {
    margin:
        9px 0 0;

    font-family:
        Georgia,
        serif;

    font-size: 23px;
    line-height: 1.15;
    font-weight: 600;
}

.article-body h2 a,
.article-body h3 a {
    text-decoration: none;
}

.article-body p {
    margin:
        11px 0 0;

    color: var(--text);

    font-size: 13px;
    line-height: 1.65;
}

/* ============================================================
   SCHEDULE
============================================================ */

.schedule-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        );

    gap: 15px;
}

.schedule-card {
    min-height: 230px;

    padding: 23px;

    border:
        1px solid
        rgba(255,255,255,.1);

    border-radius: 18px;

    background:
        rgba(255,255,255,.04);
}

.schedule-number {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    margin-bottom: 25px;

    border-radius: 10px;

    color: var(--green-950);
    background: var(--gold-400);

    font-size: 11px;
    font-weight: 900;
}

.schedule-card h3 {
    margin:
        8px 0 0;

    font-family:
        Georgia,
        serif;

    font-size: 23px;
    line-height: 1.15;
    font-weight: 600;
}

.schedule-card p {
    margin:
        10px 0 0;

    color:
        rgba(255,255,255,.56);

    font-size: 13px;
    line-height: 1.6;
}

.schedule-grid-light
.schedule-card {
    color: var(--ink);

    border-color: var(--line);

    background: #fff;
}

.schedule-grid-light
.schedule-card p {
    color: var(--text);
}

/* ============================================================
   EMPTY
============================================================ */

.public-empty {
    min-height: 200px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    padding: 28px;

    border:
        1px dashed
        #cbd0c7;

    border-radius: 19px;

    background:
        rgba(255,255,255,.5);
}

.empty-mark {
    width: 50px;
    height: 50px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border-radius: 14px;

    color: var(--green-950);
    background: var(--gold-400);

    font-family:
        Georgia,
        serif;

    font-size: 21px;
}

.public-empty strong {
    display: block;

    font-family:
        Georgia,
        serif;

    font-size: 19px;
}

.public-empty p {
    max-width: 480px;

    margin:
        6px 0 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.6;
}

/* ============================================================
   WORKS
============================================================ */

.work-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        );

    gap: 18px;
}

.work-card {
    display: grid;

    grid-template-columns:
        115px minmax(0,1fr);

    align-items: center;

    gap: 18px;

    padding: 18px;

    border:
        1px solid
        var(--line);

    border-radius: 18px;

    background: #fff;
}

.work-cover {
    height: 165px;

    overflow: hidden;

    border-radius: 9px;
}

.work-cover img,
.work-cover .image-fallback {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.work-card h3 {
    margin:
        7px 0 0;

    font-family:
        Georgia,
        serif;

    font-size: 19px;
    font-weight: 600;
}

/* ============================================================
   BANNERS
============================================================ */

.library-banner,
.invitation-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    padding:
        48px 52px;

    border-radius: 25px;
}

.library-banner {
    color: #fff;
    background: var(--green-900);
}

.library-banner h2,
.invitation-banner h2 {
    font-size:
        clamp(
            35px,
            5vw,
            55px
        );
}

.library-banner p {
    max-width: 650px;

    color:
        rgba(255,255,255,.55);
}

.section-invitation {
    background: var(--paper);
}

.invitation-banner {
    border:
        1px solid
        var(--line);

    background: #fff;
}

.invitation-banner > div {
    max-width: 700px;
}

/* ============================================================
   PAGE HERO
============================================================ */

.page-hero {
    padding:
        78px 0;

    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(214,183,90,.16),
            transparent 24rem
        ),
        var(--ivory);
}

.compact-page-hero h1,
.profile-page-hero h1,
.invitation-page-hero h1 {
    max-width: 880px;

    margin:
        12px 0 0;

    font-family:
        Georgia,
        serif;

    font-size:
        clamp(
            48px,
            6vw,
            78px
        );

    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 600;
}

.compact-page-hero p,
.invitation-page-hero p {
    max-width: 700px;

    margin:
        20px 0 0;

    color: var(--text);

    font-size: 17px;
    line-height: 1.7;
}

/* ============================================================
   PROFILE PAGE
============================================================ */

.profile-hero-grid {
    display: grid;

    grid-template-columns:
        320px minmax(0,1fr);

    align-items: center;

    gap: 60px;
}

.profile-hero-photo {
    height: 410px;

    overflow: hidden;

    border-radius: 24px;

    box-shadow: var(--shadow);
}

.profile-hero-photo img,
.profile-hero-photo .image-fallback {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;
}

.profile-title {
    margin:
        16px 0 0;

    color: var(--green-700);

    font-size: 16px;
    line-height: 1.55;
    font-weight: 700;
}

.profile-intro-text {
    max-width: 730px;

    margin-top: 19px;

    color: var(--text);

    font-size: 15px;
    line-height: 1.8;
}

.profile-number-strip {
    color: #fff;
    background: var(--green-900);
}

.profile-number-strip
.public-container {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0,1fr)
        );
}

.profile-number-strip
.public-container > div {
    padding:
        25px 20px;

    border-right:
        1px solid
        rgba(255,255,255,.08);
}

.profile-number-strip strong {
    display: block;

    color: var(--gold-300);

    font-family:
        Georgia,
        serif;

    font-size: 30px;
    font-weight: 600;
}

.profile-number-strip span {
    display: block;

    margin-top: 4px;

    color:
        rgba(255,255,255,.58);

    font-size: 11px;
}

.profile-content-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap: 18px;
}

.prose-card {
    padding: 30px;

    border:
        1px solid
        var(--line);

    border-radius: 20px;

    background: #fff;
}

.prose-card h2 {
    margin:
        8px 0 0;

    font-family:
        Georgia,
        serif;

    font-size: 30px;
    font-weight: 600;
}

.public-prose {
    margin-top: 17px;

    color: var(--text);

    font-size: 15px;
    line-height: 1.85;
}

.topic-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap: 15px;
}

.topic-card {
    padding: 23px;

    border:
        1px solid
        var(--line);

    border-radius: 17px;

    background: #fff;
}

.topic-card h3 {
    margin: 0;

    font-family:
        Georgia,
        serif;

    font-size: 22px;
    font-weight: 600;
}

.topic-card p {
    margin:
        8px 0 0;

    color: var(--text);

    font-size: 13px;
    line-height: 1.65;
}

.sanad-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        );

    gap: 14px;
}

.sanad-card {
    min-height: 250px;

    padding: 22px;

    border:
        1px solid
        rgba(255,255,255,.09);

    border-radius: 17px;

    background:
        rgba(255,255,255,.035);
}

.sanad-card h3 {
    margin:
        8px 0 0;

    font-family:
        Georgia,
        serif;

    font-size: 19px;
    line-height: 1.25;
    font-weight: 600;
}

.sanad-card p {
    margin:
        11px 0 0;

    color:
        rgba(255,255,255,.55);

    font-size: 12px;
    line-height: 1.6;
}

.sanad-card small {
    display: block;

    margin-top: 11px;

    color:
        rgba(255,255,255,.42);

    font-size: 11px;
    line-height: 1.6;
}

.subsection-heading {
    margin:
        65px 0
        25px;
}

.subsection-heading h2 {
    margin:
        8px 0 0;

    font-family:
        Georgia,
        serif;

    font-size: 38px;
    font-weight: 600;
}

.profile-quote-section {
    padding:
        70px 0;

    color: var(--green-950);
    background: var(--gold-400);
}

.profile-quote-section blockquote {
    max-width: 900px;

    margin: 0 auto;

    text-align: center;

    font-family:
        Georgia,
        serif;

    font-size:
        clamp(
            27px,
            4vw,
            45px
        );

    line-height: 1.25;
}

.profile-quote-section cite {
    display: block;

    margin-top: 18px;

    font-family:
        Inter,
        sans-serif;

    font-size: 12px;
    font-style: normal;
}

/* ============================================================
   SEARCH
============================================================ */

.public-search {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        230px
        auto;

    gap: 10px;

    margin-bottom: 28px;

    padding: 12px;

    border:
        1px solid
        var(--line);

    border-radius: 17px;

    background: #fff;
}

.public-search input,
.public-search select {
    min-height: 50px;

    width: 100%;

    padding:
        0 14px;

    border:
        1px solid
        var(--line);

    border-radius: 11px;

    outline: none;

    color: var(--ink);
    background: #fff;

    font: inherit;
    font-size: 14px;
}

.public-search input:focus,
.public-search select:focus {
    border-color:
        var(--green-700);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 28px;
}

.pagination a {
    min-width: 42px;
    min-height: 42px;

    display: grid;
    place-items: center;

    border:
        1px solid
        var(--line);

    border-radius: 10px;

    text-decoration: none;

    background: #fff;

    font-size: 13px;
    font-weight: 800;
}

.pagination a.active {
    color: #fff;
    background: var(--green-900);
    border-color: var(--green-900);
}

/* ============================================================
   ARTICLE DETAIL
============================================================ */

.article-detail-hero {
    padding:
        75px 0
        50px;

    background: var(--paper);
}

.article-detail-head {
    max-width: 900px;
}

.article-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;

    color: var(--gold-500);

    font-size: 12px;
    font-weight: 800;
}

.article-detail-head h1 {
    margin:
        14px 0 0;

    font-family:
        Georgia,
        serif;

    font-size:
        clamp(
            45px,
            6vw,
            76px
        );

    line-height: 1;
    letter-spacing: -.045em;
    font-weight: 600;
}

.article-detail-head > p {
    max-width: 750px;

    margin:
        20px 0 0;

    color: var(--text);

    font-size: 18px;
    line-height: 1.7;
}

.article-featured-image {
    max-width: 1050px;

    margin-top: 35px;
}

.article-featured-image img {
    width: 100%;

    max-height: 650px;

    display: block;

    border-radius: 22px;

    object-fit: cover;
}

.article-reading-section {
    padding:
        60px 20px
        90px;

    background: #fff;
}

.public-article-body {
    max-width: 780px;

    margin: 0 auto;

    color: #243a33;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 18px;
    line-height: 1.9;
}

.public-article-body
h2 {
    margin:
        2em 0 .7em;

    font-size: 34px;
    line-height: 1.2;
}

.public-article-body
h3 {
    margin:
        1.7em 0 .6em;

    font-size: 27px;
}

.public-article-body
img {
    height: auto;

    border-radius: 12px;
}

/* ============================================================
   GALLERY
============================================================ */

.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        );

    gap: 17px;
}

.gallery-card {
    overflow: hidden;

    border:
        1px solid
        var(--line);

    border-radius: 18px;

    background: #fff;

    text-decoration: none;
}

.gallery-image {
    height: 260px;
}

.gallery-image img,
.gallery-image .image-fallback {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.gallery-caption {
    padding: 18px;
}

.gallery-caption span {
    color: var(--muted);

    font-size: 11px;
}

.gallery-caption h2 {
    margin:
        7px 0 0;

    font-family:
        Georgia,
        serif;

    font-size: 21px;
    font-weight: 600;
}

.gallery-detail-cover img {
    width: 100%;

    max-height: 700px;

    display: block;

    border-radius: 22px;

    object-fit: cover;
}

.gallery-detail-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap: 15px;

    margin-top: 20px;
}

.gallery-detail-grid figure {
    margin: 0;
}

.gallery-detail-grid img {
    width: 100%;
    height: 420px;

    display: block;

    border-radius: 16px;

    object-fit: cover;
}

.gallery-detail-grid figcaption {
    padding:
        8px 2px
        0;

    color: var(--muted);

    font-size: 12px;
}

.gallery-description {
    margin-top: 45px;
}

/* ============================================================
   CATALOG
============================================================ */

.catalog-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        );

    gap: 18px;
}

.catalog-card {
    overflow: hidden;

    border:
        1px solid
        var(--line);

    border-radius: 19px;

    background: #fff;
}

.catalog-cover {
    height: 340px;

    display: block;

    overflow: hidden;

    background: var(--green-900);

    text-decoration: none;
}

.catalog-cover img,
.catalog-cover .image-fallback {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.catalog-copy {
    padding: 21px;
}

.catalog-copy h2 {
    margin:
        8px 0 0;

    font-family:
        Georgia,
        serif;

    font-size: 24px;
    line-height: 1.15;
    font-weight: 600;
}

.catalog-copy p {
    margin:
        10px 0 0;

    color: var(--text);

    font-size: 13px;
    line-height: 1.65;
}

.catalog-price {
    display: block;

    margin-top: 15px;

    color: var(--green-800);

    font-size: 15px;
}

.product-detail-grid {
    display: grid;

    grid-template-columns:
        minmax(270px,370px)
        minmax(0,1fr);

    align-items: start;

    gap:
        clamp(
            40px,
            7vw,
            80px
        );
}

.product-cover-large {
    min-height: 490px;

    overflow: hidden;

    border-radius: 20px;

    background: var(--green-900);

    box-shadow: var(--shadow);
}

.product-cover-large img,
.product-cover-large
.image-fallback {
    width: 100%;
    height: 100%;

    min-height: 490px;

    object-fit: cover;
}

.product-detail-copy h1 {
    margin:
        10px 0 0;

    font-family:
        Georgia,
        serif;

    font-size:
        clamp(
            42px,
            5vw,
            65px
        );

    line-height: 1;
    letter-spacing: -.04em;
    font-weight: 600;
}

.product-author {
    margin:
        14px 0 0;

    color: var(--text);

    font-size: 15px;
}

.product-price {
    display: block;

    margin-top: 20px;

    color: var(--green-700);

    font-size: 22px;
}

.product-info-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        );

    gap: 10px;

    margin-top: 25px;
}

.product-info-grid div {
    padding: 14px;

    border:
        1px solid
        var(--line);

    border-radius: 12px;

    background: #fff;
}

.product-info-grid span {
    display: block;

    color: var(--muted);

    font-size: 10px;
    text-transform: uppercase;
}

.product-info-grid strong {
    display: block;

    margin-top: 4px;

    font-size: 13px;
}

.notice-box {
    margin-top: 25px;
    padding: 18px;

    border:
        1px solid
        #d9d5c6;

    border-radius: 14px;

    background: #f4f0df;
}

.notice-box strong {
    display: block;

    font-size: 13px;
}

.notice-box p {
    margin:
        7px 0 0;

    color: var(--text);

    font-size: 12px;
    line-height: 1.65;
}

/* ============================================================
   INVITATION
============================================================ */

.invitation-page-grid {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        minmax(300px,.55fr);

    align-items: center;

    gap: 55px;
}

.invitation-profile-mini {
    display: flex;
    align-items: center;
    gap: 18px;

    padding: 20px;

    border:
        1px solid
        var(--line);

    border-radius: 18px;

    background: #fff;
}

.invitation-profile-mini img {
    width: 100px;
    height: 120px;

    flex: 0 0 auto;

    border-radius: 13px;

    object-fit: cover;
    object-position: top;
}

.invitation-profile-mini span {
    color: var(--gold-500);

    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.invitation-profile-mini strong {
    display: block;

    margin-top: 6px;

    font-family:
        Georgia,
        serif;

    font-size: 20px;
}

.invitation-profile-mini p {
    margin:
        7px 0 0;

    color: var(--text);

    font-size: 12px;
}

.invitation-content-grid {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        360px;

    align-items: start;

    gap: 40px;
}

.invitation-form-placeholder {
    position: sticky;
    top: 100px;

    padding: 25px;

    border-radius: 19px;

    color: #fff;
    background: var(--green-900);
}

.invitation-form-placeholder h2 {
    margin:
        9px 0 0;

    font-family:
        Georgia,
        serif;

    font-size: 30px;
}

.invitation-form-placeholder > p {
    color:
        rgba(255,255,255,.6);

    font-size: 13px;
    line-height: 1.7;
}

.invitation-form-placeholder
.notice-box {
    color: var(--green-950);
}

/* ============================================================
   FOOTER
============================================================ */

.public-footer {
    padding:
        65px 0
        22px;

    color: #fff;
    background: #051b15;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        minmax(0,1.35fr)
        repeat(
            3,
            minmax(130px,.45fr)
        );

    gap: 50px;
}

.footer-brand strong {
    display: block;

    font-family:
        Georgia,
        serif;

    font-size: 18px;
}

.footer-brand span {
    display: block;

    margin-top: 4px;

    color:
        rgba(255,255,255,.45);

    font-size: 10px;
}

.footer-about > p {
    max-width: 450px;

    margin:
        18px 0 0;

    color:
        rgba(255,255,255,.45);

    font-size: 12px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links > strong {
    margin-bottom: 4px;

    color: var(--gold-300);

    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.footer-links a {
    color:
        rgba(255,255,255,.63);

    text-decoration: none;

    font-size: 12px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    margin-top: 50px;
    padding-top: 19px;

    border-top:
        1px solid
        rgba(255,255,255,.08);

    color:
        rgba(255,255,255,.33);

    font-size: 11px;
}

/* ============================================================
   TABLET NAV
============================================================ */

@media (max-width: 1040px) {

    .public-nav {
        position: fixed;

        top: 0;
        right: 0;

        z-index: 130;

        width:
            min(
                84vw,
                350px
            );

        height: 100vh;
        height: 100dvh;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 3px;

        margin: 0;

        padding:
            90px 20px
            25px;

        overflow-y: auto;

        background: var(--green-950);

        transform:
            translateX(105%);

        transition:
            transform .24s ease;
    }

    body.public-nav-open
    .public-nav {
        transform:
            translateX(0);
    }

    .public-nav a,
    .public-nav
    .public-nav-cta {
        min-height: 50px;

        justify-content: flex-start;

        margin: 0;

        padding:
            0 15px;

        color:
            rgba(255,255,255,.82);

        border-radius: 11px;

        font-size: 14px;
    }

    .public-nav a:hover,
    .public-nav a.active,
    .public-nav
    .public-nav-cta:hover,
    .public-nav
    .public-nav-cta.active {
        color: #fff;

        background:
            rgba(255,255,255,.07);
    }

    .public-menu {
        position: relative;
        z-index: 140;

        width: 46px;
        height: 46px;

        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;

        margin-left: auto;

        padding:
            0 12px;

        border: 0;
        border-radius: 12px;

        background: var(--green-900);
    }

    .public-menu span {
        width: 100%;
        height: 2px;

        display: block;

        border-radius: 99px;

        background: var(--gold-400);

        transition:
            transform .2s ease,
            opacity .2s ease;
    }

    body.public-nav-open
    .public-menu
    span:nth-child(1) {
        transform:
            translateY(7px)
            rotate(45deg);
    }

    body.public-nav-open
    .public-menu
    span:nth-child(2) {
        opacity: 0;
    }

    body.public-nav-open
    .public-menu
    span:nth-child(3) {
        transform:
            translateY(-7px)
            rotate(-45deg);
    }

    .public-nav-backdrop {
        position: fixed;
        inset: 0;

        z-index: 120;

        display: block;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        background:
            rgba(0,20,15,.58);

        backdrop-filter:
            blur(2px);

        transition:
            opacity .2s ease,
            visibility .2s ease;
    }

    body.public-nav-open
    .public-nav-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .article-grid,
    .catalog-grid,
    .sanad-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );
    }

    .home-hero-grid {
        gap: 45px;
    }

    .footer-grid {
        grid-template-columns:
            minmax(0,1fr)
            repeat(
                3,
                minmax(110px,.45fr)
            );

        gap: 30px;
    }
}

/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 760px) {

    .public-container {
        width:
            min(
                calc(100% - 28px),
                var(--container)
            );
    }

    .public-header-inner {
        min-height: 68px;
    }

    .public-brand-mark,
    .public-brand > img {
        width: 39px;
        height: 39px;

        border-radius: 11px;
    }

    .public-brand-copy strong {
        font-size: 15px;
    }

    .public-brand-copy small {
        max-width: 190px;

        overflow: hidden;

        font-size: 9.5px;

        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .public-menu {
        width: 44px;
        height: 44px;
    }

    .section {
        padding:
            66px 0;
    }

    .home-hero {
        padding:
            58px 0
            70px;
    }

    .home-hero-grid,
    .profile-hero-grid,
    .product-detail-grid,
    .invitation-page-grid,
    .invitation-content-grid,
    .split-heading {
        grid-template-columns:
            minmax(0,1fr);
    }

    .home-hero-grid {
        gap: 45px;
    }

    .home-hero-copy h1 {
        font-size:
            clamp(
                44px,
                14vw,
                66px
            );
    }

    .hero-lead {
        font-size: 16px;
    }

    .hero-actions {
        display: grid;

        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );
    }

    .hero-stats {
        margin-top: 30px;
    }

    .hero-stats strong {
        font-size: 25px;
    }

    .hero-stats span {
        font-size: 9.5px;
        line-height: 1.3;
    }

    .portrait-card {
        max-width: 360px;
    }

    .portrait-card > img,
    .portrait-card >
    .image-fallback {
        height: 350px;
    }

    .row-heading {
        display: block;
    }

    .row-heading .btn {
        margin-top: 20px;
    }

    .section-heading h2,
    .library-banner h2,
    .invitation-banner h2 {
        font-size:
            clamp(
                34px,
                10vw,
                48px
            );
    }

    .section-heading p,
    .library-banner p,
    .invitation-banner p {
        font-size: 14px;
    }

    .home-feature-grid,
    .schedule-grid,
    .article-grid,
    .catalog-grid,
    .sanad-grid {
        grid-template-columns:
            minmax(0,1fr);
    }

    .work-grid {
        grid-template-columns:
            minmax(0,1fr);
    }

    .library-banner,
    .invitation-banner {
        display: block;

        padding:
            30px 24px;
    }

    .library-banner .btn,
    .invitation-banner .btn {
        margin-top: 22px;
    }

    .compact-page-hero h1,
    .profile-page-hero h1,
    .invitation-page-hero h1 {
        font-size:
            clamp(
                42px,
                12vw,
                58px
            );
    }

    .compact-page-hero p,
    .invitation-page-hero p {
        font-size: 15px;
    }

    .profile-hero-photo {
        width: 100%;
        max-width: 340px;

        height: 400px;
    }

    .profile-number-strip
    .public-container {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );
    }

    .profile-content-grid,
    .topic-grid {
        grid-template-columns:
            minmax(0,1fr);
    }

    .public-search {
        grid-template-columns:
            minmax(0,1fr);
    }

    .public-search input,
    .public-search select {
        font-size: 16px;
    }

    .gallery-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );
    }

    .gallery-image {
        height: 210px;
    }

    .gallery-detail-grid {
        grid-template-columns:
            minmax(0,1fr);
    }

    .gallery-detail-grid img {
        height: auto;
    }

    .product-cover-large {
        width: 100%;
        max-width: 340px;

        min-height: 450px;
    }

    .product-cover-large img,
    .product-cover-large
    .image-fallback {
        min-height: 450px;
    }

    .product-info-grid {
        grid-template-columns:
            minmax(0,1fr);
    }

    .invitation-form-placeholder {
        position: static;
    }

    .footer-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );

        gap: 35px 22px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .article-reading-section {
        padding:
            45px 18px
            70px;
    }

    .public-article-body {
        font-size: 17px;
        line-height: 1.85;
    }
}

/* ============================================================
   SMALL PHONE
============================================================ */

@media (max-width: 470px) {

    .hero-actions {
        grid-template-columns:
            minmax(0,1fr);
    }

    .hero-stats span {
        font-size: 8.5px;
    }

    .page-hero {
        padding:
            58px 0;
    }

    .profile-number-strip
    .public-container {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );
    }

    .profile-number-strip
    .public-container > div {
        padding:
            19px 10px;
    }

    .profile-number-strip strong {
        font-size: 26px;
    }

    .prose-card {
        padding: 22px;
    }

    .gallery-grid {
        grid-template-columns:
            minmax(0,1fr);
    }

    .catalog-cover {
        height: 320px;
    }

    .footer-grid {
        grid-template-columns:
            minmax(0,1fr);
    }

    .footer-about {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

/* ============================================================
   PUBLIC VIDEO KAJIAN V1
============================================================ */

.public-video-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        );

    gap: 18px;
}

.public-video-card,
.home-video-card {
    overflow: hidden;

    border:
        1px solid
        var(--line);

    border-radius: 19px;

    background: #fff;
}

.public-video-thumb,
.home-video-thumb {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    display: block;

    overflow: hidden;

    background: var(--green-950);

    text-decoration: none;
}

.public-video-thumb img,
.home-video-thumb img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .28s ease;
}

.public-video-card:hover
.public-video-thumb img,
.home-video-card:hover
.home-video-thumb img {
    transform:
        scale(1.025);
}

.public-video-play {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    transform:
        translate(-50%,-50%);

    border-radius: 50%;

    color: var(--green-950);
    background:
        rgba(218,185,93,.96);

    box-shadow:
        0 14px 32px
        rgba(0,0,0,.2);

    font-size: 18px;
}

.public-video-featured {
    position: absolute;

    top: 12px;
    left: 12px;

    min-height: 28px;

    display: inline-flex;
    align-items: center;

    padding:
        0 10px;

    border-radius: 999px;

    color: var(--green-950);
    background: var(--gold-400);

    font-size: 9px;
    font-weight: 850;

    text-transform: uppercase;
    letter-spacing: .06em;
}

.public-video-card-body,
.home-video-copy {
    padding: 20px;
}

.public-video-card-body h2,
.home-video-copy h3 {
    margin:
        8px 0 0;

    font-family:
        Georgia,
        serif;

    font-size: 23px;
    line-height: 1.16;
    font-weight: 600;
}

.public-video-card-body h2 a,
.home-video-copy h3 a {
    text-decoration: none;
}

.public-video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;

    margin-top: 10px;

    color: var(--muted);

    font-size: 11px;
}

.public-video-card-body > p {
    margin:
        11px 0 0;

    color: var(--text);

    font-size: 13px;
    line-height: 1.65;
}

.home-video-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        );

    gap: 18px;
}

.home-video-copy h3 {
    font-size: 21px;
}

.home-video-copy p {
    margin:
        9px 0 0;

    color: var(--muted);

    font-size: 11px;
}

.video-detail-hero {
    padding:
        55px 0;

    background: var(--green-950);
}

.video-detail-hero .back-link {
    color: var(--gold-300);
}

.video-detail-player {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 22px;

    background: #000;

    box-shadow:
        0 25px 70px
        rgba(0,0,0,.2);
}

.video-detail-player iframe {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    border: 0;
}

.video-detail-content {
    padding:
        65px 0
        90px;

    background: var(--paper);
}

.video-detail-grid {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        300px;

    align-items: start;

    gap:
        clamp(
            35px,
            6vw,
            70px
        );
}

.video-detail-main h1 {
    max-width: 850px;

    margin:
        11px 0 0;

    font-family:
        Georgia,
        serif;

    font-size:
        clamp(
            39px,
            5vw,
            62px
        );

    line-height: 1.03;
    font-weight: 600;
    letter-spacing: -.035em;
}

.video-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 16px;

    margin-top: 17px;

    color: var(--muted);

    font-size: 12px;
}

.video-detail-lead {
    max-width: 760px;

    margin:
        23px 0 0;

    color: var(--text);

    font-size: 17px;
    line-height: 1.75;
}

.video-description-public {
    margin-top: 28px;
}

.video-detail-side {
    display: grid;
    gap: 10px;
}

.video-info-card {
    padding: 17px;

    border:
        1px solid
        var(--line);

    border-radius: 13px;

    background: #fff;
}

.video-info-card span {
    display: block;

    color: var(--muted);

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .07em;
}

.video-info-card strong {
    display: block;

    margin-top: 6px;

    color: var(--green-900);

    font-size: 13px;
    line-height: 1.45;
}

.video-youtube-button {
    width: 100%;

    margin-top: 7px;
}

@media (max-width: 1040px) {
    .public-video-grid,
    .home-video-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );
    }
}

@media (max-width: 760px) {
    .public-video-grid,
    .home-video-grid,
    .video-detail-grid {
        grid-template-columns:
            minmax(0,1fr);
    }

    .public-video-play {
        width: 50px;
        height: 50px;
    }

    .public-video-card-body h2,
    .home-video-copy h3 {
        font-size: 21px;
    }

    .video-detail-hero {
        padding:
            35px 0;
    }

    .video-detail-player {
        border-radius: 15px;
    }

    .video-detail-content {
        padding:
            48px 0
            65px;
    }

    .video-detail-side {
        margin-top: 7px;
    }
}

/* ============================================================
   PUBLIC BOOK ORDER V1
============================================================ */

.book-order-panel {
    margin-top: 34px;
    padding-top: 30px;

    border-top:
        1px solid
        var(--line);

    scroll-margin-top: 95px;
}

.book-order-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 22px;
}

.book-order-heading h2 {
    margin:
        8px 0 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 31px;
    line-height: 1.1;
    font-weight: 600;
}

.book-order-heading p {
    max-width: 580px;

    margin:
        10px 0 0;

    color: var(--text);

    font-size: 13px;
    line-height: 1.65;
}

.book-order-price {
    flex: 0 0 auto;

    min-width: 150px;

    padding: 15px 17px;

    border-radius: 14px;

    color: #fff;
    background: var(--green-900);

    text-align: right;
}

.book-order-price span {
    display: block;

    color:
        rgba(255,255,255,.55);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.book-order-price strong {
    display: block;

    margin-top: 5px;

    color: var(--gold-300);

    font-size: 18px;
}

.book-order-form {
    padding: 22px;

    border:
        1px solid
        var(--line);

    border-radius: 18px;

    background: #fff;
}

.book-order-two {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap: 14px;
}

.public-form-group {
    margin-bottom: 16px;
}

.public-form-group label {
    display: block;

    margin-bottom: 7px;

    color: var(--green-900);

    font-size: 12px;
    font-weight: 750;
}

.public-form-group input,
.public-form-group textarea,
.public-form-group select {
    width: 100%;
    min-height: 48px;

    padding:
        11px 13px;

    border:
        1px solid
        #d6d9d2;

    border-radius: 11px;

    outline: none;

    color: var(--ink);
    background: #fff;

    font: inherit;
    font-size: 14px;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.public-form-group textarea {
    resize: vertical;
}

.public-form-group input:focus,
.public-form-group textarea:focus,
.public-form-group select:focus {
    border-color:
        var(--green-700);

    box-shadow:
        0 0 0 3px
        rgba(27,93,72,.08);
}

.public-form-group small {
    display: block;

    margin-top: 6px;

    color: var(--muted);

    font-size: 10px;
}

.book-order-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 22px;

    margin-top: 4px;
    padding-top: 18px;

    border-top:
        1px solid
        var(--line);
}

.book-order-notice strong {
    display: block;

    font-size: 12px;
}

.book-order-notice p {
    margin:
        5px 0 0;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.55;
}

.book-order-notice .btn {
    flex: 0 0 auto;
}

.public-form-flash {
    margin-bottom: 16px;
    padding: 13px 15px;

    border-radius: 12px;

    font-size: 12px;
    line-height: 1.55;
}

.public-form-flash.error {
    color: #853535;
    background: #f8e8e5;

    border:
        1px solid
        #eed1cc;
}

.public-form-flash.success {
    color: #176047;
    background: #e6f3ec;

    border:
        1px solid
        #cce6d9;
}

.book-stock-empty {
    padding: 20px;

    border:
        1px solid
        #e4d5ad;

    border-radius: 14px;

    background: #f7f0dc;
}

.book-stock-empty strong {
    display: block;

    color: #765916;

    font-size: 14px;
}

.book-stock-empty p {
    margin:
        7px 0 0;

    color: #746847;

    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 760px) {

    .book-order-heading {
        display: block;
    }

    .book-order-price {
        width: 100%;
        min-width: 0;

        margin-top: 16px;

        text-align: left;
    }

    .book-order-two {
        grid-template-columns:
            minmax(0,1fr);
    }

    .book-order-form {
        padding: 17px;
    }

    .public-form-group input,
    .public-form-group textarea,
    .public-form-group select {
        font-size: 16px;
    }

    .book-order-notice {
        display: block;
    }

    .book-order-notice .btn {
        width: 100%;

        margin-top: 17px;
    }
}

/* ============================================================
   PUBLIC EBOOK PRIVATE READER V1
============================================================ */

.ebook-reader-panel {
    margin-top: 30px;
    padding: 22px;

    border:
        1px solid
        var(--line);

    border-radius: 17px;

    background: #fff;
}

.ebook-reader-panel h2 {
    margin:
        8px 0 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 29px;
    line-height: 1.1;
    font-weight: 600;
}

.ebook-reader-panel > div:first-child > p {
    margin:
        10px 0 0;

    color: var(--text);

    font-size: 13px;
    line-height: 1.65;
}

.ebook-reader-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    margin-top: 20px;
}

.ebook-reader-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 16px;
}

.ebook-reader-meta span {
    min-height: 28px;

    display: inline-flex;
    align-items: center;

    padding:
        0 10px;

    border-radius: 999px;

    color: var(--green-700);
    background: #edf2ee;

    font-size: 10px;
    font-weight: 750;
}

.ebook-file-unavailable {
    margin-top: 18px;
    padding: 14px;

    border-radius: 12px;

    color: #765916;
    background: #f7f0dc;

    font-size: 12px;
}

.ebook-reader-shell {
    background: #dfe3df;
}

.ebook-reader-toolbar {
    position: sticky;
    top: 76px;
    z-index: 40;

    color: #fff;
    background: var(--green-950);

    border-bottom:
        1px solid
        rgba(255,255,255,.08);
}

.ebook-reader-toolbar-inner {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.ebook-reader-title {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 12px;
}

.ebook-reader-back {
    width: 42px;
    height: 42px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(255,255,255,.14);

    border-radius: 11px;

    color: #fff;
    background:
        rgba(255,255,255,.04);

    text-decoration: none;

    font-size: 18px;
}

.ebook-reader-title > div {
    min-width: 0;
}

.ebook-reader-title span {
    display: block;

    color:
        rgba(255,255,255,.5);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ebook-reader-title strong {
    max-width: 620px;

    display: block;

    margin-top: 3px;

    overflow: hidden;

    color: #fff;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 16px;
    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.ebook-reader-toolbar-actions {
    flex: 0 0 auto;

    display: flex;
    gap: 8px;
}

.ebook-reader-toolbar-actions
.btn {
    min-height: 42px;
}

.ebook-reader-info {
    min-height: 56px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.ebook-reader-info strong {
    display: block;

    color: var(--green-900);

    font-size: 12px;
}

.ebook-reader-info span {
    color: var(--muted);

    font-size: 10px;
}

.ebook-online-only {
    flex: 0 0 auto;

    min-height: 27px;

    display: inline-flex;
    align-items: center;

    padding:
        0 10px;

    border-radius: 999px;

    color: var(--green-700) !important;
    background:
        rgba(255,255,255,.72);

    font-size: 9px !important;
    font-weight: 800;
}

.ebook-reader-stage {
    width:
        min(
            calc(100% - 28px),
            1180px
        );

    height:
        calc(100vh - 204px);
    height:
        calc(100dvh - 204px);

    min-height: 620px;

    margin:
        0 auto;

    overflow: hidden;

    border-radius:
        15px 15px 0 0;

    background: #737a76;

    box-shadow:
        0 20px 60px
        rgba(6,31,24,.16);
}

.ebook-reader-stage iframe {
    width: 100%;
    height: 100%;

    display: block;

    border: 0;

    background: #737a76;
}

.ebook-reader-mobile-help {
    display: none;
}

@media (max-width: 1040px) {

    .ebook-reader-toolbar {
        top: 68px;
    }

    .ebook-reader-title strong {
        max-width: 440px;
    }
}

@media (max-width: 760px) {

    .ebook-reader-actions {
        display: grid;

        grid-template-columns:
            minmax(0,1fr);
    }

    .ebook-reader-actions .btn {
        width: 100%;
    }

    .ebook-reader-toolbar {
        top: 68px;
    }

    .ebook-reader-toolbar-inner {
        min-height: 66px;
    }

    .ebook-reader-title strong {
        max-width:
            calc(100vw - 190px);

        font-size: 14px;
    }

    .ebook-reader-title span {
        font-size: 8.5px;
    }

    .ebook-reader-back {
        width: 44px;
        height: 44px;
    }

    .ebook-reader-toolbar-actions
    .btn {
        min-height: 44px;

        padding:
            0 12px;

        font-size: 11px;
    }

    .ebook-reader-toolbar-actions
    .btn-gold {
        display: none;
    }

    .ebook-reader-info {
        min-height: 52px;
    }

    .ebook-reader-stage {
        width: 100%;

        height:
            calc(100vh - 186px);
        height:
            calc(100dvh - 186px);

        min-height: 520px;

        border-radius: 0;
    }

    .ebook-reader-mobile-help {
        display: block;

        padding-top: 12px;
        padding-bottom: 18px;
    }

    .ebook-reader-mobile-help p {
        margin: 0;

        color: var(--muted);

        font-size: 11px;
        line-height: 1.55;
    }
}

@media (max-width: 470px) {

    .ebook-reader-info {
        gap: 10px;
    }

    .ebook-reader-title strong {
        max-width:
            calc(100vw - 168px);
    }

    .ebook-reader-toolbar-actions
    .btn {
        padding-inline: 10px;
    }
}

/* ============================================================
   EBOOK MODAL READER V1B
============================================================ */

body.ebook-modal-open {
    overflow: hidden !important;
}

.ebook-modal[hidden] {
    display: none !important;
}

.ebook-modal {
    position: fixed;
    inset: 0;

    z-index: 10000;

    display: grid;
    place-items: center;

    padding: 18px;

    opacity: 0;

    transition:
        opacity .16s ease;
}

.ebook-modal.is-open {
    opacity: 1;
}

.ebook-modal-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(2,18,14,.82);

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);
}

.ebook-modal-dialog {
    position: relative;
    z-index: 1;

    width:
        min(
            1420px,
            calc(100vw - 36px)
        );

    height:
        calc(100vh - 36px);

    height:
        calc(100dvh - 36px);

    max-height: 940px;

    display: grid;

    grid-template-rows:
        68px
        minmax(0,1fr);

    overflow: hidden;

    border:
        1px solid
        rgba(255,255,255,.14);

    border-radius: 20px;

    outline: none;

    background: #d9ddda;

    box-shadow:
        0 36px 100px
        rgba(0,0,0,.42);

    opacity: 0;

    transform:
        translateY(10px)
        scale(.987);

    transition:
        opacity .16s ease,
        transform .16s ease;
}

.ebook-modal.is-open
.ebook-modal-dialog {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}

.ebook-modal-header {
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding:
        10px 12px
        10px 16px;

    color: #fff;
    background:
        linear-gradient(
            100deg,
            #061f18,
            #0a3024
        );

    border-bottom:
        1px solid
        rgba(255,255,255,.08);
}

.ebook-modal-title-wrap {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 12px;
}

.ebook-modal-mark {
    width: 42px;
    height: 42px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    border-radius: 11px;

    color: var(--green-950);
    background: var(--gold-400);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 17px;
    font-weight: 700;
}

.ebook-modal-copy {
    min-width: 0;
}

.ebook-modal-copy > span {
    display: block;

    color:
        rgba(255,255,255,.48);

    font-size: 8px;
    line-height: 1.1;

    font-weight: 850;

    letter-spacing: .1em;
    text-transform: uppercase;
}

.ebook-modal-copy > strong {
    max-width:
        min(
            760px,
            62vw
        );

    display: block;

    margin-top: 3px;

    overflow: hidden;

    color: #fff;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 16px;
    line-height: 1.15;

    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.ebook-modal-copy > small {
    max-width:
        min(
            760px,
            62vw
        );

    display: block;

    margin-top: 3px;

    overflow: hidden;

    color:
        rgba(255,255,255,.47);

    font-size: 9px;
    line-height: 1.15;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.ebook-modal-actions {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    gap: 8px;
}

.ebook-modal-download {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding:
        0 15px;

    border-radius: 10px;

    color: var(--green-950);
    background: var(--gold-400);

    text-decoration: none;

    font-size: 10px;
    font-weight: 850;
}

.ebook-modal-close {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    padding: 0;

    border:
        1px solid
        rgba(255,255,255,.13);

    border-radius: 11px;

    outline: none;

    color: #fff;

    background:
        rgba(255,255,255,.06);

    cursor: pointer;

    font-family:
        Arial,
        sans-serif;

    font-size: 29px;
    line-height: 1;

    font-weight: 300;

    transition:
        background .15s ease,
        transform .15s ease;
}

.ebook-modal-close:hover,
.ebook-modal-close:focus {
    background:
        rgba(255,255,255,.13);

    transform:
        scale(1.025);
}

.ebook-modal-body {
    position: relative;

    min-width: 0;
    min-height: 0;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #bfc5c1,
            #e4e7e5
        );
}

.ebook-modal-body iframe {
    position: relative;
    z-index: 2;

    width: 100%;
    height: 100%;

    display: block;

    border: 0;

    background: #737975;
}

.ebook-modal-loading {
    position: absolute;
    inset: 0;

    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 12px;

    color: #56645e;

    font-size: 12px;
}

.ebook-modal-loading-mark {
    width: 50px;
    height: 50px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    color: var(--green-950);
    background: var(--gold-400);

    font-family:
        Georgia,
        serif;

    font-size: 20px;
    font-weight: 700;

    animation:
        ebookReaderPulse
        1.2s ease-in-out
        infinite alternate;
}

@keyframes ebookReaderPulse {

    from {
        transform: scale(.96);
        opacity: .75;
    }

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

.ebook-modal.is-loaded
.ebook-modal-loading {
    display: none;
}

.ebook-reader-actions button.btn {
    font-family: inherit;

    cursor: pointer;
}

/* ============================================================
   TABLET
============================================================ */

@media (max-width: 900px) {

    .ebook-modal {
        padding: 10px;
    }

    .ebook-modal-dialog {
        width:
            calc(100vw - 20px);

        height:
            calc(100vh - 20px);

        height:
            calc(100dvh - 20px);

        border-radius: 15px;
    }

    .ebook-modal-copy > strong,
    .ebook-modal-copy > small {
        max-width:
            calc(100vw - 210px);
    }
}

/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 600px) {

    .ebook-modal {
        padding: 0;
    }

    .ebook-modal-dialog {
        width: 100vw;

        height: 100vh;
        height: 100dvh;

        max-height: none;

        grid-template-rows:
            64px
            minmax(0,1fr);

        border: 0;
        border-radius: 0;

        box-shadow: none;
    }

    .ebook-modal-header {
        gap: 8px;

        padding:
            8px 8px
            8px 11px;
    }

    .ebook-modal-title-wrap {
        gap: 9px;
    }

    .ebook-modal-mark {
        width: 39px;
        height: 39px;

        border-radius: 10px;

        font-size: 15px;
    }

    .ebook-modal-copy > span {
        font-size: 7px;
    }

    .ebook-modal-copy > strong {
        max-width:
            calc(100vw - 122px);

        font-size: 13px;
    }

    .ebook-modal-copy > small {
        max-width:
            calc(100vw - 122px);

        font-size: 8px;
    }

    .ebook-modal-close {
        width: 44px;
        height: 44px;

        flex: 0 0 auto;
    }

    .ebook-modal-download {
        display: none;
    }
}

/* ============================================================
   PUBLIC UNDANGAN KAJIAN FORM V1
============================================================ */

.invitation-form-card {
    position: sticky;
    top: 100px;

    padding: 25px;

    border-radius: 20px;

    color: var(--ink);
    background: #fff;

    border:
        1px solid
        var(--line);

    box-shadow:
        0 20px 55px
        rgba(6,31,24,.07);

    scroll-margin-top: 100px;
}

.invitation-form-card > h2 {
    margin:
        8px 0 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 31px;
    line-height: 1.1;
    font-weight: 600;
}

.invitation-form-intro {
    margin:
        10px 0 20px;

    color: var(--text);

    font-size: 13px;
    line-height: 1.65;
}

.invitation-public-form {
    margin-top: 18px;
}

.invitation-form-two {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap: 13px;
}

.invitation-honeypot {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;

    clip:
        rect(
            0 0 0 0
        ) !important;

    white-space: nowrap !important;
}

.invitation-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    margin-top: 5px;
    padding-top: 18px;

    border-top:
        1px solid
        var(--line);
}

.invitation-submit-row > div {
    max-width: 390px;
}

.invitation-submit-row strong {
    display: block;

    color: var(--green-900);

    font-size: 11px;
}

.invitation-submit-row p {
    margin:
        5px 0 0;

    color: var(--muted);

    font-size: 10px;
    line-height: 1.55;
}

.invitation-submit-row .btn {
    flex: 0 0 auto;
}

.invitation-success {
    padding:
        12px 3px 3px;

    text-align: center;
}

.invitation-success-mark {
    width: 64px;
    height: 64px;

    display: grid;
    place-items: center;

    margin:
        0 auto
        19px;

    border-radius: 50%;

    color: var(--green-950);
    background: var(--gold-400);

    font-size: 28px;
    font-weight: 900;
}

.invitation-success .eyebrow {
    text-align: center;
}

.invitation-success h2 {
    margin:
        8px 0 0;

    color: var(--green-900);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 32px;
    line-height: 1.1;

    font-weight: 600;
}

.invitation-success > p {
    margin:
        11px auto 0;

    max-width: 390px;

    color: var(--text);

    font-size: 13px;
    line-height: 1.7;
}

.invitation-code-box {
    margin:
        22px 0 0;

    padding: 16px;

    border:
        1px dashed
        #cab66f;

    border-radius: 14px;

    background: #f7f1dc;
}

.invitation-code-box span {
    display: block;

    color: #7b6b36;

    font-size: 9px;
    font-weight: 850;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.invitation-code-box strong {
    display: block;

    margin-top: 6px;

    color: var(--green-900);

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Consolas,
        monospace;

    font-size: 17px;
    letter-spacing: .025em;
}

.invitation-wa-button {
    width: 100%;

    margin-top: 17px;
}

.invitation-another-link {
    display: inline-block;

    margin-top: 17px;

    color: var(--green-700);

    font-size: 11px;
    font-weight: 800;

    text-decoration: none;
}

@media (max-width: 760px) {

    .invitation-form-card {
        position: static;

        padding: 19px;
    }

    .invitation-form-two {
        grid-template-columns:
            minmax(0,1fr);

        gap: 0;
    }

    .invitation-submit-row {
        display: block;
    }

    .invitation-submit-row .btn {
        width: 100%;

        margin-top: 16px;
    }
}

/* ============================================================
   PUBLIC CONTENT vs FOOTER SEPARATION V1

   Tujuan:
   - section gelap harus terbaca sebagai KONTEN
   - footer harus terbaca sebagai PENUTUP halaman
   - berlaku global pada seluruh public pages
============================================================ */

/*
 * CONTENT DARK SECTION
 *
 * Sebelumnya memakai green-950 yang terlalu dekat
 * secara visual dengan warna footer.
 */
.public-main > .section-dark {
    position: relative;

    color: #fff;

    background:
        radial-gradient(
            circle at 14% 0%,
            rgba(216,180,74,.075),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #0d382c 0%,
            #0a3026 100%
        );

    border-top:
        1px solid
        rgba(221,190,92,.10);

    border-bottom:
        1px solid
        rgba(255,255,255,.055);

    box-shadow:
        inset 0 1px 0
        rgba(255,255,255,.025);
}

/*
 * Judul section tetap punya kontras penuh.
 */
.public-main
> .section-dark
.section-heading h2 {
    color: #fffdf7;
}

.public-main
> .section-dark
.eyebrow,
.public-main
> .section-dark
.card-label {
    color: #e1bc54;
}

/*
 * Card dalam jadwal dibuat jelas sebagai blok konten,
 * bukan menyatu dengan background section.
 */
.public-main
> .section-dark
.schedule-card {
    border-color:
        rgba(255,255,255,.13);

    background:
        rgba(2,25,19,.28);

    box-shadow:
        0 12px 28px
        rgba(0,0,0,.075);

    transition:
        border-color .18s ease,
        background .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

@media (hover: hover) {

    .public-main
    > .section-dark
    .schedule-card:hover {
        border-color:
            rgba(225,188,84,.30);

        background:
            rgba(2,25,19,.38);

        transform:
            translateY(-2px);

        box-shadow:
            0 17px 36px
            rgba(0,0,0,.12);
    }
}

/*
 * Nomor card dibuat lebih terasa sebagai elemen konten.
 */
.public-main
> .section-dark
.schedule-number {
    box-shadow:
        0 7px 17px
        rgba(0,0,0,.13);
}

/*
 * FOOTER
 *
 * Dibuat secara sengaja jauh lebih gelap dari section konten.
 * Garis emas tipis memberi batas visual yang langsung terbaca.
 */
.public-footer {
    position: relative;

    color: #fff;

    background:
        linear-gradient(
            180deg,
            #03140f 0%,
            #020e0b 100%
        );

    border-top:
        1px solid
        rgba(225,188,84,.28);

    box-shadow:
        inset 0 20px 42px
        rgba(0,0,0,.14);
}

.public-footer::before {
    content: "";

    position: absolute;
    top: -1px;
    left: 0;
    right: 0;

    height: 3px;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(225,188,84,.12) 18%,
            rgba(225,188,84,.72) 50%,
            rgba(225,188,84,.12) 82%,
            transparent 100%
        );
}

/*
 * Footer text dipertahankan redup agar hierarkinya
 * tetap lebih rendah daripada konten.
 */
.public-footer
.footer-brand strong {
    color: rgba(255,255,255,.94);
}

.public-footer
.footer-links > strong {
    color: #d9b74e;
}

.public-footer
.footer-links a {
    color:
        rgba(255,255,255,.56);
}

.public-footer
.footer-links a:hover {
    color: #fff;
}

.public-footer
.footer-about > p {
    color:
        rgba(255,255,255,.38);
}

.public-footer
.footer-bottom {
    border-top-color:
        rgba(255,255,255,.065);

    color:
        rgba(255,255,255,.27);
}

/*
 * Pada layar kecil separator footer tetap terlihat,
 * tetapi tidak mengganggu ruang konten.
 */
@media (max-width: 760px) {

    .public-main > .section-dark {
        background:
            linear-gradient(
                180deg,
                #0d382c 0%,
                #092f25 100%
            );
    }

    .public-footer::before {
        height: 2px;
    }
}

/* ============================================================
   PUBLIC MOBILE NAV STABILITY V1

   Fix:
   - hilangkan blur backdrop mobile
   - cegah horizontal swipe / phantom off-canvas area
   - drawer hanya scroll vertikal
   - background tidak ikut bergeser
============================================================ */

@media (max-width: 1040px) {

    /*
     * Fallback untuk browser yang belum mendukung overflow: clip.
     * Ini mencegah drawer off-canvas memperlebar halaman.
     */
    html,
    body {
        width: 100%;
        max-width: 100%;

        overflow-x: hidden;

        overscroll-behavior-x: none;
    }

    @supports (overflow: clip) {
        html,
        body {
            overflow-x: clip;
        }
    }

    /*
     * Saat drawer dibuka, halaman belakang tidak ikut digeser.
     * Drawer fixed tetap mempunyai scroll vertikal sendiri.
     */
    body.public-nav-open {
        overflow: hidden;

        overscroll-behavior:
            none;
    }

    /*
     * Drawer hanya boleh bergerak/scroll pada sumbu vertikal.
     */
    .public-nav {
        max-width: 100vw;

        overflow-x: hidden;
        overflow-y: auto;

        overscroll-behavior:
            contain;

        touch-action:
            pan-y;

        -webkit-overflow-scrolling:
            touch;

        will-change:
            transform;
    }

    /*
     * Drawer tertutup tidak menerima interaksi.
     */
    body:not(.public-nav-open)
    .public-nav {
        pointer-events: none;
    }

    body.public-nav-open
    .public-nav {
        pointer-events: auto;
    }

    /*
     * Backdrop tetap menggelapkan halaman,
     * tetapi tidak lagi membuat konten terlihat blur.
     */
    .public-nav-backdrop {
        background:
            rgba(1, 20, 14, .52);

        backdrop-filter:
            none;

        -webkit-backdrop-filter:
            none;

        touch-action:
            none;
    }

    /*
     * Elemen utama juga tidak boleh menciptakan
     * horizontal scroll area pada mobile.
     */
    .public-header,
    .public-main,
    .public-footer {
        max-width: 100%;
    }
}

/* ============================================================
   PUBLIC MOBILE NAV CLICK FIX V1

   Backdrop sebelumnya berada di stacking layer lebih tinggi
   daripada header yang menjadi parent drawer.
   Akibatnya tap link ditangkap backdrop.
============================================================ */

@media (max-width: 1040px) {

    /*
     * Saat drawer aktif, naikkan stacking context header
     * di atas backdrop.
     */
    body.public-nav-open
    .public-header {
        z-index: 150;
    }

    /*
     * Drawer dan tombol menu tetap berada pada layer
     * tertinggi di dalam header.
     */
    body.public-nav-open
    .public-nav {
        z-index: 160;

        pointer-events: auto;
    }

    body.public-nav-open
    .public-menu {
        z-index: 170;

        pointer-events: auto;
    }

    /*
     * Backdrop tetap berada di atas halaman utama,
     * tetapi di bawah header/drawer.
     */
    body.public-nav-open
    .public-nav-backdrop {
        z-index: 120;
    }

    /*
     * Pastikan anchor drawer menerima tap secara langsung.
     */
    body.public-nav-open
    .public-nav a {
        position: relative;
        z-index: 1;

        pointer-events: auto;

        touch-action: manipulation;
    }
}

/* ============================================================
   PUBLIC MOBILE FIXED HEADER V1

   Logo + hamburger selalu tersedia saat halaman discroll.
   Drawer/nav fix sebelumnya tetap dipertahankan.
============================================================ */

@media (max-width: 1040px) {

    /*
     * Mobile/tablet header selalu menempel di viewport.
     */
    .public-header {
        position: fixed;

        top: 0;
        left: 0;
        right: 0;

        z-index: 100;

        width: 100%;
    }

    /*
     * Karena fixed header keluar dari normal document flow,
     * berikan ruang sesuai tinggi header tablet.
     */
    .public-main {
        padding-top: 76px;
    }

    /*
     * Ketika drawer dibuka, stacking fix V1 tetap berlaku.
     */
    body.public-nav-open
    .public-header {
        z-index: 150;
    }
}

@media (max-width: 760px) {

    /*
     * Header mobile memakai tinggi existing 68px.
     */
    .public-main {
        padding-top: 68px;
    }
}
