.medicare-hero {
  position: relative;
  width: 100%;
  height: 400px; /* adjust as needed */
  background: url("../images/medicare-bg-image.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

.medicare-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* dark overlay for text readability */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.medicare-hero-content {
  color: #fff;
  max-width: 800px;
}

.medicare-hero .breadcrumbs {
  font-size: 16px;
  margin-bottom: 15px;
  color: #d1d5db; /* light gray */
}

.medicare-hero .breadcrumbs a {
  color: #fff;
  font-size: 20px;
}

.medicare-hero .breadcrumbs a:hover {
  text-decoration: underline;
}

.medicare-hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: "Roboto", Arial, sans-serif;
}

.medicare-hero .medicare-description {
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
}

/* features-section styling */
.features-section {
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f9fafb;
  font-family: "Roboto", Arial, sans-serif;
}

.container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
  gap: 40px;
  align-items: center;
}

.features-image {
  flex: 1;
  min-width: 300px;
}

.features-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

/* Vertical wave overlay */
.features-image::before {
  content: '';
  position: absolute;
  top: -100%;          
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 123, 255, 0.2); 
  transform: rotate(90deg);           
  transform-origin: top left;         
  transition: top 0.6s ease;
  pointer-events: none;
}

/* Hover effect */
.features-image:hover img {
  transform: scale(1.05);
}

.features-image:hover::before {
  top: 0;  
}

.features-content {
  flex: 1;
  min-width: 300px;
}

.section-subtitle {
  color: #f09c1f;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 10px;
  display: inline-block;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1e3a8a;
}

.section-description {
  font-size: 16px;
  margin-bottom: 25px;
  color: #4b5563;
  line-height: 1.7;
}

/* Features List */
.features-list {
  display: flex;
  flex-wrap: wrap; 
  gap: 15px; 
}

.feature-item {
  display: flex; 
  align-items: center; 
  gap: 10px; 
  font-size: 16px; 
  flex: 1 1 45%; 
  min-width: 200px;
  color: #1e40af; /
}

.feature-item i {
  font-size: 16px; 
  color: #0ea5e9; 
}



/* ================= INSURANCE FEATURES ================= */
.comparison-grid {
  text-align: center;
}

.comparison-grid ~ h1,
.container > h1 {
  text-align: center;
  width: 100%;
}

         h1 {
            font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1e3a8a;
        }

        

.comparison-slider {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    user-select: none;
}

.comparison-slider img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
        }

.before-image {
    position: relative;
    width: 100%;
}

        .after-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            clip-path: inset(0 50% 0 0);
        }

        .slider-line {
            position: absolute;
            top: 0;
            left: 50%;
            width: 4px;
            height: 100%;
            background: white;
            transform: translateX(-50%);
            cursor: ew-resize;
            z-index: 10;
            box-shadow: 0 0 10px rgba(0,0,0,0.5);
        }

        .slider-handle {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 60px;
            height: 60px;
            background: white;
            border-radius: 50%;
            transform: translate(-50%, -50%);
            cursor: ew-resize;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s ease;
        }

        .slider-handle:hover {
            transform: translate(-50%, -50%) scale(1.1);
        }

        .slider-handle::before,
        .slider-handle::after {
            content: '';
            position: absolute;
            width: 0;
            height: 0;
            border-style: solid;
        }

        .slider-handle::before {
            left: 15px;
            border-width: 8px 12px 8px 0;
            border-color: transparent #667eea transparent transparent;
        }

        .slider-handle::after {
            right: 15px;
            border-width: 8px 0 8px 12px;
            border-color: transparent transparent transparent #667eea;
        }

        .label {
            position: absolute;
            top: 20px;
            padding: 8px 20px;
            background: rgba(255,255,255,0.9);
            color: #333;
            font-weight: bold;
            border-radius: 5px;
            font-size: 14px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
            z-index: 5;
        }

        .label-before {
            left: 20px;
        }

        .label-after {
            right: 20px;
        }

        .instructions {
            text-align: center;
            color: white;
            margin-top: 20px;
            font-size: 1rem;
            opacity: 0.9;
        }

        @media (max-width: 600px) {
            h1 {
                font-size: 1.8rem;
            }

            .slider-handle {
                width: 55px;
                height: 55px;
            }

            .label {
                font-size: 12px;
                padding: 6px 15px;
            }
        }


        /* ================= COMPARISON GRID ================= */

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Each slider box */
.comparison-item {
  width: 100%;
}

/* Make sliders equal height */
.comparison-slider {
  height: 320px;
}

