/*
 * refresh.css - light visual polish on top of the original template.
 * The layout, colours and sections are unchanged; this only softens edges,
 * improves Hindi typography, spacing and hover feedback.
 */

:root {
    --nk-red: #c8102e;
    --nk-red-dark: #8f0b21;
    --nk-gold: #d9a441;
    --nk-shadow: 0 6px 22px rgba(0, 0, 0, .08);
    --nk-shadow-hover: 0 12px 30px rgba(0, 0, 0, .14);
    --nk-radius: 10px;
}

/* ---------- Typography: better Devanagari rendering ---------- */
body,
.page-details, .welcome-msg, .cut-text, .box-categories-list, .media-title,
.megamenu-ul-item, .breadcrumbs-custom-title, .team-nikki-address, .card-body {
    font-family: "Noto Sans Devanagari", Poppins, Arial, sans-serif;
}
.page-details, .welcome-msg { line-height: 1.85; }
.page-details p, .welcome-msg p { margin-bottom: .9em; }
.page-details img { max-width: 100%; height: auto; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--nk-gold); outline-offset: 2px; }

/* ---------- Header + language switch ---------- */
.rd-navbar-aside-outer { position: relative; }
.lang-switch {
    position: absolute;
    top: 14px;
    right: 18px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: #fff;
    color: var(--nk-red-dark) !important;
    border: 1px solid rgba(200, 16, 46, .35);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    font: 600 14px/1 "Noto Sans Devanagari", Poppins, sans-serif;
    letter-spacing: .02em;
    transition: all .25s ease;
}
.lang-switch:hover { background: var(--nk-red); color: #fff !important; border-color: var(--nk-red); transform: translateY(-1px); }
.lang-switch-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--nk-red); color: #fff; font-size: 11px;
}
.lang-switch:hover .lang-switch-icon { background: #fff; color: var(--nk-red); }
/* fixed (mobile/tablet) navbar: keep the switch inside the top bar */
.rd-navbar-fixed .lang-switch { position: fixed; top: 9px; right: 56px; padding: 4px 10px 4px 4px; font-size: 12px; z-index: 1090; }
.rd-navbar-fixed .lang-switch-icon { width: 24px; height: 24px; font-size: 9px; }

.rd-navbar-megamenu .megamenu-ul-item { transition: color .2s ease, padding-left .2s ease; }
.rd-navbar-megamenu .megamenu-ul-item:hover { padding-left: 4px; }

/* ---------- Hero video ---------- */
.hero-video { background: #000; line-height: 0; }
.hero-video video, .hero-video .hero-image { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

/* ---------- Home info boxes ---------- */
.home-boxes { background: url('../images/white-bg-2.jpg'); }
.home-boxes .box-categories {
    border-radius: var(--nk-radius);
    box-shadow: var(--nk-shadow);
    margin-bottom: 24px;
    overflow: hidden;
}
.home-boxes .box-categories:hover { box-shadow: var(--nk-shadow-hover); transform: translateY(-3px); }
.home-boxes .box-categories::before { border-radius: calc(var(--nk-radius) - 4px); }
.home-boxes .box-categories > img { border-radius: 6px; width: 100%; height: auto; }
.box-categories-title { font-weight: 600; color: var(--nk-red-dark); }
.timing-thumb { width: 100%; height: auto; max-height: 227px; object-fit: contain; border-radius: 6px; }
.news-thumb { width: 80px; height: auto; border-radius: 4px; }
.box-empty { color: #888; font-size: 14px; padding: 10px 0; list-style: none; }

/* replaces <marquee>: smooth vertical scrolling, pauses on hover */
.auto-scroll { height: 220px; overflow: hidden; position: relative; text-align: left;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%); }
.auto-scroll.auto-scroll-static { overflow-y: auto; -webkit-mask-image: none; mask-image: none; }

/* ---------- Buttons / links ---------- */
.read-more { font-weight: 600; color: var(--nk-red); }
.read-more:hover { color: var(--nk-red-dark); text-decoration: underline; }
.button-pipaluk { border-radius: 6px; }

/* ---------- Page banner + breadcrumb ---------- */
.breadcrumbs-custom .box-position::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.45) 100%);
}
.breadcrumbs-custom .container { position: relative; z-index: 2; }
.breadcrumbs-trail { list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; color: rgba(255,255,255,.9); }
.breadcrumbs-trail li { display: inline; }
.breadcrumbs-trail li + li::before { content: '\203A'; margin: 0 8px; opacity: .8; }
.breadcrumbs-trail a { color: #fff; }
.breadcrumbs-trail a:hover { color: var(--nk-gold); }

/* ---------- Content pages ---------- */
.page-img { padding-right: 16px; padding-bottom: 12px; max-width: 45%; height: auto; border-radius: 8px; }
@media (max-width: 767px) { .page-img { float: none !important; max-width: 100%; padding: 0 0 12px; display: block; margin: 0 auto; } }
.wisdom-photo { float: left; padding-left: 0; }

/* ---------- Gallery ---------- */
.gallery-cover { display: block; border-radius: var(--nk-radius); overflow: hidden; background: #fff; box-shadow: var(--nk-shadow); margin-bottom: 26px; transition: box-shadow .3s ease, transform .3s ease; }
.gallery-cover img { width: 100%; height: 250px; object-fit: cover; transition: transform .5s ease; }
.gallery-cover h5 { padding: 14px 10px; margin: 0; }
.gallery-cover:hover { box-shadow: var(--nk-shadow-hover); transform: translateY(-3px); }
.gallery-cover:hover img { transform: scale(1.05); }
.thumb-cover { width: 100%; object-fit: cover; }
.thumb-150 { height: 150px; }
.thumb-250 { height: 250px; }
.thumbnail-mary { border-radius: 8px; overflow: hidden; }

/* ---------- Videos ---------- */
.video_thumb { display: block; width: 100%; border: 0; padding: 0; background: none; cursor: pointer; position: relative; border-radius: 8px; overflow: hidden; }
.video_thumb img { transition: transform .4s ease; }
.video_thumb:hover img { transform: scale(1.04); }
.embed-16x9 { position: relative; width: 100%; padding-top: 56.25%; border-radius: 8px; overflow: hidden; background: #000; }
.embed-16x9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame { border: 3px solid #003f24; margin-bottom: 10px; }

/* ---------- Trust members ---------- */
.member-row + .member-row { margin-top: 30px; }
.team-nikki { border-radius: var(--nk-radius); overflow: hidden; box-shadow: var(--nk-shadow); transition: box-shadow .3s ease, transform .3s ease; height: calc(100% - 30px); background: #fff; }
.team-nikki:hover { box-shadow: var(--nk-shadow-hover); transform: translateY(-3px); }
.member-photo { height: 200px; width: auto; max-width: 100%; object-fit: cover; }
.team-nikki-address p { margin: 0; }

/* ---------- News list ---------- */
.news-card { background: #fff; border-radius: var(--nk-radius); box-shadow: var(--nk-shadow); overflow: hidden; height: 100%; }
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-card-date { color: var(--nk-red); font-size: 13px; margin: 12px 16px 0; }
.news-card h5 { margin: 6px 16px 16px; }

/* ---------- FAQ ---------- */
.card-corporate { border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.05); }

/* ---------- Contact ---------- */
.box-contacts { border-radius: var(--nk-radius); box-shadow: var(--nk-shadow); background: #fff; height: 100%; }
.box-contacts-link p { margin: 0; }
.contact-form .form-label-static { display: block; font-weight: 500; margin-bottom: 6px; color: #333; }
.contact-form .form-input { border-radius: 6px; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-map { border: 0; width: 100%; height: 450px; border-radius: var(--nk-radius); box-shadow: var(--nk-shadow); }

/* ---------- Footer ---------- */
.img-fluid-full { width: 100%; height: auto; }
.footer-pay { border-radius: 8px; margin-top: 16px; }
.footer-contacts .link-location p, .footer-contacts .link-phone p, .footer-contacts .link-aemail p { margin: 0; }
.footer-contacts .unit-body, .footer-contacts .unit-body * { color: inherit; }

/* ---------- Modals ---------- */
.modal-content { border-radius: var(--nk-radius); overflow: hidden; }
.modal-close-x { position: absolute; right: 10px; top: 6px; z-index: 5; font-size: 28px; opacity: .8; background: #fff; border-radius: 50%; width: 36px; height: 36px; line-height: 32px; border: 0; }
.home-popup { max-width: 700px; width: 100%; }
.home-popup .modal-header { background: none; padding: 5px; margin: 0; border: none; }

/* English mode: slightly tighter line-height for Latin text */
.lang-en .page-details, .lang-en .welcome-msg { line-height: 1.7; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* welcome video (was an inline style) */
.welcome-video { width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: var(--nk-shadow); background: #000; }
.footer-music { margin-left: 10px; font-style: normal; }
