/*
Theme Name: JURI NEWS
Theme URI: https://jurinews.com
Author: Al Amin Ahmad (আল আমিন আহমদ)
Author URI: https://jurinews.com
Description: Advanced Dynamic WordPress News Portal Theme for Bangladeshi Online Newspapers. Faithfully built for Juri and Bangladesh media with 800x550 lead hero, spotlight module, 3-column news grid, dynamic category layouts, 10-slot advertisement management system, reporter profiles, Bangla font switcher, sidebar category widgets, and 1-click automatic demo installer.
Version: 1.0.21
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: juri-news
Tags: news, blog, newspaper, entertainment, custom-menu, featured-images, theme-options, translation-ready, rtl-language-support
*/

@import url('https://fonts.maateen.me/solaiman-lipi/font.css');
@import url('https://fonts.maateen.me/kalpurush/font.css');
@import url('https://fonts.maateen.me/siyam-rupali/font.css');
@import url('https://fonts.maateen.me/adorsho-lipi/font.css');
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

:root {
  --juri-primary: #b91c1c;
  --juri-dark: #111827;
  --juri-border: #e5e7eb;
  --juri-font-family: 'SolaimanLipi', 'Hind Siliguri', sans-serif;
}

body {
  font-family: var(--juri-font-family);
  color: #1f2937;
  background-color: #f5f5f4;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--juri-primary);
}

.site-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Protect WordPress Admin Bar & Icon Fonts */
#wpadminbar,
#wpadminbar *,
.dashicons,
.ab-icon {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}
.dashicons,
.dashicons-before:before {
  font-family: dashicons !important;
}

