/*
Theme Name: RSHJK Media Video Theme
Theme URI: https://rshjk.org/media/
Author: OpenAI ChatGPT
Author URI: https://openai.com/
Description: A responsive WordPress video and audio media theme designed for Radio Sada-e-Hurriyat Jammu and Kashmir style websites. Includes homepage category panels, video post support, oEmbed display, featured media grids, sidebar widgets, custom logo support, and ready-made categories for Regional Languages, Audio Visuals, Videos, and VLogs.
Version: 1.1.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rshjk-media
Tags: blog, news, entertainment, custom-logo, custom-menu, featured-images, grid-layout, right-sidebar, video, audio
*/

:root {
  --rshjk-red: #8f151f;
  --rshjk-red-dark: #590b12;
  --rshjk-gold: #d3ad6f;
  --rshjk-ink: #151515;
  --rshjk-muted: #6c6f76;
  --rshjk-line: #e8e2dc;
  --rshjk-bg: #faf8f5;
  --rshjk-card: #ffffff;
  --rshjk-shadow: 0 18px 46px rgba(31, 18, 18, .10);
  --rshjk-radius: 18px;
  --rshjk-radius-sm: 12px;
  --rshjk-max: 1180px;
  --rshjk-font: "Swiss 72 Condensed", "Swiss 721 Condensed", "Swiss 721 Cn BT", "Helvetica Neue Condensed", "Arial Narrow", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--rshjk-font);
  color: var(--rshjk-ink);
  background: var(--rshjk-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; }
img { height: auto; vertical-align: middle; }
a { color: var(--rshjk-red); text-decoration: none; transition: .2s ease; }
a:hover, a:focus { color: var(--rshjk-red-dark); text-decoration: underline; }
button, input, textarea, select { font: inherit; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  z-index: 99999; top: 12px; left: 12px; width: auto; height: auto;
  padding: 10px 14px; clip: auto; background: #fff; border-radius: 8px;
  box-shadow: var(--rshjk-shadow);
}
.rshjk-container { width: min(100% - 32px, var(--rshjk-max)); margin-inline: auto; }

/* Header */
.rshjk-topbar {
  background: var(--rshjk-red-dark);
  color: #fff;
  font-size: 13px;
  letter-spacing: .02em;
}
.rshjk-topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.rshjk-topbar a { color: #fff; opacity: .92; }
.rshjk-topbar a:hover { opacity: 1; }
.rshjk-social { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rshjk-social a { font-weight: 650; }
.site-header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--rshjk-line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
}
.admin-bar .site-header { top: 32px; }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}
.site-branding { display: flex; align-items: center; gap: 15px; min-width: 240px; }
.site-branding img { max-height: 68px; width: auto; }
.site-title { margin: 0; font-size: clamp(18px, 2vw, 25px); line-height: 1.1; font-weight: 850; color: var(--rshjk-red-dark); }
.site-title a { color: inherit; text-decoration: none; }
.site-description { margin: 3px 0 0; color: var(--rshjk-muted); font-size: 13px; }
.main-navigation { display: flex; align-items: center; gap: 18px; }
.menu-toggle {
  display: none;
  border: 1px solid var(--rshjk-line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--rshjk-red-dark);
  cursor: pointer;
  font-weight: 750;
}
.primary-menu,
.primary-menu ul { list-style: none; padding: 0; margin: 0; }
.primary-menu { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.primary-menu li { position: relative; }
.primary-menu a {
  display: block;
  color: #2d2424;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.primary-menu a:hover, .primary-menu .current-menu-item > a, .primary-menu .current-menu-ancestor > a {
  background: rgba(143, 21, 31, .10);
  color: var(--rshjk-red);
}
.primary-menu ul {
  position: absolute;
  top: 100%; left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--rshjk-line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--rshjk-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .2s ease;
}
.primary-menu li:hover > ul, .primary-menu li:focus-within > ul {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.primary-menu ul a { border-radius: 10px; }
.rshjk-live-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: var(--rshjk-red);
  color: #fff !important;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 850;
  box-shadow: 0 12px 28px rgba(143, 21, 31, .25);
  text-decoration: none !important;
}
.rshjk-live-button::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255,255,255,.20);
}

