.carousel-nav-buttons {
  /* Aligns arrows to the right side of the section */
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  /* Space above arrows */
}

.arrow-button {
  /* Basic styling for the button */
  background-color: #007bff;
  /* Example: use your theme color */
  color: white;
  border: none;
  padding: 10px 15px;
  margin-left: 10px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 18px;
  line-height: 1;
}

.arrow-button:hover {
  background-color: #0056b3;
}

.carousel-nav-buttons {
  display: flex;
  justify-content: center;
  /* Aligns arrows to the left, like the image */
  margin-top: -10px;
  margin-left: 15px;
  /* Adjust as needed for alignment */
  margin-bottom: 30px;
}

.arrow-button {
  /* Basic styling for the button */
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: 2px solid #7A50A2;
  /* Use your border color */
  color: #7A50A2;
  /* Use your text color */
  padding: 0;
  margin-right: 15px;
  /* Space between buttons */
  cursor: pointer;
  border-radius: 5px;
  /* Matches the rectangular shape in the image */
  font-size: 20px;
  transition: all 0.3s;
}

.arrow-button:hover {
  background-color: #7A50A2;
  color: white;
}

/* Optional: Cleanup the container margins */
.service-block {
  padding: 0 15px;
  /* To prevent items from touching due to margin:30 in JS */
}



