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

/* Default Light Mode */
body {
  background-color: #ffffff;
  color: #111;
  margin: 0;
  transition: background 0.3s, color 0.3s;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
}

.logo img {
  
  height: 50px;     
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #f4f4f4;
}

.card {
  background: #ffffff;
  color: #111;
  transition: background 0.3s, color 0.3s;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

/* Dark Mode */
body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

body.dark-mode .topbar {
  background: #1e1e1e;
}

body.dark-mode .card {
  background: #1e1e1e;
  color: #ffffff;
}

.theme-btn {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  color: inherit;
}

/* ================= BREAKING BAR ================= */

.breaking-bar {
  position: sticky;
  top: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 20px;
  background: #d90429;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.breaking-label {
  background: black;
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: red;
  border-radius: 50%;
  animation: blink 1s infinite;
}

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

/* ================= HERO SECTION ================= */

.hero-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  padding: 20px;
}

.hero-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-main h2 {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 700;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-news {
  background: #f4f4f4;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.side-news:hover {
  background: #e9e9e9;
}

.live-tv-section {
  margin: 40px 20px;
  padding: 30px;
  border-radius: 16px;
  background: #f8f8f8;
  transition: 0.3s;
}

.dark-mode .live-tv-section {
  background: #1a1a1a;
}

.live-section-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.live-tv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.live-card {
  background: white;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.dark-mode .live-card {
  background: #222;
}

.live-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.watch-live-btn {
  display: inline-block;
  margin: 10px 0;
  padding: 8px 16px;
  border-radius: 20px;
  background: #d90429;
  color: white;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
}

.watch-live-btn:hover {
  background: #b5031f;
}

.live-source {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

.dark-mode .live-source {
  color: #bbb;
}

@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ================= CONTENT + SIDEBAR ================= */

.content-area {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 30px;
  padding: 20px;
}

.sidebar {
  background: #fafafa;
  padding: 15px;
  border-radius: 10px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin-bottom: 10px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .content-area {
    grid-template-columns: 1fr;
  }

  .hero-main img {
    height: 250px;
  }
}
/* Dark Mode Hero Side Blocks */
body.dark-mode .side-news {
  background: #1e1e1e;
  color: #ffffff;
  border: 1px solid #333;
}

body.dark-mode .side-news:hover {
  background: #2a2a2a;
}
body.dark-mode .sidebar {
  background: #1e1e1e;
  color: #ffffff;
}

body.dark-mode .sidebar h3 {
  color: #ffffff;
}

body.dark-mode .sidebar li {
  color: #dddddd;
}

body.dark-mode .theme-btn {
  background: #f4f4f4;
  color: #000;
}


.topbar h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 1px;
}

.news-ticker {
  display: flex;
  align-items: center;
  background: #0d6efd;
  color: white;
  overflow: hidden;
  height: 40px;
}

.ticker-label {
  background: #ff3b3b;
  padding: 0 15px;
  font-weight: bold;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-wrapper {
  overflow: hidden;
  flex: 1;
  position: relative;
}

.ticker-content {
  white-space: nowrap;
  display: inline-block;
  padding-left: 100%;
  animation: tickerScroll 15s linear infinite;
}

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

/* Dark Mode */
body.dark-mode .news-ticker {
  background: #1a1a1a;
}

body.dark-mode .ticker-label {
  background: #e63946;
}


.search-box {
  display: flex;
  gap: 10px;
  padding: 15px;
}

.search-box input {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: none;
  background: #1e1e1e;
  color: white;
}

.search-box button {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: #2a2a2a;
  color: white;
  cursor: pointer;
}

.categories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 15px 15px;
}

.categories button {
  background: #1c1c1c;
  border: 1px solid #333;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s;
}

.categories button.active {
  background: white;
  color: black;
}

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

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

.card-content {
  padding: 15px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.card p {
  font-size: 14px;
  color: #bbb;
}

.card a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: #4da6ff;
  font-size: 14px;
}

.loader {
  text-align: center;
  padding: 20px;
}

.no-news {
  text-align: center;
  padding: 20px;
  color: #888;
}


.main-content {
  flex: 1;
}

.footer {
  text-align: center;
  padding: 18px 10px;
  font-size: 14px;
  margin: 20px;
  border-radius: 15px;

  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);

  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

  transition: 0.3s ease;
}

.footer a {
  text-decoration: none;
  font-weight: 600;
  color: #007bff;
}

.footer a:hover {
  text-decoration: underline;
}

/* Dark Mode Glass */
body.dark-mode .footer {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

body.dark-mode .footer a {
  color: #4da3ff;
}

/* Skeleton Loader */
.skeleton-card {
  background: #f0f0f0;
  border-radius: 15px;
  overflow: hidden;
  animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-image {
  height: 200px;
  background: #ddd;
}

.skeleton-content {
  padding: 15px;
}

.skeleton-line {
  height: 12px;
  margin-bottom: 10px;
  border-radius: 6px;
  background: #ddd;
}

.skeleton-line.short {
  width: 60%;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* Dark Mode */
body.dark-mode .skeleton-card {
  background: #1e1e1e;
}

body.dark-mode .skeleton-image,
body.dark-mode .skeleton-line {
  background: #333;
}

#news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

