:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --text-color: #333;
  --light-text: #777;
  --background: #f5f5f5;

  --border-color: #e1e1e1;
  --font-main: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --container-width: 1200px;

  /* Light Mode */
  --bg: #f5f5f5;
  --text: #222;
  --header-bg: #f5f5f5;
  --header-text: #333;
  --footer-bg: #f5f5f5;
  --accent: #0066cc;
  --border: #eaeaea;
  --card-bg: #f8f8f8;
  --card-text: #000;
  --meta-text: #000;

  --header-bg-rgb: 255, 255, 255;
  --accent-rgb: 0, 102, 204;
  --menu-text: var(--header-text);
  --menu-bg-rgb: var(--header-bg-rgb);
}

[data-theme="dark"] {
  --bg: #1a1a1a;
  --text: #f0f0f0;
  --header-bg: #1a1a1a;
  --header-text: #fff;
  --footer-bg: #1a1a1a;
  --accent: #4dabf7;
  --border: #333;
  --card-bg: #2d2d2d;
  --card-text: #fff;
  --meta-text: #fff;
  --logo-filter: brightness(0) invert(1);
  --header-bg-rgb: 26, 26, 26;
  --accent-rgb: 74, 171, 247;
  --menu-text: #fff;
  --menu-bg-rgb: 30, 30, 30;
  --light-text: #ffffff;  /* dark mode white */
   color: #f1f1f1; /* text white in dark */
  color: #4da6ff;
  border-color: #4da6ff;
  
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  margin-top: 150px;
  word-break: break-word;
  position: relative;
  min-height: 100vh;
  padding-bottom: 100px; /* footer height */
  transition: background 0.3s ease, color 0.3s ease;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2 {
  font-family: 'Inter', sans-serif;
text-align: center;
}



/* ===== Header ===== */
.site-header {
  background: var(--header-bg);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo img {
  height: 28px;
  width: 42px;
}

/* ===== Menu Toggle ===== */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 1001;
  cursor: pointer;
}

.menu-toggle .bar {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  left: 0;
  transition: all 0.3s ease;
}

.menu-toggle .bar:nth-child(1) { top: 6px; }
.menu-toggle .bar:nth-child(2) { top: 15px; }
.menu-toggle .bar:nth-child(3) { top: 24px; }

.menu-toggle.open .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background: var(--accent);
}
.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background: var(--accent);
}

[data-theme="dark"] .menu-toggle .bar,
[data-theme="dark"] .menu-toggle.open .bar:nth-child(1),
[data-theme="dark"] .menu-toggle.open .bar:nth-child(3) {
  background: var(--accent);
}

/* ===== Main Navigation ===== */
.main-navigation ul {
  display: flex;
  list-style: none;
  align-items: center;
}

.main-navigation li {
  margin-left: 20px;
}

.main-navigation a {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: var(--secondary-color);
}

/* ===== Hero Section ===== */
.hero {
  padding: 0 20px 20px;
  text-align: center;
  background: var(--light-bg);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--light-text);
  max-width: 100%;
  margin: 0 auto 30px;
}

/* ===== Post Grid ===== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.post-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card__image-container {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.post-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card__category {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(2px);
}

.post-card__content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card__meta {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--meta-text);
  margin-bottom: 8px;
  font-style: italic;
}

.post-card__title {
  font-size: 1.25rem;
  margin: 0 0 15px;
  line-height: 1.4;
  flex-grow: 1;
}

.post-card__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: auto;
  width: fit-content;
}

.post-card__button:hover {
  gap: 10px;
  color: var(--accent-hover, #004499);
}

.post-card__button svg {
  transition: transform 0.2s ease;
}

.post-card__button:hover svg {
  transform: translateX(3px);
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  font-size: 14px;
  background: var(--footer-bg);
  position: absolute;
  bottom: 0;
  width: 100%;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #555;
  text-decoration: none;
}

.footer-links a:hover {
  color: #000;
  text-decoration: underline;
}

/* ===== Responsive Styles (Mobile First) ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-navigation {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--header-bg);
    backdrop-filter: blur(8px);
    padding: 1rem 0;
    transform: translateY(-150%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.2s ease;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
  }

  .main-navigation.show {
    transform: translateY(0);
    opacity: 1;
  }

  .main-navigation .menu {
    flex-direction: column;
    gap: 0.5rem;
  }

  .main-navigation .menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--header-text) !important;
    transition: background 0.2s ease;
    font-weight: 500;
  }

  .main-navigation .menu a:hover {
    background: rgba(var(--accent-rgb), 0.1);
  }

  .hero {
    padding: 0px 0px 0px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .category-filter {
    justify-content: center;
  }
}

/* ===== Additional Components can be added after this block as needed ===== */
/* Posts Grid Layout */
/* All other components will inherit these automatically */

.tv-channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

/* Mobile Fix */
@media (max-width: 480px) {
  .tv-channels-grid {
    grid-template-columns: 1fr; /* full width on small screens */
  }
}


.load-more-btn {
  display: block;
  margin: 30px auto 0;
  padding: 10px 25px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Theme Toggle Container */
.theme-toggle-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
}

/* Toggle Button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center; /* Center the icon */
  padding: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50%; /* Makes it a perfect circle */
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  width: 40px; /* Fixed size for circle */
  height: 40px;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.theme-icon {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
}

