  :root {
    --bg-main: #f2f9fc; /* Main background color */
    --bg-card: #ffffff; /* Card background color */
    --bg-sidebar: #ffffff; /* Sidebar background color */
    --text-main: #000; /* Main text color */
    --text-muted: #555; /* Muted text color */
    --accent: #4285f4; /* Accent color */
    --accent-strong: #1a73e8; /* Strong accent color */
    --radius: 16px; /* Border radius */
    /*--shadow: 0 2px 16px rgba(0,0,0,0.1);*/
    --font-main: "Manrope", sans-serif; /* Main font */
  }
  body {
    margin: 0;
    background: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    font-size: 0.875rem;
  }
    
  .container {
    display: flex;
    gap: 2rem;
    max-width: 1180px;
    margin: 2.2rem auto;
    padding: 0 1rem;
  }
  main {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  aside.sidebar {
    flex: 2;
    min-width: 320px;
    max-width: 380px;
    background: var(--bg-sidebar);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    /*gap: 2rem;*/
    height: fit-content;
    position: sticky;
    top: 2rem;
    box-shadow: var(--shadow);
  }
  .weather-card, .local-news, .ad-banner, .picks-for-you {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.1rem 1rem;
    /*margin-bottom: 1.5rem;*/
    box-shadow: var(--shadow);
  }
  .weather-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
  }
  .weather-card .temp {
    font-size: 2.1rem;
    font-weight: bold;
    color: #ffb300; /* Temperature color */
  }
  .weather-card .city {
    font-size: 1.05rem;
    color: var(--accent);
    font-weight: 600;
  }
  .ad-banner img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    object-fit: cover;
    min-height: 60px;
    background: #ddd; /* Background for ad banner */
  }
  .section,
  .for-you-section,
  .topics-section,
  .top-stories-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.7rem 1.2rem;
    margin-bottom: 1.7rem;
  }
  .section-title,
  .for-you-title,
  .topics-title,
  .top-stories-header {
    font-size: 1.22rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.01em;
    font-family: var(--font-main);
  }
  /* Top Stories Section Polished */
  .top-stories-section {
    /*max-width: 900px;*/
    /*margin: 0 auto 2.2rem auto;*/
    padding: 2rem 1.5rem 1.2rem 1.5rem;
  }
  .top-stories-header {
    color: var(--accent-strong);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }
  .top-stories-content {
    display: flex;
    gap: 1.7rem;
  }
  .top-story-main {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-width: 210px;
  }
  .top-story-main img {
    width: 100%;
    min-width: 180px;
    max-width: 260px;
    height: 220px;
    object-fit: cover;
    border-radius: 13px;
    margin-bottom: 0.6rem;
    background: #ddd; /* Background for images */
    transition: filter 0.2s;
  }
  .top-story-main img:hover {
    filter: brightness(0.95) blur(0.5px);
  }
  .top-story-main-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }
  .top-story-source {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.02rem;
    color: #555; /* Source text color */
    font-weight: 600;
  }
  .source-logo {
    width: 23px;
    height: 23px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #444;
  }
  .top-story-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #000; /* Title text color */
    margin-bottom: 0.2rem;
    line-height: 1.3;
    font-family: var(--font-main);
  }
  .top-story-time {
    font-size: 0.96rem;
    color: #555; /* Time text color */
  }
  .top-story-side {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    min-width: 0;
  }
  .top-story-side-item {
    background: none;
    padding: 0.5rem 0 0.5rem 0.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    transition: background 0.15s;
    cursor: pointer;
  }
  .top-story-side-item:hover {
    background: #e0e0e0; /* Hover background color */
  }
  .top-story-side-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #000; /* Side title text color */
    line-height: 1.3;
    font-family: var(--font-main);
  }
  .top-stories-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.2rem;
  }
  .full-coverage-btn {
    background: #f5f5f5; /* Button background */
    color: var(--accent-strong);
    border: 1px solid var(--accent-strong);
    border-radius: 22px;
    padding: 0.37rem 1.3rem;
    font-size: 1.01rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s, color 0.2s;
    font-family: var(--font-main);
    letter-spacing: 0.01em;
  }
  .full-coverage-btn:hover {
    background: var(--accent-strong);
    color: #fff; /* Button hover text color */
  }
  /* For you section grid */
  .for-you-section {
    margin-bottom: 1.7rem;
  }
  .for-you-title {
    margin-bottom: 1.1rem;
  }
  .for-you-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.2rem;
  }
  .for-you-card {
    background: #f5f5f5; /* Card background */
    border-radius: 11px;
    padding: 1.1rem 1rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    transition: background 0.18s;
    box-shadow: 0 1px 8px rgba(66,133,244,0.07);
  }
  .for-you-card:hover {
    background: #e0e0e0; /* Hover background */
  }
  .for-you-img {
    /*display: none;*/
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: #ddd; /* Image background */
    transition: filter 0.2s;
  }
  .for-you-card:hover .for-you-img {
    filter: brightness(0.95) blur(0.5px);
  }
  .for-you-content {
    flex: 1;
  }
  .for-you-title-card {
    font-size: 1.01rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 0.2rem 0;
    font-family: var(--font-main);
  }
  .for-you-meta {
    font-size: 0.89rem;
    color: var(--text-muted);
  }
  /* Topics grid */
  .topics-section {
    margin-bottom: 1.7rem;
  }
  .topics-title {
    margin-bottom: 1.1rem;
  }
  .topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 0fr));
    gap: 1rem;
  }
  .topic-card {
    background: #f5f5f5; /* Card background */
    border-radius: 11px;
    padding: 1.1rem 1rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    transition: background 0.18s;
    box-shadow: 0 1px 8px rgba(66,133,244,0.07);
  }
  .topic-card:hover {
    background: #e0e0e0; /* Hover background */
  }
  .topic-img {
    display: none;  
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    background: #ddd; /* Image background */
    transition: filter 0.2s;
  }
  .topic-card:hover .topic-img {
    filter: brightness(0.95) blur(0.5px);
  }
  .topic-content {
    flex: 1;
  }
  .topic-title {
    font-size: 1.01rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 0.2rem 0;
    font-family: var(--font-main);
  }
  .topic-meta {
    font-size: 0.89rem;
    color: var(--text-muted);
  }
  /* Miscellaneous */
  .stories-list, .local-list, .picks-list, .topics-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }
  .story, .local-news-item, .pick-item, .topic-card {
    display: flex;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    text-align: left;
    cursor: pointer;
  }
  .story .story-img, .local-news-item .local-img, .pick-item .pick-img, .topic-card .topic-img {
    width: 68px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #ddd; /* Image background */
  }
  .story-content, .local-content, .pick-content, .topic-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1em;
  }
  .story-title, .local-title, .pick-title, .topic-title {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-main);
    margin: 0;
    line-height: 1.3;
    font-family: var(--font-main);
  }
  .story-meta, .local-meta, .pick-meta, .topic-meta {
    font-size: 0.71rem;
    color: var(--text-muted);
  }
  .full-coverage-btn svg:hover {
      fill:#ffffff !important;
  }
  .topic-card-column {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: none;
  border-radius: var(--radius);
  min-width: 0;
}

