/* ==========================================
   NewsWave - News Portal CSS
   Light SkyBlue & Dark SkyBlue Theme
   ========================================== */

/* === CSS Variables & Themes === */
:root {
  /* Light Theme - Sky Blue */
  --bg-primary: #e0f2fe;
  --bg-secondary: #f0f9ff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f9ff;
  --bg-nav: rgba(224, 242, 254, 0.95);
  --bg-topbar: #7dd3fc;
  --bg-footer: #0c4a6e;
  --text-primary: #0c4a6e;
  --text-secondary: #0369a1;
  --text-muted: #38bdf8;
  --text-light: #082f49;
  --text-on-dark: #e0f2fe;
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --accent-light: #bae6fd;
  --border-color: #bae6fd;
  --border-light: #e0f2fe;
  --shadow: rgba(14, 116, 144, 0.1);
  --shadow-heavy: rgba(14, 116, 144, 0.2);
  --gradient-hero: linear-gradient(135deg, #1e3a5f 0%, #2d5f8a 50%, #4a90b8 100%);
  --gradient-btn: linear-gradient(135deg, #0284c7, #0369a1);
  --gradient-live: linear-gradient(135deg, #ef4444, #dc2626);
  --ticker-bg: #0c4a6e;
  --ticker-text: #e0f2fe;
  --chatbot-bg: #f0f9ff;
  --chatbot-msg-user: #0284c7;
  --chatbot-msg-bot: #ffffff;
  --input-bg: #ffffff;
  --overlay: rgba(12, 74, 110, 0.6);
  --live-dot-color: #ef4444;
}

[data-theme="dark"] {
  --bg-primary: #083350;
  --bg-secondary: #0a3d5c;
  --bg-card: #0f4c75;
  --bg-card-hover: #1a5f8a;
  --bg-nav: rgba(8, 51, 80, 0.95);
  --bg-topbar: #075985;
  --bg-footer: #022c42;
  --text-primary: #bae6fd;
  --text-secondary: #7dd3fc;
  --text-muted: #0ea5e9;
  --text-light: #e0f2fe;
  --text-on-dark: #e0f2fe;
  --accent: #38bdf8;
  --accent-hover: #0ea5e9;
  --accent-light: #075985;
  --border-color: #155e75;
  --border-light: #0f4c75;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-heavy: rgba(0, 0, 0, 0.5);
  --gradient-btn: linear-gradient(135deg, #0ea5e9, #38bdf8);
  --ticker-bg: #022c42;
  --ticker-text: #bae6fd;
  --chatbot-bg: #0a3d5c;
  --chatbot-msg-user: #0ea5e9;
  --chatbot-msg-bot: #0f4c75;
  --input-bg: #0f4c75;
  --overlay: rgba(2, 44, 66, 0.7);
}

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

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

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

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === Top Bar === */
.top-bar {
  background-color: var(--bg-topbar);
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-light);
  transition: background-color 0.4s ease;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

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

.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--live-dot-color);
  color: white;
  padding: 3px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  animation: livePulse 2s infinite;
}

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

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes liveDotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.4); }
}

.ticker {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 500px;
  overflow: hidden;
}

.ticker i {
  color: #fbbf24;
  animation: flash 1s infinite;
}

@keyframes flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

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

.lang-switch {
  display: flex;
  gap: 4px;
  background: rgba(0,0,0,0.1);
  border-radius: 6px;
  padding: 2px;
}

.lang-btn {
  padding: 4px 12px;
  border: none;
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s;
}

.lang-btn.active {
  background: var(--text-light);
  color: var(--bg-topbar);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0,0,0,0.1);
  color: var(--text-light);
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.theme-toggle:hover {
  background: rgba(0,0,0,0.2);
  transform: rotate(20deg);
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-links a {
  color: var(--text-light);
  font-size: 14px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--text-light);
  color: var(--bg-topbar);
  transform: translateY(-2px);
}

/* === Main Navigation === */
.main-nav {
  background-color: var(--bg-nav);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px var(--shadow);
  transition: all 0.4s ease;
}

.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 50px;
  padding: 4px 15px;
  gap: 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  flex-shrink: 0;
}

.logo i {
  font-size: 22px;
  color: var(--accent);
}

.accent {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 3px;
}

.nav-list > li > a {
  padding: 5px 9px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: 5px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  letter-spacing: 0.05px;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
  background: var(--accent-light);
  color: var(--accent);
}

.nav-list > li > a i.fa-chevron-down {
  font-size: 10px;
  transition: transform 0.3s;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  min-width: 220px;
  border-radius: 12px;
  box-shadow: 0 10px 40px var(--shadow-heavy);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 100;
  border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(5px);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-primary);
  border-radius: 8px;
  transition: all 0.3s;
}

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

