/* ===== POLARIS MEDICARE - INSIGHTS CSS ===== */

html {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: #fafafa;
  overflow-x: hidden;
  max-width: 100vw;
}

h1, h2, h3, h4, h5, h6, .serif {
  font-family: 'Playfair Display', serif;
}

/* --- HERO --- */
.insights-hero {
  min-height: 50vh;
  position: relative;
  background: #002f43;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle at 2px 2px, white 2px, transparent 0);
  background-size: 40px 40px;
}

.hero-pre {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--secondary);
  margin-bottom: 20px;
  display: block;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: white;
  margin-bottom: 20px;
}

.hero-title span {
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

/* --- FILTER CONTROLS --- */
.filter-section {
  padding: 40px 0;
  background: white;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 96px;
  z-index: 90;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.filter-container {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  background: #f1f5f9;
  border: 1px solid transparent;
  color: #64748b;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
  background: #e2e8f0;
  color: var(--dark-text);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 88, 124, 0.2);
}

/* --- FEATURED ARTICLE --- */
.featured-section {
  padding: 80px 0 40px;
  background: #fafafa;
}

.featured-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.04);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 480px;
  transition: all 0.4s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 80px rgba(0,0,0,0.08);
}

.featured-img {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 350px;
}

.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-card:hover .featured-img img {
  transform: scale(1.03);
}

.featured-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-meta {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--secondary);
  margin-bottom: 16px;
  display: block;
}

.featured-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark-text);
  line-height: 1.2;
  margin-bottom: 20px;
}

.featured-card:hover .featured-title {
  color: var(--primary);
}

.featured-excerpt {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 32px;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dark-text);
  text-decoration: none;
  transition: all 0.3s;
}

.featured-card:hover .read-more-btn {
  color: var(--secondary);
  gap: 12px;
}

/* --- JOURNAL GRID --- */
.journal-section {
  padding: 40px 0 120px;
  background: #fafafa;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
}

.journal-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.journal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.08);
}

.journal-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

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

.journal-card:hover .journal-img img {
  transform: scale(1.05);
}

.journal-info {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.journal-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-text);
  line-height: 1.3;
  margin-bottom: 12px;
  transition: color 0.3s;
}

.journal-card:hover .journal-title {
  color: var(--primary);
}

.journal-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 24px;
  font-weight: 300;
}

.journal-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark-text);
  margin-top: auto;
  transition: all 0.3s;
}

.journal-card:hover .journal-link {
  color: var(--secondary);
  gap: 12px;
}

/* --- NEWSLETTER BOX --- */
.newsletter-card {
  background: radial-gradient(circle at top right, #00587c 0%, #002f43 100%);
  border-radius: 24px;
  padding: 60px;
  color: white;
  margin-top: 60px;
  box-shadow: 0 30px 60px rgba(0, 47, 67, 0.2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.newsletter-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.newsletter-desc {
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 12px;
}

.newsletter-input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 16px 24px;
  border-radius: 100px;
  color: white;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.newsletter-input:focus {
  background: rgba(255,255,255,0.15);
  border-color: var(--secondary);
  outline: none;
}

.newsletter-input::placeholder {
  color: rgba(255,255,255,0.4);
}

.newsletter-btn {
  background: var(--gold);
  color: white;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(231, 163, 5, 0.3);
  filter: brightness(1.05);
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 1024px) {
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-img {
    min-height: 300px;
  }
  .featured-content {
    padding: 32px;
  }
  .newsletter-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .insights-hero {
    min-height: auto;
    padding-top: 140px;
    padding-bottom: 80px;
  }
  .filter-section {
    top: 70px;
    padding: 16px 0;
  }
  .filter-container {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 20px 8px;
    margin-left: -20px;
    margin-right: -20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .filter-container::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    flex-shrink: 0;
    padding: 8px 18px;
    font-size: 0.8rem;
  }
  .featured-title {
    font-size: 1.8rem;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-btn {
    width: 100%;
  }
}
