/* ==========================================================================
   YAYASAN QURANI QARYAH THAYYIBAH - STYLESHEET
   Accurate 1:1 Implementation from Design Reference
   ========================================================================== */

/* --- CSS Variables --- */
:root {
    --primary-green: #3ca341;
    --primary-green-light: #5dbb46;
    --primary-green-dark: #088a44;
    --hero-green-start: #6ec040;
    --hero-green-mid: #3ca837;
    --hero-green-end: #00873e;
    --text-dark: #1b2e21;
    --text-body: #2c3e35;
    --text-muted: #66766e;
    --accent-yellow: #fff100;
    --badge-yellow: #f7eb32;
    --white: #ffffff;
    --max-width: 1180px;
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-cursive: 'Caveat', cursive;
}

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-body);
    background-color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* --- Common Components --- */
.pill-badge-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.pill-badge {
    display: inline-block;
    border: 1.5px solid var(--primary-green);
    color: var(--primary-green);
    background: transparent;
    padding: 6px 28px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pill-badge-white {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.btn-solid-green {
    display: inline-block;
    background-color: var(--primary-green-light);
    color: #ffffff;
    padding: 10px 32px;
    border-radius: 99px;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(93, 187, 70, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-solid-green:hover {
    background-color: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(8, 138, 68, 0.4);
}

/* ==========================================================================
   1. HEADER / NAVBAR
   ========================================================================== */
.site-header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand-logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.btn-reg-header {
    background-color: var(--primary-green-light);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(93, 187, 70, 0.25);
    transition: transform 0.2s ease, background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-reg-header:hover {
    background-color: var(--primary-green-dark);
    transform: translateY(-1px);
}

.btn-reg-header-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    stroke: currentColor;
}

.btn-text-mob {
    display: none;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    color: #333333;
    font-size: 14px;
    font-weight: 600;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green-dark);
}

/* --- Dropdown Menu --- */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-caret {
    font-size: 10px;
    margin-left: 2px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-caret,
.nav-dropdown:focus-within .dropdown-caret {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    min-width: 190px;
    z-index: 120;
    border: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #333333;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item.active {
    background-color: #eaf7e9;
    color: var(--primary-green-dark);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, var(--hero-green-start) 0%, var(--hero-green-mid) 50%, var(--hero-green-end) 100%);
    background-image: url('beranda/BAKCG 1.webp');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 60px 0 75px 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-cursive {
    font-family: var(--font-cursive);
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.1;
}

.hero-title {
    font-size: 50px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 14.5px;
    line-height: 1.68;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-btn-wrap {
    margin-top: 5px;
}

.btn-hero-outline {
    display: inline-block;
    background-color: var(--primary-green-light);
    border: 1.5px solid #ffffff;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 99px;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-hero-outline:hover {
    background-color: #ffffff;
    color: var(--primary-green-dark);
    transform: translateY(-2px);
}

.hero-right {
    text-align: center;
    position: relative;
}

.hero-tagline {
    margin-bottom: 12px;
}

.tagline-main {
    color: var(--accent-yellow);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 4px;
}

.tagline-sub {
    color: var(--accent-yellow);
    font-size: 13.5px;
    font-weight: 700;
}

.hero-img-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-main-img {
    width: 100%;
    max-width: 540px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 50, 20, 0.25));
}

/* ==========================================================================
   3. TENTANG KAMI SECTION
   ========================================================================== */
.tentang-section {
    background-color: #ffffff;
    padding: 85px 0 80px 0;
    position: relative;
    overflow: hidden;
}

.tentang-bg-grid {
    position: absolute;
    top: 10px;
    right: 5%;
    width: 550px;
    height: 480px;
    background-image: url('beranda/BACK 3.webp');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.65;
    pointer-events: none;
}

.tentang-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    align-items: center;
    gap: 55px;
    position: relative;
    z-index: 2;
}

.tentang-visual {
    position: relative;
    width: 100%;
    max-width: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.tokoh-composite-img {
    width: 100%;
    max-width: 440px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 50, 20, 0.15));
    transition: transform 0.3s ease;
}

.tokoh-composite-img:hover {
    transform: translateY(-4px) scale(1.02);
}

.tentang-content {
    text-align: center;
    max-width: 660px;
    margin: 0 auto;
}

.tentang-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.tentang-text p {
    font-size: 13.5px;
    line-height: 1.72;
    color: #222222;
    text-align: justify;
    margin-bottom: 24px;
}

.tentang-btn-wrap {
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   4. UNIT PENDIDIKAN SECTION
   ========================================================================== */
.unit-section {
    background-color: #ffffff;
    padding: 65px 0 85px 0;
    text-align: center;
    position: relative;
}

.unit-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.unit-header {
    max-width: 820px;
    margin: 0 auto 35px auto;
}

.unit-intro {
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
    margin-top: 15px;
}

.unit-cards-wrapper {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    padding-bottom: 25px;
}

.unit-backdrop-green {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 115px;
    background: linear-gradient(135deg, var(--hero-green-start), var(--primary-green-dark));
    border-radius: 20px;
    z-index: 1;
}

.unit-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    padding: 0 10px;
}

.unit-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    padding: 18px 8px 18px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 235px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.unit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.unit-card-logo {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.unit-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.unit-card-title {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.unit-card-sub {
    font-size: 9.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
    min-height: 22px;
    line-height: 1.25;
}

.unit-card-action {
    margin-top: auto;
}

.unit-card-action-dual {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    align-items: center;
}

.btn-unit-card {
    display: inline-block;
    background: #e8f5e5;
    color: #2e7d32;
    font-size: 9.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
    border: 1px solid #c8e6c9;
    transition: background-color 0.2s ease, transform 0.15s ease;
    text-align: center;
    width: 90%;
}

.btn-unit-card:hover {
    background: #c8e6c9;
}

.btn-unit-card-daftar {
    display: inline-block;
    background: linear-gradient(135deg, #108548, #056934);
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 99px;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(16, 133, 72, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
    width: 90%;
}

.btn-unit-card-daftar:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(16, 133, 72, 0.45);
}

/* ==========================================================================
   5. GALERI & MENGAPA MEMILIH KAMI
   ========================================================================== */
.galeri-section {
    background-color: #ffffff;
    padding: 70px 0 80px 0;
}

.galeri-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 65px;
}

.galeri-photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.galeri-photo-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    aspect-ratio: 4/3;
}

.galeri-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.galeri-photo-item:hover img {
    transform: scale(1.05);
}

.galeri-content {
    text-align: left;
}

.galeri-content .pill-badge-wrap {
    justify-content: flex-start;
}

.galeri-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--primary-green-dark);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.visi-misi-block p {
    font-size: 14px;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 18px;
}

.visi-misi-block strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* ==========================================================================
   6. TESTIMONI SECTION
   ========================================================================== */
.testimoni-section {
    background: linear-gradient(135deg, #43a838 0%, #1e9641 50%, #088a44 100%);
    background-image: url('beranda/BACK5.webp');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.testimoni-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    align-items: center;
    gap: 40px;
}

.testimoni-section-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 25px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.testimoni-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.testi-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    color: #333333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testi-card-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.testi-avatar {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.testi-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testi-meta {
    flex: 1;
    min-width: 0;
}

.testi-stars {
    color: #fbc02d;
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.testi-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
    line-height: 1.2;
}

.testi-role {
    font-size: 9px;
    color: #388e3c;
    line-height: 1.2;
}

.testi-quote {
    font-size: 10px;
    line-height: 1.45;
    color: #555555;
    font-style: italic;
}

.testimoni-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.featured-quote-container {
    display: flex;
    align-items: flex-end;
    position: relative;
    width: 100%;
    max-width: 480px;
}

.featured-quote-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px 22px 20px 22px;
    color: #333333;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    width: 62%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.quote-icon {
    color: var(--primary-green-dark);
    font-size: 42px;
    font-family: Georgia, serif;
    line-height: 1;
    display: block;
    margin-bottom: 5px;
}

