

/* ======================
   LIGHT THEME (DEFAULT)
====================== */

:root{
  --bg:#f8fafc;
  --card:#ffffff;
  --text:#0f172a;
  --secondary:#64748b;
  --accent:#22c55e;
  --nav:#ffffffcc;
}

/* ======================
   DARK THEME
====================== */

body.dark{
  --bg:#0b0f19;
  --card:#121826;
  --text:#ffffff;
  --secondary:#9ca3af;
  --accent:#1DB954;
  --nav:#121826cc;
}

body{
  margin:0;
  font-family:'Poppins',sans-serif;
  background:var(--bg);
  color:var(--text);
  transition:background 0.3s,color 0.3s;
}

/* ======================
 NAVBAR
====================== */

.navbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px 40px;
  background:var(--nav);
  backdrop-filter:blur(10px);
  border-bottom:1px solid #e5e7eb;
  position:sticky;
  top:0;
  z-index:1000;
}

.navbar ul{
  list-style:none;
  display:flex;
  gap:25px;
}

.navbar a{
  text-decoration:none;
  color:var(--text);
  font-weight:500;
}

/* ===== GLOBAL NAVBAR ===== */
nav.navbar {
  width: 100%;
  padding: 15px 40px; /* same on all pages */
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.navbar .nav-links {
  display: flex;
  gap: 25px;
}

.navbar .nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: 0.3s ease;
}

.navbar .nav-links a:hover {
  color: var(--primary-color);
}

.logo{
  color:var(--accent);
}

/* THEME BUTTON */
.theme-toggle{
  cursor:pointer;
  background:var(--accent);
  border:none;
  padding:8px 15px;
  border-radius:20px;
  color:white;
}

/* ======================
 HERO
====================== */
/* ======================
 HERO SLIDER
====================== */

.hero{
  position:relative;
  height:420px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  background-size:cover;
  background-position:center;
  transition:background-image 1s ease-in-out;
}

.hero-overlay{
  background:rgba(0,0,0,0.35);
  padding:40px;
  border-radius:15px;
  color:white;
  backdrop-filter:blur(6px);
}

body:not(.dark) .hero-overlay{
  background:rgba(255,255,255,0.6);
  color:#111827;
}
.hero{
  text-align:center;
  padding:100px 20px;
  background:linear-gradient(
    135deg,
    var(--card),
    var(--bg)
  );
}

.hero h1{
  font-size:48px;
  margin-bottom:10px;
}

.hero p{
  color:var(--secondary);
  font-size:18px;
}
/* Hero section */
.hero {
  position: relative;
  width: 100%;
  height: 60vh; /* stays above fold */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  background-size: cover;
  background-position: center;
  transition: background-image 0.5s ease-in-out;
}

.hero-title,
.hero-subtitle {
  transition: opacity 0.5s ease-in-out;
  color: #fff;
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  height: 60vh; /* compact, fits above fold */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://picsum.photos/1200/400?10') center/cover no-repeat;
}

.hero-overlay {
  color: #fff;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 1rem;
  opacity: 0.85;
}
/* ======================
 SECTIONS
====================== */

.section{
  padding:50px 60px;
}

.section h2{
  margin-bottom:20px;
}

/* ======================
 CARDS
====================== */

.card-container{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:25px;
}

.card{
  background:var(--card);
  border-radius:18px;
  overflow:hidden;
  transition:0.35s;
  box-shadow:0 10px 25px rgba(0,0,0,0.2);
  scroll-snap-align: start;
}

.card:hover{
  transform:translateY(-10px) scale(1.02);
}

.card img{
  width:100%;
  height:170px;
  object-fit:cover;
}

.card h3{
  margin:12px;
}

.card p, .card small{
  margin:0 12px 12px;
  color:var(--secondary);
}

/* ======================
 NEWSLETTER
====================== */

.newsletter{
  text-align:center;
  padding:60px;
  background:linear-gradient(135deg,#1DB95422,#000000);
}

.newsletter input{
  padding:12px;
  width:260px;
  border-radius:20px;
  border:none;
  margin-right:10px;
}

.newsletter button{
  padding:12px 22px;
  border-radius:20px;
  border:none;
  background:var(--accent);
  color:white;
  cursor:pointer;
}

/* ======================
 CHATBOT
====================== */

.chatbot-btn{
  position:fixed;
  bottom:20px;
  right:20px;
  background:var(--accent);
  border-radius:50%;
  width:60px;
  height:60px;
  display:flex;
  justify-content:center;
  align-items:center;
  cursor:pointer;
  font-size:24px;
}

.chatbox{
  position:fixed;
  bottom:90px;
  right:20px;
  width:260px;
  background:var(--card);
  padding:15px;
  border-radius:12px;
  display:none;
}

/* Chatbot styles */
#chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

#chatbotToggle {
  background-color: #0077ff;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 28px;
  cursor: pointer;
}

#chatbotWindow {
  display: none;
  width: 300px;
  max-height: 400px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  border-radius: 12px;
  overflow: hidden;
  flex-direction: column;
  position: absolute;
  bottom: 70px;
  right: 0;
}

#chatbotMessages {
  padding: 10px;
  height: 300px;
  overflow-y: auto;
  font-size: 14px;
}

