/*
Theme Name: AyoKajian Theme
Description: Custom theme for AyoKajian platform
Version: 1.0
Author: Me
*/

/* Minimalista Base Inspired Layout - FIXED WIDTH */


/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital@1&display=swap');

html {
    font-family: "Inter", sans-serif;

}

html,
body {
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
}

.arabic_type,
.homepage-hero {
    font-family: 'Almarai', sans-serif !important;
}

.hadits-source {
    font-family: "PT Serif", serif;
    font-style: italic;
}

.site-title {
    font-family: "Inter", 'Almarai', sans-serif;
}

:root {
    --max-width: 1280px;
    --margin-header: 1rem 0;
    /*1rem 0 1rem 0*/
    --font-weight : 400;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --brightness-hover: brightness(90%);
    --brightness-darken: brightness(60%);
    --brightness-lighten: brightness(150%);
    --brightness-light: brightness(120%);

    --btn-brigthness: brightness(90%);

    --text-html: #292f38;
    --text-description: #36414f;
    /* #34495E */
    --text-excerpt: #445265;
    /* #34495E */
    --text-crumb: #70788f;
    /* #7F8C8D */
    --text-invert: #292f38;
    /* #7F8C8D */

    --bg-form : #dedede;

    --bg-dark-rgb: 0, 0, 0; /* #fff */
    --bg-white-rgb: 255, 255, 255; /* #fff */
    --bg-body-rgb: 255, 255, 255; /* #fff */
    --bg-map-rgb: 191, 198, 201; /* #bfc6c9 */
    --bg-popup-rgb: 191, 198, 201; /* #bfc6c9 */
    --bg-switch-rgb: 187, 187, 187; /* #BBBBBB */
    --text-html-rgb : 41, 47, 56; /*#292f38*/

    --border-contrast: transparent;
    --bg-body: #ffffff;
    --bg-tag: #e7e7e7;
    
    --icon-sun: #36414f;

    --bg-switch: #BBBBBB;
    --bg-switch-slide: #f8f9fa;

    --bg-light: #eff2f4;
    --bg-thumbnail: #f8f9fa;
    --bg-input: #f7f7f7;
    --bg-input-disable: #d9d9d9;

    --border-light: #e0e0e0;
    --timeline-dot: #4CAF50;

    /* --- Hijau (Success) --- */
    --alert-green-color: #2d7a2d;
    --alert-green-bg: #f0faf0;
    --alert-green-border: #c3e6c3;

    /* --- Kuning (Warning) --- */
    --alert-yellow-color: #7a5c00;
    --alert-yellow-bg: #fffbf0;
    --alert-yellow-border: #ffe9a0;

    /* --- Merah (Error/Danger) --- */
    --alert-red-color: #7a2d2d;
    --alert-red-bg: #faf0f0;
    --alert-red-border: #e6c3c3;

    /* --- Biru (Info) --- */
    --alert-blue-color: #1a5276;
    --alert-blue-bg: #f0f7fa;
    --alert-blue-border: #a9cce3;

    /* --- Abu (Neutral/Default) --- */
    --alert-grey-color: #444;
    --alert-grey-bg: #f5f5f5;
    --alert-grey-border: #ddd;

    /* --- Oranye (Notice) --- */
    --alert-orange-color: #7a3d00;
    --alert-orange-bg: #fffaf0;
    --alert-orange-border: #ffd9a0;

    /* --- Scheme Color --- */
    --alert-scheme-color: #444;
    --alert-scheme-bg: #f5f5f5;
    --alert-scheme-border: #ddd;


    --color-error: #ff0077;
    --color-highlight: #fff9c4;

}

html.high-contrast, html[data-theme="dark"].high-contrast{
    --font-weight : 600!important;

    --primary-color: DodgerBlue!important;
    --link-color: blue!important;
    --link-hover: #e4f56a!important;

    --user-slide-on: blue!important;
    --user-slide-off: grey!important;
    --user-slide-toggle: #fff!important;
    --button-reset: blue!important;

    --bg-dark-rgb: 0, 0, 0!important; /* #fff */
    --bg-white-rgb: 255, 255, 255!important; /* #fff */
    --bg-body-rgb: 255, 255, 255!important; /* #fff */
    --bg-map-rgb: 255, 255, 255!important; /* #bfc6c9 */
    --bg-popup-rgb: 169, 169, 169!important; /* #bfc6c9 */
    --bg-switch-rgb: 187, 187, 187!important; /* #BBBBBB */
    --text-html-rgb : 0, 0, 0!important; /*black*/

    --test-test : DarkGray!important;

    --text-html: black!important;
    --text-description: black!important;
    --border-contrast: black!important;
    --bg-body: white!important;
    --bg-tag: LightGray!important;

    --bg-switch: grey!important;
    --bg-switch-slide: #f8f9fa!important;

    --bg-light: white!important;
    --bg-thumbnail: white!important;

    --icon-sun: white!important;
    --border-light: black!important;
    --timeline-dot: blue!important;

    /* --- Scheme Color --- */
    --alert-scheme-color: #222222!important;
    --alert-scheme-bg: #f5f5f5!important;
    --alert-scheme-border: #222222!important;


    /* --- Hijau (Success) --- */
    --alert-green-color: #006400;
    --alert-green-bg: #f0fff0;
    --alert-green-border: #006400;

    /* --- Kuning (Warning) --- */
    --alert-yellow-color: #8B6914;
    --alert-yellow-bg: #fffff0;
    --alert-yellow-border: #8B6914;

    /* --- Merah (Error/Danger) --- */
    --alert-red-color: #cc0000;
    --alert-red-bg: #fff0f0;
    --alert-red-border: #cc0000;

    /* --- Biru (Info) --- */
    --alert-blue-color: #0000cc;
    --alert-blue-bg: #f0f0ff;
    --alert-blue-border: #0000cc;

    /* --- Abu (Neutral/Default) --- */
    --alert-grey-color: #222222;
    --alert-grey-bg: #f5f5f5;
    --alert-grey-border: #222222;

    /* --- Oranye (Notice) --- */
    --alert-orange-color: #cc5500;
    --alert-orange-bg: #fff8f0;
    --alert-orange-border: #cc5500;

    --color-error: #ff0000;
    --color-highlight: #fff9c4;



}

html.high-contrast[data-scheme="blue"]{
    --primary-color: DodgerBlue!important;
    --link-color: blue!important;

    --user-slide-on: blue!important;

    --button-reset: blue!important;


    --timeline-dot: blue!important;

    /* --- Scheme Color --- */
    --alert-scheme-color: black!important;
    --alert-scheme-bg: #f5f5f5!important;
    --alert-scheme-border: blue!important;



    --bg-input: white!important;
    --bg-input-disable: LightGray!important;
    --text-excerpt: black!important;

    --color-error: blue;
    --color-highlight: #fff9c4;


}

html.high-contrast[data-scheme="sepia"]{
    --primary-color: Peru!important;
    --link-color: Sienna!important;

    --user-slide-on: Sienna!important;

    --button-reset: Sienna!important;


    --timeline-dot: Sienna!important;

    --alert-blue: Sienna!important;
    --bg-input: white!important;
    --bg-input-disable: LightGray!important;
    --text-excerpt: black!important;

        /* --- Scheme Color --- */
    --alert-scheme-color: black!important;
    --alert-scheme-bg: #f5f5f5!important;
    --alert-scheme-border: Sienna!important;


    --color-error: #ff0000;
    --color-highlight: #fff9c4;

}


html.high-contrast[data-scheme="green"]{
    --primary-color: LimeGreen!important;
    --link-color: green!important;

    --user-slide-on: green!important;

    --button-reset: green!important;


    --timeline-dot: green!important;

        /* --- Scheme Color --- */
    --alert-scheme-color: black!important;
    --alert-scheme-bg: #f5f5f5!important;
    --alert-scheme-border: green!important;


    --bg-input: white!important;
    --bg-input-disable: LightGray!important;
    --text-excerpt: black!important;
}

html[data-scheme="green"] {
    --primary-color: #4CAF50;
    --link-color: #7cc38d;
    --link-hover: #e4f56a;

    /* --- Scheme Color --- */
    --alert-scheme-color: #2d7a2d!important;
    --alert-scheme-bg: #f0faf0!important;
    --alert-scheme-border: #c3e6c3!important;


    --user-slide-on: #4CAF50;
    --user-slide-off: #d1d5db;
    --user-slide-toggle: #fff;
    --button-reset: #292f38;
}

html[data-scheme="blue"] {
    --primary-color: #2563eb;
    --link-color: #3b82f6;

    /* --- Scheme Color --- */
    --alert-scheme-color: #1a5276!important;
    --alert-scheme-bg: #f0f7fa!important;
    --alert-scheme-border: #a9cce3!important;

    --user-slide-on: #2563eb;
    --user-slide-off: #d1d5db;
    --user-slide-toggle: #fff;
    --button-reset: #292f38;
}

html[data-scheme="sepia"] {

    --button-reset: #4a3a23;
    --user-slide-on: #a16207;
    --user-slide-off: #c6ba9a;
    --user-slide-toggle: #fff;

    --bg-body: #fbf6e8;
    --bg-light: #e8dec2;
    --text-html: #3b2f1e;
    --text-description: #4a3a23;
    --primary-color: #a16207;
    --link-color: #856e5e;

    --icon-sun: #4a3a23;

    --border-light: #c6bba0;
    --text-crumb: #625c4f;
    --bg-thumbnail: #dfd7c2;
    --text-invert: #6f5849;
    --bg-tag: #c4beab;
    --text-excerpt: #493a23;
    --bg-switch: #a49d89;

    --alert-grey-accent:#988d70 ;
    --alert-grey: #e0d8c3;

    --bg-dark-rgb: 21, 17, 11;  /* #15110b */
    --bg-white-rgb: 255, 255, 255;
    --bg-body-rgb: 251, 246, 232;  /* #fbf6e8 */
    --bg-map-rgb:  152, 141, 112; /* #988d70 */
    --bg-popup-rgb: 204, 190, 157; /* #ccbe9d */
    --bg-switch-rgb: 164, 157, 137; /* #a49d89 */
    --text-html-rgb : 59, 47, 30; /*#3b2f1e*/

    
    --bg-input: #f2eee3;
    --bg-input-disable: #d7d4cb;

    /* --- Scheme Color --- */
    --alert-scheme-color: #7a3d00!important;
    --alert-scheme-bg: #fffaf0!important;
    --alert-scheme-border: #c9ad75!important;

    /* --- Hijau (Success) --- */
    --alert-green-color: #2d5e2d;
    --alert-green-bg: #eef5e8;
    --alert-green-border: #b8d9b0;

    /* --- Kuning (Warning) --- */
    --alert-yellow-color: #6b4e00;
    --alert-yellow-bg: #f5edcc;
    --alert-yellow-border: #e0c87a;

    /* --- Merah (Error/Danger) --- */
    --alert-red-color: #6b2525;
    --alert-red-bg: #f5e8e8;
    --alert-red-border: #d9a0a0;

    /* --- Biru (Info) --- */
    --alert-blue-color: #1a4a6b;
    --alert-blue-bg: #e8f0f5;
    --alert-blue-border: #90b8d4;

    /* --- Abu (Neutral/Default) --- */
    --alert-grey-color: #4a4035;
    --alert-grey-bg: #f0ebe0;
    --alert-grey-border: #d4c9b0;

    /* --- Oranye (Notice) --- */
    --alert-orange-color: #6b3300;
    --alert-orange-bg: #f5ead8;
    --alert-orange-border: #e0b87a;

    --color-error: #a82d2d;
    --color-highlight: #d2c191;


}
html[data-theme="dark"]{
   
    --btn-brigthness: brightness(130%);

    /* --- Hijau (Success) --- */
    --alert-green-color: #7dd87d;
    --alert-green-bg: #0d2e0d;
    --alert-green-border: #1e5c1e;

    /* --- Kuning (Warning) --- */
    --alert-yellow-color: #f0c040;
    --alert-yellow-bg: #2a2000;
    --alert-yellow-border: #5a4400;

    /* --- Merah (Error/Danger) --- */
    --alert-red-color: #e08080;
    --alert-red-bg: #2a0d0d;
    --alert-red-border: #5c1e1e;

    /* --- Biru (Info) --- */
    --alert-blue-color: #70b8e0;
    --alert-blue-bg: #0a1e2a;
    --alert-blue-border: #1e4a6b;

    /* --- Abu (Neutral/Default) --- */
    --alert-grey-color: #b0c0b8;
    --alert-grey-bg: #0f1f20;
    --alert-grey-border: #1e3a3b;

    /* --- Oranye (Notice) --- */
    --alert-orange-color: #e0a060;
    --alert-orange-bg: #2a1500;
    --alert-orange-border: #5a3000;
}