/* Live Nav Item */
.live-link {
  background: var(--gradient-live) !important;
  color: white !important;
  border-radius: 25px !important;
  padding: 8px 18px !important;
  gap: 8px !important;
  position: relative;
  overflow: hidden;
}

.live-link::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: liveShine 3s infinite;
}

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

.live-link .live-dot {
  width: 6px;
  height: 6px;
}

/* Search Box */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  padding: 6px 12px;
  gap: 8px;
  transition: all 0.3s;
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  width: 140px;
}

.search-box button {
  border: none;
  background: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s;
}

/* === Breaking News Ticker === */
.breaking-ticker {
  background: var(--ticker-bg);
  padding: 10px 0;
  overflow: hidden;
}

.breaking-ticker .container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.breaking-label {
  background: var(--live-dot-color);
  color: white;
  padding: 5px 15px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.ticker-content {
  display: flex;
  gap: 30px;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
  color: var(--ticker-text);
  font-size: 14px;
  font-weight: 500;
}

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

/* === Hero Slider === */
.hero-slider-section {
  padding: 25px 0;
}

.slider-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
}

.slider-main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 520px;
  box-shadow: 0 10px 40px var(--shadow-heavy);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: flex-end;
}

.slide.active {
  opacity: 1;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay);
}

.slide-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  color: white;
  max-width: 600px;
}

.slide-category {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.politics-cat { background: #6366f1; }
.sports-cat { background: #22c55e; }
.tech-cat { background: #8b5cf6; }
.tourism-cat { background: #f59e0b; }
.business-cat { background: #06b6d4; }
.health-cat { background: #ec4899; }
.entertainment-cat { background: #f43f5e; }
.education-cat { background: #14b8a6; }
.spiritual-cat { background: linear-gradient(135deg, #f59e0b, #d97706); }
.culture-cat { background: #a855f7; }

.slide-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}

.slide-excerpt {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 15px;
  line-height: 1.6;
}

.slide-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  opacity: 0.8;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border: none;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(5px);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  z-index: 5;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: rgba(255,255,255,0.4);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

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

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

.slider-dots .dot.active {
  background: white;
  transform: scale(1.3);
}

/* Slider Sidebar */
.slider-sidebar {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px var(--shadow);
  border: 1px solid var(--border-color);
}

.side-news-header {
  padding: 20px;
  background: var(--accent);
  color: white;
}

.side-news-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.side-news-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s;
}

.side-news-item:last-child {
  border-bottom: none;
}

.side-news-item:hover {
  background: var(--bg-card-hover);
  padding-left: 25px;
}

.side-news-number {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  min-width: 40px;
}

.side-news-content {
  flex: 1;
}

.side-news-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 6px;
}

.side-news-item h4 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  transition: color 0.3s;
}

.side-news-item:hover h4 {
  color: var(--accent);
}

/* === Live Banner === */
.live-banner {
  padding: 20px 0;
}

.live-banner-content {
  background: var(--gradient-live);
  border-radius: 16px;
  padding: 30px 40px;
  display: flex;
  align-items: center;
  gap: 30px;
  color: white;
  position: relative;
  overflow: hidden;
}

.live-banner-content::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.live-badge-large {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.2);
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 2px;
  flex-shrink: 0;
  animation: livePulse 2s infinite;
}

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

.live-banner-text {
  flex: 1;
}

.live-banner-text h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 5px;
}

.live-banner-text p {
  opacity: 0.9;
  font-size: 14px;
}

.live-banner-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: #dc2626;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  transition: all 0.3s;
}

.live-banner-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* === News Section === */
.news-section {
  padding: 40px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  position: relative;
  padding-left: 20px;
}

.section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.section-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 8px 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: 25px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s;
}

.tab-btn:hover, .tab-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.news-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow);
  transition: all 0.4s;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px var(--shadow-heavy);
}

.news-card-thumb {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.news-card-thumb .thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: white;
  opacity: 0.3;
}

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

.news-card-body .news-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

.news-card-body h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}

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

.news-card-body p {
  font-size: 14px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 15px;
  line-height: 1.6;
}

.news-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.news-card-meta .author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-card-meta .author i {
  color: var(--accent);
}

/* Load More */
.load-more {
  text-align: center;
  margin-top: 40px;
}

.load-more-btn {
  padding: 12px 40px;
  background: var(--gradient-btn);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 5px 20px var(--shadow);
}

.load-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--shadow-heavy);
}

/* === Video Section === */
.video-section {
  padding: 40px 0;
  background: var(--bg-secondary);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.video-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow);
  transition: all 0.4s;
  border: 1px solid var(--border-color);
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-heavy);
}