/* Basic Reset and Container Setup */
.miracle-section {
  display: flex;
  flex-wrap: wrap;
  /* Allows columns to stack on smaller screens */
  width: 100%;
  max-width: 1200px;
  /* Example max width */
  margin: 0 auto;
  min-height: 400px;
  /* Ensure a minimum height */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

/* --- Left Panel Styling --- */
.left-panel {
  flex: 1 1 350px;
  /* Allows the panel to grow/shrink, with a base width of 350px */
  background-color: #2e303f;
  /* Dark background color */
  color: white;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Header/Title Styling */
.left-panel .header {
  margin-bottom: 20px;
}

.left-panel .icon-text {
  font-size: 1.5em;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.left-panel .icon {
  font-size: 1.8em;
  color: #00bcd4;
  /* Light blue color for the icon */
  margin-right: 10px;
  line-height: 0;
}

/* List/Button Styling */
.left-panel .content-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.left-panel .content-item {
  border: none;
  padding: 15px 20px;
  text-align: left;
  font-size: 1em;
  color: white;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
}

.left-panel .content-item.blue {
  background-color: #007bff;
  /* Primary blue for the first button */
}

.left-panel .content-item.green {
  background-color: #4dc2a3;
  /* Teal/Green for the second button */
}

.left-panel .content-item:hover {
  filter: brightness(1.1);
}

.left-panel .content-item .arrow {
  font-size: 1.5em;
  font-weight: bold;
}

/* View All Button Styling */
.view-all-button {
  background-color: white;
  color: #2e303f;
  border: 1px solid white;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  align-self: flex-start;
  /* Aligns button to the left */
  margin-top: 15px;
  transition: background-color 0.3s;
}

.view-all-button:hover {
  background-color: #f0f0f0;
}


/* --- Right Video Panel Styling --- */
.right-video-container {
  flex: 2 1 65%;
  /* Takes up the remaining space, minimum 65% width */
  position: relative;
  background-color: #333;
  /* Dark background for the video container */
}

/* Responsive video wrapper (16:9 aspect ratio) */
.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 ratio (9 / 16 * 100) */
  height: 0;
  overflow: hidden;
  width: 100%;
  min-height: 400px;
  /* Fallback for when content dictates height */
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Chatbot Icon Styling */
.chatbot-icon {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: #00bcd4;
  /* Light blue */
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  z-index: 10;
  /* Ensure it's above the video */
}

/* --- Media Query for Mobile Responsiveness --- */
@media (max-width: 768px) {
  .miracle-section {
    flex-direction: column;
    /* Stack the columns vertically */
  }

  .left-panel {
    padding-bottom: 20px;
  }

  /* Ensure the video takes full width when stacked */
  .right-video-container {
    flex-basis: auto;
  }

  .video-responsive {
    /* Set a fixed height on smaller screens if desired, or rely on padding-bottom */
    min-height: 300px;
  }
}

/* General Styling for the Container (no direct body/html targets) */
.interactive-section {
  position: relative;
  padding: 20px;
  background-color: #f8f8f8;
  /* Light background for the overall section */
}

/* --- Main Layout Container --- */
.two-column-layout {
  display: flex;
  flex-wrap: wrap;
  /* Allows stacking on small screens */
  width: 100%;
  max-width: 1000px;
  min-height: 450px;
  margin: 40px auto;
  background-color: white;
  /* White background for the main card container */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

/* --- Left Video Column (60% width) --- */
.left-video-column {
  flex: 2 1 60%;
  position: relative;
  overflow: hidden;
}

/* --- Video Wrapper for 16:9 Aspect Ratio --- */
.video-wrapper {
  position: relative;
  /* This creates the 16:9 aspect ratio */
  padding-bottom: 56.25%;
  /* (9 / 16) * 100 */
  height: 0;
  overflow: hidden;
}

.video-wrapper .embedded-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Ensure the iframe allows interaction (no pointer-events: none) */
}


/* --- Right Content Column (40% width) --- */
.right-content-column {
  flex: 1 1 40%;
  background-color: white;
  color: #333;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.column-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.column-description {
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 10px;
}

.column-cta-text {
  font-size: 0.9em;
  font-weight: 500;
  margin-bottom: 25px;
}

/* --- CTA Button Styling --- */
.cta-button-small {
  background-color: #e9007c;
  /* Bright Pink */
  color: white;
  border: none;
  padding: 10px 25px;
  font-size: 0.9em;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.3s;
}

.cta-button-small:hover {
  background-color: #ff33a3;
}

/* --- Floating Buttons --- */

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  /* WhatsApp Green */
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  text-decoration: none;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Scroll-Up Button */
.scroll-up-button {
  position: fixed;
  bottom: 80px;
  /* Positioned above the WhatsApp button */
  right: 20px;
  background-color: #f0f0f0;
  /* Light gray */
  color: #666;
  border: 1px solid #ccc;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .two-column-layout {
    flex-direction: column;
    /* Stack vertically */
    height: auto;
    margin: 20px auto;
  }

  .right-content-column {
    padding: 20px;
  }

  .cta-button-small {
    align-self: center;
    /* Center button when stacked */
  }
}

/* video */
/* video */
/* --- Main Container & Layout --- */
.interactive-video-gallery {
  padding: 40px 0;
  background-color: #f0f0f0;
  /* Light background for separation */
  /* Added for consistency */
}

.gallery-container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 500px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

/* --- LEFT PANEL: Navigation Styles --- */
.gallery-left-nav {
  flex: 1 1 350px;
  /* Base width for navigation */
  background-color: #2e303f;
  /* Dark background */
  color: white;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.gallery-left-nav .header {
  margin-bottom: 30px;
  display: flex;
  align-items: center;
}

.gallery-left-nav .icon {
  font-size: 1.8em;
  color: #5D9937;
  margin-right: 10px;
  line-height: 0;
}

.gallery-left-nav .title-text {
  font-size: 1.5em;
  font-weight: bold;
}

/* Navigation Buttons */
.gallery-left-nav .content-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: auto;
  /* Pushes the view-all button to the bottom */
}

.gallery-left-nav .nav-item {
  border: 1px solid white;
  padding: 15px 20px;
  text-align: left;
  font-size: 1em;
  color: white;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s, opacity 0.3s, transform 0.2s;
  /* Added transform */
  opacity: 0.7;
  /* Dim inactive items */
  white-space: normal;
  /* Allow text to wrap within the button */
  line-height: 1.3;
  /* Improve readability for wrapped text */
}

.gallery-left-nav .nav-item.blue {
  background-color: #007bff;
}

.gallery-left-nav .nav-item.green {
  background-color: #4dc2a3;
}

.gallery-left-nav .nav-item.active {
  opacity: 1;
  /* Highlight active item */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3) inset;
  transform: scale(1.02);
}

.gallery-left-nav .nav-item:not(.active):hover {
  opacity: 0.85;
}

.gallery-left-nav .arrow {
  font-size: 1.5em;
  font-weight: bold;
}

.gallery-left-nav .view-all-button {
  background-color: white;
  color: #2e303f;
  border: 1px solid white;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 30px;
  transition: background-color 0.3s;
}

.gallery-left-nav .view-all-button:hover {
  background-color: #f0f0f0;
}

/* --- RIGHT PANEL: Display Styles --- */
.gallery-right-display {
  flex: 1 1 65%;
  /* Takes the remaining width */
  /* Remove flex-direction: column as there's only one main item now */
  background-color: white;
  /* Ensure it completely fills the height of its parent */
  position: relative;
}

.video-display-area {
  /* Make video-display-area fill the entire gallery-right-display */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* The video-wrapper inside will handle the aspect ratio */
}

.video-display-area .video-wrapper {
  /* Use padding-bottom for aspect ratio, but only if the parent is NOT 100% height */
  /* Since .video-display-area is 100% height, we can simplify this */
  position: relative;
  /* Keep for iframe positioning */
  width: 100%;
  height: 100%;
  /* Make wrapper fill its parent */
  display: flex;
  /* Use flex to center the iframe if needed */
  align-items: center;
  justify-content: center;
}

.video-display-area .embedded-video {
  width: 100%;
  height: 100%;
  /* No pointer-events: none, so default YouTube controls are clickable */
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
  .gallery-container {
    flex-direction: column;
  }

  .gallery-left-nav {
    flex-basis: auto;
    padding-bottom: 15px;
  }

  .gallery-left-nav .content-list {
    margin-bottom: 0;
  }

  .gallery-left-nav .view-all-button {
    align-self: center;
    margin-top: 15px;
  }

  .gallery-right-display {
    flex-basis: auto;
    /* Give it a minimum height on mobile so the video is visible */
    min-height: 300px;
  }
}


/* video */
/* --- SECTION STYLING --- */
.team-section.advanced-horizontal-cards {
  padding: 80px 0;
  background-color: #f8f8f8;
}

.advanced-card-wrap {
  display: flex;
  margin-bottom: 30px;
}

/* --- CORE CARD LAYOUT AND STYLING (Increased Min-Height) --- */
.doctor-card.horizontal-layout {
  /* *** MODIFIED: Increased minimum height for a larger box *** */
  min-height: 300px;

  display: flex;
  align-items: center;

  background: #ffffff;
  border-radius: 15px;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); */
  overflow: hidden;
  padding: 15px;
  /* MODIFIED: Increased internal padding */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}



