/* ============================================
   NEPAL NEWS HUB - Global Stylesheet
   ============================================ */

/* CSS Variables for Theme */
:root {
  --bg-primary: #e0f2fe;        /* Light Sky Blue */
  --bg-secondary: #f0f9ff;
  --bg-card: #ffffff;
  --bg-nav: #bae6fd;
  --text-primary: #0c4a6e;      /* Dark Sky text */
  --text-secondary: #075985;
  --text-muted: #0369a1;
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --border: #7dd3fc;
  --shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
  --shadow-lg: 0 10px 30px rgba(2, 132, 199, 0.25);
  --danger: #dc2626;
  --success: #16a34a;
  --warning: #f59e0b;
}

[data-theme="dark"] {
  --bg-primary: #0c1929;        /* Dark Sky Blue (not black) */
  --bg-secondary: #102a43;
  --bg-card: #1a3a5c;
  --bg-nav: #0d2540;
  --text-primary: #e0f2fe;      /* Light sky text */
  --text-secondary: #bae6fd;
  --text-muted: #7dd3fc;
  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --border: #1e4976;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Mukti', 'Noto Sans Devanagari', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-size: 0.85rem;
}

.top-bar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left {
  display: flex;
  gap: 20px;
  align-items: center;
  color: var(--text-secondary);
}

.top-bar-left span i {
  margin-right: 5px;
  color: var(--accent);
}