html[data-theme="dark"][data-scheme="blue"] {
    /* --- Scheme Color --- */
    --alert-scheme-color: #70b8e0!important;
    --alert-scheme-bg: #0a1e2a!important;
    --alert-scheme-border: #1e4a6b!important;

    --user-slide-on: #4364b0;
    --user-slide-off: #2a3859;
    --user-slide-toggle: #ced8ee;

    --brightness-darken: brightness(80%);
    --primary-color: #71B8DB;

    --link-color: #8AC6DD;
    --link-hover: #2395AF;

    --text-html: #aedeed;
    --text-description: #83b7ca;
    --text-excerpt: #63a6ba;
    --text-crumb: #3f8099;
    --text-invert: #085175;
    --button-reset: #092236;

    --bg-dark-rgb: 5, 17, 27;/* #05111b */
    --bg-white-rgb: 255, 255, 255;
    --bg-body-rgb: 10, 41, 65;/* #0a2941 */
    --bg-map-rgb: 25, 72, 110; /* #19486e */
    --bg-popup-rgb: 10, 41, 65; /* #0a2941 */
    --bg-switch-rgb: 39, 87, 125; /* #27577d */
    --text-html-rgb : 174, 222, 237; /*#aedeed*/

    --icon-sun: #83b7ca;
    --bg-body: #0a2941;
    --bg-tag: #13405e;
    --bg-input: #0b2e49;
    --bg-input-disable: #144367;

    --bg-switch: #27577d;
    --bg-switch-slide: #6c9cbc;


    --bg-light: #0e2e46;
    --bg-thumbnail: #092439;

    --border-light: #2d4d7e;

    --timeline-dot: #4da6d2;

 
    --color-error: #428dc8;
    --color-highlight: #124166;


}


html[data-theme="dark"][data-scheme="green"] {
    

    --user-slide-on: #37a88e;
    --user-slide-off: #135855;
    --user-slide-toggle: #9fdbba;

    --brightness-darken: brightness(80%);

    --primary-color: #b2f4d6;

    --link-color: #8addcc;
    --link-hover: rgba(33, 177, 122, .5);

    --text-html: #6db19b;
    --text-description: #75b09c;
    --text-excerpt: #5d907f;
    --text-crumb: #3da183;
    --text-invert: #11635d;
    --button-reset: #053233;
    --bg-input: #0f4f50;
    --bg-input-disable: #1c696a;

    --bg-dark-rgb: 6, 26, 26; /* #061a1a */
    --bg-white-rgb: 255, 255, 255;
    --bg-body-rgb: 10, 64, 65; /* #0a4041 */
    --bg-map-rgb: 10, 58, 59; /* #0a3a3b */
    --bg-popup-rgb: 18, 85, 78; /* #12554e */
    --bg-switch-rgb: 39, 125, 110; /* #277d6e */
    --text-html-rgb : 109, 177, 155; /*#6db19b*/

    --icon-sun: #75b09c;

    --bg-body: #0a4041;
    --bg-tag: #216562;

    --bg-switch: #277d6e;
    --bg-switch-slide: #6bbfa9;


    --bg-light: #104647;
    --bg-thumbnail: #093939;

    --border-light: #245f60;

    --timeline-dot: #4ca798;

    /* --- Scheme Color --- */
    --alert-scheme-color: #6eb19b!important;
    --alert-scheme-bg: #062e2f!important;
    --alert-scheme-border: #116162!important;

    --color-error: #37a9ab;
    --color-highlight: #196162;
}



html[data-theme="dark"][data-scheme="sepia"] {
    
    --button-reset: #3e3529;
    --user-slide-on: #463113;
    --user-slide-off: #545045;
    --user-slide-toggle: #a6957c;

    --bg-body: #28221a;
    --bg-light: #221c14;
    --text-html: #958a75;
    --primary-color: #e7dcc7;
    --bg-thumbnail: #211b14;
    --border-light: #37332d;
    --text-excerpt: #71695b;
    --text-invert: #443830;
    --bg-switch-slide: #7e7d77;
    --bg-switch: #454440;
    --text-description: #817158;
    --link-color: #867b6a;

    --alert-grey: #282623;
    
    --timeline-dot: #947149;
    --button-reset: #2e261c;

    --icon-sun: #817158;
    --bg-input: #221d16;
    --bg-input-disable: #2b2b28;



    /* --- Scheme Color --- */
    --alert-scheme-color: #958a75!important;
    --alert-scheme-bg: #211c16!important;
    --alert-scheme-border: #463b2c!important;

    --bg-dark-rgb: 0, 0, 0;
    --bg-white-rgb: 255, 255, 255;
    --bg-body-rgb: 27, 22, 16;  /* #1b1610 */
    --bg-map-rgb: 71, 61, 46; /* #473d2e */
    --bg-popup-rgb: 51, 43, 32; /* #2a231a */
    --bg-switch-rgb: 69, 68, 64; /* #454440 */
    --text-html-rgb : 149, 138, 117; /*#6db19b*/

    --bg-tag: #403629;

    --color-error: #71570f;
    --color-highlight: #342d23;

}


/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/*USER SETTING*/
.hide-kajian-thumbnail .js-kajian-thumb,
.hide-pengkaji-thumbnail .js-pengkaji-thumb,
.hide-tempat_kajian-thumbnail .js-tempat_kajian-thumb,
.hide-entitas-thumbnail .js-entitas-thumb,
.hide-buku-thumbnail .js-buku-thumb {
    display: none;
}

.hide-kajian-thumbnail .js-kajian-single-thumb *,
.hide-kajian-thumbnail .sumber-wrapper,
.hide-pengkaji-thumbnail .js-pengkaji-single-thumb *,
.hide-pengkaji-thumbnail .sumber-wrapper,
.hide-tempat_kajian-thumbnail .js-tempat_kajian-single-thumb *,
.hide-tempat_kajian-thumbnail .sumber-wrapper,
.hide-entitas-thumbnail .js-entitas-single-thumb *,
.hide-entitas-thumbnail .sumber-wrapper,
.hide-buku-thumbnail .js-buku-single-thumb *,
.hide-buku-thumbnail .sumber-wrapper {
    display: none;
}

.hide-kajian-thumbnail .js-kajian-single-thumb::before,
.hide-pengkaji-thumbnail .js-pengkaji-single-thumb::before,
.hide-tempat_kajian-thumbnail .js-tempat_kajian-single-thumb::before,
.hide-entitas-thumbnail .js-entitas-single-thumb::before,
.hide-buku-thumbnail .js-buku-single-thumb::before {
    content: 'Gambar Disembunyikan';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: .875rem;
    opacity: .5;
    text-align: center;
    pointer-events: none;
}

.hide-buku-thumbnail .buku-container .list-card {
    grid-template-columns: 1fr;
}

.blur-pengkaji-photo .js-pengkaji-thumb img,
.blur-pengkaji-photo .js-pengkaji-single-thumb img,
.blur-pengkaji-photo img.js-popup-pengkaji {
    filter: blur(14px);
}

html.large-text {
    font-size: 112.5%;
    /* ~18px dari 16px */
}

.high-contrast {
    filter: contrast(1.2);
}

html {
    font-weight: --font-weight;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

.arabic_type {
    font-weight: 600;
    color: var(--text-crumb) !important;
    direction: rtl;
    font-style: normal;
}

.display_block {
    display: block;
}

small.arabic_type,
.text-description .arabic_type:not(.no-shrink) {
    font-size: .8rem !important;
    letter-spacing: 0;
}

html {
    scroll-behavior: smooth;
    color: var(--text-html);
}

body {
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== TYPOGRAPHY SCALE - ALL SANS-SERIF ===== */
h1,
h2,
h3,
h4,
h5,
h6,
.main-menu a,
.grid-thumbnail {
    /*font-family: "arimo", sans-serif;*/
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.2em;
}

h1 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-weight: 600;
    letter-spacing: -0.01em;
}

h3 {
    font-weight: 600;
}

h4 {
    font-weight: 600;
}

h5 {
    font-weight: 600;
}

h6 {
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

::placeholder {
    font-style: italic;
    opacity: .4;
    /* Firefox punya opacity default */
}

.section-content a {
    /*margin: 1rem 0;*/
}


/* ===== SECTION  ===== */
section {
    max-width: var(--max-width);
    margin: 0 auto 2rem auto;
    /*margin: 0 auto 1rem auto;*/
    padding: 0 2rem;
}

section.section-with-sidebar {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    align-items: start;
    /*min-height: 400px;*/
    position: relative;
    /*margin-top: 2rem;*/
}

section.section-with-sidebar.small-sidebar {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
    /*min-height: 400px;*/
    position: relative;
    /*margin-top: 2rem;*/
}

section.large-video {
    grid-template-columns: 360px 1fr;
    padding: 0;
    gap: 1rem;
}

section.no-gap {
    margin-top: 0;
    padding-top: 0;
}


section.section-single {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    position: relative;
    margin-bottom: 2rem;
}


.section-tersemat {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1rem 2rem !important;
    background: var(--bg-light);
}

/* ===== LINK ===== */
/* Generic Link  */
.breadcrumb a,
a.generic-link,
a.playlist-link,
a.external-link,
.main-menu li a,
a.meta-link,
.site-title a,
.site-footer li a,
.grid-card a,
.section-content a {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.meta-tag:hover,
.breadcrumb a:hover,
a.generic-link:hover,
a.playlist-link,
a.external-link:hover,
.main-menu li a:hover,
a.meta-link:hover,
.site-title a:hover,
.site-footer li a:hover,
.grid-card a:hover,
.section-content a:hover {
    filter: var(--brightness-hover);
}

.grid-video a:hover {
    filter: var(--brightness-lighten);
}

.main-menu li a,
.site-footer li a {
    color: var(--text-html);
}

/* Header & Footer menu */
.main-menu li a:hover,
.site-footer li a:hover,
.main-menu li.active a,
.site-footer li.active a {
    color: var(--primary-color);
}

.main-menu .active>a,
.footer-menu .active>a {
    pointer-events: none;
    cursor: default;
    filter: var(--brightness-hover);
}

/* z-index */
.site-header {
    z-index: 1300;
}

.card-label,
.menu-toggle {
    z-index: 1100;
}

.filter-sidebar {
    z-index: 1000;
}

.grid-thumbnail,
.social-media-list a,
.social-media-list button {
    z-index: 1000;
}

.social-media-list a:hover,
.social-media-list button:hover {
    z-index: 1010;
}

.menu-toggle,
    {
    z-index: 1400;
    position: relative;
}

body.menu-open .main-navigation,
.main-menu.active {
    z-index: 1300;
}


/* WARNA / COLOR */
.thumb_title {
    color: var(--text-excerpt) !important;
}

.text-description {
    color: var(--text-description) !important;
}

.text-excerpt {
    color: var(--text-excerpt) !important;
}

.meta-template {
    margin-top: .5rem;
    display: block;
}

input,
select,
.filter-trigger {
    color: var(--text-html);
}


/* Font Size */
html {
    font-size: 16px;
}

body {
    font-size: .875rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

.card-label,
.meta-tag {
    /*font-size:0.875rem!important;*/
    font-size: 0.75rem !important;
}

.admin-label {
    cursor: pointer;
    top: 10px !important;
    bottom: unset !important;
}

.admin-label.admin-newpost {
    z-index: 4000 !important;
    position: fixed !important;
    top: unset !important;
    bottom: 3rem !important;
}

.pagination{
    font-size: 1rem;
}

.honorific,
.praise {
    font-size: .8rem;
}

.praise.arabic_type {
    letter-spacing: normal !important;
}



.big_praise {
    font-size: 1.5rem!important;
}

.copyright,
.footer-stats {
    font-size: .8rem;
}

.main-menu li a,
.grid-card a,
.list-card a {
    font-size: .875rem;
}

.site-footer,
.searchform #s,
.list-card-description,
.filter-search,
.filter-option label,
.filter-select,
.filter-date,
.alert,
.btn-reset,
.range-values {
    font-size: .875rem;
}



.filter-toggle-icon,
.grid-thumbnail,
.site-description,
.list-card-content h3,
.grid-card h2,
.grid-card h3,
.site-footer h3,
.filter-sidebar h4 {
    font-size: 1.2rem;
}

#logo_svg {
    width: 50px;
    height: 50px;
    padding-top: 11px;
}

#logo_svg path {
    fill: var(--link-color);
}

.meta_data svg.placeholder-icon {
    width: 100%;
    height: 100%;
}

.header-title,
.filter-sidebar h3 {
    font-size: 1rem;
}

.front-title,
.post-title,
.data-sidebar h1,
.homepage-hero h1,
.homepage-hero p {
    font-size: 1.5rem;
}


.site-title {
    font-size: 1.8rem;
}


/* ===== HEADER ===== */
.site-header {
    border-bottom: 1px solid var(--border-light);
    padding: 2rem 0;
    background: var(--bg-body);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    transition: all .25s ease;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    /* sejajar vertikal */
    gap: 3rem;
    /* pastikan tidak ada jarak */
}



.site-branding,
.nav-container,
.header-search,
.nav-toggle {
    flex: 0 0 auto;
    /* jangan melebar sendiri */
}

.nav-container {
    margin-right: auto;
    margin-left: 1rem;
}

.site-logo {
    max-height: 50px;
}

.site-logo img {
    height: 50px;
    width: auto;
    max-width: 200px;
}

.site-title {
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    text-decoration: none;
    font-weight: 700;
}

.site-description {
    font-weight: 300;
}


.calendar {
    margin: 0 1rem;
    font-style: italic;
}

.flatpickr-calendar.static.open {
    z-index: 1001 !important;
}

/* Jadwal Mingguan */
.jadwal-mingguan-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
}

.jadwal-mingguan-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    table-layout: fixed;
}

