: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;

  /* Theme */
  --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;
}

/* 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;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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);
}

/* ===== 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: justify;
  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 (fixed — no overlap) ===== */
footer {
  text-align: center;
  padding: 24px 20px;
  margin-top: 60px;
  font-size: 14px;
  background: var(--footer-bg);
  width: 100%;
  border-top: 1px solid var(--border);
  position: relative;
}

.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(0, 102, 204, 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 ===== */

.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;
  }
}

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

.hidden-tv {
  display: none;
}

/* Tags */
.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;
  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;
}

.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(0, 102, 204, 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 Button */
.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);
}

/* Pagination */
.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 ==== */

.site-description a {
  display: inline;
  text-decoration: none;
  color: #1abc9c;
  font-weight: 600;
  transition: color 0.3s ease;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.site-description a:hover {
  color: var(--primary-color);
  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);
}

.site-description .desc-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  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-color);
  text-decoration: underline;
}

/* ===== Blog Post / Article Styling ===== */

/* Post wrapper */
.post,
article {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 40px 44px;
  margin: 30px auto;
  max-width: 850px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
  line-height: 1.8;
  font-size: 1.05rem;
  color: var(--text);
}

/* Post headings */
.post h1,
article h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 24px;
  text-align: left;
  color: var(--text);
  line-height: 1.3;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.post h2,
article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 36px 0 16px;
  text-align: left;
  color: var(--text);
  line-height: 1.4;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.post h3,
article h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 28px 0 12px;
  text-align: left;
  color: var(--text);
}

/* Paragraphs */
.post p,
article p {
  margin: 0 0 18px;
  color: var(--text);
  line-height: 1.8;
}

/* Lists */
.post ul,
.post ol,
article ul,
article ol {
  margin: 0 0 20px;
  padding-left: 26px;
  color: var(--text);
}

.post li,
article li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* Blockquote */
.post blockquote,
article blockquote {
  border-left: 4px solid var(--accent);
  background: rgba(0, 102, 204, 0.05);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text);
}

/* Images */
.post img,
article img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 20px auto;
  display: block;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Code */
.post code,
article code {
  background: #f0f0f0;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
  color: #c0392b;
}

.post pre,
article pre {
  background: #2c3e50;
  color: #f0f0f0;
  padding: 18px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.post pre code,
article pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* Links inside post */
.post a,
article a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.post a:hover,
article a:hover {
  border-bottom-color: var(--accent);
  color: #004499;
}

/* Horizontal rule */
.post hr,
article hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 36px 0;
}

/* Tables */
.post table,
article table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}

.post th,
.post td,
article th,
article td {
  padding: 12px 14px;
  text-align: left;
  border: 1px solid var(--border);
}

.post th,
article th {
  background: rgba(0, 102, 204, 0.08);
  font-weight: 700;
  color: var(--text);
}

.post tr:nth-child(even),
article tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

/* ===== Mobile Post Styling ===== */
@media (max-width: 768px) {
  .post,
  article {
    padding: 26px 20px;
    margin: 20px 12px;
    border-radius: 10px;
    font-size: 1rem;
  }

  .post h1,
  article h1 {
    font-size: 1.7rem;
    margin-bottom: 18px;
  }

  .post h2,
  article h2 {
    font-size: 1.3rem;
    margin: 28px 0 14px;
  }

  .post h3,
  article h3 {
    font-size: 1.1rem;
  }
}