/* Modern Pages Stylesheet - Optimized Version */
/* Consolidated styles with reduced duplication */
/* formerly called 'modern-pages.css' */

/* ===== UTILITY CLASSES ===== */
.modern-bg {
  background-image:
    url("../images/scott-elkins-3O4GzG_Pjb4-unsplash-1.webp"),
    linear-gradient(
      135deg,
      rgba(102, 126, 234, 0.3) 0%,
      rgba(118, 75, 162, 0.3) 100%
    );
  background-position: 75% 50%;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.modern-bg::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-image: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.3) 0%,
    rgba(118, 75, 162, 0.3) 100%
  );
  z-index: -1;
}

.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;
}

/* Swiper carousel styles for news section */
.news-swiper {
  padding: 2rem 0 4rem 0;
  position: relative;
}

.news-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.news-swiper .news-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-swiper .swiper-button-next,
.news-swiper .swiper-button-prev {
  color: #667eea;
  background: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.news-swiper .swiper-button-next:hover,
.news-swiper .swiper-button-prev:hover {
  background: #667eea;
  color: white;
  transform: scale(1.1);
}

.news-swiper .swiper-button-next::after,
.news-swiper .swiper-button-prev::after {
  font-size: 20px;
  font-weight: 700;
}

.news-swiper .swiper-pagination {
  bottom: 0 !important;
}

.news-swiper .swiper-pagination-bullet {
  background: #667eea;
  opacity: 0.3;
  width: 12px;
  height: 12px;
  transition: all 0.3s ease;
}

.news-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: #667eea;
  transform: scale(1.2);
}

.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: 1.75rem;
  }

  .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;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-weight: 600;
}

.modal-header-logo {
  max-height: 50px;
  max-width: 150px;
  height: auto;
  width: auto;
  object-fit: contain;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.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 {
  background-image:
    url("../images/scott-elkins-3O4GzG_Pjb4-unsplash-1.webp"),
    linear-gradient(
      135deg,
      rgba(102, 126, 234, 0.3) 0%,
      rgba(118, 75, 162, 0.3) 100%
    );
  background-position: 75% 50%;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

body.modern-body::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-image: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.3) 0%,
    rgba(118, 75, 162, 0.3) 100%
  );
  z-index: -1;
}

/* Smaller background image on mobile for faster load */
@media (max-width: 768px) {
  body.modern-body,
  .modern-bg {
    background-image:
      url("../images/scott-elkins-3O4GzG_Pjb4-unsplash-1-mobile.webp"),
      linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.3) 0%,
        rgba(118, 75, 162, 0.3) 100%
      );
  }
}

/* Minimal list styling to match modern icon list appearance */
/* Remove bullets from all content lists */
.content-list,
.grid-layout-docs {
  list-style: none;
  padding-left: 0;
}

.main-content .content-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.main-content .content-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.main-content .content-list li i {
  color: #667eea;
  font-size: 20px;
  line-height: 1.5;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.main-content .content-list li a,
.main-content .content-list li span {
  flex: 1;
  min-width: 0;
}
.main-content .content-list li a {
  font-weight: 600;
  text-decoration: none;
}
.main-content .content-list li a:hover {
  text-decoration: underline;
}

/* Content list with descriptions - card-style layout */
.content-list.with-descriptions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content-list.with-descriptions li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #667eea;
  transition: all 0.2s ease;
}

.content-list.with-descriptions li:hover {
  background: #f0f2ff;
  transform: translateX(4px);
}

.content-list.with-descriptions li span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.content-list.with-descriptions li span i {
  color: #667eea;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.content-list.with-descriptions li span a {
  font-size: 1.1rem;
  font-weight: 600;
  color: #204f9a;
  text-decoration: none;
  line-height: 1.3;
}

.content-list.with-descriptions li span a:hover {
  text-decoration: underline;
}

.content-list.with-descriptions li p {
  margin: 0;
  color: #5a6a7a;
  font-size: 0.95rem;
  line-height: 1.5;
  padding-left: 1.6rem;
}

/* ===== 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,
.contacts-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;
}

/* Hide empty content sections */
.content-section:empty {
  display: none;
}

/* Hide content sections that only contain whitespace */
.content-section:not(:has(*)) {
  display: none;
}

/* Ensure all content lists within sections have no bullets */
.content-section .content-list,
.covid-content-section .content-list,
.main-content .content-list {
  list-style: none;
  padding-left: 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: #e6eafd; */
  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%;
}

