/*
 * Rozana Himachal - modern UI polish (2026-10)
 * Visual refinements only: no block changes its position on the page.
 * Loaded after style-2.4.1.min.css. Remove the <link> in partials/_header.php to go back to the old look.
 */
:root {
    --rh-radius: 8px;
    --rh-radius-sm: 6px;
    --rh-ease: cubic-bezier(.2, .7, .2, 1);
    --rh-shadow: 0 6px 24px rgba(17, 24, 39, .10);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--vr-theme-color);
    color: #fff;
}

/* keyboard users can see where they are (the theme removes all outlines) */
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--vr-theme-color) !important;
    outline-offset: 2px;
}

/* ---------- images: rounded corners + gentle zoom on hover ---------- */
.post-item .image,
.post-item-small .left .image,
.mega-menu .menu-post-item .image,
.section-featured .col-featured-right .item,
.main-slider-container,
.section-videos .image {
    border-radius: var(--rh-radius);
    overflow: hidden;
}

.post-item .image img,
.post-item-small .left .image img,
.mega-menu .menu-post-item .image img,
.section-featured .col-featured-right .item img,
.main-slider .main-slider-item img {
    transition: transform .6s var(--rh-ease), opacity .3s ease;
    will-change: transform;
}

@media (hover: hover) {
    .post-item:hover .image img,
    .post-item-small:hover .left .image img,
    .mega-menu .menu-post-item:hover .image img,
    .section-featured .col-featured-right .item:hover img,
    .main-slider .main-slider-item:hover img {
        transform: scale(1.045);
    }

    .post-item .title a:hover,
    .post-item-small .title a:hover,
    .mega-menu .menu-post-item .title a:hover,
    .top-headlines .item .title a:hover {
        color: var(--vr-theme-color);
    }
}

/* loading placeholder for lazy images */
.post-item .image,
.post-item-small .left .image,
.mega-menu .menu-post-item .image {
    background-color: #f1f3f5;
}

.dark-mode .post-item .image,
.dark-mode .post-item-small .left .image,
.dark-mode .mega-menu .menu-post-item .image {
    background-color: #1e1e1e;
}

/* ---------- menus ---------- */
.mega-menu {
    border-radius: 0 0 var(--rh-radius) var(--rh-radius);
    box-shadow: var(--rh-shadow);
    animation: rhFadeIn .18s ease-out;
}

.nav-main .dropdown-menu {
    border: 0;
    border-radius: var(--rh-radius-sm);
    box-shadow: var(--rh-shadow);
    animation: rhFadeIn .18s ease-out;
}

.nav-main .dropdown-menu .dropdown-item {
    transition: background-color .15s ease, color .15s ease, padding-left .15s ease;
}

.nav-main .dropdown-menu .dropdown-item:hover {
    padding-left: 1.35rem;
}

@keyframes rhFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ---------- small components ---------- */
.badge-category {
    border-radius: 4px;
    letter-spacing: .2px;
}

.btn, .btn-custom {
    border-radius: var(--rh-radius-sm);
    transition: background-color .2s ease, background-image .2s ease, box-shadow .2s ease, transform .1s ease;
}

.btn-custom:active {
    transform: translateY(1px);
}