.topic-column-title {
  font-size: 1.07rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-family: var(--font-main);
}
  /* Responsive */
  @media (max-width: 1100px) {
    .container {
      flex-direction: column;
    }
    aside.sidebar {
      max-width: 100%;
      min-width: 0;
      position: static;
      margin-top: 2rem;
    }
  }
  @media (max-width: 900px) {
    .top-stories-content {
      flex-direction: column;
      gap: 1.2rem;
    }
    .top-story-main img {
      max-width: 100%;
      min-width: 0;
    }
  }
  @media (max-width: 700px) {
    header {
      flex-direction: column;
      height: auto;
      padding: 1rem;
      gap: 1rem;
    }
    .container {
      padding: 0.5rem;
    }
    aside.sidebar {
      padding: 1rem 0.5rem;
    }
    .weather-card, .local-news, .ad-banner, .picks-for-you {
      padding: 0.7rem;
    }
    .section, .for-you-section, .topics-section, .top-stories-section {
      padding: 1rem 0.5rem;
    }
    .nav {
      gap: 1rem;
      flex-wrap: wrap;
    }
    .topics-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 0fr));
      }
  }
 /*.hero-section {*/
 /*   background: var(--bg-main);*/
 /*   padding: 1rem 1rem 1rem;*/
 /*   text-align: left;*/
 /*   font-family: 'Google Sans', sans-serif;*/
 /*   user-select: none;*/
 /* }*/
 /* .hero-title {*/
 /*   font-size: 2rem;*/
 /*   font-weight: 600;*/
 /*   color: #222;*/
 /*   position: relative;*/
 /*   display: inline-block;*/
 /*   opacity: 0;*/
 /*   transform: translateY(50px);*/
 /*   animation: fadeUpIn 1.2s ease forwards;*/
 /*   animation-delay: 0.3s;*/
 /*   letter-spacing: 0.1em;*/
 /* }*/
 /* .question-mark {*/
 /*   color: #4285f4;*/
 /*   display: inline-block;*/
 /*   margin-left: 0.15em;*/
 /*   font-weight: 900;*/
 /*   animation: pulseGlow 3s ease-in-out infinite;*/
 /*   text-shadow:*/
 /*     0 0 5px rgba(66, 133, 244, 0.7),*/
 /*     0 0 15px rgba(66, 133, 244, 0.4);*/
 /* }*/
  /* Animate the entire text sliding up and fading in */
 /* @keyframes fadeUpIn {*/
 /*   to {*/
 /*     opacity: 1;*/
 /*     transform: translateY(0);*/
 /*   }*/
 /* }*/
  /* Pulsing glow effect on question mark */
 /* @keyframes pulseGlow {*/
 /*   0%, 100% {*/
 /*     text-shadow:*/
 /*       0 0 5px rgba(66, 133, 244, 0.7),*/
 /*       0 0 15px rgba(66, 133, 244, 0.4);*/
 /*     color: #4285f4;*/
 /*   }*/
 /*   50% {*/
 /*     text-shadow:*/
 /*       0 0 10px rgba(26, 115, 232, 0.9),*/
 /*       0 0 25px rgba(26, 115, 232, 0.6);*/
 /*     color: #1a73e8;*/
 /*   }*/
 /* }*/
  /* Animated underline */
  /*.hero-title::after {*/
  /*  content: '';*/
  /*  display: block;*/
  /*  height: 4px;*/
  /*  width: 60%;*/
  /*  background: linear-gradient(90deg, #4285f4 0%, #1a73e8 100%);*/
  /*  border-radius: 2px;*/
  /*  margin: 0.6rem auto 0 auto;*/
  /*  opacity: 0;*/
  /*  transform: scaleX(0);*/
  /*  animation: underlineGrow 1s ease forwards;*/
  /*  animation-delay: 1.5s;*/
  /*}*/
  /*@keyframes underlineGrow {*/
  /*  to {*/
  /*    opacity: 1;*/
  /*    transform: scaleX(1);*/
  /*  }*/
  /*}*/
  /*@media (max-width: 700px) {*/
  /*  .hero-title {*/
  /*    font-size: 3.2rem;*/
  /*    letter-spacing: 0.07em;*/
  /*  }*/
  /*  .hero-title::after {*/
  /*    width: 80%;*/
  /*  }*/
  /*}*/
  
  /* News tab active and hover states */