/* Risk logos - evenly justify */
.risk-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
  margin: 2rem 0;
}

.risk-logos a,
.risk-logo-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
}

.risk-logos a {
  cursor: pointer;
}

.risk-logos a:hover {
  transform: translateY(-2px);
  background-color: rgba(102, 126, 234, 0.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.risk-logos img {
  height: 45px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.risk-logos a:hover img {
  opacity: 0.85;
}

/* Property & Liability claims tables: side-by-side on desktop */
.claims-tables-wrapper {
  gap: 1.5rem;
  justify-content: center;
  align-items: flex-start;
}
.claims-table {
  width: 45%;
  margin: 0 auto;
}

/* Basic phases list styling */
.basic-phases {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.basic-phases li {
  font-size: 1.1rem;
  font-weight: 500;
  color: #0c3b69;
}

.basic-phase-number {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0c3b69;
  background-color: #e6eafd;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  margin-right: 0.5rem;
}

/* Video container styling for Helpful Resources */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  margin-bottom: 2rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== 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,
.all-carriers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 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,
.carrier-grid-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,
.carrier-grid-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;
}

/* Carrier Grid Card Styles */
.carrier-grid-card {
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.carrier-grid-card:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

.carrier-grid-logo {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}

.carrier-grid-logo img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

.carrier-grid-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0.5rem 0 0.25rem 0;
}

.carrier-grid-type {
  font-size: 0.9rem;
  color: #667eea;
  font-weight: 500;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== CARRIERS SEARCH & FILTER SECTION ===== */
.carriers-search-filter-section {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-container {
  margin-bottom: 2rem;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #667eea;
  font-size: 1.25rem;
  pointer-events: none;
}

.carrier-search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.carrier-search-input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-section {
  margin-top: 1.5rem;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.filter-label i {
  color: #667eea;
  font-size: 1.2rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-btn {
  padding: 0.625rem 1.25rem;
  border: 2px solid #e9ecef;
  background: white;
  color: #495057;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: #667eea;
  color: #667eea;
  background: rgba(102, 126, 234, 0.05);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ===== CARRIER INFO CARDS ===== */
.carriers-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.carrier-info-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.carrier-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: #667eea;
}

.carrier-info-card:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

.carrier-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  margin-bottom: 1rem;
  padding: 0.5rem;
}

.carrier-card-logo img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
}

.carrier-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.carrier-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
}

.carrier-card-types {
  font-size: 0.9rem;
  color: #667eea;
  font-weight: 500;
  margin: 0 0 1.5rem 0;
  text-transform: capitalize;
}

.carrier-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.btn-view-details {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-view-details:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-visit-website {
  padding: 0.75rem 1.5rem;
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  display: block;
}

.btn-visit-website:hover {
  background: #4e4ba2;
  border-color: #4e4ba2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(78, 75, 162, 0.3);
}

.content-section.carriers-grid-section .btn-visit-website:hover {
  color: #fff;
  text-decoration: none;
}

.no-results-message {
  text-align: center;
  padding: 3rem 2rem;
  color: #7f8c8d;
}

.no-results-message i {
  font-size: 3rem;
  color: #bdc3c7;
  margin-bottom: 1rem;
}

.no-results-message p {
  font-size: 1.1rem;
  margin: 0;
}

/* ===== ENHANCED MODAL STYLES ===== */
.carrier-contact-section {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.5rem;
  border-left: 4px solid #667eea;
}

.carrier-modal-contact-info h4,
.carrier-modal-provider-search h4 {
  color: #2c3e50;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-item strong {
  color: #495057;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-item span {
  color: #2c3e50;
  font-size: 1rem;
}

.contact-link {
  color: #667eea;
  text-decoration: none;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #764ba2;
  text-decoration: underline;
}

.provider-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .carriers-grid-container {
    grid-template-columns: 1fr;
  }

  .carriers-search-filter-section {
    padding: 1.5rem;
  }

  .filter-buttons {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .contact-details-grid {
    grid-template-columns: 1fr;
  }
}

.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 ===== */
/* represents layout using left hand sidebar and right hand main content */
.sidebar-layout {
  display: flex;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.benefits-sidebar {
  width: 300px;
  max-width: 100%;
  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 1.5rem 1.5rem 0.75rem;
  max-height: calc(100vh - 4rem);
  min-height: 0;
  position: sticky;
  top: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-top: 1.5rem;
  box-sizing: border-box;
}

.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;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.5rem;
  min-height: 0;
}

/* 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.5rem;
  /* padding: 1rem 1.25rem; */
  padding: 0 1rem 0 0.75rem;
  color: #495057;
  text-decoration: none;
  border-radius: 10px;
  transition:
    background-color 0.3s ease,
    color 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;
}

.nav-item:active {
  background: linear-gradient(135deg, #5376e0 0%, #32459c 100%);
}

.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;
  font-size: 1.5rem;
  color: #204f9a;
  font-weight: 700;
}

.accordion-body h3 {
  font-size: 1.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: 1200px;
}

.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 {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  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: #222f68;
  text-decoration: none;
  font-weight: 400;
  flex: 1;
  min-width: 0;
}

.modal-body .content-list a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.modal-body .content-list i {
  color: #667eea;
  font-size: 18px;
  line-height: 1.5;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

/* ===== STANDARD LIFE MODAL: OPEN ENROLLMENT RESOURCES ===== */
#standardLifeModal .resources-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}

#standardLifeModal .resources-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: #ffffff;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

#standardLifeModal .resources-list li:hover {
  border-color: #204f9a;
  background: linear-gradient(
    135deg,
    rgba(32, 79, 154, 0.06) 0%,
    rgba(102, 126, 234, 0.06) 100%
  );
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(32, 79, 154, 0.12);
}

#standardLifeModal .resources-list i.bx {
  color: #204f9a;
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

#standardLifeModal .resources-list a {
  color: #222f68;
  text-decoration: none;
  font-weight: 600;
}

#standardLifeModal .resources-list a:hover {
  color: #204f9a;
  text-decoration: underline;
}

/* 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);
  }
}

/* Handle short viewport heights */
@media (max-height: 700px) {
  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .sidebar-layout {
    max-width: 100vw;
    padding: 0 0.5rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .benefits-sidebar {
    max-height: calc(100vh - 1rem);
    max-width: min(300px, calc(100vw - 2rem));
    width: min(300px, calc(100vw - 2rem));
    top: 0.5rem;
    margin-top: 0.5rem;
    box-sizing: border-box;
  }

  .sidebar-header h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
  }
}
@media (max-width: 1000px) {
  .sidebar-layout {
    flex-direction: column;
    gap: 1rem;
    padding: 0 0.5rem;
    /* No stacking context so fixed sidebar (z-index 9999) can sit above overlay (9998) */
    z-index: auto;
  }

  .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;
  }
}

/* ===== DOCS FORMS & QUICK ACTIONS STYLING ===== */
/* Enhanced styling for document lists and quick action links */
#docsForms .list-unstyled,
#quickActions .list-unstyled {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#docsForms .list-unstyled li,
#quickActions .list-unstyled li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  margin-bottom: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

#docsForms .list-unstyled li::before,
#quickActions .list-unstyled li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

#docsForms .list-unstyled li:hover,
#quickActions .list-unstyled li:hover {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.08) 0%,
    rgba(118, 75, 162, 0.08) 100%
  );
  border-color: rgba(102, 126, 234, 0.3);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