.quote-headline {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 10px;
}

.quote-body {
    font-size: 11.5px;
    line-height: 1.55;
    color: #444444;
    margin-bottom: 15px;
}

.quote-author strong {
    font-size: 11px;
    color: var(--text-dark);
    display: block;
}

.quote-author small {
    font-size: 9.5px;
    color: #666666;
    display: block;
}

.guru-rasyid-wrap {
    position: absolute;
    right: -15px;
    bottom: -10px;
    width: 55%;
    z-index: 1;
}

.guru-rasyid-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ==========================================================================
   7. FOOTER & KONTAK SECTION
   ========================================================================== */
.footer-section {
    background-color: #ffffff;
    padding: 70px 0 0 0;
    position: relative;
    overflow: hidden;
}

.footer-bg-grid {
    position: absolute;
    inset: 0;
    background-image: url('beranda/BACK 3.webp');
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.6;
    pointer-events: none;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 60px 24px;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.footer-logo {
    width: 220px;
    height: auto;
    margin-bottom: 25px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.contact-text {
    font-size: 13px;
    color: #333333;
    line-height: 1.45;
}

.contact-text a {
    color: var(--primary-green-dark);
    font-weight: 700;
}

.contact-text a:hover {
    text-decoration: underline;
}

.footer-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
}

.logo-hafidz-img {
    width: 230px;
    height: auto;
    object-fit: contain;
}

.santri-frame-img {
    width: 265px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 28px rgba(0, 0, 0, 0.22));
    transition: transform 0.25s ease;
}