.jadwal-col-header {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid var(--border-light);
    background: rgba(var(--text-html-rgb), 0.04);
    white-space: nowrap;
}

.jadwal-col-header.today {
    background: rgba(var(--text-html-rgb), 0.1);
    font-weight: 600;
}

.jadwal-day-name {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
}

.jadwal-day-date {
    display: block;
    font-size: 0.75rem;
    opacity: 0.7;
}

.jadwal-col {
    vertical-align: top;
    padding: 0.5rem;
    border: 1px solid var(--border-light);
    min-height: 80px;
}

.jadwal-col.today {
    background: rgba(var(--text-html-rgb), 0.03);
}

.jadwal-kosong {
    color: rgba(var(--text-html-rgb), 0.3);
    display: block;
    text-align: center;
    padding: 1rem 0;
}

.jadwal-kajian-item {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    border-left: 3px solid var(--border-light);
    font-size: 0.85rem;
}

.jadwal-kajian-item.kajian-rutin {
    border-left-color: var(--alert-green-border);
}

.jadwal-kajian-item.kajian-tematik {
    border-left-color: var(--alert-blue-border);
}

.jadwal-kajian-title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.jadwal-kajian-meta {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.jadwal-kajian-time {
    font-style: italic;
}

/* Navigasi minggu */
.jadwal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
}

.jadwal-nav-label {
    font-size: 0.85rem;
    opacity: 0.7;
    text-align: center;
}

/* Mobile */
@media (max-width: 768px) {
    .jadwal-mingguan-table {
        min-width: 500px;
    }
    .jadwal-kajian-item {
        font-size: 0.75rem;
    }
}

/* ===== NAVIGATION ===== */

.filters-wrap {
    display: flex;
    width: 100%;
    gap: 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 10px 20px;
    background: var(--bg-light);
    border-radius: 12px;
}


.filter-group {
    position: relative;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;

}

.main-menu {
    display: flex;
    list-style: none;
    gap: .8rem;
    margin: 0;
    padding: 0;
    top: -2px;
    position: relative;
}

.main-menu li a {
    font-weight: 500;
    text-transform: initial;
    text-decoration: none;
    position: relative;
    border-radius: 12px;
    padding: .8rem;
}

.main-menu li a:hover {
    background: var(--bg-thumbnail);
    filter: unset;

}

.menu-item {
    position: relative;
}

/* SUBMENU DEFAULT TERTUTUP */
.submenu {
    display: none;
    list-style: none;
    padding: 8px 0;
}

.menu-item.open>.submenu li a {
    display: flex;
    padding: 10px 30px;
    margin: 0 10px;
}

/* HANYA buka jika diklik */
.menu-item.open>.submenu {
    display: block;
    position: absolute;
    background: var(--bg-body);
    z-index: 1001;
    border-radius: 12px;
    top: 3.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* default: selalu tersembunyi */
.menu-item.has-submenu>.submenu {
    display: none;
}

/* hanya OPEN yang membuka submenu */
.menu-item.has-submenu.open>.submenu {
    display: block;
}

/* ACTIVE STYLE */
.submenu li.active>a {
    font-weight: 600;
}


.chevron-down {
    width: 14px;
    height: 14px;
    margin-left: 6px;
    transition: transform .25s ease;
    transform: rotate(0deg);
}

/* Saat submenu terbuka → UP */
.menu-item.has-submenu.open .chevron-down {
    transform: rotate(180deg);
}



/* =====  FOOTER ===== */
.site-footer {
    background: var(--bg-body);
    border-top: 1px solid var(--border-light);
    margin-top: 80px;
    padding: 40px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 4-COLUMN GRID */
.footer-top {
    padding-bottom: 40px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
}

.footer-column {
    margin-bottom: 0;
}

.footer-title {
    color: var(--text-html);
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* MENU MINIMAL */
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu li a {
    display: block;
    text-decoration: none;
    padding: 4px 0;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.footer-menu li a:hover {
    color: var(--link-color);
}

.footer-menu li.active a {
    color: var(--link-color);
    font-weight: 500;
    position: relative;
}

.footer-menu a:hover {
    transform: translateX(4px);
}

/* BOTTOM SECTION */
.footer-bottom {
    padding-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    line-height: 1.5;
}

.footer-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-stats span:nth-child(2n) {
    opacity: 0.5;
}


/*Toggle User Setting*/
.setting-row {
    display: grid;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 1rem 0;
    grid-template-columns: 1fr 50px;
    border-bottom: solid 1px var(--border-light);
}


/* switch */
.switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    background: var(--user-slide-off);
    border-radius: 999px;
    transition: .2s;
}

.slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background: var(--user-slide-toggle);
    border-radius: 50%;
    transition: .2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.switch input:checked+.slider {
    background: var(--user-slide-on);
    /* warna aktif */
}

.switch input:checked+.slider::before {
    transform: translateX(20px);
}

.user_setting_container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 360px));
    gap: 2rem;
}

.login-container, .registrasi-container {
    max-width: 400px;
    margin: 0 auto;
}

.switch.row-disabled {
    filter: opacity(.3);
}

/* DARK MODE */
[data-theme="dark"] .site-footer {
    background: var(--bg-body);
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .footer-top {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .footer-title {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.setting-title {
    margin: .5rem 0;
}

/* ===== Mobile Menu (iPhone) ===== */
/* menu hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    min-width: 24px;
    min-height: 24px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--link-color);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}




/* Animasi untuk menu mobile */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Transisi smooth untuk semua state */
.main-menu li a,
.menu-toggle span,
.main-menu {
    transition: all 0.3s ease;
}



/* =====  HEADER SEARCH FORM ===== */
.header-search {
    display: flex;
    align-items: center;
}



.searchform {
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--bg-thumbnail);
    border-radius: 12px;
    border: none;
    height: 2.5rem;
    width: 0;
    padding: 0;
    width: 250px;
    padding: 10px;
    border: solid 1px var(--border-contrast);
}

.searchform #searchsubmit svg path {
    fill: var(--bg-switch);
}

.searchform #s {
    background: rgba(0, 0, 0, 0);
    border: none;
    outline: none;
}

.searchform:has(#s:focus) {
    outline: none;
    background-color: var(--bg-light);
}

.searchform #searchsubmit {
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: static;
    background-color: transparent;
}

.search-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}



.header-search {
    position: relative;
}

.search-scope {
    display: none;
}

.search-scope button {
    min-width: 90px;
}

.searchform {
    position: relative;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-scope {
    margin-top: 1rem;
    display: none;
    margin-bottom: 1rem;
}

.site-header {
    position: relative;
}

.site-header {
    min-height: 127px;
    /* atau tinggi normal header */
}

.search-wrap {
    position: relative;
}



.site-branding {
    grid-column: 1;
    grid-row: 1;
    padding-top: 3px;
}

.header-search {
    grid-column: 2;
    grid-row: 1;
}

.nav-toggle {
    grid-column: 3;
    grid-row: 1;
}

.search-scope {
    z-index: 10;
}

.search-wrap:focus-within .search-scope {
    display: flex;
}

.search-wrap:focus-within #logo_svg {
    padding-top: 0px;
}

.search-wrap:focus-within {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}



/*.search-wrap:focus-within {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
}
*/
.search-wrap:focus-within {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    z-index: 1000;

    /* visual tetap */
    background: var(--bg-body);
    border-radius: 12px;
    padding: 20px 32px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);

    align-items: start;
    outline: 1px solid var(--border-light);
}

.search-wrap:focus-within:has(#logo_svg) {
    top: 20px;
}

.search-wrap:focus-within #s {
    width: 100%;
}

.site-title a {
    position: relative;
    top: -6.5px;
}


.search-wrap:focus-within .menu-toggle {
    position: relative;
    top: 9px;

}


.search-wrap:focus-within .site-title a {
    top: unset;
}

.search-wrap:focus-within .switch {
    padding-top: 7px;
}

.search-wrap:focus-within .site-branding {
    padding-top: 0px;
}



.search-wrap:focus-within .search-scope {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.search-wrap:focus-within .nav-container {
    display: none;
}

.search-wrap:focus-within .header-search {
    grid-column: 2 / 3;
    width: 100%;
}



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



@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.search-wrap:focus-within .searchform {
    width: 100%;
    animation: fadeIn .3s ease-out;
}

.site-header:has(.search-wrap:focus-within) {
    animation: fadeIn .3s ease-out;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .2));

}

.search-wrap:focus-within #s {
    width: 100%;
    min-width: 0;
    flex: 1;
}

.search-scope button {
    background: var(--bg-light);
    color: var(--text-crumb);
    border: none;
    border-radius: 6px;
    padding: .5rem 1rem;
    font-size: 14px;
    cursor: pointer;
}

.search-scope button.active {
    background: var(--text-invert);
    color: var(--bg-switch-slide);
}

/* =====  HOMEPAGE ===== */
.homepage-hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.homepage-hero h1 {
    margin-bottom: 1rem;
    font-weight: 700;
}

.homepage-hero p {
    margin-bottom: 2rem;
    opacity: 0.9;
}


/* KOLOM 1: IMAGE */
.list-card-image {
    width: 100%;
    aspect-ratio: 1/1;
    /* Membuat kotak persegi */
    border-radius: 8px;
    overflow: hidden;
}

.list-card-thumbnail {
    background: rgba(var(--bg-popup-rgb), .8) !important;
    border-radius: 12px;
}

.list-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    border-radius: 1rem;
}

.list-card-thumbnail:has(.list-card-empty) {
    max-height: 130px;
}

/* KOLOM 2: CONTENT */
.list-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list-card-content h3 {
    margin-bottom: 0 !important;
}

.list-card.referensi-card {
    grid-template-columns: 150px 1fr;
}

.list-card.referensi-card .grid-thumbnail {
    border: none !important;
    height: auto;
}


.list-card-title,
.list-card-content h3 {
    margin: 0;
    font-weight: 600;
}

.list-card-description {
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Limit 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* META INFO */
.list-card-meta {
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
    gap: .5rem;
}

.meta-tag {
    display: inline-flex !important;
    align-items: center;
    color: var(--text-description) !important;
    background: var(--bg-tag);
    padding: 4px 10px;
    border-radius: 20px;
    gap: 5px;
    /*margin: .5rem .5rem .5rem 0;*/
    margin: .5rem .5rem 0 0;
    line-height: 1.2rem;
    text-decoration: none;
    transition: transform .3s ease;
}


.list-card .meta-tag {
    max-width: 220px;
    min-width: 0;

}

.list-card .meta-tag .meta-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.meta-tag svg {
    flex-shrink: 0;
}

.btn.meta-tag {
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn.meta-tag:hover {
    background: var(--bg-tag);
    filter: var(--brightness-hover);
    transform: scale(1.1);
}

.btn-setting {
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: .9rem;
    transition: .2s;
    width: auto;
}



.buku-container .meta-tag i {
    max-width: 140px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
}


.no-ellipsis {
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: clip !important;
}

/* SVG Styling */
.meta-tag svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    fill: currentColor;
    opacity: 0.8;
}

.inline-header {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.green {
    background: #d4edda;
}

.yellow {
    background: #fff3cd;
}

.red {
    background: #f8d7da;
}

.grey {
    background: var(--bg-light);
}


/* ACTIONS */
.list-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}


.list-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: var(--bg-thumbnail);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;

}


/* =====   LIST ===== */
.list-container {
    display: block;
    grid-template-columns: 1fr !important;
}

