/* KTJ Dinas Dayah Aceh PRO - Auto Light/Dark Theme */
.ktj-dda-wrap{--ktj-bg:#fff;--ktj-card:#fff;--ktj-text:#171717;--ktj-muted:#737373;--ktj-border:#e7e7e7;--ktj-soft:#f3f3f3;--ktj-shadow:0 4px 18px rgba(0,0,0,.05);max-width:1200px;margin:30px auto;padding:0 18px;color:var(--ktj-text);color-scheme:light dark}
.ktj-dda-header{margin-bottom:24px}.ktj-dda-header h1{margin:0 0 8px;font-size:32px;color:var(--ktj-text)}
.ktj-dda-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.ktj-dda-card{background:var(--ktj-card);border:1px solid var(--ktj-border);border-radius:16px;overflow:hidden;box-shadow:var(--ktj-shadow);transition:background .2s,border-color .2s,box-shadow .2s}
.ktj-dda-thumb{display:block;aspect-ratio:16/9;background:var(--ktj-soft);overflow:hidden}.ktj-dda-thumb img{width:100%;height:100%;object-fit:cover;display:block}.ktj-dda-placeholder{height:100%;display:flex;align-items:center;justify-content:center;font-weight:700;color:var(--ktj-muted)}
.ktj-dda-body{padding:18px}.ktj-dda-label{font-size:12px;font-weight:800;letter-spacing:.08em;margin-bottom:8px;color:var(--ktj-muted)}.ktj-dda-body h3{font-size:20px;line-height:1.3;margin:0 0 10px;color:var(--ktj-text)}.ktj-dda-body h3 a{text-decoration:none;color:inherit}.ktj-dda-body h3 a:hover{opacity:.78}.ktj-dda-body time{font-size:13px;color:var(--ktj-muted)}
.ktj-dda-single{max-width:900px;margin:40px auto;padding:0 18px;color:var(--ktj-text)}.ktj-dda-single .entry-title{font-size:42px;line-height:1.15;margin-bottom:14px;color:var(--ktj-text)}.ktj-dda-meta{font-size:14px;color:var(--ktj-muted);margin-bottom:22px}.ktj-dda-single .featured img{width:100%;height:auto;border-radius:18px}.ktj-dda-content{font-size:18px;line-height:1.8;margin-top:25px;color:var(--ktj-text)}
/* System dark mode */
@media (prefers-color-scheme:dark){.ktj-dda-wrap{--ktj-bg:#111;--ktj-card:#181818;--ktj-text:#f5f5f5;--ktj-muted:#a6a6a6;--ktj-border:#303030;--ktj-soft:#242424;--ktj-shadow:0 8px 24px rgba(0,0,0,.28)}}
/* Theme-controlled dark mode: works with common SmartMag/WordPress dark-mode classes */
html.dark .ktj-dda-wrap,html.dark-mode .ktj-dda-wrap,body.dark .ktj-dda-wrap,body.dark-mode .ktj-dda-wrap,body.is-dark .ktj-dda-wrap,body.dark-theme .ktj-dda-wrap,body.theme-dark .ktj-dda-wrap,[data-theme="dark"] .ktj-dda-wrap,[data-mode="dark"] .ktj-dda-wrap{--ktj-bg:#111;--ktj-card:#181818;--ktj-text:#f5f5f5;--ktj-muted:#aaa;--ktj-border:#303030;--ktj-soft:#242424;--ktj-shadow:0 8px 24px rgba(0,0,0,.28)}
/* Explicit class added by the companion JS when a theme changes dynamically */
.ktj-dda-wrap.ktj-dda-dark{--ktj-bg:#111;--ktj-card:#181818;--ktj-text:#f5f5f5;--ktj-muted:#aaa;--ktj-border:#303030;--ktj-soft:#242424;--ktj-shadow:0 8px 24px rgba(0,0,0,.28)}
.ktj-dda-wrap.ktj-dda-light{--ktj-bg:#fff;--ktj-card:#fff;--ktj-text:#171717;--ktj-muted:#737373;--ktj-border:#e7e7e7;--ktj-soft:#f3f3f3;--ktj-shadow:0 4px 18px rgba(0,0,0,.05)}
@media(max-width:800px){.ktj-dda-grid{grid-template-columns:1fr 1fr}.ktj-dda-single .entry-title{font-size:32px}}@media(max-width:520px){.ktj-dda-grid{grid-template-columns:1fr}.ktj-dda-single{margin-top:25px}.ktj-dda-content{font-size:17px}}

/* Premium grid slider */
.ktj-dda-slider-wrap{--ktj-bg:#fff;--ktj-card:#fff;--ktj-text:#171717;--ktj-muted:#777;--ktj-border:#e7e7e7;--ktj-soft:#f2f2f2;background:var(--ktj-bg);}
.ktj-dda-slider-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}
.ktj-dda-slider-head h2{margin:0 0 4px;font-size:28px;line-height:1.15;color:var(--ktj-text)}
.ktj-dda-slider-head span{font-size:13px;color:var(--ktj-muted)}
.ktj-dda-slider-controls{display:flex;gap:8px;flex:0 0 auto}
.ktj-dda-slider-controls button{width:40px;height:40px;border:1px solid var(--ktj-border);border-radius:50%;background:var(--ktj-card);color:var(--ktj-text);font-size:28px;line-height:1;cursor:pointer;transition:.2s}
.ktj-dda-slider-controls button:hover{transform:translateY(-1px);opacity:.8}
.ktj-dda-slider-viewport{overflow:hidden;border-radius:18px}
.ktj-dda-slider-track{display:flex;transition:transform .5s cubic-bezier(.22,.61,.36,1);will-change:transform}
.ktj-dda-slide{position:relative;flex:0 0 100%;min-width:100%;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.85fr);gap:18px;background:var(--ktj-card);border:1px solid var(--ktj-border);border-radius:18px;overflow:hidden;min-height:310px}
.ktj-dda-slide-image{display:block;min-height:310px;background:var(--ktj-soft);overflow:hidden}
.ktj-dda-slide-image img{display:block;width:100%;height:100%;min-height:310px;object-fit:cover;transition:transform .6s ease}
.ktj-dda-slide:hover .ktj-dda-slide-image img{transform:scale(1.025)}
.ktj-dda-slide-content{display:flex;flex-direction:column;justify-content:center;padding:28px 30px 28px 8px}
.ktj-dda-slide-label{font-size:11px;font-weight:800;letter-spacing:.1em;color:var(--ktj-muted);margin-bottom:12px}
.ktj-dda-slide-content h3{font-size:clamp(24px,3vw,38px);line-height:1.13;margin:0 0 18px;color:var(--ktj-text)}
.ktj-dda-slide-content h3 a{color:inherit;text-decoration:none}
.ktj-dda-slide-content h3 a:hover{opacity:.78}
.ktj-dda-slide-content time{font-size:13px;color:var(--ktj-muted)}
.ktj-dda-slider-dots{display:flex;justify-content:center;align-items:center;gap:7px;margin-top:15px}
.ktj-dda-slider-dots button{width:7px;height:7px;border:0;border-radius:99px;padding:0;background:var(--ktj-border);cursor:pointer;transition:width .25s ease,opacity .25s ease}
.ktj-dda-slider-dots button.is-active{width:24px;background:var(--ktj-text)}
@media(max-width:800px){.ktj-dda-slide{grid-template-columns:1.25fr .9fr;min-height:250px}.ktj-dda-slide-image,.ktj-dda-slide-image img{min-height:250px}.ktj-dda-slide-content{padding:20px}.ktj-dda-slide-content h3{font-size:25px}.ktj-dda-slider-head h2{font-size:24px}}
@media(max-width:560px){.ktj-dda-slider-head{align-items:flex-end}.ktj-dda-slider-head span{display:none}.ktj-dda-slider-controls button{width:36px;height:36px;font-size:24px}.ktj-dda-slide{display:block;min-height:0}.ktj-dda-slide-image,.ktj-dda-slide-image img{height:auto;min-height:0;aspect-ratio:16/9}.ktj-dda-slide-content{padding:18px}.ktj-dda-slide-content h3{font-size:23px;margin-bottom:10px}.ktj-dda-slide-label{margin-bottom:7px}}
@media (prefers-reduced-motion:reduce){.ktj-dda-slider-track,.ktj-dda-slide-image img{transition:none}}