.santri-frame-img:hover {
    transform: translateY(-3px) scale(1.02);
}

.copyright-bar {
    background-color: var(--primary-green-dark);
    color: #ffffff;
    text-align: center;
    padding: 15px 20px;
    font-size: 13px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   8. SUBPAGES (PROFILE & PENGURUS YAYASAN)
   ========================================================================== */
/* --- Page Banner --- */
.page-banner {
    position: relative;
    background: linear-gradient(135deg, var(--hero-green-start), var(--hero-green-end));
    background-image: url('header/back1.webp');
    background-size: cover;
    background-position: center;
    padding: 40px 24px 30px 24px;
    text-align: center;
    color: #ffffff;
}

.banner-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.banner-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.banner-logo-yayasan {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.banner-logo-hafidz {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.banner-tagline {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-ribbon {
    max-width: 1100px;
    margin: 20px auto -45px auto;
    position: relative;
    z-index: 5;
}

.banner-ribbon img {
    width: 100%;
    height: auto;
}

/* --- Subpage Content --- */
.subpage-content {
    background-color: #ffffff;
    padding: 70px 0 80px 0;
}

.content-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.subpage-header {
    margin-bottom: 40px;
}

.subpage-title {
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.title-sub {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 26px;
    display: block;
}

.title-main {
    color: var(--primary-green-dark);
    font-weight: 800;
    font-size: 32px;
    display: block;
}

/* Profile Story Grids */
.story-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
}

.story-grid.reverse {
    grid-template-columns: 1fr 1.1fr;
}

.story-text p,
.story-full p {
    font-size: 13.5px;
    line-height: 1.75;
    color: #2c3e35;
    text-align: justify;
}

.story-full {
    margin-bottom: 25px;
}

.story-media {
    display: flex;
    justify-content: center;
}

.story-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    object-fit: cover;
}

/* Info Sections (Legalitas, Visi Misi, Kontak) */
.info-section {
    margin-top: 35px;
}

.section-subheading {
    color: var(--primary-green);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-body-text {
    font-size: 13.5px;
    line-height: 1.7;
    color: #2c3e35;
}

.visi-misi-detail {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vm-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.vm-text {
    font-size: 13.5px;
    line-height: 1.7;
    color: #2c3e35;
}

/* Contact & Location */
.contact-location-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 30px;
    margin-top: 15px;
}

.loc-label {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.maps-box {
    background: #f8faf7;
    border: 1px solid #dceed8;
    border-radius: 12px;
    padding: 16px;
    min-height: 85px;
    display: flex;
    align-items: center;
}

.maps-link {
    color: var(--primary-green-dark);
    font-size: 12.5px;
    font-weight: 600;
    word-break: break-all;
}

.maps-link:hover {
    text-decoration: underline;
}

.loc-text {
    font-size: 13px;
    line-height: 1.6;
    color: #333333;
}

.loc-text a {
    color: var(--primary-green-dark);
    font-weight: 600;
}

.loc-email-title {
    margin-top: 16px;
}

/* --- Pengurus Yayasan Org Tree --- */
.pengurus-page .content-container {
    max-width: 800px;
}

.org-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-top: 10px;
}

.tree-node {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.pengurus-card {
    max-width: 320px;
    width: 100%;
}

.pengurus-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.08));
}

.tree-line-v {
    width: 0;
    height: 40px;
    border-left: 2.5px dotted #777777;
    margin: 2px 0;
}

.tree-branch-container {
    width: 50%;
    height: 35px;
    position: relative;
}

.tree-fork-line {
    width: 100%;
    height: 100%;
    border-top: 2.5px dotted #777777;
    border-left: 2.5px dotted #777777;
    border-right: 2.5px dotted #777777;
}

.tree-row-double {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 700px;
}

.tree-row-double .pengurus-card {
    max-width: 300px;
}

/* --- Footer Contact Link Enhancements --- */
.footer-pin-icon {
    width: 24px;
    height: 24px;
}

.wa-numbers-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.wa-click-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-green-dark);
    font-weight: 700;
    transition: transform 0.2s ease, color 0.2s ease;
}