/* --- IMAGE BLOCK STYLING (Increased Image Size) --- */
.doctor-card .image-box {
  flex-shrink: 0;
  /* *** MODIFIED: Increased width percentage for a bigger image area *** */
  width: 45%;
  /* *** MODIFIED: Increased max width for a larger overall medium size *** */
  max-width: 250px;
  margin-right: 40px;
  /* MODIFIED: Increased spacing between image and text */
}

.doctor-card .image-box .image {
  height: 100%;
}

.doctor-card .image-box img {
  width: 100%;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

/* --- CONTENT BLOCK STYLING (Minor spacing adjustment) --- */
.doctor-card .content-box {
  flex-grow: 1;
}

.doctor-card .category-tag {
  font-size: 13px;
  /* Slightly larger tag */
  font-weight: 700;
  color: #555;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
  /* Added spacing */
}

.doctor-card h2 {
  font-size: 26px;
  /* Slightly larger name */
  color: #2c3e50;
  margin-bottom: 5px;
}

.doctor-card .designation-text {
  font-size: 16px;
  /* Larger text */
  color: #007bff;
  font-weight: 500;
  margin-bottom: 20px;
  /* Increased spacing below title/role */
}

.doctor-card .bio-excerpt {
  font-size: 15px;
  /* Larger text */
  line-height: 1.6;
  color: #555;
}

/* --- RESPONSIVE ADJUSTMENTS (For mobile/stacked view) --- */
@media (max-width: 767px) {
  .doctor-card.horizontal-layout {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px 40px 20px;
  }

  .doctor-card .image-box {
    width: 70%;
    /* Image larger on mobile */
    margin: 0 auto 25px auto;
    /* Center image and add space below */
    max-width: 300px;
  }

  .doctor-card .content-box {
    text-align: center;
    width: 100%;
  }
}

/* --- Global Reset/Variables (Optional but good practice) --- */
:root {
  --primary-color: #007bff;
  /* Example Brand Color */
  --text-color: #333;
  --light-bg: #f8f9fa;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --border-radius: 8px;
  --gap-size: 30px;
  /* Use a variable for gap/scroll consistency */
}

/* --- Section Layout --- */
.patient-testimonials-section {
  padding: 60px 0;
  /* Changed padding-left/right to 0 and added track padding below */
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  /* Useful if navigation is positioned absolutely */
}

/* Header Styling - Apply horizontal padding here */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  padding: 0 20px;
  /* Apply padding to header content */
}