.news-tab.active {
    color: #1a73e8;
    border-bottom: 3px solid #1a73e8;
    font-weight: 500;
}
.news-tab:hover:not(.active) {
    color: #1a73e8;
}

/* Hide horizontal scrollbar for tabs container */
.tabs-container {
    scrollbar-width: none; /* Firefox */
}
.tabs-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

/* Layout and spacing for the tab bar */
.tabs-container {
    overflow-x: auto;
}
.tabs-row {
    display: flex;
    gap: 1.5rem; /* 24px, matches space-x-6 */
    padding-top: 0.75rem;  /* 12px, matches py-3 */
    padding-bottom: 0.75rem;
    font-size: 0.875rem;   /* 14px, matches text-sm */
    font-weight: 500;      /* matches font-medium */
    color: #4b5563;        /* matches text-gray-600 */
    white-space: nowrap;
    min-width: max-content;
}
.news-tab {
    padding-left: 0.25rem;  /* 4px, matches px-1 */
    padding-right: 0.25rem;
    padding-top: 0.5rem;    /* 8px, matches py-2 */
    padding-bottom: 0.5rem;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-bottom 0.2s;
}
.mt-custom{
    margin: 0 auto !important;
}

@media (max-width: 768px) {
  .tabs-row {
    display: flex;
    flex-wrap: wrap;               /* Allow tabs to wrap to next line */
    justify-content: center;       /* Center tabs horizontally */
    align-items: center;           /* Center tabs vertically within the row */
    gap: 0.5rem;                     /* Adjust gap as needed for mobile */
    white-space: normal;           /* Allow text to wrap if needed */
    min-width: 0;                  /* Prevent overflow */
    width: 100%;
    text-align: center;
  }
  .tabs-container {
    display: flex;
    justify-content: center;       /* Center the whole tab block horizontally */
    align-items: center;           /* Center vertically if container has height */
    width: 100%;
  }
}


/* Section-specific styles for horizontal layout and input */
.hero-title {
  background-clip: text;
  font-weight: 700;
}

.hero-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.search-container {
  flex: 1 1 0%;
  display: flex;
  align-items: center;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: 2px solid #e0e7ff;
  outline: none;
  color: #374151;
  background: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.search-input:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.question-mark {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #000000;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.search-input:focus + .question-mark {
  background: #4f46e5;
  transform: translateY(-50%) scale(1.1);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}
.pulse {
  animation: pulse 2s infinite;
}

#searchResults {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  z-index: 1000;
  display: none;
  max-height: 300px;
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-top: 0.5rem;
}

#searchResults a {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #000;
  transition: background 0.2s;
}

#searchResults a:hover {
  background: #f0f0f0;
}

#searchResults div {
  padding: 8px;
  text-align: center;
  color: #718096;
  font-style: italic;
}

@media (max-width: 767px) {
  .hero-row {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .hero-title {
    margin-right: 0;
    margin-bottom: 0.5rem;
    white-space: normal;
  }
  .search-container {
      width: 100%;
  }
}



.category-blogs-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    width: 100%;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.category-title {
    font-size: 2rem;
    color: #2d3748;
    margin: 0;
    font-weight: 700;
}

.back-to-topics-btn {
    padding: 0.6rem 1.2rem;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #4a5568;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-to-topics-btn:hover {
    background: #e2e8f0;
    color: #2d3748;
    transform: translateY(-2px);
}

.insights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.5rem;
}

.insight-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}
.insight-content {
    flex: 1;
}
.insight-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin-left: 1rem;
}


.insight-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.insight-item h3 {
    font-size: 1.2rem;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
}

.insight-meta {
    font-size: 0.85rem;
    color: #718096;
    margin: 0 0 0.8rem 0;
}

.insight-item p {
    font-size: 1rem;
    color: #4a5568;
    margin: 0;
    line-height: 1.5;
}