/* Hero */
.rshjk-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(211,173,111,.35), transparent 24%),
    linear-gradient(135deg, var(--rshjk-red-dark), var(--rshjk-red));
  color: #fff;
}
.rshjk-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: .35;
}
.rshjk-hero__inner {
  position: relative;
  z-index: 1;
  min-height: 420px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 42px;
  align-items: center;
  padding: 64px 0;
}
.rshjk-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 12px;
}
.rshjk-hero h1 { margin: 0 0 16px; font-size: clamp(34px, 5vw, 64px); line-height: .98; letter-spacing: -.04em; }
.rshjk-hero p { margin: 0 0 26px; font-size: clamp(17px, 1.8vw, 20px); max-width: 680px; color: rgba(255,255,255,.88); }
.rshjk-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rshjk-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 19px;
  font-weight: 850;
  text-decoration: none !important;
  border: 1px solid transparent;
}
.rshjk-button--light { background: #fff; color: var(--rshjk-red) !important; }
.rshjk-button--outline { color: #fff !important; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.rshjk-hero__badge {
  justify-self: end;
  width: min(360px, 100%);
  padding: 26px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 26px;
  background: rgba(255,255,255,.10);
  box-shadow: 0 30px 80px rgba(0,0,0,.22);
}
.rshjk-hero__badge img { display: block; margin: 0 auto 18px; max-width: 240px; background: #fff; border-radius: 999px; padding: 8px; }
.rshjk-hero__badge strong { display: block; font-size: 21px; line-height: 1.2; margin-bottom: 8px; }
.rshjk-hero__badge span { display: block; color: rgba(255,255,255,.78); }

/* Layout */
.rshjk-main { padding: 42px 0 64px; }
.rshjk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; align-items: start; }
.rshjk-section { margin-bottom: 44px; }
.rshjk-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.rshjk-kicker {
  display: inline-block;
  color: var(--rshjk-red);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 850;
}
.rshjk-section h2, .entry-title, .page-title {
  margin: 0;
  color: #231818;
  letter-spacing: -.025em;
  line-height: 1.15;
}
.rshjk-section h2 { font-size: clamp(24px, 3vw, 36px); }
.rshjk-section__desc { margin: 6px 0 0; color: var(--rshjk-muted); max-width: 760px; }
.rshjk-view-all { font-weight: 850; white-space: nowrap; }

/* Categories */
.rshjk-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.rshjk-category-card {
  position: relative;
  min-height: 172px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--rshjk-radius);
  padding: 20px;
  color: #fff;
  overflow: hidden;
  text-decoration: none !important;
  background: linear-gradient(145deg, var(--rshjk-red), var(--rshjk-red-dark));
  box-shadow: var(--rshjk-shadow);
}
.rshjk-category-card:nth-child(2) { background: linear-gradient(145deg, #b17a31, #6f4211); }
.rshjk-category-card:nth-child(3) { background: linear-gradient(145deg, #29374f, #111927); }
.rshjk-category-card:nth-child(4) { background: linear-gradient(145deg, #7d183a, #3a0818); }
.rshjk-category-card::after {
  content: "";
  position: absolute;
  width: 160px; height: 160px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  right: -48px; bottom: -54px;
}
.rshjk-category-card:hover { transform: translateY(-4px); color: #fff; }
.rshjk-category-card__icon { font-size: 34px; line-height: 1; }
.rshjk-category-card h3 { position: relative; z-index: 1; margin: 0 0 6px; font-size: 22px; line-height: 1.1; }
.rshjk-category-card span { position: relative; z-index: 1; color: rgba(255,255,255,.78); font-weight: 650; }

/* Cards */
.rshjk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rshjk-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rshjk-card {
  background: var(--rshjk-card);
  border: 1px solid var(--rshjk-line);
  border-radius: var(--rshjk-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(31,18,18,.06);
  transition: transform .2s ease, box-shadow .2s ease;
  min-width: 0;
}
.rshjk-card:hover { transform: translateY(-3px); box-shadow: var(--rshjk-shadow); }
.rshjk-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1b1111;
}
.rshjk-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.rshjk-card:hover .rshjk-card__thumb img { transform: scale(1.04); }
.rshjk-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #f7eeee, #fff);
}
.rshjk-card__placeholder img { max-width: 70%; max-height: 70%; object-fit: contain; opacity: .84; }
.rshjk-play {
  position: absolute;
  inset: auto 14px 14px auto;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(143,21,31,.96);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.24);
}
.rshjk-play::before {
  content: "";
  margin-left: 3px;
  border-left: 14px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.rshjk-card__body { padding: 17px; }
.rshjk-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--rshjk-muted); font-size: 13px; margin-bottom: 8px; }
.rshjk-meta a { color: var(--rshjk-muted); font-weight: 700; }
.rshjk-card h3 { margin: 0 0 9px; font-size: 19px; line-height: 1.28; }
.rshjk-card h3 a { color: #201718; text-decoration: none; }
.rshjk-card h3 a:hover { color: var(--rshjk-red); }
.rshjk-card__excerpt { margin: 0; color: var(--rshjk-muted); font-size: 14px; }
.rshjk-featured-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 20px; }
.rshjk-featured-grid .rshjk-card:first-child .rshjk-card__body { padding: 22px; }
.rshjk-featured-grid .rshjk-card:first-child h3 { font-size: clamp(23px, 3vw, 34px); }

/* Video embeds */
.rshjk-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: var(--rshjk-radius);
  overflow: hidden;
  box-shadow: var(--rshjk-shadow);
  margin-bottom: 24px;
}
.rshjk-video-wrap iframe, .rshjk-video-wrap video, .rshjk-video-wrap embed, .rshjk-video-wrap object, .rshjk-video-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.entry-header { margin: 0 0 24px; }
.entry-title { font-size: clamp(31px, 4vw, 54px); }
.entry-content {
  background: #fff;
  border: 1px solid var(--rshjk-line);
  border-radius: var(--rshjk-radius);
  padding: clamp(22px, 4vw, 42px);
  box-shadow: 0 10px 30px rgba(31,18,18,.05);
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2, .entry-content h3 { line-height: 1.2; margin-top: 1.35em; }
.entry-content a { font-weight: 750; }
.wp-caption, .aligncenter { max-width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.alignleft { float: left; margin: 6px 22px 18px 0; }
.alignright { float: right; margin: 6px 0 18px 22px; }
.entry-footer { margin-top: 22px; color: var(--rshjk-muted); font-size: 14px; }
.rshjk-post-nav { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.rshjk-post-nav a { display: block; background: #fff; padding: 16px; border-radius: var(--rshjk-radius-sm); border: 1px solid var(--rshjk-line); font-weight: 850; }

/* Sidebar */
.rshjk-sidebar { display: grid; gap: 18px; }
.widget, .rshjk-widget {
  background: #fff;
  border: 1px solid var(--rshjk-line);
  border-radius: var(--rshjk-radius);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(31,18,18,.05);
}
.widget-title, .rshjk-widget__title { margin: 0 0 13px; font-size: 19px; color: #2a1a1c; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 10px 0; border-bottom: 1px solid var(--rshjk-line); }
.widget li:last-child { border-bottom: 0; padding-bottom: 0; }
.rshjk-mini-list { display: grid; gap: 13px; }
.rshjk-mini-item { display: grid; grid-template-columns: 78px 1fr; gap: 12px; align-items: center; }
.rshjk-mini-item__thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; background: #f1e7e3; }
.rshjk-mini-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rshjk-mini-item strong { display: block; line-height: 1.28; font-size: 14px; color: #221819; }
.rshjk-mini-item span { color: var(--rshjk-muted); font-size: 12px; }
.search-form { display: flex; gap: 8px; }
.search-field { min-width: 0; flex: 1; border: 1px solid var(--rshjk-line); border-radius: 999px; padding: 11px 13px; }
.search-submit { border: 0; border-radius: 999px; background: var(--rshjk-red); color: #fff; padding: 11px 15px; font-weight: 850; cursor: pointer; }

/* Archive */
.rshjk-archive-header {
  margin-bottom: 28px;
  padding: 30px;
  border-radius: var(--rshjk-radius);
  background: #fff;
  border: 1px solid var(--rshjk-line);
}
.rshjk-pagination { margin-top: 30px; display: flex; justify-content: center; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; background: #fff; border: 1px solid var(--rshjk-line); border-radius: 999px; font-weight: 850; }
.page-numbers.current { background: var(--rshjk-red); color: #fff; border-color: var(--rshjk-red); }

/* Footer */
.site-footer {
  background: #18090c;
  color: rgba(255,255,255,.78);
  padding: 46px 0 24px;
}
.site-footer a { color: #fff; }
.rshjk-footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 28px; margin-bottom: 28px; }
.rshjk-footer-logo img { max-height: 74px; background: #fff; border-radius: 999px; padding: 5px; margin-bottom: 12px; }
.rshjk-footer-title { color: #fff; margin: 0 0 12px; font-size: 18px; }
.rshjk-footer-menu, .rshjk-footer-menu ul { list-style: none; padding: 0; margin: 0; }
.rshjk-footer-menu li { margin-bottom: 8px; }
.rshjk-copyright { border-top: 1px solid rgba(255,255,255,.10); padding-top: 18px; font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 1024px) {
  .rshjk-layout { grid-template-columns: 1fr; }
  .rshjk-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rshjk-category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rshjk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rshjk-footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .site-header__inner { min-height: 78px; }
  .menu-toggle { display: inline-flex; }
  .main-navigation { position: relative; }
  .primary-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 14px);
    width: min(320px, calc(100vw - 32px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--rshjk-line);
    border-radius: 18px;
    padding: 10px;
    box-shadow: var(--rshjk-shadow);
  }
  .main-navigation.is-open .primary-menu { display: flex; }
  .primary-menu ul { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .primary-menu li:hover > ul, .primary-menu li:focus-within > ul { display: block; }
  .rshjk-live-button { display: none; }
  .rshjk-hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .rshjk-hero__badge { justify-self: start; }
  .rshjk-featured-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .admin-bar .site-header { top: 0; }
  .rshjk-topbar__inner { flex-direction: column; align-items: flex-start; padding: 9px 0; }
  .site-branding { min-width: 0; }
  .site-branding img { max-height: 54px; }
  .site-description { display: none; }
  .rshjk-category-grid, .rshjk-grid, .rshjk-grid--two, .rshjk-sidebar, .rshjk-footer-grid, .rshjk-post-nav { grid-template-columns: 1fr; }
  .rshjk-section__head { align-items: flex-start; flex-direction: column; }
  .rshjk-copyright { flex-direction: column; }
}