.header-container h2 {
  font-size: 2.2em;
  color: var(--text-color);
  margin: 0;
  flex-grow: 1;
}

.header-container p {
  font-size: 1.1em;
  color: #666;
  margin: 10px 0 0 0;
  flex-basis: 100%;
}

.view-all-link {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: bold;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  transition: color 0.2s;
}

.view-all-link:hover {
  color: #0056b3;
}

/* --- ITERATIVE SLIDER: 3.x View and Functionality --- */
.testimonial-slider-track {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
  gap: var(--gap-size);
  /* Use the variable */
  margin-bottom: 20px;

  /* CRUCIAL for the 3.x peeking effect */
  padding-left: 20px;
  padding-right: 20px;
}

/* Hide scrollbar for cleaner look (optional) */
.testimonial-slider-track::-webkit-scrollbar {
  display: none;
}

.testimonial-slider-track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* --- Individual Card Styling --- */
.testimonial-card {
  /* Set width for 3.x visibility on large screens */
  flex: 0 0 calc((100% - (2 * var(--gap-size)) - 40px) / 3);
  min-width: 320px;
  /* Ensures minimum size */

  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  scroll-snap-align: start;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* --- VIDEO EMBED STYLES (16:9 Aspect Ratio) --- */
.video-thumbnail {
  width: 100%;
  /* Replaced fixed height with aspect ratio container */
  position: relative;
  cursor: pointer;
  background-color: #000;
  overflow: hidden;
  height: 400px;
}

/* New CSS for 16:9 aspect ratio */
.video-aspect-ratio {
  position: relative;
  width: 100%;
  /* 9 / 16 = 56.25% */
  padding-top: 56.25%;
}

.video-aspect-ratio iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Content and Title Styles (No changes needed) --- */
.content {
  padding: 20px;
}

.summary-text {
  font-size: 0.95em;
  color: #555;
  line-height: 1.5;
  min-height: 40px;
}

.video-title {
  display: block;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  margin-top: 10px;
  font-size: 1.1em;
  transition: color 0.2s;
}

.video-title:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* --- Navigation Arrows Styling --- */
.slider-navigation {
  display: flex;
  justify-content: flex-end;
  /* Align to the right side of the track */
  padding-right: 20px;
  /* Align with the track's right padding */
}

.nav-arrow {
  background-color: #7C50A1;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5em;
  cursor: pointer;
  margin-left: 10px;
  transition: background-color 0.2s, transform 0.1s;
}

.nav-arrow:hover {
  background-color: #9475adff;
}

.nav-arrow:active {
  transform: scale(0.95);
}

/* --- Responsiveness for Mobile --- */
@media (max-width: 768px) {
  .header-container {
    display: block;
    text-align: center;
    padding: 0 20px;
  }

  .view-all-link {
    /* Keep or hide as desired */
  }

  .testimonial-slider-track {
    gap: 20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .testimonial-card {
    flex: 0 0 80vw;
    max-width: 400px;
  }

  .slider-navigation {
    justify-content: center;
    /* Center navigation on mobile */
    padding-right: 0;
  }
}

/* review */

/* Mega Menu Wrapper */
#pages-mega-menu {
  position: relative;
}

#pages-mega-menu .mega-menu-wrapper {
  position: absolute;
  left: -450px;
  top: 100%;
  width: 1400px;
  max-width: 95vw;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border-radius: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  margin-top: 0;
  border-top: 3px solid;
  border-image: linear-gradient(90deg, #7c3aed 0%, #2563eb 100%) 1;
}

#pages-mega-menu:hover .mega-menu-wrapper {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#pages-mega-menu .mega-menu-container {
  display: grid;
  grid-template-columns: 280px 1fr 340px;
  gap: 0;
  min-height: 550px;
}