/* Header Brand & 720x95 Ad Banner Row */
.header-brand-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Stylish Typography Dialogue Box + Left/Right Radiating Arrow Light Below Home Header Logo */
.juri-logo-dialogue-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 9px;
  max-width: 100%;
}
.juri-dialogue-beam {
  position: relative;
  display: flex;
  align-items: center;
  width: 38px;
  height: 20px;
  overflow: hidden;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .juri-dialogue-beam {
    width: 52px;
  }
}
.juri-dialogue-beam-left {
  justify-content: flex-end;
}
.juri-dialogue-beam-right {
  justify-content: flex-start;
}
.juri-dialogue-glow-left {
  position: absolute;
  inset: 5px 0;
  background: linear-gradient(to left, rgba(220, 38, 38, 0.36), rgba(239, 68, 68, 0.14), transparent);
  border-radius: 9999px;
  animation: juriLightGlowTrack 1.5s ease-in-out infinite;
}
.juri-dialogue-glow-right {
  position: absolute;
  inset: 5px 0;
  background: linear-gradient(to right, rgba(5, 150, 105, 0.36), rgba(16, 185, 129, 0.14), transparent);
  border-radius: 9999px;
  animation: juriLightGlowTrack 1.5s ease-in-out infinite;
}
.juri-dialogue-chevron-left {
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  color: #dc2626;
  text-shadow: 0 0 7px rgba(220, 38, 38, 0.7);
  user-select: none;
}
.juri-dialogue-chevron-right {
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  color: #059669;
  text-shadow: 0 0 7px rgba(5, 150, 105, 0.7);
  user-select: none;
}
.juri-branding-clarity {
  filter: drop-shadow(0 1px 6px rgba(255, 255, 255, 0.92));
}
.juri-logo-dialogue-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 0;
  padding: 4px 13px;
  background: linear-gradient(135deg, rgba(255, 245, 245, 0.97) 0%, rgba(255, 255, 255, 0.99) 52%, rgba(236, 253, 245, 0.97) 100%);
  border: 1.5px solid #b91c1c;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.9), 2px 2px 0px #047857;
  line-height: 1.3;
  max-width: 100%;
}
.juri-logo-dialogue-box::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #b91c1c;
}
.juri-logo-dialogue-box::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5.5px solid transparent;
  border-right: 5.5px solid transparent;
  border-bottom: 5.5px solid #ffffff;
}
.juri-logo-dialogue-text {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #991b1b;
  background: linear-gradient(90deg, #991b1b 0%, #111827 55%, #065f46 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.juri-logo-dialogue-ornament-left {
  color: #b91c1c;
  font-size: 9px;
  line-height: 1;
}
.juri-logo-dialogue-ornament-right {
  color: #047857;
  font-size: 9px;
  line-height: 1;
}

/* Primary Nav Menu Styling (Centered Categories + Center-Outward Fading Borders) */
.juri-primary-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  white-space: nowrap;
}
.juri-primary-menu li {
  margin: 0;
  padding: 0;
  display: inline-flex;
}
.juri-primary-menu li a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.juri-primary-menu li a:hover {
  color: #b91c1c;
  background-color: #f9fafb;
}
.juri-primary-menu li.current-menu-item > a,
.juri-primary-menu li.current_page_item > a,
.juri-primary-menu li.juri-home-active > a {
  background-color: #b91c1c !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* 3-Part Footer Menu Bar (Centered with | separators) */
.juri-footer-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  row-gap: 6px;
  column-gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.juri-footer-menu li {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
}
.juri-footer-menu li + li::before {
  content: '|';
  opacity: 0.45;
  margin: 0 10px;
  font-weight: 400;
}
.juri-footer-menu li a {
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.2s ease;
}
.juri-footer-menu li a:hover {
  opacity: 0.78;
  text-decoration: underline;
}

/* 3-Part Footer Part 2 Responsive Layout (Desktop: Logo Left + Editorial Remaining Space; Tablet/Mobile: Logo Top + Editorial Bottom) */
.juri-footer-main-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.juri-footer-logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.juri-footer-editorial-wrap {
  width: 100%;
  min-width: 0;
  text-align: center;
}
@media (min-width: 900px) {
  .juri-footer-main-row {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
  }
  .juri-footer-logo-wrap {
    justify-content: flex-start;
  }
  .juri-footer-editorial-wrap {
    flex: 1 1 0%;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(128, 128, 128, 0.25);
    padding-left: 32px;
    text-align: center;
  }
}

/* Modern 3-Color Slanted Category Section Namebar */
.juri-modern-catbar {
  width: 100%;
  border-bottom: 3px solid var(--juri-catbar-border, #dc1400);
}
.juri-modern-catbar-row {
  display: flex;
  align-items: stretch;
  width: 100%;
  overflow: hidden;
}
.juri-modern-catbar-title {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  max-width: 78%;
  padding: 6px 24px 6px 14px;
  background-color: var(--juri-catbar-bg, #165317);
  color: var(--juri-catbar-text, #ffffff);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 100%, 0 100%);
}
.juri-modern-catbar--sm .juri-modern-catbar-title {
  padding: 5px 20px 5px 11px;
  font-size: 12.5px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 11px) 100%, 0 100%);
}
.juri-modern-catbar-track {
  flex: 1 1 0%;
  min-width: 24px;
  margin-left: -6px;
  background-color: var(--juri-catbar-track, #e2e2e2);
  clip-path: polygon(13px 0, 100% 0, 100% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 4px 10px 4px 20px;
}
.juri-modern-catbar--sm .juri-modern-catbar-track {
  margin-left: -5px;
  clip-path: polygon(11px 0, 100% 0, 100% 100%, 0 100%);
  padding: 3px 8px 3px 16px;
}
.juri-modern-catbar-meta {
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Category heading block */
.cat-heading-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #111827;
  margin-bottom: 16px;
}
.cat-heading-title {
  background: #111827;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 5px 14px;
  display: inline-block;
  line-height: 1.4;
}

/* Tailwind v4 utility fallbacks for WordPress environments */
.shadow-2xs {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}
.shadow-xs {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
.rounded-xs {
  border-radius: 2px;
}
.backdrop-blur-xs {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Aspect Ratio Fallbacks */
.aspect-\[16\/10\] { aspect-ratio: 16 / 10; }
.aspect-\[16\/11\] { aspect-ratio: 16 / 11; }
.aspect-\[696\/385\] { aspect-ratio: 696 / 385; }
.aspect-\[324\/235\] { aspect-ratio: 324 / 235; }
.aspect-\[9\/14\] { aspect-ratio: 9 / 14; }
@media (max-width: 639px) {
  .aspect-\[9\/13\] { aspect-ratio: 9 / 13; }
}

/* Reels Subgrid Anti-Overlap & Clean Gap */
.juri-reels-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
@media (min-width: 640px) {
  .juri-reels-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 14px;
  }
}
.juri-main-reel-box {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}
@media (min-width: 640px) {
  .juri-main-reel-box {
    aspect-ratio: auto !important;
    height: 100%;
  }
}
.juri-side-reels-col {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

/* Hero Top Live Dot Bar & Radiating Arrow Light Animation */
@keyframes juriLiveDotPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7), 0 0 10px rgba(220, 38, 38, 0.55);
  }
  50% {
    transform: scale(1.14);
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0), 0 0 16px rgba(220, 38, 38, 0.85);
  }
}
@keyframes juriBeamSpreadLeft {
  0% {
    opacity: 0;
    transform: translateX(8px) scale(0.85);
  }
  35% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translateX(-20px) scale(1.08);
  }
}
@keyframes juriBeamSpreadRight {
  0% {
    opacity: 0;
    transform: translateX(-8px) scale(0.85);
  }
  35% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translateX(20px) scale(1.08);
  }
}
@keyframes juriLightGlowTrack {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}
.juri-live-dot-core {
  animation: juriLiveDotPulse 1.5s ease-in-out infinite;
}
.juri-light-track-left,
.juri-light-track-right {
  animation: juriLightGlowTrack 1.5s ease-in-out infinite;
}
.juri-ray-left-1 { animation: juriBeamSpreadLeft 1.5s ease-out infinite 0s; }
.juri-ray-left-2 { animation: juriBeamSpreadLeft 1.5s ease-out infinite 0.28s; }
.juri-ray-left-3 { animation: juriBeamSpreadLeft 1.5s ease-out infinite 0.56s; }
.juri-ray-right-1 { animation: juriBeamSpreadRight 1.5s ease-out infinite 0s; }
.juri-ray-right-2 { animation: juriBeamSpreadRight 1.5s ease-out infinite 0.28s; }
.juri-ray-right-3 { animation: juriBeamSpreadRight 1.5s ease-out infinite 0.56s; }