.top-bar-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.social-icons a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-icons a:hover {
  transform: translateY(-3px) scale(1.08);
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Brand-specific hover colors */
.social-icons a.fb:hover       { background: #1877f2; }
.social-icons a.ig:hover       { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icons a.tt:hover       { background: #000000; }
.social-icons a.tt:hover svg   { filter: drop-shadow(1px 0 0 #25f4ee) drop-shadow(-1px 0 0 #fe2c55); }
.social-icons a.yt:hover       { background: #ff0000; }

/* Larger size variant for footer */
.social-icons.large a { width: 38px; height: 38px; }
.social-icons.large a svg { width: 18px; height: 18px; }

/* ============================================
   HEADER
   ============================================ */
.main-header {
  background: var(--bg-card);
  padding: 15px 0;
  border-bottom: 2px solid var(--border);
  box-shadow: var(--shadow);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: var(--shadow);
}

.logo h1 {
  font-size: 1.6rem;
  color: var(--text-primary);
  font-weight: 800;
}

.logo p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: -3px;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Live Button */
.live-btn {
  background: var(--danger);
  color: white;
  padding: 8px 18px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.live-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
  color: white;
}

.live-dot {
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* Action Icons */
.icon-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: var(--accent);
  color: white;
  transform: rotate(15deg);
}

.lang-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.lang-toggle:hover {
  background: var(--accent);
  color: white;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
  background: var(--bg-nav);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 14px 12px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.nav-menu > li > a i {
  margin-right: 4px;
  font-size: 0.8rem;
}

/* Tighter nav search on smaller desktops */
@media (max-width: 1200px) {
  .nav-menu > li > a {
    padding: 14px 9px;
    font-size: 0.82rem;
  }
  .nav-menu > li > a i { display: none; }
  .nav-search input { width: 140px; }
  .nav-search input:focus { width: 180px; }
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  background: var(--accent);
  color: white;
  border-bottom-color: var(--accent-hover);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  list-style: none;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 8px 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  border-top: 3px solid var(--accent);
  z-index: 100;
}

/* Right-aligned dropdown (for items near right edge of nav) */
.has-dropdown.dropdown-right .dropdown-menu {
  left: auto;
  right: 0;
  min-width: 240px;
}



.nav-menu > li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background: var(--accent);
  color: white;
  padding-left: 22px;
}

.has-dropdown > a::after {
  content: " ▾";
  font-size: 0.7rem;
}

/* Spiritual nav — saffron accent */
.spiritual-nav > a {
  background: linear-gradient(135deg, #ff9933, #e67e22);
  color: white !important;
  border-radius: 4px;
  margin: 6px 4px;
  padding: 8px 14px !important;
  font-weight: 700;
}
.spiritual-nav > a:hover {
  background: linear-gradient(135deg, #e67e22, #d35400);
  color: white !important;
  border-bottom-color: transparent !important;
}
.spiritual-nav.active > a,
.spiritual-nav > a.active {
  background: linear-gradient(135deg, #d35400, #ba4a00);
}
.spiritual-dropdown {
  border-top: 3px solid #ff9933 !important;
}
.spiritual-dropdown li a:hover {
  background: linear-gradient(135deg, #ff9933, #e67e22) !important;
}

/* Spiritual quote bar (every page) */
.spiritual-bar {
  background: linear-gradient(90deg, #ff9933 0%, #fbb040 50%, #ff9933 100%);
  color: #4a1e00;
  text-align: center;
  padding: 8px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  border-bottom: 2px solid #d35400;
  letter-spacing: 0.3px;
}
.spiritual-bar .om {
  font-size: 1.1rem;
  margin: 0 8px;
  color: #6b1f00;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}

.nav-search input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 0.85rem;
  width: 180px;
  outline: none;
  transition: width 0.3s ease;
}

.nav-search input:focus {
  width: 220px;
  border-color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 10px;
}

/* ============================================
   BREAKING NEWS TICKER
   ============================================ */
.breaking-news {
  background: linear-gradient(90deg, var(--danger), #b91c1c);
  color: white;
  padding: 10px 0;
  overflow: hidden;
  position: relative;
}

.breaking-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.breaking-label {
  background: white;
  color: var(--danger);
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breaking-label .live-dot {
  background: var(--danger);
}

.ticker-wrap {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ticker {
  display: inline-block;
  animation: ticker-scroll 40s linear infinite;
  padding-left: 100%;
  font-weight: 500;
}

.ticker span {
  margin-right: 60px;
}

.ticker span::before {
  content: "● ";
  color: white;
  margin-right: 8px;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px;
}

.section-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
  position: relative;
}

.section-title i {
  color: var(--accent);
  margin-right: 8px;
}

/* ============================================
   HERO SLIDER
   ============================================ */
.slider {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 30px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 25, 41, 0.9) 0%, rgba(12, 25, 41, 0.3) 60%, transparent 100%);
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  color: white;
  z-index: 2;
}

.slide-tag {
  background: var(--danger);
  color: white;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
}

.slide-content h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.slide-content p {
  font-size: 1rem;
  margin-bottom: 15px;
  max-width: 700px;
  opacity: 0.95;
}

.slide-meta {
  font-size: 0.85rem;
  opacity: 0.85;
}

.slide-meta span { margin-right: 15px; }

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 5;
  transition: background 0.2s ease;
}

.slider-nav:hover {
  background: var(--accent);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  right: 30px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.dot.active {
  background: white;
  width: 30px;
  border-radius: 6px;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* News Card */
.news-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.news-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card-body {
  padding: 18px;
}

.news-category {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.news-card h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.news-card h3 a { color: inherit; }
.news-card h3 a:hover { color: var(--accent); }

.news-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.news-meta i { margin-right: 4px; color: var(--accent); }

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar-widget {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.widget-title {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

.popular-list {
  list-style: none;
}

.popular-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.popular-list li:last-child { border-bottom: none; }

.popular-list img {
  width: 80px;
  height: 65px;
  object-fit: cover;
  border-radius: 6px;
}

.popular-list .info h4 {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 5px;
  line-height: 1.3;
}

.popular-list .info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  border: 1px solid var(--border);
}

.tag-cloud a:hover {
  background: var(--accent);
  color: white;
}

/* Weather Widget */
.weather-widget {
  text-align: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
}

.weather-widget .widget-title { color: white; border-bottom-color: rgba(255,255,255,0.3); }
.weather-temp { font-size: 3rem; font-weight: 800; margin: 10px 0; }
.weather-widget .city { font-size: 1rem; opacity: 0.9; }
.weather-widget .condition { font-size: 0.9rem; opacity: 0.85; }

/* Newsletter Widget */
.newsletter-widget input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  margin-bottom: 10px;
  font-size: 0.9rem;
  outline: none;
}

.newsletter-widget input:focus { border-color: var(--accent); }

.newsletter-widget button {
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.newsletter-widget button:hover { background: var(--accent-hover); }

/* ============================================
   CATEGORY SECTIONS
   ============================================ */
.category-section {
  margin-top: 40px;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
  background: var(--bg-nav);
  color: var(--text-primary);
  padding: 40px 0 0;
  margin-top: 50px;
  border-top: 3px solid var(--accent);
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-col h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--text-primary);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.footer-col p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; }

.footer-col ul { list-style: none; }

.footer-col ul li {
  padding: 6px 0;
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: padding-left 0.2s ease;
}

.footer-col ul li a:hover { padding-left: 6px; color: var(--accent); }

.footer-bottom {
  background: var(--bg-secondary);
  text-align: center;
  padding: 15px 20px;
  margin-top: 30px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ============================================
   CHATBOT
   ============================================ */
.chatbot-toggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
  z-index: 999;
  transition: transform 0.3s ease;
  animation: bounce 2s infinite;
}

.chatbot-toggle:hover { transform: scale(1.1); animation: none; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.chatbot-window {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 360px;
  max-width: calc(100vw - 50px);
  height: 500px;
  max-height: calc(100vh - 130px);
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  z-index: 998;
  overflow: hidden;
  border: 1px solid var(--border);
}

.chatbot-window.open {
  display: flex;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.chatbot-header {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h4 { font-size: 1rem; margin: 0; display: flex; align-items: center; gap: 8px; }

.chatbot-header h4 .online-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

.chatbot-body {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background: var(--bg-secondary);
}

.chat-msg {
  max-width: 80%;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.4;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot {
  background: var(--bg-card);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}

.chat-msg.user {
  background: var(--accent);
  color: white;
  border-bottom-right-radius: 4px;
  margin-left: auto;
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 15px 10px;
  background: var(--bg-secondary);
}

.chat-quick button {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 14px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-quick button:hover { background: var(--accent); color: white; }

.chatbot-input {
  display: flex;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.chatbot-input input {
  flex: 1;
  border: none;
  padding: 14px;
  background: transparent;
  color: var(--text-primary);
  outline: none;
  font-size: 0.9rem;
}

.chatbot-input button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  font-size: 1rem;
}

.chatbot-input button:hover { background: var(--accent-hover); }

/* ============================================
   LIVE STREAM MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 25, 41, 0.85);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open { display: flex; animation: fadeIn 0.3s ease; }

.live-modal {
  background: var(--bg-card);
  border-radius: 14px;
  max-width: 900px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.live-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--danger);
  color: white;
}

.live-modal-header h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }

.live-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.live-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #0c1929;
}

.live-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.live-modal-footer { padding: 15px 20px; color: var(--text-muted); font-size: 0.9rem; }

/* ============================================
   PAGE HEADER (for inner pages)
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  padding: 50px 20px;
  text-align: center;
  margin-bottom: 0;
}

.page-header h1 { font-size: 2.4rem; margin-bottom: 8px; }
.page-header p { opacity: 0.9; font-size: 1rem; }
.breadcrumb { margin-top: 10px; font-size: 0.9rem; }
.breadcrumb a { color: white; opacity: 0.9; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }

/* Article Page */
.article-content {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.article-content h1 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 15px;
  line-height: 1.3;
}

.article-meta {
  display: flex;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.article-meta i { color: var(--accent); margin-right: 5px; }

.article-content img.featured {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.article-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.article-content h2, .article-content h3 {
  color: var(--text-primary);
  margin: 20px 0 12px;
}

/* About Page */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.about-grid img { border-radius: 12px; box-shadow: var(--shadow); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.team-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.team-card:hover { transform: translateY(-5px); }

.team-card .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: bold;
}

.team-card h4 { color: var(--text-primary); margin-bottom: 4px; }
.team-card .role { color: var(--accent); font-size: 0.85rem; margin-bottom: 10px; }
.team-card p { color: var(--text-muted); font-size: 0.85rem; }

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-form, .contact-info {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--text-primary); font-size: 0.9rem; }

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--accent);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.btn-primary:hover { background: var(--accent-hover); }

.contact-info-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child { border-bottom: none; }
.contact-info-item i { color: var(--accent); font-size: 1.4rem; margin-top: 4px; }
.contact-info-item h4 { color: var(--text-primary); margin-bottom: 4px; }
.contact-info-item p { color: var(--text-muted); font-size: 0.9rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .main-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .slide-content h2 { font-size: 1.6rem; }
  .slider { height: 380px; }
}

@media (max-width: 768px) {
  .top-bar-container { font-size: 0.75rem; gap: 6px; }
  .top-bar-left { gap: 10px; flex-wrap: wrap; }
  .header-container { flex-wrap: wrap; gap: 12px; }
  .logo h1 { font-size: 1.2rem; }
  .logo-icon { width: 40px; height: 40px; font-size: 1.2rem; }

  .menu-toggle { display: block; }
  .nav-container { flex-wrap: wrap; }
  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    background: var(--bg-card);
    max-height: 70vh;
    overflow-y: auto;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li { width: 100%; }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--bg-secondary);
    display: none;
  }
  .nav-menu > li.open .dropdown-menu { display: block; }
  .nav-search { width: 100%; }
  .nav-search input { width: 100%; }

  .slider { height: 320px; }
  .slide-content { padding: 20px; }
  .slide-content h2 { font-size: 1.3rem; }
  .slide-content p { font-size: 0.85rem; }
  .slider-nav { width: 36px; height: 36px; font-size: 1rem; }

  .container { padding: 20px 15px; }
  .footer-grid { grid-template-columns: 1fr; }

  .chatbot-window { width: calc(100vw - 30px); right: 15px; }
  .chatbot-toggle { right: 15px; bottom: 15px; width: 54px; height: 54px; }

  .article-content h1 { font-size: 1.4rem; }
  .article-content img.featured { height: 220px; }

  .page-header h1 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .top-bar-right .social-icons { display: none; }
  .header-actions .lang-toggle { padding: 6px 10px; font-size: 0.75rem; }
  .live-btn { padding: 6px 12px; font-size: 0.75rem; }
  .icon-btn { width: 36px; height: 36px; font-size: 0.9rem; }
}