#docsForms .list-unstyled li:hover::before,
#quickActions .list-unstyled li:hover::before {
  transform: scaleY(1);
}

#docsForms .list-unstyled li i,
#quickActions .list-unstyled li i {
  font-size: 1.75rem;
  color: #667eea;
  flex-shrink: 0;
  transition: all 0.3s ease;
  width: 32px;
  text-align: center;
}

#docsForms .list-unstyled li:hover i,
#quickActions .list-unstyled li:hover i {
  color: #764ba2;
  transform: scale(1.1);
}

#docsForms .list-unstyled li a,
#quickActions .list-unstyled li a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  flex: 1;
  transition: color 0.3s ease;
  line-height: 1.5;
}

#docsForms .list-unstyled li:hover a,
#quickActions .list-unstyled li:hover a {
  color: #667eea;
}

/* Subsection styling for docsForms */
#docsForms h4 {
  color: #2c3e50;
  font-weight: 700;
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
}

#docsForms h4:first-of-type {
  margin-top: 1.5rem;
}

/* Quick Actions specific styling */
#quickActions {
  margin-bottom: 2rem;
}

#quickActions h3 {
  margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #docsForms .list-unstyled li,
  #quickActions .list-unstyled li {
    padding: 0.875rem 1rem;
    gap: 0.75rem;
  }

  #docsForms .list-unstyled li i,
  #quickActions .list-unstyled li i {
    font-size: 1.5rem;
    width: 28px;
  }

  #docsForms .list-unstyled li a,
  #quickActions .list-unstyled li a {
    font-size: 0.95rem;
  }

  #docsForms h4 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  #docsForms .list-unstyled li,
  #quickActions .list-unstyled li {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  #docsForms .list-unstyled li i,
  #quickActions .list-unstyled li i {
    font-size: 1.25rem;
    width: 24px;
  }

  #docsForms .list-unstyled li a,
  #quickActions .list-unstyled li a {
    font-size: 0.9rem;
  }
}