/* =====   GRID ===== */
.grid-container,
.list-container,
.grid-buletin {
    display: grid;
    gap: 1.2rem;
    width: 100%;
}

.single-grid {
    grid-template-columns: 1fr !important;
}

.double-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

.grid-buku {
    grid-template-columns: repeat(2, 1fr) !important;
}

.triple-grid {
    grid-template-columns: repeat(3, minmax(250px, 1fr));
}

/* Archive Grid header melebar contoh AL-furqon */
.quadruple-grid {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.grid-container.draggable-grid {
    display: grid;
    grid-auto-flow: column;
    gap: 16px;
    overflow-x: auto;
    grid-template-columns: unset !important;
}

.grid-container.draggable-grid.medium-grid {
    grid-auto-columns: minmax(240px, 260px) !important;
}

.grid-container.draggable-grid.posters-grid {
    grid-auto-columns: minmax(200px, 200px) !important;
}


.grid-container.draggable-grid .grid-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}


.quadruple-grid-wide {
    grid-template-columns: repeat(4, minmax(250px, 1fr));
}

/*html[data-grid="list"] .kajian-container {
    grid-template-columns: repeat(3, minmax(250px, 1fr));
}

html[data-grid="list"] .kajian-container .grid-card .meta_data {
    padding: 0;
}

html[data-grid="list"] 
.kajian-container .grid-card {
    display: grid;
    grid-template-columns: 140px 1fr;
}
html[data-grid="list"] 
.kajian-container .grid-thumbnail{
    height: 150px;
}
*/
.quintuple-grid {
    grid-template-columns: repeat(5, minmax(160px, 1fr));
}

.grid-card.double-grid-250 {
    display: grid;
    gap: 1rem;
    grid-template-columns: 140px 140px 140px 140px 140px;
}

/*Scroll*/
.draggable-grid {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    /*-webkit-overflow-scrolling: touch;*/

}


.draggable-grid {
    padding: 15px;
    margin: -15px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    overflow-x: auto;

}

/* =========================
   MOBILE / TOUCH DEVICE
========================= */
@media (pointer: coarse) {
    .draggable-grid {
        display: flex;
        gap: 16px;

        cursor: auto;

        user-select: auto;
        -webkit-user-select: auto;

        overflow-x: auto;
        overflow-y: visible;
        /*-webkit-overflow-scrolling: touch;*/
    }

    .draggable-grid {
        scroll-behavior: smooth;
        scroll-snap-type: none;
        /* bukan proximity */
    }

    .draggable-grid {
        cursor: auto;
        user-select: auto;
        -webkit-user-select: auto;
    }

    ;

    .grid-card {
        flex: 0 0 240px;
        /* FIXED WIDTH */
        scroll-snap-align: start;
    }

    .draggable-grid {
        margin-block: 12px;
    }
}

.draggable-grid img,
.draggable-grid a {
    pointer-events: auto;
}

.draggable-grid.is-dragging img,
.draggable-grid.is-dragging a {
    pointer-events: none;
}

.draggable-grid a,
.draggable-grid img {
    -webkit-user-drag: none;
    user-drag: none;
    draggable: false;
}

.draggable-grid.elastic {
    scroll-behavior: smooth;
}

.grid-card {
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}

/*
.draggable-grid.dragging {
    cursor: grabbing;
}

.draggable-grid:active {
    cursor: grabbing;
}

.draggable-grid.elastic {
    transition: transform .42s cubic-bezier(0.22, 0.61, 0.36, 1);
}


.draggable-grid a,
.draggable-grid img {
    -webkit-user-drag: none;
    user-drag: none;
    draggable: false;
}

.draggable-grid.native-scroll {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;

  user-select: auto;
  -webkit-user-select: auto;
  cursor: auto;
}*/

.youtube-embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.youtube-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Play icon overlay */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.youtube-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.youtube-button .button-text {
    color: white !important;
    font-weight: 400;
    letter-spacing: 0px;
}

.iconify.youtube-logo {
    flex-shrink: 0;
    vertical-align: middle !important;
    fill: white;
    display: inline-flex;
    margin-left: 5px;
}

.youtube-logo path {
    fill: white;
}


.grid-card {
    border-radius: 0;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    position: relative;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
}

.grid-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}


.grid-card a,
.list-card a {
    display: block;
    font-weight: 500;
    text-align: left;
    transition: all 0.3s ease;
}

.grid-card:not(.data-inaktif, .grid-video) a:not(.meta-tag):hover,
.list-card:not(.data-inaktif) a:not(.meta-tag):hover {
    margin-left: 4px;
}

.meta-tag:hover {
    transform: translateX(4px);
}


.grid-card p {
    color: var(--text-excerpt);
    margin-bottom: .5rem;
}

.grid-info {
    padding: 1rem;
    background: var(--bg-body);
}


.grid-info .meta_data {
    display: grid !important;
    grid-template-columns: 25px 1fr;
}

.grid-hover {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: .5rem;
    z-index: 1001;
    backdrop-filter: blur(4px);
    background: var(--bg-body);
    border-radius: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 80%;
}

.grid-hover h2 {
    margin-bottom: 0 !important;
}

.grid-hover .meta-content {
    font-size: .875rem;
}

.grid-thumbnail {
    height: 200px;
    background-color: var(--bg-thumbnail);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    text-align: center;
    cursor: pointer;
}

.data-inaktif .insyaAllah {
    display: none !important;
}

/*.data-inaktif img,*/
.data-inaktif .grid-thumbnail .thumb_title,
.data-inaktif .grid-info,
.data-inaktif .thumb_title {
    opacity: .4;
}

.data-inaktif img {
    filter: grayscale(100%);
    opacity: .3;
}

.single-card.data-inaktif {
    opacity: .3;
}

.grid-thumbnail img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* atau contain sesuai kebutuhan */
    object-position: top;
    display: block;
    transition: transform 0.45s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0) scale(1);

    transform: scale(1);
}

.card-link {
    position: absolute;
    inset: 0;
    z-index: 1001;
}

a.subtle-link,
.billboard-item .buletin_desc a.sosial-media {
    color: var(--text-html) !important;
    font-size: .875rem;
    font-weight: 400;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/*a.subtle-link:hover, .billboard-item .buletin_desc  a.sosial-media:hover {
    transform: translateX(0) !important;
}*/

.grid-thumbnail:not(.no-hover):hover {
    /*transform: scale(1.2);*/
}

.grid-card {
    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease;
}




.grid-card:hover {
    box-shadow:
        0 6px 18px rgba(var(--bg-dark-rgb), .12) 0 2px 6px rgba(var(--bg-dark-rgb), .08);
}

.large-thumbnail {
    height: 400px !important;
}

.pengkaji-list ul {
    margin: auto !important;
}


.video-container .grid-thumbnail {
    height: 90px;
    /*170px*/
    border-radius: 0;
}

section.inner-section {
    margin-top: 2rem;
    padding: 0px;
}

section.top-section {
    margin-top: 0;
}

.video-container .grid-thumbnail img {
    height: unset;
    filter: brightness(.7);
}

.div_block {
    display: block;
    margin-top: 2rem;
}

.popup-image {
    cursor: pointer;
}

#imgPopup {
    touch-action: none;
    /* Mencegah browser melakukan scroll default saat swipe */
    user-select: none;
}

#imgPopup img {
    pointer-events: none;
    /* Penting agar touch terdeteksi oleh container #imgPopup */
    max-width: 90%;
    max-height: 80vh;
}


#imgPopup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--bg-popup), .8 );
    /* Ganti dengan rgba untuk backdrop */
    z-index: 9999;
    text-align: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    /* FLEX UNTUK CENTER GAMBAR */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Untuk non-support backdrop-filter */
    background: rgba(var(--bg-popup), .8 );
    /* Fallback */
}

#imgPopup img {
    max-width: 90%;
    max-height: 90%;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 5px 30px rgba(var(--bg-popup), .8 );
}

.empty-content {
    display: none !important;
}

.grid-card h2 {
    margin: 0;
    line-height: 1.3;
}


.post-title svg,
.header-title svg,
.meta_data svg {
    display: inline;
    vertical-align: middle;
    width: 1.2em;
    height: 1.2em;
}

.grid-card svg path {
    fill: var(--text-html);
}

.grid-card h3 {
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    line-height: 1.4;
}

.grid-card h2,
.grid-card h3,
.grid-card h2 a {
    display: inline-block;
    /* atau inline */
    vertical-align: middle;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
}


.thumb_title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Jumlah baris maksimal */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
    line-height: 1.4;
    /* Penting untuk multi-line */
    text-align: center;
}

.small_title {
    font-size: .875rem;
}

ul.grid-ul {
    margin-left: 2rem;
    list-style-type: '+ ';
}

ul.grid-ul li {
    margin: .5rem 0;
    display: block;
}

section.hilight {
    background: var(--bg-light);
    border-radius: 12px;
    padding-bottom: 2rem;
}

.header-with-link {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: start;
    gap: 6px;
}

.header-with-link .header-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
    line-height: 1.3;
}


.header-title.inner-title {
    margin-top: 15px;
}


.header-with-link a {
    text-align: right;
}

.header-with-link+a {
    margin-bottom: 1.2em;
}

.meta-entitas a {
    display: block !important;
    width: fit-content;
    margin: 0 0 .5rem 2rem !important;
}

.large-thumbnail {
    width: 100%;
    height: 0;
    /*padding-bottom: 56.25%;*/
    /* 16:9 aspect ratio (9/16 = 0.5625) */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.large-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* atau 'contain' jika ingin lihat full image */
    object-position: center;
    transition: transform 0.3s ease;
    z-index: 100;
}

ul.meta-facility {
    margin-left: 20px;
}

.meta-search {
    padding: 1rem 0;
    border-top: solid 1px rgba(var(--bg-popup-rgb), .3);
    border-bottom: solid 1px rgba(var(--bg-popup-rgb), .3);
}

.blur-background {
    content: '';
    position: absolute;
    top: -10px;
    /* Extend sedikit untuk blur effect */
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-size: contain;
    background-position: center;
    filter: blur(10px) opacity(0.8);
    z-index: 1;
}

.post-title {
    margin-bottom: .875rem;
}

.front-title,
.front-title+a {
    margin: 1.5rem 0 !important;
}

.post-title,
.header-title {
    /*display: inline;*/
    /*line-height: 1;*/
}


.post-title.title-underline,
.header-title.title-underline {
    margin: var(--margin-header);
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}



.meta-tag svg {
    margin-right: 0;
}

.grid-card .meta_data,
.single-card .meta_data {
    max-width: 100%;
    display: flex;
    align-items: flex-start;
    min-width: 0;
    /* TAMBAHKAN */
    min-height: 28px;
    border-bottom: none;
}

.grid-card .meta_data {
    padding: 10px 0;
}

.meta_data.link-shop ul {
    display: grid;
    grid-template-columns: auto auto auto auto;
    list-style-type: none;
    gap: 10px;
    max-width: 100%;
}

.meta_data.link-shop ul li {
    padding: 1rem;
    border: solid 1px var(--border-light);
    border-radius: 12px;
    display: grid;
    grid-template-columns: 25px 1fr;
    align-content: center;
    align-items: center;
}

.meta_cari {
    padding: 1rem 0;
    border-top: solid 1px var(--border-light);
    border-bottom: solid 1px var(--border-light) !important;
}

.grid-card .meta_data:not(:last-of-type) {
    border-bottom: dotted 1px rgba(var(--bg-popup), .8 );
}

.grid-card .meta_data .meta-content {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
}

.meta-wrapper {
    display: grid;
    gap: 1rem;
}

.meta-wrapper {
    grid-template-columns: 1fr 1fr 1fr;
}

.meta-stack {
    display: grid !important;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center !important;
    align-content: center;
    min-width: 0;
    /* WAJIB untuk ellipsis */
}

.meta-stack>.meta-content {
    display: grid;
    gap: 2px;
    grid-template-rows: auto auto;
}


.meta-stack .meta-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.meta-stack .meta-icon svg path {
    fill: var(--text-html);
}


.meta-thumbnail {
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 3px;
    text-align: center;
    align-content: center;
    color: var(--text-crumb);
    /*border: solid 1px var(--border-light);*/
    /*box-shadow: 0 3px 4px rgba(0, 0, 0, 0.15);*/
}

.meta-thumbnail:has(img) .placeholder-icon {
    display: none;
}

.meta-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: none;
}