/* Moon icon (light mode) */
.moon {
  fill: #6b7280;
  transition: fill 0.3s ease, transform 0.3s ease;
}

/* Sun icon (dark mode) */
.sun {
  display: none;
  stroke: #fbbf24;
}

.sun-center {
  fill: #fbbf24;
}

/* Light mode styles */
[data-theme="light"] .moon {
  display: block;
  transform: rotate(-25deg);
}

[data-theme="light"] .sun {
  display: none;
}

/* Dark mode styles */
[data-theme="dark"] .moon {
  display: none;
}

[data-theme="dark"] .sun {
  display: block;
}

/* Button animation on click */
.theme-toggle:active .theme-icon {
  transform: scale(0.9);
}
.hidden-tv {
  display: none;
}
  /* tags css code */
.post-tags {
  margin-top: 20px;
  font-size: 14px;
 
}

.post-tags strong {
  margin-right: 8px;
  color: orange;
  
}

.post-tags a {
  display: inline-block;
  margin: 3px 5px;
  padding: 4px 10px;
  background-color: #f7f7f7;
  border-radius: 15px;
  text-decoration: none;
  color: #333;
  font-size: 13px;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-weight: bold;
}

.post-tags a:hover {
  background-color: #e2e2e2;
  color: #000;
}
/* category filter */
.category-filter {
  text-align: center;
  margin-bottom: 20px;
}

.filter-btn {
  background: #eee;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s;
  margin: 4px;
}

.filter-btn:hover,
.filter-btn.active {
  background: #333;
  color: #fff;
}

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

.post-card {
  transition: 0.3s ease;
}

/*social icons */
.social-icons {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icons a {
  color: #1da1f2; /* Twitter Blue */
  text-decoration: none;
  font-size: 24px;
  transition: opacity 0.3s ease;
}

.social-icons a:hover {
  opacity: 0.7;
}

.social-icons .icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: inline-block;
}
/* FAQ Styles */
.faqs {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    font-family: var(--font-main);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: background 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.faqs h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text);
    font-size: 28px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    transition: background 0.3s ease, color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(var(--accent-rgb), 0.08);
}

.faq-question:after {
    content: '+';
    font-size: 22px;
    transition: transform 0.3s ease;
    color: var(--accent);
}

.faq-question.active:after {
    content: '-';
    color: var(--accent);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, color 0.3s ease;
    color: var(--light-text);
    line-height: 1.6;
    display: block !important;
}

.faq-question.active + .faq-answer {
    padding: 15px 20px 25px;
    max-height: 500px;
    color: var(--text);
}
.apk-btn {
  display: inline-block;
  padding: 12px 24px;
  margin-top: 10px;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.apk-btn:hover {
  background: linear-gradient(135deg, #27ae60, #219150);
  transform: translateY(-2px);
}

body.dark .apk-btn {
  background: linear-gradient(135deg, #16a085, #1abc9c);
  color: #fff;
}

body.dark .apk-btn:hover {
  background: linear-gradient(135deg, #1abc9c, #16a085);
}
/* Pagination code css*/
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0;
}

.page-link {
  padding: 8px 14px;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-link:hover {
  background: #3498db;
  color: #fff;
}

.page-link.active {
  background: #3498db;
  color: #fff;
  font-weight: bold;
}

/* ==== Site Description Styling ==== */
      

     /* 🔗 Link Styles (light + dark mode) */
.site-description a {
  display: inline;              /* ✅ inline rakha */
  text-decoration: none;        /* underline hataya */
  color: #1abc9c;               /* green color */
  font-weight: 600;
  transition: color 0.3s ease;  /* hover smooth */
  border: none;                 /* ✅ border remove */
  background: none;             /* ✅ background remove */
  padding: 0;                   /* ✅ padding remove */
  margin: 0;                    /* ✅ margin remove */
  border-radius: 0;             /* ✅ radius remove */
  box-shadow: none;             /* ✅ box-shadow remove */
}

   .site-description a:hover {
  color: var(--primary, #2c3e50);
  text-decoration: underline;

    }

    .site-description a:active {
      transform: translateY(0);
    }

    .site-description h2 {
      font-size: 1.6rem;
      margin-bottom: 15px;
      text-align: center;
      color: var(--text, #222);
    }

    .site-description .desc-text {
      font-size: 1.05rem;
      line-height: 1.7;
      color: var(--text, #222);
      text-align: justify;
    }

    .site-description .desc-text a {
      color: #1abc9c;
      font-weight: 600;
      text-decoration: none;
      transition: color 0.3s ease;
    }

    .site-description .desc-text a:hover {
      color: var(--primary, #2c3e50);
      text-decoration: underline;
    }

    /* 🌙 Dark Mode */
    [data-theme="dark"] .site-description h2,
    [data-theme="dark"] .site-description .desc-text {
      color: #f1f1f1;
    }

    [data-theme="dark"] .site-description .desc-text a {
      color: #4da6ff;
    }

    [data-theme="dark"] .site-description .desc-text a:hover {
      color: #80c1ff;
    }

    /* 🌙 Dark mode overrides */
    @media (prefers-color-scheme: dark) {
      .site-description a {
        border-color: #243141;
        background: #1b2838;
        color: #f1f1f1;
      }
    }