/* Left Sidebar */
#pages-mega-menu .mega-menu-sidebar {
  background: #f8f9fa;
  padding: 35px 0;
  border-right: 1px solid #e5e7eb;
}

#pages-mega-menu .sidebar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#pages-mega-menu .sidebar-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  transition: width 0.3s ease;
}

#pages-mega-menu .sidebar-item.active::before,
#pages-mega-menu .sidebar-item:hover::before {
  width: 4px;
}

#pages-mega-menu .sidebar-item.active {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.08) 0%, rgba(37, 99, 235, 0.05) 100%);
}

#pages-mega-menu .sidebar-item:hover {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.06) 0%, rgba(37, 99, 235, 0.03) 100%);
  transform: translateX(3px);
}

#pages-mega-menu .sidebar-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e9d5ff 0%, #ddd6fe 100%);
  color: #7c3aed;
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(10px);
}

#pages-mega-menu .sidebar-item.active .sidebar-icon,
#pages-mega-menu .sidebar-item:hover .sidebar-icon {
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
  transform: scale(1.05);
}

#pages-mega-menu .sidebar-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#pages-mega-menu .sidebar-item:hover .sidebar-icon::before {
  opacity: 1;
}

#pages-mega-menu .sidebar-item span {
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  transition: color 0.3s ease;
}

#pages-mega-menu .sidebar-item.active span,
#pages-mega-menu .sidebar-item:hover span {
  color: #7c3aed;
}

/* Middle Solutions Section */
#pages-mega-menu .mega-menu-solutions {
  padding: 35px 40px;
  background: #ffffff;
}

#pages-mega-menu .solutions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

#pages-mega-menu .solutions-title {
  font-size: 16px;
  font-weight: 600;
  color: #9ca3af;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Filter/Search */
#pages-mega-menu .solutions-search {
  position: relative;
  flex: 1;
  max-width: 260px;
}

#pages-mega-menu .solutions-search input {
  width: 100%;
  padding: 8px 12px 8px 30px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
  background: #f9fafb;
}

#pages-mega-menu .solutions-search input:focus {
  border-color: #7c3aed;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

#pages-mega-menu .solutions-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
}

/* Solutions Grids (per category) */
#pages-mega-menu .solutions-grid {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

#pages-mega-menu .solutions-grid.active {
  display: grid;
}

#pages-mega-menu .solutions-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#pages-mega-menu .solution-item {
  padding: 12px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

#pages-mega-menu .solution-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e5e7eb 20%, #e5e7eb 80%, transparent 100%);
}

#pages-mega-menu .solution-item:hover {
  transform: translateX(5px);
}

#pages-mega-menu .solution-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 6px 0;
  transition: color 0.3s ease;
}

/* Make h4 links look like headings */
#pages-mega-menu .solution-item h4 a {
  color: inherit;
  text-decoration: none;
}

#pages-mega-menu .solution-item h4 a:hover {
  text-decoration: none;
}

#pages-mega-menu .solution-item:hover h4 {
  color: #7c3aed;
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#pages-mega-menu .solution-item p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Right Engagement Section */
#pages-mega-menu .mega-menu-engagement {
  background: linear-gradient(135deg, #faf5ff 0%, #f3f4f6 100%);
  padding: 35px 30px;
  border-left: 1px solid #e5e7eb;
}

#pages-mega-menu .engagement-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px 0;
}