.meta-title,
.meta-title a {
    font-weight: 600 !important;
    font-size: 14px !important;
    color: var(--text-html);
    display: inline !important;

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

.meta-desc {
    font-size: 13px;
    color: var(--text-html);

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


.iconify {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
}

.iconify-small {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin: 0 5px;
}

.iconify.icon-inline {
    display: inline;
    vertical-align: middle;
    margin-right: 8px;
    width: 1em;
    height: 1em;
}

.mdi-icon-grey {
    vertical-align: middle;
}

.mdi-icon-grey svg path {
    fill: var(--text-excerpt);
    opacity: .7;
}

.iconify.mdi-inline {
    display: inline;
    width: .9rem;
    height: .9rem;
}

.iconify.mdi-inline path {
    fill: var(--alert-green) !important;
}

small .mdi-icon-grey {
    vertical-align: middle;
}

.iconify-small+a {
    vertical-align: middle !important;
}

.iconify+span {
    min-height: 21px;
}

.view-count {
    position: absolute;
    top: 10px;
    left: 10px;
}

.meta-with-tag a {
    display: block !important;
    width: 100%;
}


.relation-tempat .meta-link {
    /*display: block;*/
    width: fit-content;
    display: inline-block;
    margin-right: 8px;
}


.section-content {
    margin: 1rem 0;
}

.content-more {
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.content-more.is-collapsed {
    max-height: 20vh;
    /* 1/3 layar */
}

.content-more.is-expanded {
    max-height: 2000px;
    /* cukup besar */
}

.content-more.is-collapsed::after {
    content: '';
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    height: 100px;
    pointer-events: none;
    background: linear-gradient(to bottom,
        rgba(var(--bg-body-rgb), 0),
        rgba(var(--bg-body-rgb), 1) 65%
    )
}



.content-wrapper {
    position: relative;
    margin: 1rem 0;
}

.toggle-text {
    display: inline-block;
    margin-top: 10px;

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

    color: var(--text-html);
    cursor: pointer;

    border: 1px solid var(--border-light);
    border-radius: 999px;

    padding: 4px 12px;
    user-select: none;

    transition: background-color .2s ease;
}


.toggle-text:hover {
    background-color: rgba(0, 0, 0, .03);
}

.sumber-wrapper {
    margin-top: 1rem;
}

.content-list {
    padding-left: 1.5rem;
}

.thumbnail-overlay,
.nama-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: .5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-thumbnail:hover .thumbnail-overlay {
    opacity: 1;
}



/* =====  SIDEBAR FILTER ===== */
.filter-sidebar {
    background: var(--bg-body);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    max-height: 1000px;
    /* Atur max-height awal */
    transition: all 0.3s ease;
    /* Transisi semua properti */

}

.filter-sidebar.collapsed {
    max-height: 90px;
}

.filter-header h3 {
    margin: 0;
}


.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
    cursor: pointer;
}

.filter-toggle-icon {
    font-weight: bolder;
}

.filter-toggle {
    background: transparent;
    border: none;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}



.filter-toggle:hover {
    color: var(--primary-color);
}


.flatpickr-month select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: non !important;

    padding: 10px 36px 10px 14px !important;
    border-radius: 12px !important;
    border: none !important;
    background: var(white) !important;
    cursor: pointer !important;

    /* ruang untuk chevron */

}

.filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    padding: 10px 36px 10px 14px;
    border-radius: 12px;
    border: none !important;
    background: var(--bg-body) !important;
    font-size: 14px;
    cursor: pointer;

    padding-right: 30px !important;
    /* ruang untuk chevron */

}


.filter-sort {
    display: grid;
    grid-template-columns: auto 60px 169px;
}

.sort-label {
    color: var(--text-crumb);
    font-style: italic;
}

.filter-sort .filter-select {
    padding: 0;
}

/* chevron */
/*.filter-group:has(.filter-select)::after {*/
.filter-group:not(.no-chevron)::after {
    content: "⌃";
    position: absolute;
    right: 12px;
    top: 50%;
    pointer-events: none;
    font-size: 14px;
    transform: rotate(180deg) translateY(60%);
}

/* focus state */
.filter-select:focus {
    outline: none;
}

.filter-group.found_posts {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 40px;
    height: 40px;

    padding: 0 10px;
    /* kalau angka > 2 digit */
    border-radius: 9999px;
    /* bulat sempurna */

    background: var(--button-reset);
    color: var(--bg-switch-slide);
    font-size: 14px;
    font-weight: 600;
}



.filter-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    background: var(--bg-body);
    cursor: pointer;

    font-size: 14px;
    padding-right: 30px;
}

.filter-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;

    display: none;
    padding: 10px;
    gap: 8px;

    background: var(--bg-body);
    ;
    border: none;
    border-radius: 12px;

    z-index: 10;
}


.sosmed-filter {
    position: relative;
    font-size: 14px;
}

.sosmed-filter.is-open .filter-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;

    position: absolute;
    left: 100%;
    transform: translateX(-100%);

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

    z-index: 1100;
    min-width: 300px;
}



/* ===== RESPONSIVE ===== */



.filter-search {
    width: 100%;
    padding: 0.75rem;
    border-radius: 6px;
    transition: border-color 0.2s ease;
    background-color: var(--bg-body);
    border: 1px solid var(--border-light);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-excerpt);
    /* Example: Dark gray color */
}

.filter-search:focus {
    outline: none;
    border-color: var(--link-color);
    box-shadow: 0 0 0 3px var(--link-hover);
}

/* Checkbox & Radio Styles */
.filter-options {
    overflow-y: auto;
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
}


.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
    border: 1px solid var(--border-light);
    appearance: checkbox;
    width: 15px;
    height: 15px;
    border-radius: 4px;
}


.table_odd,
.table_even {
    padding: 6px;
    width: 100%;
    display: inline-block;
    border-bottom: dotted 1px var(--bg-switch);
}

.table_odd {
    background: var(--bg-light)
}

.table_even {
    background: var(--bg-body)
}

.table_title {
    display: inline-block;
    width: 120px;
    /* Lebar tetap sama semua */
    padding-right: 20px;
}

/* Select Styles */
.filter-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: var(--bg-body);
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: none;

}

/* Date Picker */
.filter-date {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
}

/* Range Slider */
.filter-range {
    width: 100%;
    margin: 0.5rem 0;
}

.range-values {
    display: flex;
    justify-content: space-between;
    color: var(--text-excerpt);
    margin-top: 0.5rem;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}


.filter-option label {
    cursor: pointer;
    color: var(--text-excerpt);
    margin: 0;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}


/* Multiple choice checkbox styles */
.filter-option input[type="checkbox"]:checked+label {
    font-weight: 500;
    background: var(--bg-light);
}

.filter-option input[type="checkbox"]:checked {
    background: var(--bg-light);
}

/* Checkbox group styles */
.checkbox-group {
    position: relative;
}


/* =====  ARCHIVE ===== */
.archive-content {
    min-width: 0;
    /* Prevent grid overflow */
}

/* Active filters info */
.alert strong {
    font-weight: 700;
}

.alert-with-icon {
    display: grid;
    grid-template-columns: 50px 1fr;
    align-items: center;
    gap: 10px;
}

.icon-alert-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-with-icon .section-content {
    border-radius: 12px;
}

.alert-scheme,
.alert-green,
.alert-blue,
.alert-yellow,
.alert-red,
.alert-grey,
.alert-orange,
.alert-subtle,
.alert-subtle-invert {
    border-radius: 12px;
    border-width: 1px;
    border-style: solid;
    text-decoration: none;
    transition: all 0.4s ease;
}

.alert-scheme {
    background: var(--alert-scheme-bg)!important;
    color: var(--alert-scheme-color)!important;
    border-color: var(--alert-scheme-border)!important;
}

.alert-subtle {
    background: var(--bg-body)!important;
    color: var(--text-html)!important;
    border-color: var(--border-light)!important;
}

.alert-subtle-invert {
    background: var(--bg-light)!important;
    color: var(--text-html)!important;
    border-color: var(--bg-tag)!important;
}

.alert-green {
    background: var(--alert-green-bg);
    color: var(--alert-green-color)!important;
    border-color: var(--alert-green-border)!important;
}

.alert-blue {
    background: var(--alert-blue-bg);
    color: var(--alert-blue-color)!important;
    border-color: var(--alert-blue-border)!important;
}

.alert-yellow {
    background: var(--alert-yellow-bg);
    color: var(--alert-yellow-color)!important;
    border-color: var(--alert-yellow-border)!important;
}

.alert-red {
    background: var(--alert-red-bg);
    color: var(--alert-red-color)!important;
    border-color: var(--alert-red-border)!important;
}

.alert-grey {
    background: var(--alert-grey-bg);
    color: var(--alert-grey-color)!important;
    border-color: var(--alert-grey-border)!important;
}

.alert-orange {
    background: var(--alert-orange-bg);
    color: var(--alert-orange-color)!important;
    border-color:var(--alert-orange-border)!important;
}

.color-green {
    color: var(--alert-green-color)!important;
}

.color-yellow {
    color: var(--alert-yellow-color)!important;
}

.color-scheme {
    color: var(--alert-scheme-color)!important;
}

.color-subtle {
    color: var(--text-html)!important;
}

.color-subtle-invert {
    color: var(--text-html)!important;
}


.color-red {
    color: var(--alert-red-color)!important;
}

.alert-subtle {
    fill: var(--text-html)!important;
}

.alert-subtle-invert svg path{
    fill: var(--text-html)!important;
}

.alert-green  svg path{
    fill: var(--alert-green-color)!important;
}


.alert-blue svg path, .link-submit svg path {
    fill: var(--alert-blue-color);
}

.alert-yellow svg path {
    fill: var(--alert-yellow-color);
}

.alert-red svg path {
    fill: var(--alert-red-color);
}

.alert-grey svg path {
    fill: var(--alert-grey-color);
}

.alert-orange svg path {
    fill: var(--alert-orange-color);
}

.btn-toggle {
    cursor: pointer;
}
/* UL */
.social-media-list {
    /*  display: flex;
  flex-wrap: wrap;  
  gap: .3rem;
  list-style: none;
  padding: 0;
  margin: 0;
  margin-bottom: 1rem;
  flex: 0 0 auto;   
  list-style-type: none;*/
}

.social-media-list .list-wrapper {
    flex: 0 0 auto;
    /* supaya tiap icon tetap ukuran kontennya */
    display: flex;
    align-items: center;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 8px;
}



.social-media-list a,
.social-media-list button,
a.external-link,
a.generic-link {
    margin: 0;
    display: inline-block;
    transition: all 0.4s ease;
}

.social-media-list a,
.social-media-list button {
    display: flex;
    align-items: center;
    /* Vertical align middle */
}

.social-media-list .style-circle a {
    background-color: var(--bg-light);
    display: inline-block;
    padding: .3rem .65rem;
    border-radius: 1rem;
    color: var(--text-excerpt);
    text-decoration: none;
    font-weight: 500;
    margin-left: 0px;
}

.social-media-list .style-circle a {
    display: block;
    border-radius: 100%;
    padding: 0.4rem;
    color: var(--text-excerpt);
}


.social-media-list .style-circle a:hover {
    color: var(--text-excerpt);
    filter: var(--brightness-hover);
}

.social-media-list .style-circle a svg {
    transition: all 0.3s ease;
}

.social-media-list .style-link a:hover,
a.external-link:hover,
a.generic-link:hover {
    transform: translateX(4px) !important;
}

.social-media-list .style-circle a:hover svg {
    transform: translateY(-4px) rotate(0deg) !important;
}

.data-sidebar {
    overflow: hidden
}

.data-sidebar h1 {
    margin: 1rem 0;
}

/* =====  PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.load-more-container {
    margin-top: 3rem;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    color: var(--text-excerpt);
    background: var(--bg-light);
}

.pagination .page-numbers:not(.current):hover {
    filter: var(--brightness-hover);
}

.pagination .page-numbers.current {
    background-color: transparent;
    color: var(--text-excerpt);
    border-color: var(--border-light);
}


/* =====  BUTTONS ===== */
.btn {
    display: inline-block;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;

}

.btn-reset {
    background: var(--button-reset);
    color: var(--bg-switch-slide);
}


.btn-more {
    background: var(--bg-light);
}

.btn-narrow {
    width: auto;
    padding: .5rem 1rem;
}

.btn-narrow.active {
    filter: var(--brightness-hover);
}

.btn-reset:hover {
    text-decoration: none;
    filter: var(--brightness-lighten);
}



.buletin-toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 250px;
    height: 36px;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    background-color: var(--bg-switch);
    padding: 0 10px;
    overflow: hidden;
    margin: 0 auto;
}

.buletin-toggle-label svg {
    margin-right: 5px !important;
}

/* Slider nyata */
.buletin-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 124px;
    height: 30px;
    border-radius: 20px;
    background-color: var(--bg-switch-slide);
    transition: transform 0.3s ease;
    transform: translateX(0);
    z-index: 1;
}