.video-card.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.video-thumb {
  height: 180px;
  background: var(--gradient-hero);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card.featured .video-thumb {
  height: 100%;
  min-height: 380px;
}

.video-play-icon {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  transition: all 0.3s;
}

.video-card:hover .video-play-icon {
  background: var(--accent);
  transform: scale(1.1);
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.video-info {
  padding: 15px;
}

.video-tag {
  display: inline-block;
  background: var(--live-dot-color);
  color: white;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.video-info h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

/* === Opinion Section === */
.opinion-section {
  padding: 40px 0;
}

.opinion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.opinion-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 5px 20px var(--shadow);
  border: 1px solid var(--border-color);
  transition: all 0.4s;
}

.opinion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-heavy);
  border-color: var(--accent);
}

.opinion-avatar {
  width: 55px;
  height: 55px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 15px;
}

.opinion-role {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 3px 12px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 10px;
}

.opinion-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  line-height: 1.4;
}

.opinion-content p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: 1.6;
}

.read-more {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
}

.read-more:hover {
  color: var(--accent-hover);
  padding-left: 5px;
}

/* === Newsletter Section === */
.newsletter-section {
  padding: 50px 0;
}

.newsletter-content {
  background: var(--gradient-btn);
  border-radius: 20px;
  padding: 50px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.newsletter-content::before,
.newsletter-content::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.newsletter-content::before {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -50px;
}

.newsletter-content::after {
  width: 200px;
  height: 200px;
  bottom: -80px;
  right: -30px;
}

.newsletter-content h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}

.newsletter-content p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 25px;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 30px;
  font-size: 14px;
  outline: none;
  background: rgba(255,255,255,0.95);
  color: #0c4a6e;
}

