/* Hindi / Devanagari typography layer. Colours, sizes and layout of the original theme are untouched. */
html { -webkit-text-size-adjust: 100%; }
body, p, a, span, li, label, input, textarea, button, select, h1, h2, h3, h4, h5, h6,
.post-preview-title, .post-open-title, .section-title, .main-menu-item-link, .mobile-menu-item-link,
.tag-ornament, .banner-title, .button, .post-open-text, .post-preview-text, .quote-text {
  font-family: "Noto Sans Devanagari", "Hind", "Mangal", "Kokila", "Exo", "Roboto", sans-serif;
}
/* Devanagari needs a little more line-height so matras above/below the line are not clipped */
.post-preview-title, .post-open-title, .section-title, .banner-title, .post-preview-text, .post-open-text, .quote-text,
.post-preview-overlay .post-preview-title { line-height: 1.55; }
.post-preview-title { word-break: normal; overflow-wrap: anywhere; }
.tag-ornament, .main-menu-item-link, .mobile-menu-item-link, .section-title, .button, .banner-section { text-transform: none; letter-spacing: 0; }
.post-open-text { font-size: 1.0625rem; line-height: 1.9; }
.post-open-text p, .tk-article p { margin: 0 0 1.1em; }
.tk-article { color: inherit; }
.tk-article h2, .tk-article h3, .tk-article h4 { font-weight: 800; margin: 1.4em 0 .6em; line-height: 1.5; }
.tk-article h2 { font-size: 1.5rem; } .tk-article h3 { font-size: 1.25rem; } .tk-article h4 { font-size: 1.1rem; }
.tk-article p, .tk-article li { font-size: 1.0625rem; line-height: 1.95; color: #5c5c5c; }
.tk-article ul, .tk-article ol { margin: 0 0 1.2em 1.4em; padding: 0; }
.tk-article ul { list-style: disc; } .tk-article ol { list-style: decimal; }
.tk-article img { max-width: 100%; height: auto; border-radius: 4px; }
.tk-article figure { margin: 1.4em 0; } .tk-article figcaption { font-size: .85rem; color: #8f91ac; margin-top: 6px; }
.tk-article blockquote { margin: 1.4em 0; padding: 14px 22px; border-left: 4px solid #f01d1d; background: #f6f6f9; font-style: normal; }
.tk-article table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.tk-article th, .tk-article td { border: 1px solid #dcdde8; padding: 8px 12px; text-align: left; }
.tk-article th { background: #f1f1f6; }
.tk-article a { color: #f01d1d; text-decoration: underline; }
.tk-alert { padding: 14px 18px; margin: 0 0 22px; border-radius: 4px; font-weight: 600; }
.tk-alert.ok { background: #e8f7ee; color: #17753c; } .tk-alert.err { background: #fdeaea; color: #b3261e; }
.tk-empty { padding: 40px 20px; text-align: center; color: #8f91ac; font-size: 1.05rem; }
.tk-hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }
.tk-share a { cursor: pointer; }
.post-preview-img-wrap img, .post-open-img img { object-fit: cover; }

/* ---- Homepage banner slider: show heading/text WITHOUT hover (theme hid them until hover) ---- */
.banner-slider.v3 .post-preview .post-preview-overlay { overflow: visible; margin-bottom: 60px; }
.banner-slider.v3 .post-preview .post-preview-overlay .post-preview-title,
.banner-slider.v3 .post-preview .post-preview-overlay .post-preview-text {
  -webkit-transform: translate(0, 0); transform: translate(0, 0);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .75);
}
.banner-slider.v3 .post-preview .post-preview-overlay .post-preview-title { color: #fff; width: 100%; font-size: 1.9em; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.banner-slider.v3 .post-preview .post-preview-overlay .post-preview-text { color: #e9e9f2; display: block; width: 60%; max-width: 560px; }
/* soft dark gradient at the bottom so text is readable on any image; the dim layer still lifts on hover as before */
.banner-slider.v3 .post-preview .post-preview-img-wrap::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0)); pointer-events: none; }
.banner-slider.v3 .post-preview .post-preview-overlay { z-index: 5; }
@media (max-width: 680px) {
  .banner-slider.v3 .post-preview .post-preview-overlay .post-preview-title { font-size: 1.3em; }
  .banner-slider.v3 .post-preview .post-preview-overlay .post-preview-text { width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ---- Live news ticker: never wrap, so the sliding plugin can really move it ---- */
.live-news-widget .live-news-widget-text-wrap { overflow: hidden; }
.live-news-widget .live-news-widget-text { white-space: nowrap; width: max-content; margin: 0; font-size: .85em; }
.live-news-widget .live-news-widget-text .xm-line-item { display: inline-block; white-space: nowrap; }
.live-news-widget .live-news-widget-text .link { font-weight: 600; }

/* ---- auto-fill helpers ---- */
.tk-hide { display: none !important; }
/* category section with fewer than 5 posts: a fixed grid instead of the rotating carousel */
.tk-static-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 30px; margin-top: 26px; }
.tk-static-grid .post-preview { width: auto; min-width: 0; }
@media (max-width: 760px) { .tk-static-grid { grid-template-columns: 1fr; } }

/* =====================  Dropdown menu (parent category -> child categories)  ===================== */
.navigation { overflow: visible; }                                   /* theme clipped anything below the bar */
.navigation-wrap { z-index: 300; }
.main-menu .main-menu-item.has-sub { position: relative; }
.main-menu .main-menu-item-link { white-space: nowrap; }
.main-menu .main-menu-item-link .tk-chev { display: inline-block; margin-left: 7px; position: relative; top: 1px; vertical-align: middle; transition: transform .25s ease; }
.main-menu .main-menu-item.has-sub:hover > .main-menu-item-link,
.main-menu .main-menu-item.has-sub.tk-open > .main-menu-item-link,
.main-menu .main-menu-item.has-sub:focus-within > .main-menu-item-link { background-color: #121a44; color: #fff; }
.main-menu .main-menu-item.has-sub:hover > .main-menu-item-link .tk-chev,
.main-menu .main-menu-item.has-sub.tk-open > .main-menu-item-link .tk-chev,
.main-menu .main-menu-item.has-sub:focus-within > .main-menu-item-link .tk-chev { transform: rotate(180deg); }
.tk-sub {
  position: absolute; top: 100%; left: 0; z-index: 7000; min-width: 100%;
  padding: 12px 10px 16px; border-radius: 0 0 14px 14px;
  background: linear-gradient(160deg, #0f1538 0%, #17245a 100%);
  box-shadow: 0 22px 44px rgba(8, 12, 40, .38);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}
.tk-sub.tk-right, .main-menu .main-menu-item.tk-align-right > .tk-sub { left: auto; right: 0; }
.main-menu .main-menu-item.has-sub:hover > .tk-sub,
.main-menu .main-menu-item.has-sub.tk-open > .tk-sub,
.main-menu .main-menu-item.has-sub:focus-within > .tk-sub { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.tk-sub-list { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 5), auto); column-gap: 26px; }
.tk-sub-list li { margin: 0; padding: 0; }
.tk-sub-list a { display: block; padding: 11px 22px; border-radius: 8px; color: #fff; font-size: 1rem; font-weight: 600; line-height: 1.5; white-space: nowrap; text-transform: none; transition: background .15s, color .15s, padding-left .15s; }
.tk-sub-list a:hover, .tk-sub-list a:focus { background: rgba(255, 255, 255, .11); color: #ffd23f; padding-left: 28px; outline: none; }
.tk-sub-list a.current { color: #ffd23f; }

/* mobile / tablet menu (theme switches to this under 1260px): accordion */
.mobile-menu-item.has-sub > .mobile-menu-item-link { padding-right: 64px; }
.mobile-menu-item .tk-m-toggle { position: absolute; top: 0; right: 0; width: 58px; height: 58px; border: 0; border-left: 1px solid #dbdbdb; background: transparent; color: #363636; cursor: pointer; display: grid; place-items: center; padding: 0; }
.mobile-menu-item .tk-m-toggle .tk-chev { transition: transform .25s ease; }
.mobile-menu-item.open > .tk-m-toggle .tk-chev { transform: rotate(180deg); }
.mobile-menu-item.active > .tk-m-toggle, .mobile-menu-item:hover > .tk-m-toggle { color: #fff; }
.mobile-menu-item .tk-m-sub { list-style: none; margin: 0; padding: 0; max-height: 0; overflow: hidden; background: #f1f4fb; transition: max-height .35s ease; }
.mobile-menu-item.open > .tk-m-sub { max-height: 900px; border-top: 1px solid #dbdbdb; }
.mobile-menu-item .tk-m-sub li { border-bottom: 1px solid #e3e7f2; }
.mobile-menu-item .tk-m-sub li:last-child { border-bottom: 0; }
.mobile-menu-item .tk-m-sub a { display: block; padding: 0 20px 0 46px; line-height: 50px; color: #1c2447; font-size: .85em; font-weight: 600; }
.mobile-menu-item .tk-m-sub a:hover { background: #1c95f3; color: #fff; }

/* ---- views counter (eye icon + number) ---- */
.tk-views { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; vertical-align: middle; }
.tk-views .tk-eye { width: 16px; height: 16px; flex-shrink: 0; position: relative; top: 0; opacity: .85; }
.tk-views .tk-views-n { font-weight: 600; }
.post-author-info .tk-views { color: inherit; }
.post-preview.tiny .post-author-info { line-height: 1.7; }

/* =====================  HERO SLIDER (theme "home v2" look)  =====================
   Every slide gets a frame with the SAME ratio as its own picture, and the picture fills it edge to edge:
   nothing is cropped and no background shows - small pictures simply scale up to fit. */
.tk-hero { position: relative; background: #0b0d17; overflow: hidden; color: #fff; }
.tk-hero-stage { display: grid; max-width: 1600px; margin: 0 auto; overflow: hidden; }
.tk-hero-stage.tk-anim { transition: height .5s ease; }
.tk-slide { grid-area: 1 / 1; align-self: start; position: relative; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.tk-slide.is-active { opacity: 1; visibility: visible; z-index: 2; transition-delay: 0s; }
.tk-slide-media { position: relative; margin: 0; width: 100%; aspect-ratio: var(--ar-d, 1.78); background: #0b0d17; overflow: hidden; }
.tk-slide-media img { display: block; width: 100%; height: 100%; object-fit: cover; }             /* frame ratio = picture ratio, so "cover" crops nothing */
.tk-slide.tk-odd .tk-slide-media img { object-fit: contain; }                                       /* only for very tall/wide pictures: whole picture, plain dark bars */
.tk-slide-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.46) 48%, rgba(0,0,0,.88) 100%); }
.tk-slide-body { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; padding: 30px 6% 130px; text-align: center; }
.tk-hero .post-preview.huge { width: auto; max-width: 860px; margin: 0 auto; }
.tk-hero .post-preview.huge .post-preview-title { display: -webkit-box; font-size: clamp(1.5rem, 2.9vw, 2.6rem); line-height: 1.42; font-weight: 800; color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.9); -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tk-hero .post-preview.huge .tag-ornament { margin-bottom: 14px; font-size: .78rem; line-height: 24px; padding: 0 14px; }
.tk-hero .post-preview.huge .post-author-info-wrap { margin-top: 16px; }
.tk-hero .post-preview.huge .post-author-info { color: #e8e9f2; font-size: .85rem; }
.tk-hero .post-preview.huge .post-author-info .post-author, .tk-hero .post-preview.huge .post-author-info a { color: #fff; font-weight: 700; }
.tk-hero .post-preview.huge .button { margin-top: 22px; }
.tk-hero .post-preview.huge .user-avatar { display: inline-block; vertical-align: middle; }
/* arrows */
.tk-arrow { position: absolute; top: calc(50% - 26px); z-index: 6; width: 52px; height: 52px; border: 0; background: #fff; color: #252627; display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.tk-arrow:hover { background: #1c95f3; color: #fff; }
.tk-prev { left: 0; transform: scaleX(-1); } .tk-next { right: 0; }
/* thumbnail strip with the recent news (sits on the lower part of the picture) */
.tk-thumbs { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 6; width: min(982px, 92%); display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.tk-thumbs::-webkit-scrollbar { display: none; }
.tk-thumb { flex: 0 0 calc((100% - 56px) / 5); min-width: 172px; scroll-snap-align: start; text-align: left; background: none; border: 0; border-top: 3px solid rgba(255,255,255,.3);
  padding: 10px 0 0; color: #fff; cursor: pointer; opacity: .7; transition: opacity .25s, border-color .25s; font: inherit; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.tk-thumb:hover { opacity: .95; } .tk-thumb.is-active { opacity: 1; border-top-color: #f31c1c; }
.tk-thumb-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; font-size: .86rem; line-height: 1.5; }
.tk-thumb-meta { display: block; margin-top: 4px; font-size: .72rem; color: #d3d6e6; }
.tk-dots { display: none; }
@media (max-width: 960px) {
  .tk-thumbs { display: none; }
  .tk-slide-body { padding: 24px 5% 56px; }
  .tk-hero .post-preview.huge .post-preview-title { font-size: clamp(1.25rem, 3.4vw, 1.9rem); }
  .tk-dots { display: flex; position: absolute; left: 0; right: 0; bottom: 18px; z-index: 6; justify-content: center; gap: 10px; }
  .tk-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; } .tk-dot.is-active { background: #fff; transform: scale(1.25); }
  .tk-arrow { width: 42px; height: 42px; top: calc(50% - 21px); }
}
/* phones: the whole picture on top (frame = picture ratio, filled edge to edge), text underneath */
@media (max-width: 760px) {
  .tk-slide { display: block; }
  .tk-slide-media { aspect-ratio: var(--ar-m, 1.5); }
  .tk-slide-shade { background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%); }
  .tk-slide-body { position: relative; inset: auto; display: block; padding: 18px 18px 60px; text-align: left; }
  .tk-hero .post-preview.huge { max-width: none; padding: 0; }
  .tk-hero .post-preview.huge .post-preview-title { font-size: 1.28rem; line-height: 1.5; }
  .tk-hero .post-preview.huge .post-author-info-wrap { margin-top: 12px; }
  .tk-hero .post-preview.huge .button { margin-top: 16px; }
  .tk-arrow { display: none; } .tk-dots { bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) { .tk-slide { transition: none; } }

/* =====================  MOBILE HEADER: logo on the left, 3-line menu button on the right  ===================== */
.tk-burger { display: none; }
.mobile-menu-pull { display: none !important; }                       /* the old grey bar under the header is gone */
@media (max-width: 1260px) {
  .navigation-wrap { position: sticky; top: 0; z-index: 300; background: #fff; box-shadow: 0 2px 14px rgba(20,25,60,.10); }
  .navigation .main-menu, .navigation .search-button { display: none !important; }
  .tk-burger { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; padding: 0; border: 0; border-radius: 10px; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tk-burger span { display: block; width: 26px; height: 3px; border-radius: 3px; background: #252627; transition: background .2s, width .2s; }
  .tk-burger span:nth-child(2) { width: 20px; align-self: flex-end; margin-right: 10px; }
  .tk-burger:hover span, .tk-burger:focus-visible span { background: #f01d1d; }
  .tk-burger:hover span:nth-child(2) { width: 26px; margin-right: 10px; }
  .navigation { padding: 0 16px; }
  /* the menu opens from the right, where the button is */
  .mobile-menu-wrap { left: auto !important; right: -320px; width: min(310px, 88vw); }
  .mobile-menu-wrap.open { right: 0; left: auto !important; }
  .mobile-menu-close { left: auto !important; right: 22px !important; }
}
@media (max-width: 600px) {
  .navigation { height: 68px; }
  .navigation .logo { margin-top: 12px; }
  .navigation .logo .logo-img { width: 44px; height: 44px; }
  .navigation .logo-title { font-size: 1.15rem; }
  .mobile-menu-wrap { padding-top: 76px; }
}

/* =====================  POST PAGE PICTURE: natural size (no stretching = no blur), never cropped  ===================== */
.tk-post-hero { position: relative; margin: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #0e1020; min-height: 220px; }
.tk-post-hero-bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(26px) brightness(.55); transform: scale(1.05); }
.tk-post-hero img { position: relative; display: block; max-width: 100%; max-height: 680px; width: auto; height: auto; object-fit: contain; }

/* =====================  MOBILE: pictures are shown complete (no cropping) and nothing overflows  ===================== */
html, body { overflow-x: hidden; }
img { max-width: 100%; }
@media (max-width: 760px) {
  .post-preview-img.liquid, .post-preview .post-preview-img-wrap, .post-open-img.liquid { height: auto !important; min-height: 0 !important; background: none !important; }
  .post-preview-img.liquid { display: block; width: 100%; }
  .post-preview-img.liquid img, .post-open-img.liquid img { position: static !important; display: block !important; visibility: visible !important; opacity: 1 !important;
    width: 100% !important; height: auto !important; max-width: 100% !important; transform: none !important; object-fit: contain !important; }
  .post-preview.tiny .post-preview-img.liquid { width: 88px; flex-shrink: 0; }
  .post-preview.tiny .post-preview-img-wrap { width: 88px; }
  .tk-static-grid { grid-template-columns: 1fr; }
  .layout-content-1, .layout-content-2 { padding-left: 16px; padding-right: 16px; }
  .banner-wrap .banner-title { font-size: 1.5rem; line-height: 1.45; }
  .post-open-title { font-size: 1.55rem; line-height: 1.5; }
  .tk-article img, .tk-article table { max-width: 100%; }
  .tk-article { overflow-wrap: anywhere; }
  .tk-article table { display: block; overflow-x: auto; }
  .footer-top-widgets { grid-template-columns: 1fr !important; }
}

/* ---- tuning after browser check ---- */
@media (max-width: 760px) {
  .post-open-title, .post-open-body .post-open-title { font-size: 1.45rem !important; line-height: 1.6 !important; }
  .tk-post-hero { min-height: 0; }
  .post-open-sidebar .social-links { margin-top: 12px !important; gap: 12px; }
  .tk-share .bubble-ornament { width: 44px; height: 44px; }
}

@media (max-width: 760px) {
  .post-preview.large .post-preview-title, .post-preview.big .post-preview-title, .post-preview.landscape .post-preview-title { font-size: 1.3rem !important; line-height: 1.6 !important; }
  .post-preview.large .post-preview-text, .post-preview.big .post-preview-text { font-size: .98rem; line-height: 1.75; }
  .post-preview .post-author-info-wrap { flex-wrap: wrap; }
}
