

@font-face {
    font-family: 'URW DIN Arabic';
    src: url('../fonts/urw-din-arabic/URW-DIN-Arabic-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'URW DIN Arabic';
    src: url('../fonts/urw-din-arabic/URW-DIN-Arabic.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'URW DIN Arabic';
    src: url('../fonts/urw-din-arabic/URW-DIN-Arabic-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'URW DIN Arabic';
    src: url('../fonts/urw-din-arabic/URW-DIN-Arabic-Demi.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'URW DIN Arabic';
    src: url('../fonts/urw-din-arabic/URW-DIN-Arabic-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Sanabel Khebrat';
    src: url('../fonts/calligraphy/sanabel-khebrat-musamem.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --dihan-amber: #c7955a;
    --dihan-amber-dark: #a9773f;
    --dihan-amber-light: #e4b988;
    --dihan-cream: #f7f1e6;
    --dihan-dark: #211c17;
    --dihan-text: #3a2e22;
    --dihan-muted: #7c6d5c;

    --color-primary: #a9773f;
    --color-accent:  #c7955a;
    --color-bg:      #f7f1e6;
    --color-text:    #3a2e22;
    --color-muted:   #7c6d5c;
}

body, .site-font {
    font-family: 'URW DIN Arabic', 'DroidKufi-Regular', Tahoma, sans-serif;
    color: var(--dihan-text);
}

.cd-main-header {
    background: var(--dihan-dark);
    padding: 6px 0;
}
.cd-main-nav__list {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    padding: 0 2em;
    margin: 0;
}
.cd-main-nav__item--signin {
    display: inline-block;
    background: var(--dihan-amber);
    color: #fff !important;
    padding: 6px 22px;
    border-radius: 20px;
    font-size: .85em;
    text-decoration: none;
    transition: background .2s ease;
}
.cd-main-nav__item--signin:hover {
    background: var(--dihan-amber-dark);
    color: #fff;
}

.fh5co-nav {
    position: static !important;
    top: auto !important;
    background: var(--dihan-dark);
    padding: 0;
}
@media screen and (max-width: 768px) {
    .fh5co-nav {
        position: static !important;
        top: auto !important;
    }
}
.fh5co-nav .site-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    padding: .3em 1.2em;
    width: 100%;
}
.fh5co-nav .logo {
    flex: 0 0 auto;
    width: auto !important;
    float: none !important;
    order: 1;
}
.fh5co-nav .logo #fh5co-logo {
    background: transparent;
    width: auto;
    padding: 2px 6px;
    display: flex;
    align-items: center;
}
.fh5co-nav .menu-1 {
    flex: 1 1 auto;
    width: auto !important;
    float: none !important;
    min-width: 0;
    order: 2;
    align-self: stretch;
    display: flex;
    align-items: center;
}
.fh5co-nav .menu-1 ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    row-gap: 2px;
    width: 100%;
}
.fh5co-nav .menu__item { position: relative; }
.fh5co-nav .menu__link {
    color: #eadfcf;
    font-weight: 500;
    text-decoration: none;
    text-shadow: none;
    padding: 14px 10px;
    font-size: .8em;
    white-space: nowrap;
    display: inline-block;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
.fh5co-nav .menu__link:hover { color: var(--dihan-amber-light); border-bottom-color: var(--dihan-amber); }
.fh5co-nav .menu__item.active .menu__link { color: var(--dihan-amber); border-bottom-color: var(--dihan-amber); }
.fh5co-nav #fh5co-logo img.img1 {
    max-height: 44px;
    width: auto;
    display: block;
}
.fh5co-nav .nav-login {
    flex: 0 0 auto;
    order: 3;
    padding: 0 0 0 1em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fh5co-nav .nav-login .cd-main-nav__item--signin {
    display: inline-block;
    background: var(--dihan-amber);
    color: #fff !important;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: .85em;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease;
}
.fh5co-nav .nav-login .cd-main-nav__item--signin:hover {
    background: var(--dihan-amber-dark);
    color: #fff;
}

.nav-user { position: relative; }
.nav-user-btn {
    background: transparent;
    border: 1px solid rgba(234,223,207,.3);
    color: #eadfcf;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: .82em;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    transition: background .2s ease, border-color .2s ease;
}
.nav-user-btn:hover { background: rgba(255,255,255,.06); border-color: var(--dihan-amber); }
.nav-user-btn .fa-user-circle { color: var(--dihan-amber); font-size: 1.2em; }
.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 185px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    padding: 6px;
    display: none;
    z-index: 200;
}
.nav-user-dropdown.open { display: block; }
.nav-user-dropdown a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    color: var(--dihan-text);
    text-decoration: none;
    border-radius: 6px;
    font-size: .9em;
}
.nav-user-dropdown a:hover { background: var(--dihan-cream); color: var(--dihan-amber-dark); }
.nav-user-dropdown a i { color: var(--dihan-amber-dark); width: 16px; text-align: center; }

.nav-hamburger {
    display: none;
    background: transparent;
    border: none;
    color: #eadfcf;
    font-size: 1.4em;
    cursor: pointer;
    padding: 6px 10px;
}

@media (max-width: 992px) {
    .fh5co-nav .site-nav-inner { flex-wrap: wrap; justify-content: space-between; padding: .5em 1em; }
    .fh5co-nav .logo { order: 1; }
    .fh5co-nav .nav-login { order: 2; padding: 0; }
    .nav-hamburger { display: block; order: 3; }
    .fh5co-nav .menu-1 {
        order: 4;
        flex: 0 0 100%;
        width: 100% !important;
        display: none;
        margin-top: .4em;
    }
    .fh5co-nav .menu-1.open { display: block; }
    .fh5co-nav .menu-1 ul { flex-direction: column; align-items: stretch; width: 100%; }
    .fh5co-nav .menu__item { width: 100%; }
    .fh5co-nav .menu__link {
        display: block;
        padding: 12px 8px;
        font-size: .95em;
        border-bottom: 1px solid rgba(255,255,255,.06);
    }
    .fh5co-nav .menu__link { border-bottom-color: transparent; }
    .fh5co-nav .menu__item.active .menu__link { background: rgba(199,149,90,.15); }
}

#fh5co-header.fh5co-cover {
    background-image: url('../images/design/hero-family-collage.png') !important;
    background-size: cover;
    background-position: center;
    min-height: 440px;
    padding: 2.5em 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#fh5co-header .overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,.55) 0%, rgba(0,0,0,.22) 55%, rgba(0,0,0,0) 100%);
}
#fh5co-header .container { position: relative; z-index: 1; }
#fh5co-header h1 {
    font-family: 'Sanabel Khebrat', 'URW DIN Arabic', serif;
    color: #f7f1e6;
    font-size: 3em;
    font-weight: normal;
    text-shadow: 0 2px 14px rgba(0,0,0,.7), 0 0 30px rgba(0,0,0,.4);
    position: relative;
    z-index: 1;
}
@media (max-width: 768px) {
    #fh5co-header.fh5co-cover { min-height: 50vh; }
    #fh5co-header h1 { font-size: 1.8em; }
}

