/* Modern Pages Stylesheet - Optimized Version */
/* Consolidated styles with reduced duplication */

/* ===== UTILITY CLASSES ===== */
.modern-bg {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.9) 0%,
    rgba(118, 75, 162, 0.9) 100%
  );
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Removed heavy pseudo-element overlay */

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #4e4ba2 100%);
}

.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #4e4ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.link-hover {
  transition: transform 0.2s ease;
  will-change: transform;
}

.link-hover:hover {
  transform: translateX(3px);
}

/* Home page styles */
/* New Test Homepage Styles */

.home-hero-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 3rem 2rem;
  margin: 2rem auto;
  max-width: 1200px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #7f8c8d;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 2rem auto;
}

/* Limit to maximum 3 columns */
@media (min-width: 1200px) {
  .quick-actions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quick-action-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  will-change: transform;
}

.quick-action-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.quick-action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.quick-action-card.urgent {
  border-left: 4px solid #e74c3c;
}

/* .quick-action-card.important {
  border-left: 4px solid #f39c12;
} */

/* .quick-action-card.info {
  border-left: 4px solid #3498db;
} */

.quick-action-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.quick-action-icon {
  font-size: 2.5rem;
  color: #667eea;
  flex-shrink: 0;
}

.quick-action-icon i {
  font-size: inherit;
  color: inherit;
}

.quick-action-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  flex: 1;
  line-height: 1.2;
}

/* Responsive adjustments for quick action header */
@media screen and (max-width: 480px) {
  .quick-action-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .quick-action-icon {
    font-size: 2rem;
  }

  .quick-action-title {
    font-size: 1.1rem;
  }
}

.quick-action-description {
  color: #7f8c8d;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex: 1;
}

.quick-action-btn {
  background: linear-gradient(135deg, #667eea 0%, #4e4ba2 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  margin-top: auto;
  align-self: flex-start;
}

.quick-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
  color: white;
  text-decoration: none;
}

.news-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #ecf0f1;
}

.news-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