/* Geser saat checked */
#buletin-toggle:checked+.buletin-toggle-label .buletin-slider {
    transform: translateX(120px);
}


/* Icon di atas slider */
.buletin-toggle-label span {
    position: relative;
    z-index: 2;
}

/* Grid putih saat unchecked (default) */
.buletin-toggle-label .icon-list {
    color: var(--text-invert) !important;
}

.buletin-toggle-label .icon-grid {
    color: white !important;
}

/* CHECKED: Grid putih, List normal */
#buletin-toggle:checked~.buletin-toggle-label .icon-grid {
    color: var(--text-invert) !important;
}

#buletin-toggle:checked~.buletin-toggle-label .icon-list {
    color: white !important;
}


.icon-grid,
.icon-list {
    z-index: 2;
    position: relative;
    width: 110px;
    padding: 4px 2px;
    display: inline-flex;
    justify-content: center;
}


/* Dark mode class applied to body or html element by JavaScript */
.theme-toggle-label {
    display: block;
    width: 60px;
    height: 30px;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
    padding-left: 5px;
    background-color: var(--bg-switch);
}


/* Style the sliding circle */
.header-switch .toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: transform 0.3s;
    background-color: var(--bg-switch-slide);

}

/* Move the slider when the hidden checkbox is checked */
html[data-theme="dark"] .header-switch .toggle-slider {
    transform: translateX(30px);
}

html[data-theme="dark"] .placeholder-icon .bg,
html[data-theme="dark"] .placeholder-icon .bar,
html[data-theme="dark"] .placeholder-icon .img {
    fill: #cad9ea;
}

.card-label {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--text-description);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    border: solid 1px transparent;
    background: var(--bg-tag);
}

.card-label.status-berakhir {
    display: none;
}

.card-label.left-label {
    right: unset;
    left: 10px;

}

button.card-label:hover {
    filter: var(--brightness-hover);
}

.data-inaktif .card-label.status-berakhir {
    display: unset;
}

.icon-moon {
    transform: rotate(25deg);
}


.icon-moon,
.icon-sun {
    padding: 3px 2px;
    display: inline-flex;
}

.icon-moon svg,
.icon-sun svg {
    width: 18px;
}

.icon-moon svg path,
.icon-sun svg path {
    fill: var(--icon-sun);
    opacity: .6;
}


/* ===============================
   VISIBILITY UTILITIES
================================ */

/* Default: tampil di desktop */
.mobile-hide {
    display: unset;
}

.desktop-hide {
    display: none;
}

/* Accoridon FAQ */
.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: .875rem;
    background: none;
    border: none;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-description);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    padding: 0 .875rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0.5rem 0 2rem .875rem;
    color: var(--text-crumb);
}

.faq-item.active .chevron {
    transform: rotate(180deg);
}

.chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: .25s;
}

.faq-item.active .chevron {
    transform: rotate(-135deg);
}

/* ===== SUPER SIMPLE TIMELINE ===== */
.timeline {
    margin: 1.5rem 0;
}


.timeline-item {
    display: flex;
    margin-bottom: .5rem;
    align-items: flex-start;
}

.timeline-item+br {
    display: none;
}


/* Dot */
.timeline-item .timeline-dot {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    background: var(--timeline-dot);
    border-radius: 50%;
    margin-top: 8px;
    margin-right: 15px;
    position: relative;
}

.timeline-item.timeline_role .timeline-dot {
    background: var(--bg-light);
    margin-right: 5px;
}


.timeline-item.timeline_role .timeline-dot {
    width: unset;
    height: unset;
    padding: 5px;
}

.timeline-item.timeline_role .timeline-dot svg {
    /*filter: invert(100%)  brightness(119%) contrast(119%);*/
    width: 16px;
    height: 16px;
}

/* Garis vertikal antara dot */
.timeline-item:not(.timeline_role) .timeline-dot::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;

    /* Height cukup panjang untuk cover konten */
    height: calc(100% + 3rem);

    /* Gradient dari solid ke transparan */
    background: linear-gradient(to bottom,
        rgba(var(--bg-switch-rgb), 1) 0%,
        rgba(var(--bg-switch-rgb), .8) 40%,
        rgba(var(--bg-body-rgb), .8 ) 70%,
        rgba(var(--bg-body-rgb), .3) 85%,
        transparent 100%);

    z-index: -1;
}



.timeline-item:last-child .timeline-dot::after {
    display: none;
}

.honorific {
    flex-shrink: 1;
    min-width: 0;
    /* Jika space tidak cukup, honorific akan pindah baris */
    white-space: nowrap;
}

/* Tahun dan konten */
.timeline-content {
    flex: 1;
}

.timeline-year {
    display: inline-block;
    background: var(--timeline-dot);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.timeline-text {
    background: var(--bg-light);
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    position: relative;
}

.timeline_role .timeline-text {
    margin-left: 10px;
}

.timeline_role .timeline-text::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);

    /* Membuat segitiga dengan border */
    border-right: 10px solid var(--bg-light);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;

    /* Smooth effect dengan filter blur */
    filter: drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.1));
}

/* Style 3: Quote Style */
.hadits-wrapper p {
    color: var(--text-description) !important;
    filter: brightness(1.4);
}

.hadits-wrapper {
    margin: 2rem 0;
    padding: 0 1.5rem;
    position: relative;
}

.hadits-text {
    line-height: 1.7;
    font-style: italic;
    position: relative;
    padding-left: 1rem;
}

.hadits-text::before {
    content: '"';
    font-size: 5rem;
    color: var(--text-excerpt);
    position: absolute;
    left: -1.5rem;
    top: -2rem;
    opacity: 0.3;
}

.hadits-source {
    text-align: right;
    margin-top: 0.5rem;
    font-style: italic;
}

.hadits-source::before {
    content: "— ";
    display: inline-block;
    opacity: 0.5;
    margin-right: 5px;
    color: var(--text-excerpt);
}

/*Playlist*/
a.playlist-link {
    color: var(--text-excerpt) !important;
}


.video-container .playlist-container {
    display: grid;
    gap: .8rem;
    grid-template-columns: repeat(3, 1fr);
}

.playlist-item.active .video-title {
    color: var(--text-excerpt);
}

.playlist-item:hover {
    filter: var(--brightness-hover);
}

.playlist-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    width: 100%;
}



/* Double Column Mode (jika mau dua kolom) */
.double-grid.two-columns .playlist-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* Playlist Item */
.playlist-item {
    background: var(--bg-light);
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 8px;
}

.playlist-item:hover {
    background: var(--bg-body);
    transform: translateY(-2px);
}

.playlist-item.active {
    background: rgba(var(--bg-popup-rgb), .8 );
}

/* Playlist Content */
.playlist-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem;
    width: 100%;
    /* Pastikan ini ada */
    min-width: 0;
    /* INI PENTING untuk flex child truncation */
}

.play-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
    /* ⭐ KUNCI UTAMA untuk ellipsis di flex child */
    overflow: hidden;
    /* Tambahkan ini */
}

.video-title {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
    /* ⭐ WAJIB untuk flex item */
    position: relative;
}



.play-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.play-symbol {
    color: var(--text-excerpt);
    transition: color 0.3s ease;
    filter: opacity(.8);
}

.playlist-item.active .play-symbol {
    /*color: var(--bg-body);*/
}

/* Sound Wave Animation */
.playlist-item .sound-wave {
    display: none;
    align-items: center;
    height: 20px;
    gap: 3px;
}

.playlist-item .sound-wave span {
    display: inline-block;
    width: 3px;
    background: var(--text-excerpt);
    border-radius: 3px;
    animation: sound-wave 1.2s ease-in-out infinite;
}

.playlist-item.active .sound-wave span {
    background: var(--bg-body);
}


.playlist-item.active:not(.pause) .sound-wave {
    display: flex !important;
}

.playlist-item.active:not(.pause) .play-symbol {
    display: none !important;

}

.sound-wave span:nth-child(1) {
    animation-delay: 0s;
    height: 5px;
}

.sound-wave span:nth-child(2) {
    animation-delay: 0.15s;
    height: 10px;
}

.sound-wave span:nth-child(3) {
    animation-delay: 0.3s;
    height: 15px;
}

.sound-wave span:nth-child(4) {
    animation-delay: 0.45s;
    height: 10px;
}

.sound-wave span:nth-child(5) {
    animation-delay: 0.6s;
    height: 5px;
}

@keyframes sound-wave {

    0%,
    60%,
    100% {
        transform: scaleY(0.5);
    }

    30% {
        transform: scaleY(1);
    }
}


/*Breadcrumb*/
.page-title {
    font-size: 1rem;
    margin: .5rem 0;
}

.big-title{
    font-size: 1.4rem;
    margin: .5rem 0;

}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.breadcrumb,
.page-description {
    white-space: nowrap;
}

.page-description {
    font-size: .85rem;
    color: var(--text-crumb);
    font-style: italic;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;

}

.breadcrumb {
    display: display:inline-block;
    align-items: center;
    gap: 4px;
}


.breadcrumb-wrapper {
    margin: 1rem auto 1rem auto !important;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}


/* Dots Menu */
.dots-menu {
    display: flex;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
    padding: 5px;
}


.dot {
    width: 4px;
    height: 4px;
    background: var(--text-excerpt);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.playlist-item.active .dot {
    background: var(--bg-body);
    animation: dot-pulse 1.5s infinite;
}

.dots-menu:hover .dot {
    background: var(--text-excerpt);
    transform: scale(1.2);
}

@keyframes dot-pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Responsive */

/* ===== BULLETIN MINIMALIST STYLES ===== */
.buletin-wrapper {
    display: grid;
    gap: 1rem;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.billboard-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    z-index: 1;

    will-change: transform;
    /* Optimasi animasi */
    backface-visibility: hidden;
    /* Antialiasing */
    border: 1px solid var(--border-light);
}

@supports (filter: drop-shadow(0 0 0)) {
    .billboard-item:hover {
        box-shadow: none;
        filter: drop-shadow(0 4px 8px rgba(var(--bg-dark-rgb), .3));
    }
}

.billboard-item {
    transition: all 0.25s ease;
}

/*
.buletin-wrapper .billboard-item img {
    transition: all var(--transition-normal);
}

.buletin-wrapper .billboard-item:hover img {
    filter: brightness(1.2);
    transform: translateY(-2px);
}
*/
.billboard-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
    display: block;
    cursor: pointer;
}

.buletin_desc {
    display: flex;
    padding: 10px 8px;
    font-size: 14px;
    line-height: 1.5;
    flex-grow: 1;
    container-type: inline-size;
    container-name: buletin-desc;
    background: var(--bg-body);
    align-items: center;
    justify-content: center;

}


.buletin-wrapper {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Buletin loader */
.pulse-loader {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 5px auto;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-switch);
    animation: pulse .8s ease-in-out infinite;
}

.pulse-dot:nth-child(2) {
    animation-delay: 0.2s;
    background: var(--bg-switch);
}

.pulse-dot:nth-child(3) {
    animation-delay: 0.2s;
    background: var(--bg-switch);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }

}

/* End buletin loader */

.dashboard-list {
    margin: 2rem 0 1rem 0;
}

/* stats */
.dashboard-header{
    display: grid;
    grid-template-columns: auto 120px;
    align-items: center;
}

.global-stats{
    margin: 0 0 2rem;
}
.dashboard-stats {
    margin: 1rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .875rem;    
    text-align: left;
}

.stat-numbers{
    display: grid;
    /*grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .875rem;*/
}


.stat-item * {
    display: flex;
    align-content: center;
    justify-content: center;
}

.stat-total {
    font-weight: 600;
    font-size: 1rem;
    background: var(--bg-tag);
    border-radius: 65px;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5em;
    height: 2.5em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat-label{
    color: var(--text-crumb);
    font-size: .8rem;
    margin-bottom: .5rem;
}
.stats-grid h4 {
    margin-bottom: .5rem;
    font-size: .875rem;
}


.stat-card {
    padding: 1.5rem 1rem;
    border: solid 1px var(--border-light);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all .3s ease;
    position: relative;
}

.stat-card:hover {
    transform: scale(1.03);
}



/* --- Filter Tabs --- */
.dashboard-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.filter-tab {
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    color: var(--text-html);
    text-decoration: none;
    transition: all 0.15s ease;
    border-bottom: solid 0 transparent;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.filter-tab:hover {
    border-color: var(--bg-switch);
    color: var(--text-html);
}

.filter-tab.active {
    background: var(--text-html);
    border-color: var(--text-html);
    color: var(--bg-body);
    font-weight: 600;
}

/* --- Tabel --- */
.dashboard-table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.dashboard-table thead tr {
    border-bottom: 1px solid var(--bg-switch);;
}

.dashboard-table th {
    text-align: left;
    padding: 0.6rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-description);
    white-space: nowrap;
}

.dashboard-table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: background 0.1s ease;
}