/* Image zoom effect on hover */
.zoom-thumb-wrap {
  overflow: hidden;
  position: relative;
}
.zoom-thumb-wrap img {
  transition: transform 0.4s ease;
  width: 100%;
  height: auto;
  display: block;
}
.zoom-thumb-wrap:hover img {
  transform: scale(1.06);
}

.widget_juri_ad_300x250_widget {
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Single Post Auto-Justify Content (Regardless of Pasted Formatting) */
#article-content,
#article-content p,
#article-content div:not(.wp-caption):not(.wp-block-embed):not(.ad-container):not(.facebook-reel-embed-card):not(.wp-block-image),
#article-content li,
#article-content blockquote,
#article-content span,
#article-content [style*="text-align"],
#article-content [align],
#article-content .has-text-align-left,
#article-content .has-text-align-right,
#article-content .has-text-align-center,
.juri-single-justify,
.juri-single-justify p,
.juri-single-justify div:not(.wp-caption):not(.wp-block-embed):not(.ad-container):not(.facebook-reel-embed-card):not(.wp-block-image),
.juri-single-justify li,
.juri-single-justify blockquote,
.juri-single-justify span {
  text-align: justify !important;
  text-justify: inter-word;
}
#article-content figure,
#article-content figure *,
#article-content figcaption,
#article-content .wp-caption,
#article-content .wp-caption-text,
#article-content .wp-block-image,
#article-content .wp-block-image figcaption {
  text-align: center !important;
}

@media print {
  header, footer, .sidebar, .ad-zone, .no-print {
    display: none !important;
  }
}