@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;
  }

  /* Override for docsForms and quickActions to maintain our styling */
  #docsForms .list-unstyled li a,
  #quickActions .list-unstyled li a {
    font-size: 1rem;
  }

  #docsForms .list-unstyled li,
  #quickActions .list-unstyled li {
    line-height: 1.5;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .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;
  }

  .sidebar-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%;
  }

  .sidebar-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;
  }

  .sidebar-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) {
  .sidebar-layout {
    max-width: 100vw;
    padding: 0 0.5rem;
    overflow-x: hidden;
  }

  .benefits-sidebar {
    max-width: min(95vw, 300px);
    width: min(95vw, 300px);
    max-height: 90vh;
    overflow: hidden;
    top: 0.5rem;
    margin-top: 0.5rem;
  }

  .sidebar-nav {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .sidebar-toggle {
    min-width: 44px;
    min-height: 44px;
    font-size: 1.2rem;
  }

  .sidebar-header h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
  }

  .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;
}

/* ===== TABLE STYLES FOR CONTENT SECTIONS ===== */
.content-section .table {
  width: 100%;
  margin-bottom: 1.5rem;
  background-color: #fff;
  border-collapse: collapse;
}

.content-section .table thead {
  background-color: #f8f9fa;
}

.content-section .table thead th {
  background-color: #667eea;
  color: #fff;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.content-section .table tbody td {
  padding: 0.75rem 1rem;
  border: 1px solid #dee2e6;
  vertical-align: top;
}

.content-section .table tbody tr:nth-of-type(even) {
  background-color: #f8f9fa;
}

.content-section .table tbody tr:hover {
  background-color: #e9ecef;
}

.content-section .table.table-bordered {
  border: 1px solid #dee2e6;
}

.content-section .table.table-bordered th,
.content-section .table.table-bordered td {
  border: 1px solid #dee2e6;
}

/* Responsive table wrapper - allows horizontal scroll on mobile */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

.table-responsive-wrapper .table {
  margin-bottom: 0;
}

/* Responsive table styling */
@media (max-width: 768px) {
  .content-section .table {
    font-size: 0.9rem;
  }

  .content-section .table thead th,
  .content-section .table tbody td {
    padding: 0.5rem;
  }

  .table-responsive-wrapper {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    width: calc(100% + 1rem);
  }
}

/* ===== WELLNESS PAGE SPECIFIC STYLES ===== */

/* Fade-in animation for wellness sections */
.content-section.wellness-section-hidden,
.benefits-hero-section.wellness-section-hidden,
.hero-section.wellness-section-hidden {
  display: none !important;
}

/* Content sections should use block display */
.content-section.wellness-section-visible {
  display: block !important;
  animation: fadeIn 0.4s ease-out;
}

/* Ensure direct children of content sections are block-level and stack vertically */
/* But exclude grid layouts, flex layouts, and other special containers */
.content-section.wellness-section-visible
  > section:not(.hero-section):not(.benefits-hero-section):not(.stats-grid),
.content-section.wellness-section-visible
  > div:not(.content-list):not(.stats-grid):not(.links-grid):not(
    .quick-actions-grid
  ) {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box;
}

/* Exception: hero sections should remain flex */
.content-section.wellness-section-visible > .hero-section,
.content-section.wellness-section-visible > .benefits-hero-section {
  display: flex !important;
}

/* Exception: stats-grid should remain grid */
.content-section.wellness-section-visible > .stats-grid {
  display: grid !important;
}

/* Exception: grid-layout lists should remain grid - this is critical! */
.content-section.wellness-section-visible .content-list.grid-layout {
  display: grid !important;
  width: 100% !important;
}