.dashboard-table tbody tr:hover {
    background: var(--bg-input);
}

.dashboard-table td {
    padding: 0.7rem 0.75rem;
    color: var(--text-description);
    vertical-align: middle;
}

.dashboard-table td strong {
    font-weight: 600;
    color: var(--text-html);
}

/* --- Status Badge --- */
.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-publish {
    color: var(--alert-green-color);
/*    background: #f0faf0;
    border-color: #c3e6c3;
*/}

.status-pending {
    color: var(--alert-yellow-color);
/*    background: #fffbf0;
    border-color: #ffe9a0;
*/}

.status-draft {
    color: var(--text-crumb);
    /*background: #f5f5f5;*/
    /*border-color: #ddd;*/
}

/* --- Action Buttons --- */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    /*flex-wrap: wrap;*/
}

.btn-action {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    text-decoration: none;
    color: var(--text-crumb);
    transition: all 0.15s ease;
    white-space: nowrap;
    background: var(--bg-light);
}

.btn-frame {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    cursor: pointer;
}

.btn-action:hover {
    border-color: var(--border-light);
    color: var(--text-invert);
    background: var(--bg-thumbnail);
}

.btn-edit {
    border-color: var(--border-light);
}





/* --- No Content --- */
.no-content {
    padding: 2rem 0;
    color: #aaa;
    font-size: 0.9rem;
    text-align: center;
}

/* --- Responsive --- */
@media (max-width: 600px) {

    .global-numbers {
        gap: 0.75rem;
    }
    .dashboard-table th,
    .dashboard-table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .filter-tab {
        font-size: 0.8rem;
        padding: 0.3rem 0.65rem;
    }
}

.section-contributor .header-title{
    margin-bottom: .5rem!important;
}

.add-button-wrapper {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0 2rem 0;
}

.add-button-wrapper:not(.button-wrapper-small) a {
    display: grid;
    grid-template-columns: 1fr 30px;
    min-height: 50px;
}


.add-button-wrapper:not(.button-wrapper-small) a .iconify{
    position: absolute;
    bottom: 1rem;
    right: 1rem;
}

.button-sidebar {
    display: flex;
}

.button-sidebar a{
     transition: all 0.5s ease;
   
}

.add-button-wrapper a {
    padding: 1rem;
    position: relative;
    border-radius: 8px;
    transition: all 0.5s ease;
}

.add-button-wrapper a:hover {
    filter: var(--btn-brigthness);

}


.current-galeri {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.small_thumb {
    cursor: grab;
    display: inline-grid;
    max-width: 120px;
    position: relative;
}

.small_thumb.dragging {
    opacity: 0.5;
}

.small_thumb.over {
    outline: 2px dashed #999;
}

.over_thumb {
    position: relative;
}

.over_thumb .buletin_desc {
    position: absolute;
    width: 100%;
    background: rgba(0, 0, 0, .7);
    bottom: 0;
    backdrop-filter: blur(2px);
}

.over_thumb .buletin_desc a {
    font-size: .9rem;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.narrow-hide {
    font-size: .75rem;
    display: block;
}

@container buletin-desc (max-width: 280px) {
    .narrow-hide {
        display: none;
    }
}

.over_thumb .buletin_desc svg path {
    fill: var(--bg-switch-slide) !important;
}

.over_thumb .buletin_desc a,
.over_thumb .buletin_desc {
    color: var(--bg-switch-slide);
}

.delete-drop-zone.drag-over {
    background: #ffcdd2;
    border-color: #ff1744;
    opacity: 1;
}


.sosial-media {
    vertical-align: middle;
    height: 23px;
    line-height: 21px;
    text-align: center;
}

/* Tanggal */
.buletin_desc br+span,
.buletin_desc>span:last-child {
    display: block;
}

#imgPopup {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#imgPopup img {
    max-width: 95vw;
    max-height: 95vh;
}

#imgPopup .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    background-color: transparent;
    color: var(--bg-body);
    text-shadow: 0 4px 12px rgba(var(--bg-dark-rgb), .3);

}

#imgPopup .prev {
    left: 20px;
}

#imgPopup .next {
    right: 20px;
}

.popup-desc {
    position: absolute;
    bottom: 3rem;
    padding: 1rem 2rem;
    background: rgba(var(--bg-body-rgb), 0.6);
    border-radius: 50px;
    backdrop-filter: blur(6px);
}

.popup-desc,
.popup-desc a {
    font-size: .9rem;
}

.popup-desc,
.popup-desc svg path {
    fill: var(--text-html) !important;
}

body.popup-open {
    overflow: hidden;
}


.slider-thumbnail {
    position: relative;
    /* Wajib ada sebagai patokan posisi dots */
    display: flex;
    flex-direction: column;
}

/* Menyembunyikan gambar secara default dan memberi efek transisi */
.slider-thumbnail .picture.slider img {
    display: none;
    width: 100%;
    height: auto;
}

/* Menampilkan gambar yang memiliki class 'active' */
.slider-thumbnail .picture.slider img.active {
    display: block;
    /*animation: fadeEffect 0.8s;*/
}

/* Animasi sederhana saat perpindahan */
@keyframes fadeEffect {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

.slider-dots span {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: none;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 120;
}

.slider-thumbnail {
    touch-action: pan-y;
    /* Memperbolehkan scroll atas-bawah, tapi ambil alih geser kiri-kanan */
    position: relative;
    overflow: hidden;
    border: solid 1px var(--border-light);
}

.slider-thumbnail .slider-dots span {
    background: rgba(255, 255, 255, 0.5);
}



.slider-thumbnail .slider-dots span.active {
    background: #fff;
    transform: scale(1.2);
    /* Efek sedikit membesar saat aktif */
}

.no-image img:not(.js_popup), .no-image .blur-background {
    display: none;
}

.no-image::before {
    content: 'No Image';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: .875rem;
    opacity: .5;
    text-align: center;
    pointer-events: none;
}

/* ===============================
   MASONRY
================================ */

.buletin-wrapper.buletin-masonry {
    display: block;
    grid-template-columns: unset;
    gap: unset;
    min-height: 200px;
    /* Prevent collapse */

    column-count: 5;
    column-gap: 16px;

}

.buletin-wrapper.buletin-masonry .billboard-item {
    display: inline-block;
    /* Penting untuk column-count */
    break-inside: avoid;
    margin-bottom: 16px;
    width: 100%;
}

/* FORCE IMAGE VISIBLE */
.buletin-wrapper.buletin-masonry img.buletin_img {
    display: block;
    width: 100%;
    height: auto;
}



.view-toggle {
    display: flex;
    gap: 8px;
    justify-content: right;
    margin: 20px 0;
}

.toggle-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
}

/*user footer-menu*/
/* Container form */
form.user_form {
    border-radius: 8px;
    font-family: sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

form.user_form .form-header{
    font-size: 1.2rem;
}
form.user_form .form-header:not(:first-child){
    margin-top: 2rem;
}

/* Label */
form.user_form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.additional-form {
    padding: 1rem;
    border: 1px solid var(--border-light);
    margin: 1rem 0;
    border-radius: 12px;
}
.additional-form{
    display: none;
}

.js-form-body {
    overflow: hidden;
    transition: height 0.3s ease, opacity 0.2s ease;
}

.js-form-wrapper.is-collapsed .js-form-body {
    height: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.js-form-wrapper.is-collapsed {
    height: 60px !important;
}


.js-form-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.toggle-icon {
    font-weight: bold;
    font-size: 1rem;
}

.select-form{
    margin-bottom: 0!important;
}


/* Input, textarea, select */
form.user_form .filter-select.select-form,
form.user_form input[type="text"]:not([role="combobox"]),
form.user_form input[type="date"],
form.user_form input[type="time"],
form.user_form input[type="email"],
form.user_form select,
form.user_form input[type="password"],
form.user_form textarea,
form.user_form input[type="file"] {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border-light)!important;
    border-radius: 4px;
    background: var(--bg-input);
    box-sizing: border-box;
    font-size: 14px;
    color: var(--text-html);

}

form.user_form .filter-select.ts-wrapper{
    border: 0px solid transparent!important;
}



.img-upload::file-selector-button {
    margin-right: 15px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 5px;
    color: #333;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

form.user_form .filter-select.relasi-select{
    padding: 0!important;
    width: 100%;
    margin-bottom: 15px!important;
    box-sizing: border-box;
    font-size: 14px;

}

form.user_form .ts-control{
    background: var(--bg-input)!important;
    border: 1px solid var(--border-light)!important;
}

form.user_form #tanggal_selesai:disabled, form.user_form #tanggal_selesai:disabled + input {
    background: var(--bg-input-disable)!important;
    cursor: not-allowed;
    opacity: 0.7;
}

form .form-group{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 20px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-top: 1rem;
}

form .form-group .new-start, form.perbaikan-form .new-start{
    grid-column-start: 1; 
}


/* Multiple select */
form.user_form select[multiple] {
    height: auto;
    min-height: 137px;
}

/* Submit button */
form.user_form input[type="submit"] {
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    width: auto!important;
}

/* Textarea resize */
form.user_form textarea {
    resize: vertical;
}

/* Spacing between form sections */
form.user_form p {
    margin-bottom: 12px;
}

label.required-field::after {
    content: " *";
    color: var(--color-error);
    font-weight: bold;
}

form.user_form .input-error{
    border: solid 1px var(--color-error)!important;
}


/* --- Existing Photos Preview --- */
.existing-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.photo-thumb-wrap {
    position: relative;
    width: 64px;
    height: 64px;
}

.existing-photo-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
    display: block;
}

.remove-existing-photo {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: var(--bg-body);
    color: var(--text-html);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s;
    border: solid 1px var(--border-light);
}

.remove-existing-photo:hover {
    background: var(--text-description);
    border: solid 1px var(--text-description);
    color: var(--bg-body);
}


*:focus {
    outline: none;
}

@keyframes flash-yellow {
    0% { background-color: var(--color-highlight); } /* Warna kuning muda di awal */
    100% { background-color: transparent; } /* Kembali ke transparan */
}

.highlight-flash {
    animation: flash-yellow 2s ease-out; /* Berlangsung selama 2 detik */
}

/* Icon styling */
.toggle-btn svg {
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.toggle-btn:hover svg {
    transform: scale(1.1);
}

.toggle-btn.active svg {
    color: white;
}



/* FIX LENGKAP */
.kajian-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    /* Grid fix */
    gap: 15px;
    width: 100%;
}


.jadwal-wrapper .kajian-list {
    margin-top: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jadwal-wrapper .meta-desc .meta_data {
    min-height: 0;
}

.kajian-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    margin-bottom: 4px;
    position: relative;
    /*margin-left: .8rem;*/
    background: var(--bg-thumbnail);
    border-radius: 8px;
}

.jadwal-wrapper .kajian-item {
    display: grid !important;
    grid-template-columns: 1fr !important;
}

.jadwal-wrapper .meta-stack > .meta-content {
    padding-left: 1rem !important;
}

.jadwal-wrapper .meta-stack .kajian-tematik {
    border-left: solid 3px var(--alert-red) !important;
}

.jadwal-wrapper .meta-stack .kajian-semua::before {
    content: "";
    display: inline-block;
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 8px;
    margin-right: 15px;
    position: absolute;
    left: 12px;
    top: 8px;
}

.jadwal-wrapper .meta-stack .kajian-rutin::before {
    background: Tomato;
}

.jadwal-wrapper .meta-stack .kajian-tematik::before {
    background: MediumSlateBlue;
}

/*
.riwayat-kajian .kajian-item:first-child::before {
    content: "";
    display: inline-block;
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    background: OrangeRed;
    border-radius: 50%;
    margin-top: 8px;
    margin-right: 15px;
    position: absolute;
    left: -5px;
    top: 20px;
}*/

.kajian-header {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    /* ⭐⭐ PENTING: Parent flex container */
    width: 100%;
    margin-bottom: 4px;
}

.num-count {
    font-weight: bold;
    background: rgba(var(--bg-popup-rgb), .8 );
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--text-excerpt);
    font-size: 11px;
    padding: 4px 8px;
    margin-left: 5px;
}

.kajian-number {
    position: absolute;
    bottom: 8px;
    right: 8px;
}

.kajian-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    /* Ambil sisa space */
    min-width: 0;
    /* ⭐⭐ PENTING: Allow text truncation */
    /* max-width: calc(100% - 25px); // Optional, bisa dihapus */
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    position: relative;
}