/* Ensure images fill */
.comparison-slider img {
  height: 100%;
  object-fit: cover;
}

@media (max-width: 992px) {
  .comparison-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

/* left side image with link style */
.sticky-left-link {
  position: fixed;
  left: 0;
  top: 90%;
  transform: translateY(-50%);
  z-index: 9999;

  display: flex;
  align-items: center;

  background: #ffffff;           /* Light background */
  padding: 10px 16px 10px 10px;
  border-radius: 0 30px 30px 0;

  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  border-left: 4px solid #007bff; /* Blue accent line */
  transition: all 0.3s ease;
}

/* Image */
.sticky-left-link img {
  width: 100px;
  height: auto;
  margin-right: 10px;
}

/* Text */
.sticky-text {
  color: #007bff;                 /* Same blue as image */
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

/* Hover effect */
.sticky-left-link:hover {
  transform: translateY(-50%) translateX(5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}


/* medicare page of location and services styling */
/* House Insurance Section */
        .house-insurance-section {
            padding: 80px 0;
            background-color: #fff;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .insurance-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }

        /* Left Text Content */
        .insurance-text {
            padding-right: 20px;
        }

        .section-title {
            font-size: 42px;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 15px;
            line-height: 1.2;
        }

        .title-underline {
            width: 50px;
            height: 3px;
            background-color: #3498db;
            margin-bottom: 25px;
        }

        .section-description {
            font-size: 16px;
            color: #7f8c8d;
            line-height: 1.8;
            margin-bottom: 40px;
        }

        /* Insurance Details */
        .insurance-details {
            background-color: #f8f9fa;
            padding: 35px 40px;
            border-radius: 8px;
        }

        .detail-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 0;
            border-bottom: 1px solid #e0e0e0;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .detail-row:last-child {
            border-bottom: none;
        }

        .detail-row:hover {
            background-color: #e8f4f8;
            padding-left: 10px;
        }

        .detail-label {
            font-size: 16px;
            color: #555;
            font-weight: 400;
        }

        .detail-value {
            font-size: 16px;
            color: #2c3e50;
            font-weight: 600;
        }

        /* Right Image Content */
        .insurance-image {
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        }

        .insurance-image img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 8px;
            transition: transform 0.5s ease;
        }

        .insurance-image:hover img {
            transform: scale(1.05);
        }

        /* Animations */
        .insurance-text,
        .insurance-image {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s ease;
        }

        .insurance-text.animate-in {
            opacity: 1;
            transform: translateY(0);
            transition-delay: 0.2s;
        }

        .insurance-image.animate-in {
            opacity: 1;
            transform: translateY(0);
            transition-delay: 0.4s;
        }

        /* Ripple Effect */
        .ripple {
            position: absolute;
            border-radius: 50%;
            background: rgba(52, 152, 219, 0.3);
            width: 0;
            height: 0;
            transform: translate(-50%, -50%);
            animation: ripple-animation 0.6s ease-out;
            pointer-events: none;
        }

        @keyframes ripple-animation {
            to {
                width: 500px;
                height: 500px;
                opacity: 0;
            }
        }

        /* Responsive Design */
        @media (max-width: 992px) {
            .insurance-content {
                grid-template-columns: 1fr;
                gap: 40px;
            }

            .insurance-text {
                padding-right: 0;
            }

            .section-title {
                font-size: 36px;
            }
        }

        @media (max-width: 768px) {
            .house-insurance-section {
                padding: 60px 0;
            }

            .section-title {
                font-size: 32px;
            }

            .insurance-details {
                padding: 25px 20px;
            }

            .detail-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
                padding: 15px 0;
            }

            .detail-value {
                font-size: 15px;
            }
        }

        @media (max-width: 480px) {
            .section-title {
                font-size: 28px;
            }

            .section-description {
                font-size: 15px;
            }

            .detail-label,
            .detail-value {
                font-size: 14px;
            }
        }




/* Download our plans styling */
.sticky-download {
  position: fixed;
  left: 0;
  top: 65%;
  transform: translateY(-50%);
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 0 30px 30px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  z-index: 9999;
  transition: 0.3s ease;
}

.sticky-download img {
  width: 35px;
  height: 35px;
  margin-right: 10px;
}

.sticky-download span {
  font-size: 14px;
  font-weight: 600;
  color: #007bff;
  white-space: nowrap;
}

.sticky-download:hover {
  background: #007bff;
}

.sticky-download:hover span {
  color: #fff;
}