.wa-click-link:hover {
    color: #128c7e;
    transform: translateY(-1px);
    text-decoration: underline;
}

.wa-sep {
    color: #888888;
}

/* --- Sticky WhatsApp Floating Widget --- */
.wa-sticky-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

.wa-float-btn {
    width: 58px;
    height: 58px;
    background: #25d366;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.wa-float-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
}

.wa-float-icon {
    width: 34px;
    height: 34px;
}

.wa-float-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #1b2e21;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.wa-float-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-width: 5px 0 5px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #1b2e21;
}

.wa-float-btn:hover .wa-float-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(-4px);
}

.wa-popup-box {
    position: absolute;
    bottom: calc(100% + 16px);
    right: 0;
    width: 320px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9) translateY(20px);
    transform-origin: bottom right;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.25s ease;
    z-index: 1000;
}

.wa-popup-box.is-visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.wa-popup-header {
    background: linear-gradient(135deg, #095e35, #088a44);
    color: #ffffff;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wa-popup-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-header-icon {
    width: 30px;
    height: 30px;
}

.wa-popup-title strong {
    display: block;
    font-size: 14px;
    line-height: 1.2;
}

.wa-popup-title span {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.85);
}

.wa-popup-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.wa-popup-close:hover {
    opacity: 1;
}

.wa-popup-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wa-popup-intro {
    font-size: 11.5px;
    color: #555555;
    line-height: 1.4;
    margin: 0;
}

.wa-contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f4faf2;
    border: 1px solid #dceed8;
    border-radius: 12px;
    padding: 10px 12px;
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.wa-contact-btn:hover {
    background: #e8f7e5;
    border-color: #25d366;
    transform: translateY(-2px);
}

.wa-btn-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}

.wa-btn-text {
    flex: 1;
    min-width: 0;
}

.wa-btn-text strong {
    display: block;
    font-size: 12px;
    color: var(--text-dark);
}

.wa-btn-text span {
    font-size: 10px;
    color: #388e3c;
}

.wa-arrow {
    color: #25d366;
    font-size: 14px;
    font-weight: 700;
}

.wa-popup-address {
    background: #fafaf8;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #eeeeee;
    margin-top: 4px;
}

.wa-addr-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.wa-addr-icon {
    width: 14px;
    height: 14px;
}

.wa-popup-address p {
    font-size: 10.5px;
    color: #555555;
    line-height: 1.45;
    margin-bottom: 6px;
}

.wa-maps-link {
    display: inline-block;
    color: #d93025;
    font-size: 10.5px;
    font-weight: 700;
}

.wa-maps-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   10. UNIT DETAILS BREAKDOWN (7 UNITS)
   ========================================================================== */
.unit-details-section {
    background-color: #f7faf6;
    padding: 60px 0 80px 0;
}

.unit-detail-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2eee0;
    margin-bottom: 35px;
    padding: 30px;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 30px;
    align-items: start;
    scroll-margin-top: 100px;
}

.unit-detail-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.unit-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.unit-detail-logo-box {
    width: 75px;
    height: 75px;
    flex: 0 0 75px;
    background: #fbfdfa;
    border-radius: 14px;
    border: 1px solid #e0ece0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.unit-detail-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.unit-detail-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-green-dark);
    line-height: 1.25;
}