.page-banner {
    position: relative;
    height: 220px;
    background-image: url('../images/design/hero-family-collage.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.page-banner .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.62));
}
.page-banner-inner { position: relative; z-index: 1; color: #fff; padding: 0 1em; }
.page-banner-inner h1 {
    margin: 0 0 8px;
    font-family: 'Sanabel Khebrat', 'URW DIN Arabic', serif;
    font-weight: normal;
    font-size: 2.2em;
    text-shadow: 0 2px 12px rgba(0,0,0,.65);
}
.breadcrumb-nav { font-size: .9em; color: #eadfcf; }
.breadcrumb-nav a { color: #fff; text-decoration: none; }
.breadcrumb-nav a:hover { text-decoration: underline; }
.breadcrumb-nav span { margin: 0 5px; }
@media (max-width: 768px) {
    .page-banner { height: 160px; }
    .page-banner-inner h1 { font-size: 1.6em; }
}

.inner-page .panel-heading { display: none; }

.tree-poster-wrap {
    max-width: 960px;
    margin: 0 auto;
    background: var(--color-bg);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}
.tree-poster {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
    cursor: zoom-in;
}
.tree-hint { margin: 14px 0 4px; color: var(--color-muted); font-size: .9em; }
.tree-download { margin: 2px 0 0; }
.tree-download a { color: var(--color-primary); text-decoration: none; font-size: .9em; }
.tree-download a:hover { text-decoration: underline; }

.tree-viewer { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999; display: none; overflow: hidden; }
.tree-viewer.open { display: block; }
.tv-stage {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    cursor: grab; touch-action: none;
}
.tv-stage:active { cursor: grabbing; }
.tv-stage img {
    max-width: 92vw; max-height: 92vh;
    transform-origin: center center;
    user-select: none; -webkit-user-drag: none;
    will-change: transform;
}
.tv-toolbar { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; gap: 8px; }
.tv-toolbar button {
    width: 42px; height: 42px;
    border: none; border-radius: 8px;
    background: rgba(255,255,255,.9); color: #211c17;
    font-size: 1.3em; cursor: pointer; line-height: 1;
}
.tv-toolbar button:hover { background: #fff; }
.tv-toolbar .tv-close { background: var(--color-accent); color: #fff; }

.panel-title, #main-content h3.panel-title {
    color: var(--dihan-amber-dark);
    font-weight: 600;
}
.card-heading-btn, .btn.slider-btn, a.btn-more {
    display: inline-block;
    border: 1px solid var(--dihan-amber);
    color: var(--dihan-amber-dark);
    background: transparent;
    border-radius: 20px;
    padding: 6px 22px;
    font-size: .9em;
    text-decoration: none;
    transition: all .2s ease;
}
.card-heading-btn:hover, .btn.slider-btn:hover, a.btn-more:hover {
    background: var(--dihan-amber);
    color: #fff;
}

.footer-widgets {
    background: var(--dihan-amber);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}
.footer-widgets .container { position: relative; z-index: 1; }

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

.footer-brand { flex: 0 0 auto; text-align: center; }
.footer-brand img {
    max-height: 56px;
    width: auto;
    display: block;
    margin: 0 auto 6px;
    filter: brightness(.35);
}
.footer-brand p { margin: 0; color: #3a2e22; font-size: .9em; font-weight: 600; }

.footer-links { flex: 1 1 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
.footer-links a {
    color: #4a3520;
    text-decoration: none;
    font-size: .92em;
    white-space: nowrap;
    transition: color .2s ease;
}
.footer-links a:hover { color: var(--dihan-amber-dark); text-decoration: underline; }

.footer-watermark {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    right: 0;
    font-family: 'Sanabel Khebrat', serif;
    font-size: 8em;
    color: rgba(255,255,255,.12);
    white-space: nowrap;
    line-height: 1;
    pointer-events: none;
}
@media (max-width: 768px) {
    .footer-compact { flex-direction: column; text-align: center; gap: 16px; }
    .footer-links { gap: 8px 16px; }
}

footer .copyright {
    background: var(--dihan-dark);
    padding: 1.2em 0;
}
footer .copyright p {
    color: #cbbfae;
    font-size: .85em;
    margin: 0;
}
footer .copyright a {
    color: var(--dihan-amber-light);
}

.gototop { position: fixed; bottom: 22px; left: 22px; z-index: 900; }
.gototop .js-gotop {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--dihan-amber);
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0,0,0,.22);
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}
.gototop .js-gotop:hover { background: var(--dihan-amber-dark); transform: translateY(-2px); }
.gototop .js-gotop i { color: #fff; font-size: 18px; line-height: 1; display: block; }

.album-card { text-decoration: none; color: inherit; }
.album-cover { aspect-ratio: 4 / 3; }
.album-cover img { transition: transform .35s ease; }
.album-card:hover .album-cover img { transform: scale(1.06); }
.album-badge {
    position: absolute;
    top: 10px; right: 10px;
    z-index: 3;
    background: rgba(33,28,23,.82);
    color: #fff;
    font-size: .78em;
    padding: 3px 11px;
    border-radius: 14px;
    line-height: 1.6;
}

.album-header { text-align: center; margin-bottom: 1.8em; }
.album-header h2 { color: var(--color-primary); font-weight: 700; margin: 0 0 .4em; }
.album-meta { color: var(--color-muted); font-size: .92em; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; }
.album-meta i { color: var(--color-accent); margin-inline-end: 4px; }

.album-masonry { column-count: 3; column-gap: 16px; }
@media (max-width: 900px) { .album-masonry { column-count: 2; } }
@media (max-width: 560px) { .album-masonry { column-count: 1; } }
.masonry-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #faf6ef;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.masonry-media {
    position: relative;
    overflow: hidden;
    background: #f1e6d4;
    min-height: 60px;
}
.masonry-media img, .masonry-media video { width: 100%; height: auto; display: block; }
.masonry-media img { opacity: 0; transition: opacity .3s ease, transform .3s ease; }
.masonry-media.loaded img { opacity: 1; }
.masonry-item:hover .masonry-media img { transform: scale(1.05); }
.masonry-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.4);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .2s ease;
}
.masonry-item:hover .masonry-overlay { opacity: 1; }
.masonry-overlay i { color: #fff; font-size: 1.9em; }

.play-btn {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(0,0,0,.45);
    display: flex; align-items: center; justify-content: center;
    pointer-events: none; z-index: 2;
    transition: background .2s ease, transform .2s ease;
}
.play-btn::before {
    content: ""; display: block;
    width: 0; height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}
.masonry-item:hover .play-btn,
.home-thumb-grid .video-thumb:hover .play-btn,
.video-thumb:hover .play-btn {
    background: var(--dihan-amber);
    transform: translate(-50%, -50%) scale(1.08);
}
@media (max-width: 560px) {
    .play-btn { width: 48px; height: 48px; }
    .play-btn::before { border-width: 9px 0 9px 15px; }
}

.dur-badge {
    position: absolute; bottom: 8px; left: 8px;
    background: rgba(0,0,0,.75); color: #fff;
    font-size: 12px; line-height: 1; padding: 3px 7px;
    border-radius: 4px; z-index: 2;
}

.media-caption {
    font-size: 15px; font-weight: 500; color: #5a4632;
    padding: 10px 12px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; word-break: break-word;
}

.album-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.93); z-index: 9999; display: none; }
.album-lightbox.open { display: block; }
.alb-stage {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    touch-action: none;
}
.alb-stage img { max-width: 92vw; max-height: 88vh; transform-origin: center center; user-select: none; -webkit-user-drag: none; will-change: transform; display: none; }
.alb-stage video { max-width: 92vw; max-height: 88vh; display: none; }
.alb-toolbar { position: absolute; top: 14px; left: 14px; z-index: 3; display: flex; align-items: center; gap: 8px; }
.alb-counter { color: #fff; font-size: .95em; margin-inline-end: 6px; }
.alb-btn {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border: none; border-radius: 8px;
    background: rgba(255,255,255,.9); color: #211c17;
    font-size: 1.25em; cursor: pointer; text-decoration: none; line-height: 1;
}
.alb-btn:hover { background: #fff; }
.alb-btn.alb-close { background: var(--color-accent); color: #fff; }
.alb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 3;
    width: 48px; height: 48px;
    border: none; border-radius: 50%;
    background: rgba(255,255,255,.85); color: #211c17;
    font-size: 1.8em; cursor: pointer; line-height: 1;
}
.alb-nav:hover { background: #fff; }
.alb-caption {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
    padding: 16px 20px; text-align: center; color: #fff; font-size: 16px;
    background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
    pointer-events: none;
}
.alb-caption:empty { display: none; }
.alb-prev { right: 16px; }
.alb-next { left: 16px; }

.dihan-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    transition: transform .2s ease, box-shadow .2s ease;
}
.dihan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0,0,0,.10);
}
.dihan-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.dihan-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1e6d4;
    border-radius: 12px 12px 0 0;
}

.dihan-card-media--side {
    aspect-ratio: auto;
    height: 100%;
    min-height: 200px;
    border-radius: 0;
}
.dihan-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dihan-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f7efe3, #ead9bd);
}
.dihan-card-placeholder i { display: none; }
.dihan-card-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/design/logo-main.png') center / 42% auto no-repeat;
    opacity: .25;
}