.newsletter-form button {
  padding: 14px 30px;
  background: white;
  color: var(--accent);
  border: none;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.newsletter-form button:hover {
  transform: scale(1.05);
}

/* === Footer === */
.footer {
  background: var(--bg-footer);
  color: var(--text-on-dark);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-about h3 {
  font-size: 22px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-about h3 i {
  color: #38bdf8;
}

.footer-about p {
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.social-links-large a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s;
}

.social-links-large a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.footer-links h4, .footer-contact h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after, .footer-contact h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-links ul, .footer-contact ul {
  list-style: none;
}

.footer-links ul li, .footer-contact ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  font-size: 14px;
  opacity: 0.8;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-links ul li a:hover {
  opacity: 1;
  color: #38bdf8;
  padding-left: 5px;
}

.footer-contact ul li {
  font-size: 14px;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact ul li i {
  color: #38bdf8;
  width: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  opacity: 0.7;
}

/* === AI Chatbot === */
.chatbot-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-btn);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 5px 25px var(--shadow-heavy);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

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

.chatbot-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 3px 15px var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}

.chatbot-toggle:hover .chatbot-tooltip {
  opacity: 1;
}

.chatbot-window {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 380px;
  height: 520px;
  background: var(--chatbot-bg);
  border-radius: 20px;
  box-shadow: 0 15px 50px var(--shadow-heavy);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-color);
  animation: chatbotSlideUp 0.3s ease;
}

.chatbot-window.active {
  display: flex;
}

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

.chatbot-header {
  background: var(--gradient-btn);
  color: white;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.chatbot-header-info i {
  font-size: 24px;
}

.chatbot-header-info h4 {
  font-size: 16px;
  font-weight: 700;
}

.chatbot-status {
  font-size: 12px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chatbot-status::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.chatbot-close:hover {
  opacity: 1;
}

.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-message {
  display: flex;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-message-content {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.chat-message.bot .chat-message-content {
  background: var(--chatbot-msg-bot);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 10px var(--shadow);
}

.chat-message.user .chat-message-content {
  background: var(--chatbot-msg-user);
  color: white;
  border-bottom-right-radius: 4px;
}

.chatbot-input {
  display: flex;
  padding: 15px;
  gap: 10px;
  border-top: 1px solid var(--border-color);
}

.chatbot-input input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 25px;
  outline: none;
  font-size: 14px;
  background: var(--input-bg);
  color: var(--text-primary);
}

.chatbot-input button {
  width: 42px;
  height: 42px;
  border: none;
  background: var(--gradient-btn);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-input button:hover {
  transform: scale(1.1);
}

/* === Scroll to Top === */
.scroll-top {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 45px;
  height: 45px;
  border: none;
  background: var(--gradient-btn);
  color: white;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 5px 20px var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-3px);
}

/* === Responsive Design === */
@media (max-width: 1200px) {
  .slider-container {
    grid-template-columns: 1fr;
  }
  
  .slider-sidebar {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px var(--shadow);
    padding: 20px;
  }
  
  .nav-menu.active {
    display: block;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 5px;
  }
  
  .nav-list > li > a {
    padding: 12px 16px;
    width: 100%;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 20px;
    display: none;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .search-box input {
    width: 100px;
  }
  
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .video-card.featured {
    grid-column: span 2;
    grid-row: span 1;
  }
  
  .video-card.featured .video-thumb {
    min-height: 250px;
  }
  
  .opinion-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  
  .main-nav .container {
    height: 55px;
  }
  
  .logo {
    font-size: 20px;
  }
  
  .search-box {
    display: none;
  }
  
  .slider-main {
    height: 350px;
  }
  
  .slide-title {
    font-size: 20px;
  }
  
  .slide-content {
    padding: 25px;
  }
  
  .slide-excerpt {
    display: none;
  }
  
  .live-banner-content {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
  }
  
  .video-card.featured {
    grid-column: span 1;
  }
  
  .opinion-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .chatbot-window {
    width: calc(100vw - 30px);
    right: -10px;
    height: 450px;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .slider-main {
    height: 280px;
  }
  
  .slide-title {
    font-size: 18px;
  }
  
  .slide-category {
    font-size: 10px;
    padding: 4px 10px;
  }
  
  .breaking-ticker {
    display: none;
  }
  
  .newsletter-content {
    padding: 30px 20px;
  }
  
  .newsletter-content h2 {
    font-size: 24px;
  }
}

/* === Page-Specific Styles === */
.page-header {
  background: var(--gradient-hero);
  padding: 80px 0 50px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.page-header h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 16px;
  opacity: 0.9;
}

.breadcrumb {
  padding: 15px 0;
  background: var(--bg-secondary);
  margin-bottom: 30px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  list-style: none;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.breadcrumb-list li a {
  color: var(--accent);
}

.breadcrumb-list li:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

/* Sub Page Content */
.sub-page-content {
  padding: 0 0 60px;
}

.sub-page-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.sidebar-widget {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 5px 20px var(--shadow);
  border: 1px solid var(--border-color);
}

.sidebar-widget h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

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

.sidebar-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.sidebar-list li a {
  font-size: 14px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.sidebar-list li a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.sidebar-list li a i {
  color: var(--accent);
  font-size: 12px;
}

/* Live Stream Page */
.live-player-container {
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 25px;
}

.live-player-placeholder {
  text-align: center;
  color: white;
}

.live-player-placeholder i {
  font-size: 80px;
  color: var(--accent);
  margin-bottom: 15px;
}

.live-player-placeholder h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.live-players {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.live-player-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.live-player-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px var(--shadow-heavy);
}

.live-player-thumb {
  height: 120px;
  background: var(--gradient-hero);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-player-thumb .mini-live {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--live-dot-color);
  color: white;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.live-player-thumb .mini-live .mini-dot {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: liveDotPulse 1.5s infinite;
}

.live-player-info {
  padding: 12px;
}

.live-player-info h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.live-player-info span {
  font-size: 12px;
  color: var(--text-secondary);
}

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

.contact-form {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 5px 20px var(--shadow);
  border: 1px solid var(--border-color);
}

.contact-form h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 14px;
  background: var(--input-bg);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

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

.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--gradient-btn);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px var(--shadow-heavy);
}

.contact-info-cards {
  display: grid;
  gap: 20px;
}

.contact-info-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 5px 20px var(--shadow);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s;
}

.contact-info-card:hover {
  border-color: var(--accent);
  transform: translateX(5px);
}

.contact-info-icon {
  width: 55px;
  height: 55px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-info-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.contact-info-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* About Page */
.about-hero {
  background: var(--gradient-hero);
  border-radius: 20px;
  padding: 50px;
  color: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px var(--shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.stat-number {
  font-size: 36px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.team-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px var(--shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

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

.team-avatar {
  width: 80px;
  height: 80px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  margin: 0 auto 15px;
}

.team-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.team-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Category Page Styles */
.category-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.category-filter-btn {
  padding: 8px 18px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s;
}

.category-filter-btn:hover, .category-filter-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.featured-article {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px var(--shadow);
  border: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.featured-article-thumb {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: white;
  opacity: 0.3;
}

.featured-article-content {
  padding: 40px;
}

.featured-article-content h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--text-primary);
  line-height: 1.3;
}

.featured-article-content p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.featured-article-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Notification Badge */
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  background: var(--live-dot-color);
  border-radius: 50%;
  font-size: 10px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--border-color) 25%, var(--bg-card-hover) 50%, var(--border-color) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 0;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
}