.unit-detail-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-green);
    margin-top: 3px;
}

.unit-detail-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fbfdfa;
    border-radius: 14px;
    padding: 16px 18px;
    border: 1px solid #eef5ed;
}

.unit-info-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--primary-green-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.unit-info-val {
    font-size: 13px;
    line-height: 1.55;
    color: #333333;
}

.unit-contact-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.unit-wa-link,
.unit-ig-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-green-dark);
    transition: color 0.2s ease, transform 0.15s ease;
}

.unit-wa-link:hover,
.unit-ig-link:hover {
    color: #128c7e;
    transform: translateY(-1px);
}

.unit-wa-icon,
.unit-ig-icon {
    width: 20px;
    height: 20px;
}

.unit-detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.btn-daftar-unit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #108548, #056934);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 99px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 133, 72, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-daftar-unit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(16, 133, 72, 0.45);
}

.btn-consult-unit {
    display: inline-flex;
    align-items: center;
    background: #eaf7e9;
    color: var(--primary-green-dark);
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 99px;
    border: 1px solid #c8e6c9;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-consult-unit:hover {
    background: #d8f0d6;
    transform: translateY(-2px);
}

.btn-action-icon {
    width: 18px;
    height: 18px;
}

/* Pengajar Box */
.unit-detail-pengajar {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e0ece0;
    overflow: hidden;
}

.pengajar-header {
    background: linear-gradient(135deg, var(--hero-green-start), var(--primary-green-dark));
    color: #ffffff;
    padding: 12px 18px;
    text-align: center;
}

.pengajar-header h4 {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.pengajar-list {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
}

.pengajar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: 8px;
    background: #fbfdfa;
    border: 1px solid #f0f5ee;
    font-size: 12px;
}

.pengajar-nama {
    font-weight: 600;
    color: #2c3e35;
}

.pengajar-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    background: #e8f5e5;
    color: #2e7d32;
    white-space: nowrap;
}

/* ==========================================================================
   11. SMART REGISTRATION MODAL
   ========================================================================== */
.reg-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.reg-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.reg-modal-box {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reg-modal-overlay.is-active .reg-modal-box {
    transform: scale(1) translateY(0);
}

.reg-modal-header {
    background: linear-gradient(135deg, #095e35, #088a44);
    color: #ffffff;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reg-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reg-modal-icon {
    width: 32px;
    height: 32px;
}

.reg-modal-title h3 {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.reg-modal-title p {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}

.reg-modal-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.reg-modal-close:hover {
    opacity: 1;
}

.reg-modal-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12.5px;
    font-weight: 700;
    color: #333333;
}

.form-group .req {
    color: #d93025;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #c8d8c6;
    font-size: 13.5px;
    font-family: inherit;
    color: #222222;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(16, 133, 72, 0.15);
}

.reg-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.btn-reg-submit {
    flex: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #108548, #056934);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 133, 72, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-reg-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 133, 72, 0.45);
}

.btn-wa-icon {
    width: 18px;
    height: 18px;
}

.btn-reg-consult {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #eaf7e9;
    color: var(--primary-green-dark);
    font-size: 13px;
    font-weight: 700;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #c8e6c9;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-reg-consult:hover {
    background: #d8f0d6;
    transform: translateY(-2px);
}

.btn-ui-icon {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    flex: 0 0 17px;
}

.form-hint {
    font-size: 10.5px;
    color: #777777;
    line-height: 1.4;
    text-align: center;
    margin-top: -4px;
}

/* ==========================================================================
   12. BOTTOM 4-ITEM NAVIGATION BAR (MOBILE ONLY)
   ========================================================================== */
.bottom-nav-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
}

.bottom-nav-inner {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #666666;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 10px;
    transition: color 0.2s ease, transform 0.15s ease;
}

.bottom-nav-icon {
    width: 22px;
    height: 22px;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--primary-green-dark);
}

.bottom-nav-item.active {
    font-weight: 800;
}

.bottom-nav-item.active .bottom-nav-icon {
    stroke-width: 2.5;
}