.dihan-card-media.loading::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0));
    transform: translateX(-100%);
    animation: dihanShimmer 1.3s infinite;
}
@keyframes dihanShimmer { to { transform: translateX(100%); } }

.home-section { padding: 64px 0; }
.home-section + .home-section { border-top: 1px solid rgba(169,119,63,.12); }

.section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f3e9da;
    border-right: 4px solid var(--color-accent);
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 26px;
}
.section-head i { color: var(--color-primary); font-size: 1.35em; }
.section-head h3 { margin: 0; color: var(--color-primary); font-weight: 700; font-size: 1.25em; }

.dihan-card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}
.dihan-card-grid > .dihan-card {
    flex: 0 1 300px;
    max-width: 330px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}
.dihan-card-grid > .dihan-card .dihan-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    text-align: right;
}
.dihan-card-title {
    margin: 0 0 6px;
    font-weight: 700;
    font-size: 1.02em;
    line-height: 1.4;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dihan-card-meta { color: var(--color-muted); font-size: .85em; margin: 0 0 14px; }
.dihan-card-grid > .dihan-card .dihan-more-btn {
    align-self: flex-end;
    margin-top: auto;
}
.dihan-empty {
    width: 100%;
    text-align: center;
    color: var(--color-muted);
    padding: 2.4em 0;
    font-size: 1.05em;
}

.empty-state {
    width: 100%;
    text-align: center;
    padding: 56px 20px;
}
.empty-state i {
    display: block;
    font-size: 3.4rem;
    color: var(--color-accent);
    opacity: .5;
    margin-bottom: 14px;
}
.empty-state-msg { color: var(--color-text); font-weight: 600; font-size: 1.12em; margin: 0 0 6px; }
.empty-state-sub { color: var(--color-muted); font-size: .9em; margin: 0; }

#main-content { min-height: 30vh; }

.char-desc {
    color: var(--color-muted);
    font-size: .88em;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dihan-card-placeholder .fa-user { font-size: 3rem; }
.char-media { aspect-ratio: 3 / 4; }

.history-wrap { max-width: 820px; margin: 0 auto; }
.history-content {
    font-size: 18px;
    line-height: 2;
    text-align: right;
    color: var(--color-text);
}
.history-content h2, .history-content h3 {
    color: #4a3520;
    font-weight: 700;
    margin: 1.5em 0 .5em;
    scroll-margin-top: 90px;
}
.history-content h2 { font-size: 1.5em; }
.history-content h3 { font-size: 1.25em; }
.history-content p { margin: 0 0 1em; }

.history-content blockquote {
    border-right: 4px solid var(--color-accent);
    background: #f7efe3;
    margin: 1.3em 0;
    padding: 1em 1.3em;
    border-radius: 6px;
}
.history-content blockquote cite,
.history-content blockquote .source {
    display: block;
    margin-top: .6em;
    color: var(--color-muted);
    font-size: .88em;
    font-style: normal;
}

.history-content .poem {
    background: #f7efe3;
    border-right: 4px solid var(--color-accent);
    border-radius: 6px;
    padding: 1em 1.4em;
    margin: 1.4em auto;
    text-align: center;
    font-size: 1.15em;
    line-height: 2.2;
}
.history-content .poem .verse {
    display: flex;
    justify-content: center;
    gap: 2.4em;
    flex-wrap: wrap;
}
@media (max-width: 600px) {
    .history-content .poem .verse { flex-direction: column; gap: .1em; }
}

.history-toc {
    background: #f3e9da;
    border-right: 4px solid var(--color-accent);
    border-radius: 8px;
    padding: 1em 1.3em;
    margin-bottom: 1.6em;
}
.history-toc h4 { margin: 0 0 .5em; color: var(--color-primary); font-weight: 700; }
.history-toc a { display: block; color: var(--color-primary); text-decoration: none; padding: 3px 0; font-size: .95em; }
.history-toc a:hover { text-decoration: underline; color: var(--color-accent); }

.dihan-more-btn {
    display: inline-block;
    border: 1.5px solid var(--color-accent);
    color: var(--color-primary);
    background: transparent;
    border-radius: 24px;
    padding: 9px 28px;
    font-size: .95em;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.dihan-more-btn:hover { background: var(--color-accent); color: #fff; }
.section-more { text-align: center; margin-top: 28px; }

.home-thumb-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.home-thumb-grid > div { flex: 0 1 220px; max-width: 240px; }

@media (max-width: 992px) { .dihan-card-grid > .dihan-card { flex-basis: 45%; max-width: 45%; } }
@media (max-width: 600px)  { .dihan-card-grid > .dihan-card { flex-basis: 100%; max-width: 100%; } .home-section { padding: 40px 0; } }
.dihan-card .dihan-card-body {
    padding: .8em 1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.video-thumb { position: relative; }
.video-thumb .play-icon {
    position: absolute;
    top: 50%; left: 50%;
    width: 46px; height: 46px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.dihan-comments { margin-top: 40px; }
.dc-head { margin-bottom: 18px; }

.dc-alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 15px; }
.dc-alert-ok { background: #eaf6ea; color: #2f6b34; border: 1px solid #cfe8cf; }
.dc-alert-err { background: #fdecea; color: #b4231a; border: 1px solid #f5c6c2; }

.dc-form { margin-bottom: 28px; }
.dc-input {
    width: 100%; border: 1px solid #e0cdb0; border-radius: 12px; background: #fff;
    padding: 14px; font-size: 16px; line-height: 1.7; resize: none; color: var(--dihan-text);
    font-family: inherit; outline: none; box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.dc-input:focus { border-color: var(--dihan-amber); box-shadow: 0 0 0 3px rgba(199,149,90,.25); }
.dc-form-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.dc-counter { font-size: 13px; color: var(--dihan-muted); }
.dc-send {
    background: var(--dihan-amber); color: #fff; border: none; border-radius: 10px;
    padding: 10px 30px; font-size: 15px; cursor: pointer; transition: background .15s;
}
.dc-send:hover:not(:disabled) { background: var(--dihan-amber-dark); }
.dc-send:disabled { opacity: .5; cursor: not-allowed; }

.dc-login-box {
    background: #f7f1e6; border: 1px solid #ecdcc3; border-radius: 12px; padding: 16px 20px;
    margin-bottom: 28px; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; color: var(--dihan-text);
}
.dc-login-link { background: var(--dihan-amber); color: #fff; padding: 8px 20px; border-radius: 10px; text-decoration: none; }
.dc-login-link:hover { background: var(--dihan-amber-dark); color: #fff; }

.dc-list { display: flex; flex-direction: column; gap: 12px; }
.dc-empty { text-align: center; color: var(--dihan-muted); padding: 26px 10px; font-size: 15px; }
.dc-item { background: #faf6ef; border-radius: 12px; padding: 16px 20px; }
.dc-item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dc-name { font-weight: 700; color: #5a4632; }
.dc-dot { color: var(--dihan-muted); }
.dc-date { color: var(--dihan-muted); font-size: 13px; }
.dc-text { font-size: 16px; line-height: 1.8; color: var(--dihan-text); white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.dc-del-form { margin: 0; margin-right: auto; }
.dc-del { background: none; border: none; color: #b98a8a; cursor: pointer; opacity: .45; padding: 2px 6px; font-size: 14px; transition: opacity .15s, color .15s; }
.dc-del:hover { opacity: 1; color: #c0392b; }

.dihan-content-text { overflow-wrap: anywhere; word-break: break-word; }

@media (max-width: 600px) {
    .dihan-comments { padding: 0 16px; }
    .dc-form-row { flex-direction: column; align-items: stretch; gap: 10px; }
    .dc-send { width: 100%; }
    .dc-counter { text-align: right; }
}

#SHowButton.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
#SHowButton.pagination .btn {
    min-width: 40px; height: 40px; padding: 0 10px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #f7efe3; color: var(--dihan-amber-dark);
    border: 1px solid var(--dihan-amber-light);
    font-weight: 600; box-shadow: none; outline: none;
    transition: background .15s ease, color .15s ease;
}
#SHowButton.pagination .btn:hover { background: var(--dihan-amber-light); color: #fff; }
#SHowButton.pagination .btn:focus { outline: none; box-shadow: none; }
#SHowButton.pagination .btn.active,
#SHowButton.pagination .btn.active:hover,
#SHowButton.pagination .btn.active:focus {
    background: var(--dihan-amber); color: #fff; border-color: var(--dihan-amber);
}