#pages-mega-menu .engagement-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 30px 0;
}

#pages-mega-menu .engagement-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#pages-mega-menu .engagement-card {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

#pages-mega-menu .engagement-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.03) 0%, rgba(37, 99, 235, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#pages-mega-menu .engagement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.15);
  border-color: #c4b5fd;
}

#pages-mega-menu .engagement-card:hover::before {
  opacity: 1;
}

#pages-mega-menu .engagement-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
}

#pages-mega-menu .pink-gradient {
  background: linear-gradient(135deg, #fce7f3 0%, #e9d5ff 100%);
  color: #c026d3;
}

#pages-mega-menu .engagement-card:hover .engagement-icon {
  background: linear-gradient(135deg, #c026d3 0%, #7c3aed 100%);
  color: white;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(192, 38, 211, 0.3);
}

#pages-mega-menu .engagement-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#pages-mega-menu .engagement-card:hover .engagement-icon::before {
  opacity: 1;
}

#pages-mega-menu .engagement-content h4 {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 6px 0;
  transition: color 0.3s ease;
}

#pages-mega-menu .engagement-card:hover .engagement-content h4 {
  color: #7c3aed;
}

#pages-mega-menu .engagement-content p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Hide default submenu */
#pages-mega-menu>.submenu {
  display: none !important;
}

/* Featured Visual Card in Engagement Section */
#pages-mega-menu .engagement-visual-card {
  margin-top: 20px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 180px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
}

#pages-mega-menu .engagement-visual-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.25);
}

#pages-mega-menu .visual-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: 1;
  transition: transform 0.6s ease;
}

#pages-mega-menu .engagement-visual-card:hover .visual-card-bg {
  transform: scale(1.05);
}

#pages-mega-menu .visual-card-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

#pages-mega-menu .visual-card-glass {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  z-index: 3;
}

#pages-mega-menu .visual-card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

#pages-mega-menu .engagement-visual-card:hover .visual-card-glass::before {
  left: 100%;
}

#pages-mega-menu .visual-card-shine {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 5;
  pointer-events: none;
}

#pages-mega-menu .engagement-visual-card:hover .visual-card-shine {
  opacity: 1;
}

#pages-mega-menu .visual-card-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: 85%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

#pages-mega-menu .engagement-visual-card:hover .visual-card-image {
  transform: translate(-50%, -50%) scale(1.05);
}

#pages-mega-menu .visual-card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.2));
}

/* Responsive Design */
@media (max-width: 1500px) {
  #pages-mega-menu .mega-menu-wrapper {
    width: 1200px;
    left: -200px;
  }

  #pages-mega-menu .mega-menu-container {
    grid-template-columns: 260px 1fr 320px;
  }
}

@media (max-width: 1280px) {
  #pages-mega-menu .mega-menu-wrapper {
    width: 1000px;
    left: -100px;
  }

  #pages-mega-menu .mega-menu-container {
    grid-template-columns: 240px 1fr 300px;
  }

  #pages-mega-menu .solutions-grid.active {
    gap: 20px;
  }
}

@media (max-width: 1024px) {
  #pages-mega-menu .mega-menu-wrapper {
    width: 900px;
    left: -50px;
  }

  #pages-mega-menu .mega-menu-container {
    grid-template-columns: 1fr;
  }

  #pages-mega-menu .mega-menu-sidebar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }

  #pages-mega-menu .mega-menu-engagement {
    border-left: none;
    border-top: 1px solid #e5e7eb;
  }
}

@media (max-width: 768px) {
  #pages-mega-menu .mega-menu-wrapper {
    width: 600px;
    left: 0;
  }

  #pages-mega-menu .mega-menu-sidebar {
    grid-template-columns: repeat(2, 1fr);
  }

  #pages-mega-menu .solutions-grid.active {
    grid-template-columns: 1fr;
  }
}


/* readmore button */
.summary-text {
  font-size: 15px;
  line-height: 1.6;
}

.full-text {
  display: none;
}

.read-more-btn {
  color: #007BFF;
  cursor: pointer;
  font-weight: 600;
  margin-left: 5px;
}
