:root {
    --site-bg: #f7f8fb;
    --site-surface: #ffffff;
    --site-surface-raised: #ffffff;
    --site-text: #37373f;
    --site-muted: #686d78;
    --site-border: rgba(55, 55, 63, 0.14);
    --site-shadow: 0 12px 30px rgba(27, 31, 43, 0.12);
    --site-hover-shadow: 0 20px 44px rgba(180, 156, 115, 0.28);
}

html.site-dark-preload,
html.site-dark-preload body,
body.site-theme-dark {
    background: #0f141c;
}

body.site-shell {
    color: var(--site-text);
    background: var(--site-bg);
    transition: background-color .3s ease, color .3s ease;
}

.site-main-navbar {
    margin-right: -15px;
    margin-left: -15px;
}

.site-theme-switch {
    position: relative;
    width: 62px;
    height: 32px;
    padding: 3px;
    border: 1px solid rgba(180, 156, 115, .45);
    border-radius: 20px;
    background: #e8eef5;
    color: #d88c0c;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .24);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.site-theme-nav-item {
    display: flex;
    align-items: center;
    padding: 0 10px 0 3px;
}

.site-theme-switch:focus-visible {
    outline: 3px solid rgba(180, 156, 115, .45);
    outline-offset: 3px;
}

.site-theme-icon {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    font-size: 13px;
}

.site-theme-switch-knob {
    position: absolute;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .3);
    transition: transform .3s ease, background-color .3s ease;
}

body.site-theme-dark {
    --site-bg: #0f141c;
    --site-surface: #18212c;
    --site-surface-raised: #202b38;
    --site-text: #e5edf6;
    --site-muted: #b6c2d0;
    --site-border: #34465a;
    --site-shadow: 0 12px 32px rgba(0, 0, 0, .3);
    --site-hover-shadow: 0 18px 42px rgba(80, 158, 230, .24);
}

body.site-theme-dark .site-theme-switch {
    color: #dce6f2;
    background: #293241;
    border-color: #52657a;
}

body.site-theme-dark .site-theme-switch-knob {
    transform: translateX(30px);
    background: #10151d;
}

body.site-theme-dark,
body.site-theme-dark .container-fluid:not(.bg-primary):not(.bg-secondary),
body.site-theme-dark .container {
    background-color: var(--site-bg);
    color: var(--site-text);
}

body.site-theme-dark h1,
body.site-theme-dark h2,
body.site-theme-dark h3,
body.site-theme-dark h4,
body.site-theme-dark h5,
body.site-theme-dark h6,
body.site-theme-dark p,
body.site-theme-dark small,
body.site-theme-dark label,
body.site-theme-dark span:not(.carousel-control-prev-icon):not(.carousel-control-next-icon) {
    color: inherit;
}

body.site-theme-dark .bg-white,
body.site-theme-dark .navbar.bg-white,
body.site-theme-dark .dropdown-menu,
body.site-theme-dark .popup-content,
body.site-theme-dark .card,
body.site-theme-dark .modal-content {
    background-color: var(--site-surface) !important;
    color: var(--site-text);
    border-color: var(--site-border) !important;
}

body.site-theme-dark .border-bottom,
body.site-theme-dark .border,
body.site-theme-dark hr {
    border-color: var(--site-border) !important;
}

body.site-theme-dark .navbar-light .navbar-nav .nav-link,
body.site-theme-dark .dropdown-item,
body.site-theme-dark a:not(.btn) {
    color: #dce6f2;
}

body.site-theme-dark .navbar-light .navbar-nav .nav-link:hover,
body.site-theme-dark .navbar-light .navbar-nav .nav-link.active,
body.site-theme-dark .dropdown-item:hover,
body.site-theme-dark a:not(.btn):hover {
    color: #d4b477;
}

body.site-theme-dark .dropdown-item:hover,
body.site-theme-dark .dropdown-item:focus {
    background-color: var(--site-surface-raised);
}