/* Hero sections should use flex display */
.benefits-hero-section.wellness-section-visible,
.hero-section.wellness-section-visible {
  display: flex !important;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Improve logo placement in section headers */
.heading-and-element-flexbox {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #667eea;
}

.heading-and-element-flexbox h2 {
  flex: 1;
  margin: 0;
  font-size: 2.5rem;
  color: #2c3e50;
  font-weight: 700;
}

.heading-and-element-flexbox img {
  max-width: 120px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.9;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
  .heading-and-element-flexbox {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .heading-and-element-flexbox h2 {
    font-size: 2rem;
  }

  .heading-and-element-flexbox img {
    max-width: 100px;
    max-height: 50px;
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .heading-and-element-flexbox h2 {
    font-size: 1.75rem;
  }

  .heading-and-element-flexbox img {
    max-width: 80px;
    max-height: 40px;
  }
}

/* ===== AUDIT REPORTS LIST STYLING ===== */
.audit-reports-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.audit-reports-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.audit-reports-list li:hover {
  background: rgba(102, 126, 234, 0.05);
  border-left-color: #667eea;
  transform: translateX(3px);
}

.audit-reports-list li i {
  color: #dc3545;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.audit-reports-list li a {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.audit-reports-list li a:hover {
  color: #667eea;
  text-decoration: underline;
}

/* Enhanced grid layout for wellness overview */
.content-list.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  width: 100%;
}

.content-list.grid-layout li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  margin-bottom: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.content-list.grid-layout li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.content-list.grid-layout li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.3);
}

.content-list.grid-layout li:hover::before {
  transform: scaleX(1);
}

.content-list.grid-layout li i {
  font-size: 2.5rem;
  color: #667eea;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.content-list.grid-layout li:hover i {
  color: #764ba2;
  transform: scale(1.1);
}

.content-list.grid-layout li a {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.3s ease;
  width: 100%;
  display: block;
  pointer-events: auto;
}

/* Make ALL grid-layout links fill the entire li - move padding from li to link */
.content-list.grid-layout li:has(> a) {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.content-list.grid-layout li > a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  width: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
}

.content-list.grid-layout li > a i {
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.content-list.grid-layout li > a span {
  width: 100%;
}

/* For links that have icons as siblings (old structure), keep them working */
.content-list.grid-layout li:not(:has(> a)) {
  padding: 1.5rem;
}

.content-list.grid-layout li:hover a {
  color: #667eea;
}

/* Responsive grid adjustments */
@media (min-width: 1200px) {
  .content-list.grid-layout {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .content-list.grid-layout {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
  }

  .content-list.grid-layout li {
    padding: 1.25rem;
  }

  .content-list.grid-layout li i {
    font-size: 2rem;
  }

  .content-list.grid-layout li a {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .content-list.grid-layout {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .content-list.grid-layout li {
    padding: 1rem;
  }
}

/* ===== 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;
}

/* ===== BIG LINKS CONTAINER (Natural Disaster Aid Page) ===== */
.big-links-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  padding: 1rem 0;
}

.big-box-link {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  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: 2.5rem 2rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
  min-height: 200px;
}

.big-box-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.big-box-link i {
  font-size: 4rem;
  color: white;
  transition: all 0.3s ease;
}

.big-box-link:hover i {
  color: #eef3ff;
  transform: scale(1.1);
}

.big-box-link span {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  transition: color 0.3s ease;
}

.big-box-link:hover span {
  color: #eef3ff;
}

/* Responsive adjustments for big links */
@media (max-width: 768px) {
  .big-links-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
  }

  .big-box-link {
    padding: 2rem 1.5rem;
    min-height: 180px;
  }

  .big-box-link i {
    font-size: 3rem;
  }

  .big-box-link span {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .big-box-link {
    padding: 1.5rem 1rem;
    min-height: 160px;
  }

  .big-box-link i {
    font-size: 2.5rem;
  }

  .big-box-link span {
    font-size: 1rem;
  }
}

/* ===== SEARCH RESULTS STYLES ===== */
.search-results-container {
  padding: 2rem 0;
}

.search-results-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
}

.results-count {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.search-query-display {
  font-size: 1rem;
  color: #333;
  margin: 0;
}

.search-query-display strong {
  color: #204f9a;
  font-weight: 600;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-result-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-result-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #204f9a;
}

.search-result-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.search-result-title a {
  color: #204f9a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.search-result-title a:hover {
  color: #163465;
  text-decoration: underline;
}

.search-result-description {
  color: #555;
  line-height: 1.6;
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
}

.search-result-description mark {
  background-color: #fff3cd;
  color: #856404;
  padding: 0.1em 0.2em;
  border-radius: 3px;
  font-weight: 500;
}

.search-result-link {
  color: #006621;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.5rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.search-result-link:hover {
  text-decoration: underline;
}

.search-result-document {
  border-left: 4px solid #204f9a;
}

.document-badge {
  display: inline-block;
  background-color: #204f9a;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  font-weight: 500;
  vertical-align: middle;
}

.document-badge i {
  font-size: 0.875rem;
  vertical-align: middle;
}

.no-results,
.no-query {
  text-align: center;
  padding: 3rem 2rem;
  color: #666;
}

.no-results h3,
.no-query h3 {
  color: #333;
  margin: 1rem 0;
  font-size: 1.5rem;
}

.no-results p,
.no-query p {
  margin: 0.5rem 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Responsive adjustments for search results */
@media (max-width: 768px) {
  .search-results-container {
    padding: 1rem 0;
  }

  .search-result-item {
    padding: 1.25rem;
  }

  .search-result-title {
    font-size: 1.1rem;
  }

  .search-result-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .search-result-item {
    padding: 1rem;
  }

  .search-result-title {
    font-size: 1rem;
  }

  .results-count {
    font-size: 1rem;
  }

  .search-query-display {
    font-size: 0.9rem;
  }
}

/* ===== APPLYING LIFE & LTD COMPONENT STYLES ===== */
/* Enhanced styling for the Applying for Life & LTD Coverage component */

/* Main accordion container styling */
#applyingLifeLtdProcess {
  margin-top: 1.5rem;
}

#applyingLifeLtdProcess .accordion-item {
  border: none;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

#applyingLifeLtdProcess .accordion-item:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
}

#applyingLifeLtdProcess .accordion-header {
  border-bottom: none;
}

#applyingLifeLtdProcess .accordion-button {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
  border: none;
  padding: 1.25rem 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  transition: all 0.3s ease;
  box-shadow: none;
}