/* ==========================================================================
   13. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .unit-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .unit-backdrop-green {
        height: 220px;
    }
    .hero-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        gap: 16px;
    }
    .header-nav.is-open {
        display: flex;
    }
    .mobile-toggle {
        display: flex;
    }
    
    /* Header Mobile Button */
    .btn-reg-header {
        padding: 7px 14px;
        font-size: 12px;
        gap: 5px;
    }
    .btn-text-desk {
        display: none;
    }
    .btn-text-mob {
        display: inline;
    }

    .hero-container,
    .tentang-container,
    .galeri-container,
    .testimoni-container,
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .unit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .unit-backdrop-green {
        height: 440px;
    }
    .testimoni-grid {
        grid-template-columns: 1fr;
    }
    .testimoni-right {
        margin-top: 30px;
        width: 100%;
    }
    .featured-quote-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
    .featured-quote-card {
        width: 100%;
        max-width: 380px;
        padding: 24px 20px;
        margin: 0 auto;
        position: relative;
        z-index: 2;
    }
    .guru-rasyid-wrap {
        position: relative;
        right: auto;
        bottom: auto;
        width: 220px;
        max-width: 75%;
        margin: -15px auto 0 auto;
        z-index: 1;
        display: flex;
        justify-content: center;
    }
    .guru-rasyid-img {
        width: 100%;
        height: auto;
        display: block;
        filter: drop-shadow(0 10px 20px rgba(0, 50, 20, 0.3));
    }
    .footer-right {
        justify-content: center;
        flex-direction: column;
    }

    /* Subpages Mobile Responsiveness */
    .subpage-content {
        padding: 35px 0 50px 0;
    }
    .subpage-title {
        font-size: 22px;
        text-align: center;
    }
    .title-sub {
        font-size: 18px;
    }
    .title-main {
        font-size: 24px;
    }
    .subpage-header {
        margin-bottom: 25px;
        text-align: center;
    }
    .story-grid,
    .story-grid.reverse {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    .story-grid.reverse .story-media {
        order: 2;
    }
    .story-img {
        max-width: 100%;
        height: auto;
    }
    .story-text p,
    .story-full p,
    .section-body-text,
    .vm-text {
        font-size: 13px;
        line-height: 1.65;
    }
    .contact-location-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .banner-ribbon {
        margin: 15px auto -25px auto;
        padding: 0 10px;
    }
    .banner-tagline {
        font-size: 13px;
    }
    .banner-logo-yayasan {
        height: 45px;
    }
    .banner-logo-hafidz {
        height: 38px;
    }
    .page-banner {
        padding: 30px 16px 20px 16px;
    }

    /* Pengurus Org Tree Mobile */
    .tree-row-double {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .tree-branch-container {
        display: none;
    }

    /* Unit Details Mobile */
    .unit-detail-card {
        grid-template-columns: 1fr;
        padding: 18px;
    }
    .unit-detail-actions {
        flex-direction: column;
    }
    .btn-daftar-unit,
    .btn-consult-unit {
        width: 100%;
        justify-content: center;
    }

    /* Bottom Navigation & Padding on Mobile */
    .bottom-nav-bar {
        display: block;
    }
    body {
        padding-bottom: 85px !important;
    }

    /* Sticky WA on mobile above bottom nav */
    .wa-sticky-widget {
        bottom: 80px;
        right: 16px;
    }
    .wa-popup-box {
        width: calc(100vw - 32px);
        right: 0;
    }
}

@media (max-width: 480px) {
    .brand-logo img {
        height: 40px;
    }
    .header-left {
        gap: 10px;
    }
    .btn-reg-header {
        padding: 6px 10px;
        font-size: 11px;
    }
    .unit-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .unit-backdrop-green {
        height: 480px;
    }
    .hero-title {
        font-size: 32px;
    }
}

/* ==========================================================================
   14. LIGHTBOX MODAL (GALERI & PROFIL YAYASAN)
   ========================================================================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-dialog {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: -42px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
}

.lightbox-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 88vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-overlay.is-open .lightbox-img {
    transform: scale(1);
}

.lightbox-caption {
    color: #f0f0f0;
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
    text-align: center;
    max-width: 500px;
    letter-spacing: 0.02em;
}

.galeri-photo-item img,
.story-img {
    cursor: zoom-in;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.galeri-photo-item:hover img,
.story-img:hover {
    transform: scale(1.03);
    filter: brightness(1.04);
}