.kajian-date {
    display: inline-block;
    color: var(--text-crumb);
    font-size: .8rem;
    margin-right: 10px;
}

.kajian-list a {
    display: inline-block;
    font-size: .8rem;
}

.kajian-item.is-hidden {
    display: none !important;
}


.map-track {
    position: relative;
    display: flex;
    width: 100%;
    height: auto;
}


.map-wrapper {
    flex: 0 0 100%;
    position: relative;
    z-index: 2;
    min-height: 100px;
    /* penting biar kelihatan */
}

.map-wrapper {
    min-width: 100%;
    display: grid;
    grid-template-columns: auto 70px;
    gap: 12px;
    padding: 12px;
    box-sizing: border-box;
    z-index: 2;
}

.map-nav {
    position: absolute;
    top: 0;
    right: 5px;

    z-index: 2;
}

.map-nav .prev,
.map-nav .next {
    background: none;
    border: none;
    color: var(--text-html);
    width: 20px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: .875rem;
}

.map-nav .prev:disabled,
.map-nav .next:disabled {
    opacity: .4;
    cursor: default;
}

.map-nav:disabled {
    opacity: .4;
    cursor: default;
}

/* INFO KIRI */
.map-info {
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-html);
}

/* PREVIEW MAP */
.map-card {
    position: relative;
    overflow: hidden;
    border: solid 1px var(--border-light);
    border-radius: 12px;
}

.map-card {
    position: relative;
    min-height: 120px;
    background-color: var(--bg-light);

    /* FAKE MAP */
    background-image:
        linear-gradient( rgba(var(--bg-map-rgb),.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--bg-map-rgb),.4) 1px, transparent 1px),
        linear-gradient( rgba(var(--bg-map-rgb),.4) .5px, transparent .5px),
        linear-gradient(90deg, rgba(var(--bg-map-rgb),.4) .5px, transparent .5px);
    background-size:
        48px 48px,
        48px 48px,
        16px 16px,
        16px 16px;

    background-position:
        -2px -4px,
        -2px -4px,
        -2px -4px,
        -2px -4px;
}

.map-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        rgba(var(--bg-body-rgb), 1),
        rgba(var(--bg-body-rgb), 0) 45%);
    pointer-events: none;
}

.buku_info {
    margin: 20px 0 10px;
    display: inline-block;
}

/* Link overlay */
.btn-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-excerpt);
    text-decoration: none;
    background: var(--bg-body);
    /*border: 1px solid var(--border-light);*/
    border-radius: 999px;
    padding: 6px 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary{
    background: var(--primary-color)!important;
    color: var(--bg-body);
    width: auto;
}

.btn-riwayat {
    margin: 1rem auto 0;
    display: block;
    background: var(--bg-light);
    width: 120px;
    text-align: center;
}

.btn-map {
    position: absolute;
    bottom: 10px;
    right: 12px;
}

.btn-link:hover {
    transform: scale(1.1);
}

/* Jadwal Kajian */
.jadwal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.kalenderButton {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.kalenderButton svg path {
    fill: var(--text-description);
}

.ics-button {
    max-width: 114px;
    margin: 5px 0 0;
    display: block !important;
    padding: 4px 10px;
}

.kalenderKajian {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 8px;
    border: 1px solid var(--border-light);
    background-color: var(--bg-body);
    padding: 10px;
    border-radius: 12px;
    align-content: center;
    align-items: center;
}



.jadwal-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.jadwal-row.draggable-grid {
    padding: 0;
    margin: 0;
}

.jadwal-item {
    padding: 10px 6px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    background: var(--bg-light);
    transition: all 0.2s ease;
    flex: 0 0 auto;
    min-width: 96px;
    /* atur sesuai desain */
}

.jadwal-item:hover {
    background: var(--bg-tag);
}

.jadwal-item.active {
    background: rgb( var(--bg-popup-rgb) );
}

.jadwal-day {
    font-size: 13px;
    font-weight: 600;
}

.jadwal-date {
    font-size: 12px;
    opacity: 0.8;
}

.kalenderIkon {
    position: relative;
    display: inline-block;
}

#kalenderInput {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}


.ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/*tomselect*/
.ts-control, .ts-control input, .ts-dropdown{
    color: var(--text-html)!important;
}

.ts-wrapper.multi .ts-control>div {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ts-control>div {
    cursor: pointer;
    margin: 0 3px 3px 0;
    padding: 2px 6px;
}

.ts-control>div {
    background: var(--bg-switch)!important;
    border: 0 solid transparent;
    color: var(--text-html)!important;
    border-radius: 4px;
    font-size: .875rem;
}

.ts-dropdown {
    background: var(--bg-body)!important;
    border: 1px solid var(--border-light)!important;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);

}

.ts-dropdown .active {
    background-color: var(--bg-tag)!important;
    color: var(--text-html) !important;;
}

/*Scheme*/
.scheme-option input {
    display: none;
}

.scheme-option {
    display: inline-block;
    margin-right: .6rem;
}

.scheme-card {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: .2s;
    background: var(--bg-light);
}

.scheme-option input:checked + .scheme-card {
    border-color: var(--primary-color);
    /*box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-color) 30%, transparent);*/
    background: transparent;
}

/* preview swatch */
.scheme-preview {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .15);
}

.setting-theme-wrapper {
    margin-left: 0;
    display: grid;
    grid-template-columns: 1fr 138px;
    margin-top: 1rem;
}

.setting-theme {
    display: flex;
    margin-left: 0;
    justify-content: flex-end; 
}

/* colors */
.scheme-preview.green {
    background: #4CAF50;
}

.scheme-preview.blue {
    background: #3b82f6;
}

.scheme-preview.earth {
    background: #a67c52;
}

@media (max-width: 1024px) {

    .add-button-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .grid-container {
        grid-template-columns: repeat(4, minmax(180px, 1fr));
    }

    .meta_data.link-shop ul {
        grid-template-columns: auto auto;
    }

    .grid-buku .list-card {
        grid-template-columns: 1fr;
    }

    .jadwal-wrapper .kajian-list {
        margin-top: 1rem;
        grid-template-columns: 1fr !important;
    }

    .double-grid.list-container {
        grid-template-columns: 1fr !important;
    }

    .main-menu li a {
        font-size: 0.9rem;
    }

    .header-container {
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .buletin-wrapper.buletin-masonry {
        column-count: 4;
    }

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

@media (max-width: 900px) {

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

    section.section-with-sidebar {
        grid-template-columns: 200px 1fr;
    }

    .large-thumbnail {
        height: 200px !important;
    }

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

    /* Header Search */
    .search-wrap {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: .75rem;
        /* opsional */
        width: 90%;
    }

    .searchform {
        width: 100%;
    }

    .searchform #s {
        width: 100%;
    }

    .main-navigation {
        padding: 0.75rem 0;
        height: 0;
        border-bottom: 0px solid transparent;
        padding: 0;

    }

    /*.nav-container {
        padding: 0 1rem;
        justify-content: space-between; 
        align-items: center;
        min-height: 50px; 
        max-width: 0px;
        display: block;
    }*/

    body:not(.menu-open) .nav-container {
        display: none;
    }

    .menu-toggle {
        display: block;
    }


    .main-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-light);
        flex-direction: column;
        gap: 0;
        padding: 0 1rem;
        overflow-y: auto;
        /*-webkit-overflow-scrolling: touch;*/
        border-top: 1px solid var(--border-light);
    }

    .main-menu.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
        margin-top: 125px;
    }

    .main-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }

    .main-menu li a {
        display: block;
        font-size: 1rem;
        letter-spacing: 0.5px;
        width: 100%;
        margin: .5rem 0;
        padding: .5rem;
    }

    .submenu-toggle {
        display: none !important;
    }

    .menu-item.has-submenu > .submenu {
        display: block;
         !important;
        padding: unset;
    }

    .menu-item.has-submenu {
        border: none;
    }

    /* Animasi hamburger menjadi X */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }


    /* Mencegah scroll body saat menu terbuka */
    body.menu-open {
        overflow: hidden;
    }

    body.menu-open .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: var(--bg-light);
    }


    .header-switch {
        grid-area: switch;
    }

    body.menu-open .header-switch {
        display: none;
        display: block;
        position: fixed;
        bottom: 10px;
        z-index: 1301;
    }

    body:not(.menu-open) .header-switch {
        display: none;
    }


}



@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .meta-wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .grid-container {
        grid-template-columns: repeat(3, minmax(160px, 1fr));
    }

    .video-container {
        grid-template-columns: repeat(1, minmax(160px, 1fr));
    }

    .video-container .playlist-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .buletin-wrapper.buletin-masonry {
        column-count: 3;
    }

    .buletin-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }


}

@media (max-width: 640px) {


    .grid-buku {
        grid-template-columns: 1fr !important;
    }

    .grid-buku .list-card {
        grid-template-columns: 200px 1fr;
    }

    .large-thumbnail {
        height: 400px !important;
    }

    /* Section */
    section.section-with-sidebar, section.large-sidebar {
        grid-template-columns: 1fr !important;
    }

    section.large-video {
        padding: 0 !important;
    }

    section.section-with-sidebar {
        gap: 1rem !important;
        padding: 1rem 1rem 0;
    }

    section {
        max-width: 100% !important;
        /*padding: 0 .8rem;*/
    }


    .grid-container {
        grid-template-columns: repeat(2, minmax(160px, 1fr)) !important;
    }

    /*.grid-container.grid-buletin {
        grid-template-columns:  1fr!important;
    }*/

    .buletin-wrapper.buletin-masonry {
        column-count: 2;
    }

    .buletin-wrapper {
        grid-template-columns: 2fr;
    }

    .grid-thumbnail img {
        object-position: center;
        object-fit: cover;
    }

    .inner-section {
        padding: 0;
        margin-bottom: 1rem;
    }

    /* Header */
    .header-container {
        display: grid;
        grid-template-areas:
            "branding search switch"
            "nav nav nav";
        gap: 8px 12px;
        align-items: center;
    }

    .site-branding {
        grid-area: branding;
    }

    .header-search {
        grid-area: search;
    }

    .nav-container {
        grid-area: nav;
        width: 100%;
        overflow-x: auto;
    }

    .page-numbers.next, .page-numbers.prev {
        display: none;
    }

    .kajian-list {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        /* Grid fix */
    }

    .filters-wrap {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        align-items: stretch;
    }

    .filters-wrap .filter-group:not(.found_posts),
    .sosmed-filter button {
        width: 100%;
    }

    .filter-sidebar {
        padding: 1rem;
    }

    .filter-sidebar.collapsed {
        max-height: 60px;
    }

    .mobile-hide {
        display: none !important;
    }

    .desktop-hide {
        display: unset;
         !important;
    }


    /* Video  */
    .video-container .playlist-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .double-grid.two-columns .playlist-container {
        grid-template-columns: 1fr;
    }

    .playlist-content {
        padding: 12px;
    }

    .video-title {
        font-size: 14px;
    }



    /* filter */
    .is-open .filter-options {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .filter-group H4, .filter-option span {
        display: none;
    }


    /* buletin */

    .buletin-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
        padding: 0 12px;
    }

    /*.billboard-item {
        border-width: 10px;
    }
    
    .billboard-item img {
        height: 280px;
    }*/

    .switch_buletin {
        margin-right: 0;
        order: 2;
    }

}

@media (max-width: 600px) {

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

    form .form-group{
        grid-template-columns:  1fr;
    }


    .buletin-wrapper.buletin-masonry {
        column-count: 2;
    }

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

@media (max-width: 576px) {

    .list-card {
        grid-template-columns: 1fr;
    }

    section.section-with-sidebar {
        grid-template-columns: 1fr !important;
    }

    .grid-container.video-container {
        grid-template-columns: 1fr !important;
    }

    .footer-grid {
        /*grid-template-columns: 1fr;*/
        gap: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-stats {
        justify-content: center;
    }
}

@media (max-width: 480px) {

    .user_setting_container {
        grid-template-columns: 1fr;
    }

    .grid-container.kajian-container:not(.js_draggable) {
        grid-template-columns: 1fr !important;
    }

    /*.billboard-item {
        border-width: 8px;
    }*/

    /*.billboard-item img {
        height: 240px;
    }*/

    .buletin_desc {
        padding: 16px 12px;
        font-size: 13px;
    }

    .buletin-wrapper.buletin-masonry {
        column-count: 2;
    }

    .buletin-wrapper {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 375px) {
    .nav-container {
        padding: 0 0.75rem;
    }

    .video-container .playlist-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 350px) {
    .grid-container.video-container {
        grid-template-columns: 1fr !important;
    }
}