#applyingLifeLtdProcess .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#applyingLifeLtdProcess .accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

#applyingLifeLtdProcess .accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
  border-color: transparent;
}

#applyingLifeLtdProcess .accordion-button:hover:not(.collapsed) {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

#applyingLifeLtdProcess .accordion-body {
  padding: 2rem 1.5rem;
  background: #fff;
  line-height: 1.7;
}

/* Heading styles within accordion */
#applyingLifeLtdProcess .accordion-body h5 {
  color: #2c3e50;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #ecf0f1;
}

/* Instruction paragraphs - Blue background */
.instructionsBlue {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.08) 0%,
    rgba(118, 75, 162, 0.08) 100%
  );
  border-left: 4px solid #667eea;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  color: #495057;
  font-size: 1.05rem;
  line-height: 1.7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Step instructions container with indentation */
.indent--1 {
  margin-left: 1.5rem;
  padding-left: 2rem;
  border-left: 3px solid #e9ecef;
  margin-bottom: 1.5rem;
  padding-top: 0.5rem;
}

.indent--1 p {
  margin-bottom: 1.25rem;
  color: #495057;
  font-size: 1.05rem;
  line-height: 1.7;
  position: relative;
}

/* Step labels - Grey badge style */
.instructionsGrey {
  display: inline-block;
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3);
}

/* Note section styling */
#applyingLifeLtdProcess .accordion-body .note-highlight,
#applyingLifeLtdProcess .accordion-body p.note-highlight {
  background: #fff5f5;
  border-left: 4px solid #dc3545;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  color: #721c24;
  font-size: 1.05rem;
  line-height: 1.7;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.1);
}

#applyingLifeLtdProcess .accordion-body .note-highlight b,
#applyingLifeLtdProcess .accordion-body p.note-highlight b {
  color: #dc3545;
  font-weight: 700;
}

#applyingLifeLtdProcess .accordion-body .note-highlight a,
#applyingLifeLtdProcess .accordion-body p.note-highlight a {
  color: #dc3545;
  text-decoration: underline;
  font-weight: 600;
}

#applyingLifeLtdProcess .accordion-body .note-highlight a:hover,
#applyingLifeLtdProcess .accordion-body p.note-highlight a:hover {
  color: #c82333;
}