/* Shared pagination: balanced navigation buttons and clear dark-mode states. */
.site-pagination {
    align-items: center;
    gap: 6px;
}

.site-pagination .page-item {
    margin: 0;
}

.site-pagination .page-link {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #ccd4de;
    border-radius: 10px !important;
    color: #48566a;
    background: #fff;
    font-weight: 700;
    box-shadow: 0 5px 14px rgba(24, 33, 47, .08);
    transition: transform .18s ease, color .18s ease, background .18s ease,
        border-color .18s ease, box-shadow .18s ease;
}

.site-pagination .page-item:first-child .page-link,
.site-pagination .page-item:last-child .page-link {
    width: 106px;
}

.site-pagination .page-link:hover {
    z-index: 2;
    color: #17202c;
    border-color: #bda66f;
    background: #e0ca93;
    box-shadow: 0 9px 22px rgba(189, 166, 111, .25);
    transform: translateY(-2px);
}

.site-pagination .page-item.active .page-link {
    color: #111925;
    border-color: #d8c184;
    background: linear-gradient(135deg, #e2ce9c, #bda66f);
    box-shadow: 0 8px 22px rgba(189, 166, 111, .32);
}

.site-pagination .page-item.disabled .page-link {
    color: #9ba6b4;
    border-color: #dce2e9;
    background: #f2f4f7;
    box-shadow: none;
    opacity: .62;
}

body.site-theme-dark .site-pagination .page-link {
    color: #dce5ef;
    border-color: #3c4d62;
    background: #182230;
    box-shadow: 0 7px 18px rgba(0, 0, 0, .24);
}

body.site-theme-dark .site-pagination .page-link:hover {
    color: #111925;
    border-color: #d6bd80;
    background: #d6bd80;
    box-shadow: 0 10px 26px rgba(189, 166, 111, .3);
}

body.site-theme-dark .site-pagination .page-item.active .page-link {
    color: #101722;
    border-color: #ead59d;
    background: linear-gradient(135deg, #ead59d, #bda66f);
    box-shadow: 0 0 0 3px rgba(189, 166, 111, .12), 0 9px 24px rgba(0, 0, 0, .3);
}

body.site-theme-dark .site-pagination .page-item.disabled .page-link {
    color: #677487;
    border-color: #29384a;
    background: #121a25;
    box-shadow: none;
    opacity: .72;
}

@media (max-width: 480px) {
    .site-pagination { gap: 4px; }
    .site-pagination .page-link { min-width: 38px; min-height: 38px; padding: 7px 9px; }
    .site-pagination .page-item:first-child .page-link,
    .site-pagination .page-item:last-child .page-link { width: 86px; font-size: 13px; }
}

body.site-theme-dark .form-control,
body.site-theme-dark input,
body.site-theme-dark textarea,
body.site-theme-dark select {
    color: var(--site-text);
    background-color: #111923;
    border-color: var(--site-border);
}

body.site-theme-dark .form-control::placeholder,
body.site-theme-dark input::placeholder,
body.site-theme-dark textarea::placeholder {
    color: #8fa0b3;
}

/* Shared page hero used by News, Services, Movies, Music, Comments, P-P-F and Practice. */
body.site-theme-dark header.bg-light,
body.site-theme-dark header.bg-light > .container {
    background: var(--site-bg) !important;
    color: var(--site-text) !important;
}

header.bg-light > .container > .text-center {
    padding: 28px 32px;
    border: 1px solid var(--site-border);
    border-radius: 14px;
    background: var(--site-surface);
    box-shadow: var(--site-shadow);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

header.bg-light > .container > .text-center:hover {
    transform: translateY(-4px);
    border-color: rgba(180, 156, 115, .75);
    box-shadow: var(--site-hover-shadow);
}

body.site-theme-dark header.bg-light > .container > .text-center {
    background: linear-gradient(135deg, #18212c, #111923);
    border-color: #34465a;
}

/* Reusable hover treatment for content items across the public site. */
body.site-shell .card,
body.site-shell .music-card,
body.site-shell .cmt-card,
body.site-shell .cmt-reply-item,
body.site-shell .masonry-item,
body.site-shell .method-card {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease,
        filter .25s ease, background-color .25s ease;
}

body.site-shell .card:hover,
body.site-shell .music-card:hover,
body.site-shell .cmt-card:hover,
body.site-shell .cmt-reply-item:hover,
body.site-shell .masonry-item:hover,
body.site-shell .method-card:hover {
    transform: translateY(-6px);
    border-color: rgba(180, 156, 115, .8) !important;
    box-shadow: var(--site-hover-shadow) !important;
    filter: brightness(1.04);
}

body.site-shell .card:hover img,
body.site-shell .music-card:hover img,
body.site-shell .masonry-item:hover img {
    filter: saturate(1.08) contrast(1.04);
}

body.site-theme-dark .cc-card,
body.site-theme-dark .cc-left,
body.site-theme-dark .cc-right {
    background: var(--site-surface) !important;
    color: var(--site-text) !important;
    border-color: var(--site-border) !important;
}

body.site-theme-dark .cc-section-label,
body.site-theme-dark .canchi-table td,
body.site-theme-dark .canchi-table th,
body.site-theme-dark .seg-label,
body.site-theme-dark .seg-count {
    color: var(--site-text) !important;
}

body.site-theme-dark .canchi-table th,
body.site-theme-dark .canchi-date {
    background: var(--site-surface-raised) !important;
    border-color: var(--site-border) !important;
}

.home-page > .container-fluid > .container > .row,
.home-page .service-carousel .owl-item > div,
.home-page .feature-text,
.home-page .feature-text .d-flex,
.home-page .bg-action {
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease,
        background-color .28s ease, filter .28s ease;
}

.home-page > .container-fluid > .container > .row,
.home-page .service-carousel .owl-item > div,
.home-page .feature-text {
    border: 1px solid var(--site-border);
}

.home-page > .container-fluid > .container > .row {
    padding: 24px;
    border-radius: 12px;
}

.home-page > .container-fluid > .container > .row:hover,
.home-page .service-carousel .owl-item > div:hover,
.home-page .feature-text .d-flex:hover,
.home-page .bg-action:hover {
    transform: translateY(-6px);
    box-shadow: var(--site-hover-shadow);
    border-color: rgba(180, 156, 115, .78);
}

.home-page .service-carousel .owl-item > div {
    min-height: 310px;
    overflow: hidden;
    box-shadow: var(--site-shadow);
}

.home-page .service-carousel .owl-item > div:hover .icon-box {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 8px 20px rgba(180, 156, 115, .28);
}

.home-page .icon-box {
    transition: transform .28s ease, box-shadow .28s ease;
}

.home-page .feature-text .d-flex {
    padding: 14px;
    border: 1px solid transparent;
    border-radius: 10px;
}

body.site-theme-dark .home-page .service-carousel .owl-item > div,
body.site-theme-dark .home-page .feature-text,
body.site-theme-dark .home-page .position-relative.text-center.bg-white {
    background: var(--site-surface) !important;
    color: var(--site-text);
}

body.site-theme-dark .home-page > .container-fluid > .container > .row:hover,
body.site-theme-dark .home-page .service-carousel .owl-item > div:hover,
body.site-theme-dark .home-page .feature-text .d-flex:hover {
    background-color: var(--site-surface-raised);
    border-color: #5c82aa;
}

@media (max-width: 991.98px) {
    .site-theme-nav-item {
        padding: 8px 0 12px;
    }

    .home-page > .container-fluid > .container > .row {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-theme-switch,
    .site-theme-switch-knob,
    .home-page * {
        transition: none !important;
    }
}
