:root {
  --dark-blue: #132c33;
  --text-gray: #6c757d;
  --light-bg: #E6EFF5;
  --white: #fff;
  --border-radius: 15px;
  --primary-color: #1a365d;
  --search-bg: #E6EFF5; /* New variable for search section background */
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

body {
  background: #E6EFF5 !important; 
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #2C3539;
  line-height: 1.6;
  margin: 0;
  padding-top: 70px;
}

/* Hero Section */
.hero-section {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(43, 76, 126, 0.9), rgba(43, 76, 126, 0.7)), url('https://www.mnthen.com/images/bg/podcast_bg.jpg') center/cover no-repeat;
  color: white;
  padding: 2rem;
  margin-top: 70px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* Podcast Section */
.podcast-section {
  padding: 5rem 0;
  background-color: var(--light-bg);
}

.podcast-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Header */
.section-title {
  font-size: 2.5rem;
  color: var(--dark-blue);
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-align: center;
}

.section-subtitle {
  color: var(--text-gray);
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.section-subtitle::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 1.25rem auto 0;
}

/* Search Section */
.search-section {
  background-color: var(--search-bg); /* Use the new variable */
  padding: 2rem 0;
}

.search-container {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-inline: auto;
}

.search-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-right: none;
  border-radius: 30px 0 0 30px;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.search-button {
  padding: 0.875rem 1.875rem;
  font-size: 1rem;
  background-color: var(--dark-blue);
  color: var(--white);
  border: none;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background-color: var(--primary-color);
}

/* Podcast Grid */
.podcast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Podcast Card */
.podcast-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.podcast-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.podcast-info {
  padding: 1.5rem;
}

.podcast-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 1rem;
}

.podcast-summary {
  font-size: 0.95rem;
  color: var(--text-gray);
  margin-bottom: 1.25rem;
}

.podcast-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.podcast-duration,
.podcast-date {
  font-size: 0.9rem;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.podcast-duration i,
.podcast-date i {
  color: var(--primary-color);
}

.podcast-player {
  width: 100%;
  margin-bottom: 1.25rem;
}

.podcast-player audio {
  width: 100%;
  border-radius: 30px;
}

.podcast-info-btn {
  background-color: var(--dark-blue);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
  width: 100%;
}

.podcast-info-btn:hover {
  background-color: var(--primary-color);
}

/* Modal Styles */
.podcast-modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

.podcast-modal.show {
  display: block;
}

.podcast-modal-content {
  background-color: var(--white);
  margin: 10vh auto;
  padding: 2.5rem;
  width: 90%;
  max-width: 700px;
  border-radius: var(--border-radius);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.close-modal {
  float: right;
  font-size: 1.75rem;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.close-modal:hover {
  color: #666;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .podcast-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .podcast-grid {
    grid-template-columns: 1fr;
  }

  .podcast-modal-content {
    padding: 1.5rem;
    margin: 5vh auto;
  }
}