#chatbotInput {
  width: calc(100% - 60px);
  padding: 8px;
  border: none;
  border-top: 1px solid #ccc;
  outline: none;
}

#chatbotSend {
  width: 60px;
  border: none;
  background: #0077ff;
  color: #fff;
  cursor: pointer;
}

.section-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:15px;
}

.horizontal-scroll{
  display:flex;
  gap:24px;

  overflow-x:auto;
  overflow-y:visible;   /* VERY IMPORTANT FIX */

  padding:10px 0 25px;

  scroll-behavior:smooth;

  /* smooth laptop touchpad scrolling */
  -webkit-overflow-scrolling:touch;
}

/* scrollbar styling */
.horizontal-scroll::-webkit-scrollbar{
  height:6px;
}

.horizontal-scroll::-webkit-scrollbar-thumb{
  background:#1DB954;
  border-radius:10px;
}

.horizontal-scroll .card{
  min-width:270px;
  flex-shrink:0;
}

/* clean scrollbar */
.horizontal-scroll::-webkit-scrollbar{
  height:6px;
}

.horizontal-scroll::-webkit-scrollbar-thumb{
  background:#1DB954;
  border-radius:10px;
}

.horizontal-scroll .card{
  min-width:270px;
  flex:0 0 auto;
  
}

.section{
  position:relative;
}

.section::after{
  content:"";
  position:absolute;
  right:0;
  top:0;
  width:80px;
  
  pointer-events:none;
  background:linear-gradient(to left,var(--bg),transparent);
}

/* PAGE HEADER */
.page-header{
    text-align:center;
    padding:40px 20px;
}

.page-header h1{
    font-size:2.2rem;
}

/* CATEGORY BUTTONS */

.category-filter{
    text-align:center;
    margin-bottom:30px;
}

/* ===============================
   CATEGORY PAGE (FINAL CLEAN)
================================ */

/* grid container */
/* category container */
.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* center cards horizontally */
  gap: 25px;

  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

/* equal-size cards */
.category-card {
  flex: 0 0 240px;   /* FIXED width */
  height: 180px;      /* fixed height */
  box-sizing: border-box;

  background: var(--card);
  border-radius: 14px;
  padding: 20px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.category-card h3 {
  margin-bottom: 8px;
}

.category-card p {
  font-size: 14px;
  opacity: 0.8;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* CATEGORY BUTTONS */
.category-btn {
  margin: 8px;
  padding: 8px 20px;
  border: none;
  border-radius: 50px; /* pill shape */
  background: #e6ecff;
  color: #1a1a1a;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.category-btn:hover {
  background: #6c8cff;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ACTIVE CATEGORY HIGHLIGHT */
.category-btn.active {
  background: #4169e1; /* deep blue */
  color: white;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* PODCAST GRID */

/* PODCAST GRID CONTAINER */
.podcast-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* center cards even if few */
  gap: 25px;

  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

/* PODCAST CARD FIXED SIZE */
.podcast-card {
  flex: 0 0 240px; /* fixed width */
  height: 320px; /* fixed height */
  box-sizing: border-box;

  background: var(--card-bg);
  border-radius: 14px;
  padding: 15px;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;

  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.podcast-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.podcast-card h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.podcast-card p {
  font-size: 14px;
  opacity: 0.8;
}

/* hover effect */
.podcast-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

<section class="category-filter">
    <div id="categoryButtons"></div>
    <p id="categoryDesc" class="category-description"></p>
</section>

<!-- PODCAST GRID -->
<section class="podcast-container">
    <div id="podcastList" class="podcast-grid"></div>
</section>

<!-- PAGINATION -->
<div id="pagination" class="pagination"></div>

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;  /* centers the buttons */
  gap: 10px;                /* space between buttons */
  margin: 25px 0;           /* vertical spacing */
}

.pagination button {
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  background: #e6ecff;
  cursor: pointer;
  transition: 0.3s ease;
  font-weight: 500;
}

.pagination button.active {
  background: #4169e1;
  color: white;
}

.pagination button:hover {
  background: #6c8cff;
  color: white;
}

/* TEAM GRID */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
}

.team-member {
  flex: 0 0 200px;
  text-align: center;
}

.team-member img {
  width: 100%;
  border-radius: 50%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 10px;
}

.team-member h3 {
  margin-bottom: 4px;
  font-size: 16px;
}

.team-member p {
  font-size: 14px;
  opacity: 0.8;
}

/* CONTACT FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 20px auto;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.contact-form button {
  padding: 10px;
  border-radius: 6px;
  border: none;
  background-color: #4169e1;
  color: #fff;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
}

.contact-form button:hover {
  background-color: #6c8cff;
}

/* EDITORIAL CONTACTS */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.contact-card {
  flex: 0 0 250px;
  padding: 15px;
  border-radius: 8px;
  background-color: #f5f5f5;
  text-align: center;
}

.contact-card h3 {
  margin-bottom: 5px;
}

.contact-card p {
  font-size: 14px;
  color: #555;
}

/* SOCIAL LINKS */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.social-links a {
  text-decoration: none;
  font-size: 16px;
  color: #4169e1;
  transition: 0.3s;
}

.social-links a:hover {
  color: #6c8cff;
  text-decoration: underline;
}

.podcast-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease;
}

.podcast-link:hover {
  transform: translateY(-3px);
}