/* Info box styling */
#applyingLifeLtdProcess .accordion-body .info-box,
#applyingLifeLtdProcess .accordion-body p.info-box {
  background: linear-gradient(
    135deg,
    rgba(52, 152, 219, 0.08) 0%,
    rgba(41, 128, 185, 0.08) 100%
  );
  border-left: 4px solid #3498db;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  color: #495057;
  font-size: 1.05rem;
  line-height: 1.7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

#applyingLifeLtdProcess .accordion-body .info-box .bx-info-circle,
#applyingLifeLtdProcess .accordion-body p.info-box .bx-info-circle {
  color: #3498db;
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

#applyingLifeLtdProcess .accordion-body .info-box b,
#applyingLifeLtdProcess .accordion-body p.info-box b {
  color: #2c3e50;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

/* Grid layout for document links */
.grid-layout-docs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.grid-layout-docs li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.grid-layout-docs li:hover {
  border-color: #667eea;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(118, 75, 162, 0.05) 100%
  );
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.grid-layout-docs li .bxs-file-pdf {
  color: #204f9a;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.grid-layout-docs li:hover .bxs-file-pdf {
  transform: scale(1.1);
}

.grid-layout-docs li a {
  color: #495057;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  flex: 1;
  transition: color 0.3s ease;
}

.grid-layout-docs li:hover a {
  color: #667eea;
}

/* Accordion body list items (for certificates, claims, etc.) */
#applyingLifeLtdProcess .accordion-body ul:not(.grid-layout-docs) {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

#applyingLifeLtdProcess .accordion-body ul:not(.grid-layout-docs) li {
  margin-bottom: 0.75rem;
  padding: 0.875rem 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

#applyingLifeLtdProcess .accordion-body ul:not(.grid-layout-docs) li:hover {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.08) 0%,
    rgba(118, 75, 162, 0.08) 100%
  );
  border-left-color: #667eea;
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#applyingLifeLtdProcess .accordion-body ul:not(.grid-layout-docs) li .bx,
#applyingLifeLtdProcess
  .accordion-body
  ul:not(.grid-layout-docs)
  li
  .bxs-file-pdf {
  color: #667eea;
  font-size: 1.2rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

#applyingLifeLtdProcess .accordion-body ul:not(.grid-layout-docs) li:hover .bx,
#applyingLifeLtdProcess
  .accordion-body
  ul:not(.grid-layout-docs)
  li:hover
  .bxs-file-pdf {
  transform: scale(1.1);
}

#applyingLifeLtdProcess .accordion-body ul:not(.grid-layout-docs) li a {
  color: #495057;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

#applyingLifeLtdProcess .accordion-body ul:not(.grid-layout-docs) li a:hover {
  color: #667eea;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #applyingLifeLtdProcess .accordion-button {
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
  }

  #applyingLifeLtdProcess .accordion-body {
    padding: 1.5rem 1.25rem;
  }

  #applyingLifeLtdProcess .accordion-body h5 {
    font-size: 1.25rem;
  }

  .instructionsBlue,
  #applyingLifeLtdProcess .accordion-body .note-highlight,
  #applyingLifeLtdProcess .accordion-body p.note-highlight,
  #applyingLifeLtdProcess .accordion-body .info-box,
  #applyingLifeLtdProcess .accordion-body p.info-box {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }

  .indent--1 {
    margin-left: 0.75rem;
    padding-left: 1.25rem;
  }

  .indent--1 p {
    font-size: 1rem;
  }

  .instructionsGrey {
    font-size: 0.875rem;
    padding: 0.4rem 0.875rem;
  }

  .grid-layout-docs {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .grid-layout-docs li {
    padding: 0.875rem 1rem;
  }
}

@media (max-width: 480px) {
  #applyingLifeLtdProcess .accordion-button {
    font-size: 1rem;
    padding: 0.875rem 1rem;
  }

  #applyingLifeLtdProcess .accordion-body {
    padding: 1.25rem 1rem;
  }

  .instructionsBlue,
  #applyingLifeLtdProcess .accordion-body .note-highlight,
  #applyingLifeLtdProcess .accordion-body p.note-highlight,
  #applyingLifeLtdProcess .accordion-body .info-box,
  #applyingLifeLtdProcess .accordion-body p.info-box {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }

  .indent--1 {
    margin-left: 0.5rem;
    padding-left: 1rem;
  }

  .grid-layout-docs li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