.form-input, .form-control {
    border-radius: var(--rh-radius-sm);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-input:focus, .form-control:focus {
    border-color: var(--vr-theme-color) !important;
}

.newsticker-container {
    border-radius: var(--rh-radius-sm);
}

.scrollup {
    transition: transform .2s ease, opacity .2s ease;
}

.scrollup i {
    border-radius: 50%;
    box-shadow: var(--rh-shadow);
}

.scrollup:hover {
    transform: translateY(-3px);
}

.pagination li a, .pagination .page-link {
    border-radius: var(--rh-radius-sm);
    transition: background-color .2s ease, color .2s ease;
}

.cookies-warning, .modal-content {
    border-radius: var(--rh-radius);
}

/* ---------- article reading ---------- */
.post-content .post-text {
    font-size: 16px;
    line-height: 1.85;
}

.post-content .post-text img,
.post-image-inner .center-image {
    border-radius: var(--rh-radius-sm);
}

.post-content .post-text blockquote {
    border-left: 4px solid var(--vr-theme-color);
    padding: 6px 0 6px 16px;
}

.post-content .post-summary {
    line-height: 1.6;
}

/* Section titles of the whole site: bold text with an accent bar in the theme color */
.section .section-title,
.sidebar-widget .widget-head:not(.widget-head-tabs) {
    border-bottom: 1px solid #ececec;
    padding-bottom: 10px;
}

.section .section-title:after,
.sidebar-widget .widget-head:after {
    display: none;
}

.section .section-title .title,
.sidebar-widget .widget-head .title,
.section-page .page-title,
.footer-widget .widget-title,
.top-headlines .top-headlines-title,
.emoji-reactions-container .title-reactions {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.section .section-title .title,
.sidebar-widget .widget-head .title {
    margin-bottom: 0;
}

.section .section-title .title {
    font-size: 22px;
}

.section .section-title .title::before,
.sidebar-widget .widget-head .title::before,
.section-page .page-title::before,
.footer-widget .widget-title::before,
.top-headlines .top-headlines-title::before,
.emoji-reactions-container .title-reactions::before {
    content: "";
    flex-shrink: 0;
    align-self: center;
    width: 5px;
    height: 1.1em;
    border-radius: 3px;
    background: var(--vr-theme-color);
}

.top-headlines .top-headlines-title::before {
    height: .85em;
}

/* Homepage category blocks: subcategory links as chips */
.section-category .nav-category-block {
    gap: 6px;
    align-items: center;
}

.section-category .nav-category-block .nav-item .nav-link {
    padding: 5px 14px;
    border-radius: 999px;
    background-color: #f2f3f5 !important;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    transition: background-color .2s var(--rh-ease), color .2s var(--rh-ease), box-shadow .2s var(--rh-ease);
}

.section-category .nav-category-block .nav-item .nav-link:hover,
.section-category .nav-category-block .nav-item.show .nav-link {
    background-color: #fdece2 !important;
    background-color: color-mix(in srgb, var(--vr-theme-color) 14%, #fff) !important;
    color: var(--vr-theme-color) !important;
}

.section-category .nav-category-block .nav-item .nav-link.active {
    background-color: var(--vr-theme-color) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--vr-theme-color) 35%, transparent);
}

.section-category .nav-category-block .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: 2px;
}

.section-category .nav-category-block .dropdown-menu {
    min-width: 170px;
    padding: 6px;
    border: 0;
    border-radius: 12px;
    box-shadow: var(--rh-shadow);
}

.section-category .nav-category-block .dropdown-item {
    padding: 7px 12px;
    border-radius: var(--rh-radius-sm);
    font-size: 14px;
    font-weight: 500;
}

.section-category .nav-category-block .dropdown-item:hover,
.section-category .nav-category-block .dropdown-item.active {
    background-color: #fdece2;
    background-color: color-mix(in srgb, var(--vr-theme-color) 14%, #fff);
    color: var(--vr-theme-color);
}

.dark-mode .section .section-title,
.dark-mode .sidebar-widget .widget-head:not(.widget-head-tabs) {
    border-bottom: 1px solid #2a2a2a;
}

.dark-mode .section-category .nav-category-block .nav-item .nav-link {
    background-color: rgba(255, 255, 255, .08) !important;
    color: #e5e5e5;
}

.dark-mode .section-category .nav-category-block .dropdown-menu {
    background-color: #1e1e1e;
}

.dark-mode .section-category .nav-category-block .dropdown-item {
    color: #e5e5e5;
}

@media (max-width: 1199.98px) {
    .section .section-title .title {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