.news-subtitle {
  color: #7f8c8d;
  font-size: 1rem;
  margin: 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #ecf0f1;
  will-change: transform;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-date {
  /* background: linear-gradient(135deg, #667eea 0%, #4e4ba2 100%); */
  background-color: #695083b3;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.news-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.news-card-description {
  color: #7f8c8d;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.news-card-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.news-card-link:hover {
  color: #5a6fd8;
  text-decoration: none;
}

.news-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.featured-section {
  background: linear-gradient(135deg, #667eea 0%, #4e4ba2 100%);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  color: white;
  text-align: center;
}

.featured-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.featured-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.featured-btn {
  background: white;
  color: #667eea;
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.featured-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
  color: #667eea;
  text-decoration: none;
}

.promo-banner {
  background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.2) 100%
    ),
    linear-gradient(87deg, #667eea 15.29%, #764ba2 86.5%);
  color: white;
  text-align: center;
  padding: 1rem;
  margin: 1rem 0;
  /* border-radius: 10px; */
  box-shadow: 0 5px 15px rgba(106, 106, 106, 0.2);
}

.promo-banner a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.promo-banner a:hover {
  color: white;
  text-decoration: none;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .quick-actions-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .news-header-buttons {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
  }
}

/* Modal improvements */
.modal-content {
  border-radius: 15px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  background: linear-gradient(135deg, #667eea 0%, #4e4ba2 100%);
  color: white;
  border-radius: 15px 15px 0 0;
  border-bottom: none;
}

.modal-title {
  font-weight: 600;
}

.modal-body {
  padding: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.modal-footer {
  border-top: 1px solid #ecf0f1;
  padding: 1rem 2rem;
}

/* ===== BODY STYLES ===== */
body.modern-body,
body.contacts-modern,
body.enrollment-modern,
body.benefits-modern {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.9) 0%,
    rgba(118, 75, 162, 0.9) 100%
  );
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Removed heavy pseudo-element overlays for better performance */

/* Minimal list styling to match modern icon list appearance */
.main-content .content-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.main-content .content-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.main-content .content-list li i {
  color: #667eea;
  font-size: 20px;
  line-height: 1.4;
}
.main-content .content-list li a {
  font-weight: 600;
  text-decoration: none;
}
.main-content .content-list li a:hover {
  text-decoration: underline;
}

/* ===== HERO SECTIONS ===== */
.hero-section,
.contacts-hero-section,
.covid-hero-section,
.about-hero-section,
.benefits-hero-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3rem 2rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-heading-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
}

.hero-heading-container .hero-logo {
  height: 120px;
}

.hero-content,
.contacts-hero-content,
.covid-hero-content,
.hero-content,
.benefits-hero-content {
  flex: 1;
  text-align: left;
}

.hero-logo,
.contacts-hero-logo,
.covid-hero-logo,
.about-hero-logo,
.benefits-hero-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-title,
.contacts-hero-title,
.covid-hero-title,
.about-hero-title,
.benefits-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle,
.contacts-hero-subtitle,
.covid-hero-subtitle,
.about-hero-subtitle,
.benefits-hero-subtitle {
  font-size: 1.3rem;
  color: #7f8c8d;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-logo img {
  max-height: 120px;
  width: auto;
  margin: 1rem 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.contacts-logo,
.logo,
.benefits-logo {
  max-height: 120px;
  width: auto;
  margin: 1rem 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Special hero icon for COVID page */
.covid-hero-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: #667eea;
  background: linear-gradient(135deg, #667eea 0%, #4e4ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== CONTENT SECTIONS ===== */
.content-section,
.covid-content-section,
.main-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2.5rem;
  margin: 2rem 0;
}

.content-section h3,
.covid-content-section h3,
.main-content h3 {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  border-bottom: 3px solid #667eea;
  padding-bottom: 0.5rem;
}

.content-section .header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #667eea;
  margin-bottom: 2rem;
}

.content-section h2 {
  font-size: 2.7rem;
  /* border-bottom: 3px solid #667eea; */
  /* padding-bottom: 0.5rem; */
}

.content-section i.bx {
  color: #667eea;
  font-size: 20px;
  line-height: 1.4;
}

.content-section p,
.covid-content-section p,
.main-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #495057;
  margin-bottom: 1.5rem;
}

.content-section .lead {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  background: linear-gradient(135deg, #667eea 0%, #4e4ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-content .lead {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  background: linear-gradient(135deg, #667eea 0%, #4e4ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-section img {
  max-width: 100%;
}

/* ===== HIGHLIGHT BOXES ===== */
.highlight-box,
.wellness-highlight-box {
  background: linear-gradient(135deg, #667eea 0%, #4e4ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 15px;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.highlight-box h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.highlight-box p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #fff;
}

.providers-highlight-box {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 2rem;
  border-radius: 15px;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.providers-highlight-box p {
  color: #fff;
}

/* ===== GRID LAYOUTS ===== */
.responsive-grid,
.covid-carriers-grid,
.covid-resources-grid,
.stats-grid,
.benefits-stats-grid,
.carrier-cards,
.plans-grid,
.resources-grid,
.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.flex-layout-for-cards {
  display: flex;
  gap: 0.5rem;
}

/* ===== CARD STYLES ===== */
.base-card,
.covid-info-card,
.covid-carrier-card,
.resource-card,
.stat-card,
.benefits-stat-card,
.carrier-card,
.plan-card,
.tutorial-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  will-change: transform;
}

.base-card:hover,
.covid-info-card:hover,
.covid-carrier-card:hover,
.resource-card:hover,
.stat-card:hover,
.benefits-stat-card:hover,
.carrier-card:hover,
.plan-card:hover,
.tutorial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #475bb6;
}

/* Card variations */
.covid-info-card,
.stat-card,
.benefits-stat-card,
.tutorial-card {
  padding: 2rem;
  text-align: center;
}

.covid-info-links a:link,
.covid-info-links a:visited {
  color: #0d6efd;
  padding-top: 0;
}

.covid-info-link {
  text-align: left;
}
.covid-info-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.covid-info-links li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.covid-info-links li i {
  color: #667eea;
}
.covid-carrier-card,
.carrier-card,
.plan-card {
  padding: 1.5rem;
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.resource-card:hover {
  text-decoration: none;
  color: inherit;
  border: 1px solid #667eea;
}

.resource-card .bx {
  color: #667eea;
  font-size: 2rem;
}
/* ===== LINK STYLES ===== */
.covid-alert-links {
  display: flex;
  gap: 0.5rem;
}
.alert-link,
.covid-alert-link,
.covid-info-link {
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.alert-link:hover,
.covid-alert-link:hover,
.covid-info-link:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  text-decoration: none;
  transform: translateX(5px);
}

.info-link {
  color: #667eea;
  text-decoration: none;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: start;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.info-link:hover {
  background: #e9ecef;
  color: #667eea;
  text-decoration: none;
  transform: translateX(5px);
}

.covid-carrier-link {
  color: #667eea;
  text-decoration: none;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.accordion-item li {
  list-style: none;
}

.accordion-item li .bx {
  color: #667eea;
  font-size: 1.2rem;
}
/* ===== SPECIAL COMPONENTS ===== */
/* COVID Hotline */
.resource-card.covid-hotline {
  background: linear-gradient(135deg, #667eea 0%, #4e4ba2 100%);
  color: white;
}

.resource-card.covid-hotline i,
.resource-card.covid-hotline h4 {
  color: white;
}

.covid-hotline-number {
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  display: block;
  margin-top: 0.5rem;
}

.covid-hotline-number:hover {
  color: white;
  text-decoration: none;
}

/* Historical Links */
.covid-historical-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.covid-historical-link {
  color: #0d6efd;
  text-decoration: none;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-left: 4px solid #1649957a;
}

.covid-historical-link:hover {
  background: #e9ecef;
  color: #495057;
  text-decoration: none;
  transform: translateX(5px);
  border-left-color: #667eea;
}

/* ===== BREADCRUMB ===== */
.modern-breadcrumb {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 2rem;
  /* margin: 1rem 0; */
  margin-top: 0;
}

.modern-breadcrumb .breadcrumb {
  margin-bottom: 0;
}

.modern-breadcrumb .breadcrumb-item a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.modern-breadcrumb .breadcrumb-item a:hover {
  text-decoration: underline;
}

.modern-breadcrumb .breadcrumb-item.active {
  color: #7f8c8d;
}

/* ===== BENEFITS PAGE SPECIFIC ===== */
.benefits-layout {
  display: flex;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.benefits-sidebar {
  width: 300px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  max-height: calc(100vh - 4rem);
  position: sticky;
  top: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-top: 1.5rem;
}

.download-sidebar {
  margin-top: 1.5rem;
}

.sidebar-header {
  flex-shrink: 0;
}

.sidebar-header h3 {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  border-bottom: 2px solid #667eea;
  padding-bottom: 0.5rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  z-index: 10000;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.5rem;
}

/* Custom scrollbar for sidebar */
.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #4e4ba2 100%);
  border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Add subtle shadow to indicate scrollable content */
.benefits-sidebar:not(.sidebar-open) .sidebar-nav {
  position: relative;
}

.benefits-sidebar:not(.sidebar-open) .sidebar-nav::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.8));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.benefits-sidebar:not(.sidebar-open) .sidebar-nav.scrollable::after {
  opacity: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  color: #495057;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-weight: 500;
  min-height: 48px;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

/* Navbar mobile stacking for dropdown triggers and menus */
@media (max-width: 992px) {
  navbar-component .lower-navbar .navbar-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
}

.nav-item:hover,
.nav-item.active {
  background: linear-gradient(135deg, #5376e0 0%, #32459c 100%);
  color: white;
  text-decoration: none;
  transform: translateX(5px);
}

.nav-item:active {
  background: linear-gradient(135deg, #5376e0 0%, #32459c 100%);
  transform: translateX(3px) scale(0.98);
}

.nav-item.active {
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.nav-item i {
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.benefits-main {
  flex: 1;
  min-width: 0;
}

/* ===== CARRIER & PLAN STYLES ===== */
.carrier-category h4 {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  border-bottom: 2px solid #667eea;
  padding-bottom: 0.5rem;
}

.carrier-header,
.plan-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ecf0f1;
}

.carrier-header img,
.plan-header img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.carrier-header h5,
.plan-header h4 {
  margin: 0;
  font-weight: 600;
  color: #2c3e50;
  font-size: 1.1rem;
}

.plan-header h4 {
  font-size: 1.2rem;
}

/* ===== OPEN ENROLLMENT: CARRIER PRESENTATIONS LOGOS ===== */
#carrierPresentations .accordion-button img {
  max-height: 40px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-right: 8px;
}

.carrier-details p,
.plan-details p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #495057;
}

.plan-details p {
  color: #7f8c8d;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.plan-details ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.plan-details li {
  color: #495057;
  margin-bottom: 0.5rem;
}

.carrier-phone,
.carrier-website,
.plan-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #667eea;
  text-decoration: none;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.carrier-phone:hover,
.carrier-website:hover,
.plan-link:hover {
  color: #764ba2;
  text-decoration: none;
  transform: translateX(5px);
}

.plan-link {
  font-weight: 600;
  padding: 0;
}

/* FAQ ACCORDION IN OPEN ENROLLMENT */
.accordion-button {
  line-height: 1.25;
  gap: 0.5rem;
}

/* ===== PROGRAM GUIDE & COMPARISON CARDS ===== */
.program-guide-card,
.comparison-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.program-guide-content,
.comparison-content {
  flex: 1;
}

.program-guide-content h4,
.comparison-content h4 {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.program-guide-content p,
.comparison-content p {
  color: #7f8c8d;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.program-guide-image,
.comparison-image {
  flex-shrink: 0;
}

.program-guide-image img,
.comparison-image img {
  max-width: 200px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== SIDEBAR TOGGLE & MOBILE ===== */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 100px;
  left: 20px;
  z-index: 10001;
  background: linear-gradient(135deg, #667eea 0%, #4e4ba2 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide toggle button when sidebar is open */
.benefits-sidebar.sidebar-open ~ .sidebar-toggle,
.benefits-sidebar.sidebar-open + * .sidebar-toggle {
  display: none !important;
}

/* Force lighter icon color inside sidebar toggle */
.sidebar-toggle i.bx {
  color: #eef3ff !important;
}

.sidebar-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.sidebar-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.benefits-sidebar {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.sidebar-header .close-sidebar {
  display: none;
  background: none;
  border: none;
  color: #667eea;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.sidebar-header .close-sidebar:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: scale(1.1);
}

.sidebar-header .close-sidebar:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* ===== MODAL STYLES ===== */
.modal-xl {
  max-width: 90%;
}

.modal-content {
  border-radius: 15px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  background: linear-gradient(135deg, #667eea 0%, #4e4ba2 100%);
  color: white;
  border-radius: 15px 15px 0 0;
  border-bottom: none;
  padding: 1.5rem;
}

/* Make close button white on blue gradient modal headers */
.modal-header .btn-close {
  filter: invert(1) brightness(1);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

.modal-title {
  font-weight: 700;
  font-size: 1.5rem;
}

.modal-body {
  padding: 2rem;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-body .heading-and-element-flexbox,
.modal-body .go-back {
  display: none;
}

.modal-body .content-list {
  margin-top: 0;
  list-style-type: none;
}

.modal-body .content-list h4 {
  color: #4a60c1;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #667eea;
  padding-bottom: 0.5rem;
}

.modal-body .content-list li {
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.modal-body .content-list li:hover {
  background-color: rgba(102, 126, 234, 0.1);
}

.modal-body .content-list a {
  color: #3f55ba;
  text-decoration: none;
  font-weight: 600;
}

.modal-body .content-list a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.modal-body .content-list i {
  color: #667eea;
  margin-right: 0.5rem;
}

/* Custom scrollbar for modal */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #4e4ba2 100%);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* ===== TUTORIAL SPECIFIC ===== */
.tutorial-icon {
  font-size: 3rem;
  color: #667eea;
  margin-bottom: 1rem;
}

.tutorial-card h4 {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.tutorial-card p {
  color: #7f8c8d;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.tutorial-links {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tutorial-links .btn {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .covid-alert-links {
    flex-direction: column;
  }

  .benefits-sidebar {
    max-height: calc(100vh - 2rem);
  }
}
@media (max-width: 1000px) {
  .benefits-layout {
    flex-direction: column;
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .benefits-sidebar {
    width: 100%;
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
    overflow: hidden;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    max-width: 320px;
    display: flex;
    flex-direction: column;
  }

  .benefits-sidebar.sidebar-open {
    transform: translateX(0);
    left: 0;
  }

  .sidebar-toggle {
    display: flex;
    top: 146px;
    left: 15px;
  }

  .sidebar-overlay.sidebar-open {
    display: block;
  }

  .benefits-main {
    margin-left: 0;
    width: 100%;
    padding-top: 0;
  }

  .sidebar-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10000;
  }

  .sidebar-header .close-sidebar {
    display: flex;
  }

  .hero-section {
    padding: 2rem 1rem;
    margin: 1rem 0;
  }

  .content-section {
    padding: 1.5rem;
    margin: 1rem 0;
  }
}

@media (max-width: 992px) {
  .list-unstyled a:link,
  .list-unstyled a:visited {
    font-size: 1.2rem;
    line-height: 1.5;
    align-items: flex-start;
  }

  .list-unstyled li {
    line-height: 1.75;
  }

  .list-unstyled li .bx {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .content-section {
    padding: 1.5rem;
  }

  .responsive-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding: 2rem 1rem;
    text-align: center;
    flex-direction: column-reverse;
    gap: 1rem;
  }

  .hero-content {
    text-align: center;
  }

  .highlight-box {
    padding: 1.5rem;
  }

  .carrier-header {
    padding: 1rem;
  }

  .sidebar-toggle {
    top: 70px;
    left: 10px;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

@media (max-width: 680px) {
  .content-section ul li {
    margin-bottom: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .content-section h3 {
    font-size: 1.5rem;
  }

  .content-section p {
    font-size: 1rem;
  }

  .covid-hero-icon {
    font-size: 3rem;
  }

  .benefits-layout {
    flex-direction: column;
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .benefits-sidebar {
    width: 100%;
    position: fixed;
    max-width: 280px;
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
  }

  .benefits-main {
    width: 100%;
    padding-top: 0;
  }

  .sidebar-toggle {
    top: 60px;
    left: 8px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .program-guide-card,
  .comparison-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .program-guide-image img,
  .comparison-image img {
    max-width: 150px;
  }

  .carrier-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .carrier-header img {
    width: 60px;
    height: 60px;
  }
}

/* ===== iOS SAFARI FIXES ===== */
@supports (-webkit-touch-callout: none) {
  .benefits-sidebar {
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
    height: 100vh;
    height: -webkit-fill-available;
  }

  body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .sidebar-toggle {
    position: fixed !important;
    z-index: 10001 !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    min-height: 44px;
    min-width: 44px;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

  .benefits-sidebar {
    -webkit-transform: translateX(-100%) translateZ(0);
    transform: translateX(-100%) translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .benefits-sidebar.sidebar-open {
    -webkit-transform: translateX(0) translateZ(0);
    transform: translateX(0) translateZ(0);
  }

  .sidebar-overlay {
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .nav-item {
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

  @media (max-width: 480px) {
    .benefits-sidebar {
      max-width: 85vw;
      width: 85vw;
    }

    .sidebar-toggle {
      top: calc(env(safe-area-inset-top) + 10px);
      left: calc(env(safe-area-inset-left) + 10px);
    }

    .benefits-main {
      padding-top: calc(env(safe-area-inset-top) + 60px);
    }
  }

  @media (max-width: 375px) {
    .benefits-sidebar {
      max-width: 90vw;
      width: 90vw;
    }

    .sidebar-toggle {
      top: calc(env(safe-area-inset-top) + 5px);
      left: calc(env(safe-area-inset-left) + 5px);
      width: 40px;
      height: 40px;
      font-size: 1rem;
    }
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-contrast: high) {
  .benefits-sidebar {
    border: 2px solid #000;
    background: #fff;
  }

  .nav-item {
    border: 1px solid #000;
  }

  .nav-item:hover,
  .nav-item.active {
    background: #000;
    color: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .benefits-sidebar,
  .sidebar-toggle,
  .nav-item,
  .plan-card,
  .carrier-card,
  .resource-card {
    transition: none;
  }

  .benefits-sidebar {
    transition: transform 0.1s ease;
  }

  .nav-item:hover {
    transform: none;
  }

  .plan-card:hover,
  .carrier-card:hover,
  .resource-card:hover {
    transform: none;
  }
}

/* ===== MOBILE OVERFLOW FIXES ===== */
@media (max-width: 1000px) {
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .benefits-layout,
  .benefits-main,
  .hero-section,
  .content-section {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .responsive-grid,
  .carrier-cards {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .base-card,
  .program-guide-card,
  .comparison-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex-direction: column;
  }

  .program-guide-content,
  .comparison-content {
    width: 100%;
    max-width: 100%;
  }

  .program-guide-image,
  .comparison-image {
    width: 100%;
    max-width: 100%;
  }

  .program-guide-image img,
  .comparison-image img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 992px) {
  .hero-heading-container {
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }

  .hero-heading-container .hero-logo {
    height: 100px;
  }

  .hero-title,
  .hero-subtitle {
    text-align: center;
  }
}

@media (max-width: 768px) {
  * {
    max-width: 100vw;
  }

  .benefits-layout {
    padding: 0 0.5rem;
    margin: 0;
    width: 100%;
  }

  .hero-section {
    padding: 1.5rem 1rem;
    margin: 1rem 0;
    width: 100%;
  }

  .content-section {
    padding: 1.5rem 1rem;
    margin: 1rem 0;
    width: 100%;
  }

  .carrier-details p,
  .plan-details p,
  .resource-card p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .carrier-phone,
  .carrier-website {
    word-break: break-all;
    overflow-wrap: break-word;
  }

  .benefits-sidebar {
    width: 85vw;
    max-width: 85vw;
    overflow-x: hidden;
  }

  .sidebar-nav {
    width: 100%;
    overflow-x: hidden;
  }

  .nav-item {
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* ===== WCAG COMPLIANCE ===== */
@media screen and (max-width: 480px), screen and (max-height: 600px) {
  .benefits-sidebar {
    max-width: 95vw;
    width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
  }

  .sidebar-toggle {
    min-width: 44px;
    min-height: 44px;
    font-size: 1.2rem;
  }

  .nav-item {
    min-height: 44px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .hero-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
  }

  .content-section {
    padding: clamp(1rem, 3vw, 2.5rem);
  }

  .content-section h3 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
  }

  .content-section p {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  }
}

/* Risk page specific image sizing */
.section-logo {
  max-height: 80px;
  width: auto;
  object-fit: contain;
  margin-left: 1rem;
}

.carrier-logo {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  margin-left: 1rem;
}

/* Responsive image sizing for risk page */
@media (max-width: 768px) {
  .section-logo {
    max-height: 60px;
    margin-left: 0.5rem;
  }

  .carrier-logo {
    max-height: 50px;
    margin-left: 0.5rem;
  }
}

@media (max-width: 480px) {
  .section-logo {
    max-height: 50px;
    margin-left: 0.25rem;
  }

  .carrier-logo {
    max-height: 40px;
    margin-left: 0.25rem;
  }
}

/* Link styling for risk page - consistent with benefits page */
.content-section a {
  /* color: #667eea; */
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.content-section a:hover {
  color: #586ed0;
  text-decoration: underline;
}

.content-section a[target="_blank"]:after {
  content: " \f35d";
  font-family: "boxicons";
  font-size: 0.8em;
  margin-left: 0.25rem;
  opacity: 0.7;
}

/* ===== REUSABLE LINK CARD STYLES ===== */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.link-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  display: block;
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: inherit;
}

.link-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #4e4ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.link-icon i {
  font-size: 1.5rem;
  color: white;
}

.link-card h4 {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.link-card p {
  color: #7f8c8d;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}
