 /* App_Responsive.css */

/* Demo page specific styles - apply to all screen sizes */
.demoHeader {
  padding-bottom: 20px !important;
  margin-bottom: 0 !important;
}

.demoBenefitsList {
  margin-top: 15px;
  margin-bottom: 15px;
}

.demoBenefitsItem {
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  margin-bottom: 10px;
  padding-left: 0;
  font-weight: 400;
  text-align: left;
}

.demoBenefitsItem:last-child {
  margin-bottom: 0;
}

/* Show demo benefits list on desktop and large tablets only */
@media (min-width: 1024px) {
  .demoVideoHeading .demoBenefitsList {
    display: block !important;
  }
}

/* Ensure Book a demo button is visible at 150% and 175% zoom */
@media (min-width: 1300px) {
  .headerContainer .menuItems div.loginButton {
    display: block !important;
  }
}

/* Override for high zoom levels - ensure Book a demo button stays visible at 175% zoom */
@media (min-width: 1200px) and (max-width: 1440px) {
  .headerContainer .menuItems div.loginButton {
    display: block !important;
    margin-left: 15px !important;
  }
  
  /* Shift menu items to make room for Book a demo button */
  .headerContainer .menuItems li {
    padding: 0 12px !important;
  }
  
  .headerContainer .menuItems li.login {
    padding-left: 15px !important;
  }
}

/* Hide demo benefits list on mobile and small tablets */
@media (max-width: 1023px) {
  .demoVideoHeading .demoBenefitsList {
    display: none !important;
  }
}

@media (min-width: 1335px) {
  .partnerCurveBreak {
    width: 75%;
  }
}

/* iPad Pro specific layout - stack elements vertically like iPad Air */
@media (min-width: 1024px) and (max-width: 1366px) and (max-height: 1024px) and (pointer: coarse) and (hover: none) and (-webkit-min-device-pixel-ratio: 2) {
  /* Extend teal hero section height to accommodate buttons */
  .pageSection.homeHeader {
    min-height: 1000px !important;
    padding-bottom: 100px !important;
  }
  
  .pageSection.homeHeader .sectionContent.flex {
    flex-direction: column !important;
    align-items: center !important;
  }
  
  .pageSection.homeHeader .sectionContentLeft {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 40px !important;
  }
  
  .pageSection.homeHeader .sectionContentRight {
    width: 100% !important;
    text-align: center !important;
  }
  
  .pageSection.homeHeader .mobileVideoThumbNailContainer {
    display: block !important;
    margin-top: 50px !important;
    margin-bottom: 40px !important;
  }
  
  .pageSection.homeHeader .videoThumbNailContainer {
    display: none !important;
  }
  
  /* Make video thumbnail larger for iPad Pro */
  .pageSection.homeHeader .mobileVideoThumbNailContainer .showcaseImage {
    width: 600px !important;
    max-width: 80% !important;
  }
  
  /* Move CTA buttons inside teal section */
  .pageSection.homeHeader .jointCTASection.alt {
    margin-top: 0 !important;
    margin-bottom: 40px !important;
    text-align: center !important;
    justify-content: center !important;
  }
  
  /* Move rating badge inside teal section */
  .pageSection.homeHeader .ratingBadge {
    margin-top: 40px !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Demo page alignment fix for high zoom levels - Extended range */
@media (min-width: 1024px) and (max-width: 1500px) {
  .demoGridContainer {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 30px !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    min-height: 750px !important;
  }
  
  .demoGridCol {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 0 15px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }
  
  .demoVideoHeading,
  .demoCTASection {
    margin-bottom: 20px !important;
  }
  
  .demoVideoSection {
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin-bottom: 20px !important;
  }
  
  .demoVideoThumbnail {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  
  .calendlyContainer {
    flex: 1 !important;
    min-height: 680px !important;
    width: 100% !important;
  }
  
  /* Demo page benefits list styling */
  .demoBenefitsList {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
  }
  
  .demoBenefitsItem {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #333333 !important;
    margin-bottom: 12px !important;
    padding-left: 0 !important;
    font-weight: 400 !important;
    text-align: left !important;
  }
  
  .demoBenefitsItem:last-child {
    margin-bottom: 0 !important;
  }
  
  /* Reduce whitespace between demo section and footer */
  .demoHeader {
    padding-bottom: 30px !important;
    margin-bottom: 0 !important;
  }
}

@media (min-width: 1550px) {
  .pageSection.externalCommunitySection {
    height: 800px;
  }
  .pageSection.integrationHeader {
    height: 700px;
  }
  .pageSection.referralHealthHeader {
    height: 700px;
  }
}

@media (min-width: 1451px) {
  .partnerHandshakeIllustration {
    display: none;
  }
  .partnerHandshakeIllustration_large {
    display: block;
  }
  .imCommunicationIllustration {
    display: none;
  }
  .imCommunicationIllustration_large {
    display: block;
  }
  .erCommunicationIllustration {
    display: none;
  }
  .erCommunicationIllustration_large {
    display: block;
  }
  .acCommunicationIllustration {
    display: none;
  }
  .acCommunicationIllustration_large {
    display: block;
  }
  .servicesSection {
    padding-bottom: 50px;
  }
}

@media (min-width: 1600px) {
  .pageSection.homeHeader {
    height: 780px;
  }
  .pageSection .hireUpWaySection {
    padding-bottom: 100px;
  }
}

@media (min-width: 1700px) {
  /* Page Headers */
  .pageSection.imHeader {
    height: 550px;
  }
  .pageSection.erHeader {
    height: 550px;
  }
  .pageSection.acHeader {
    height: 500px;
  }
  .pageSection.serviceHeader {
    height: 450px;
  }
  .pageSection.externalCommunitySection {
    height: 900px;
    padding-top: 75px;
  }

  .contentPadVertical.extra {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

@media (min-width: 1900px) {
  .curveBreak.otherSolutions {
    margin-bottom: -80px;
  }
}

@media (min-width: 2000px) {
  /* Page Headers */
  .pageSection.serviceHeader {
    height: 500px !important;
  }
}

@media (min-width: 2100px) {
  .partnerCurveBreak {
    width: 70% !important;
  }
}

@media (min-width: 2400px) {
  /* Page Headers */
  .pageSection.homeHeader {
    height: 630px !important;
  }
  .pageSection.imHeader {
    height: 650px !important;
  }
  .pageSection.erHeader {
    height: 650px !important;
  }
  .pageSection.acHeader {
    height: 550px !important;
  }
  .pageSection.serviceHeader {
    height: 550px !important;
  }
  .pageSection.pricingHeader {
    height: 850px !important;
  }

  .partnerCurveBreak {
    width: 65% !important;
  }
}

@media (max-width: 1360px) {
  .rh_accordion__section {
    width: 100%;
  }
  .currentHealth {
    width: 100%;
  }
  .healthWithHireUp {
    width: 100%;
  }
}

@media (max-width: 1200px) {
  .rh_experience_container > * {
    width: 47%;
  }
  .rh_work_email.flexHCenter {
    flex-direction: column;
    align-items: baseline;
  }
  .rh_work_email .CTAButton {
    margin-left: 0px;
    margin-top: 20px;
  }
}

@media (max-width: 1335px) {
  .clientBanner .clientLogo {
    height: 45px;
  }
  .tryPreviewImage {
    height: 500px;
  }
}

@media (max-width: 1235px) {
  .clientBanner {
    display: grid;
    gap: 70px;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
  }
  .clientBanner .clientLogo {
    margin-right: 0;
  }
}

@media (max-width: 1160px) {
  /* Header */
  .headerContainer .menuItems a.login {
    padding-left: 50px;
  }

  /* Hide Book a demo button in header for iPad Air and similar sizes */
  .headerContainer .menuItems div.loginButton {
    display: none;
  }
  
  /* Ensure Book a demo button is visible at high zoom levels */
  @media (min-width: 1160px) and (min-resolution: 1.5dppx) {
    .headerContainer .menuItems div.loginButton {
      display: block !important;
    }
  }
  
  /* Additional fix for high zoom levels */
  @media (min-width: 1200px) {
    .headerContainer .menuItems div.loginButton {
      display: block !important;
    }
  }
  
  /* Specific fix for 175% zoom and similar high zoom levels */
  @media (max-width: 1366px) and (min-width: 1161px) {
    /* Reduce login button left padding to make more space */
    .headerContainer .menuItems li.login {
      padding-left: 20px !important;
    }
    
    /* Reduce spacing between menu items */
    .headerContainer .menuItems li {
      padding: 0 15px !important;
    }
    
    /* Ensure Book a demo button remains visible */
    .headerContainer .menuItems div.loginButton {
      display: block !important;
      margin-left: 15px !important;
    }
  }
  
  /* iPad Pro specific viewport dimensions */
  @media (min-width: 1024px) and (max-width: 1366px) and (max-height: 1366px) {
    /* Reduce spacing for iPad Pro */
    .headerContainer .menuItems li {
      padding: 0 12px !important;
    }
    
    .headerContainer .menuItems li.login {
      padding-left: 15px !important;
    }
    
    .headerContainer .menuItems div.loginButton {
      display: block !important;
      margin-left: 10px !important;
    }
  }
  
  /* Additional iPad Pro fallback for different orientations and zoom levels */
  @media (min-width: 1024px) and (max-width: 1366px) {
    .headerContainer .menuItems div.loginButton {
      display: block !important;
      margin-left: 12px !important;
    }
    
    .headerContainer .menuItems li {
      padding: 0 10px !important;
    }
    
    .headerContainer .menuItems li.login {
      padding-left: 12px !important;
    }
  }

  /* Images */
  .featureShowcase {
    width: 800px;
  }
  .showcaseImage {
    width: 500px;
  }
  .tryPreviewImage {
    height: 400px;
  }
}

@media (max-width: 1115px) {
  .benefitsGraphic {
    width: 100%;
  }
}

@media (max-width: 1080px) {
  .pageSection.homeHeader {
    min-height: 750px;
  }
}

@media (max-width: 1075px) {
  .rh_metrics_container .rh_metrics_input {
    width: 75%;
  }
}

@media (max-width: 1023px) {
  /* Fix for "Try Filo, our AI Referral Bot" button text overflow */
  .jointCTASection .ctaButton.secondaryButton {
    padding: 0 15px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    min-width: 200px !important;
  }

  /* Header */
  .headerContainer {
    display: none;
  }

  .tryDemoButton {
    text-align: center;
  }

  /* Responsive header */
  .mobileHeaderContainer {
    display: block;
  }

  /* Page sections */
  .pageSection {
    position: relative;
    width: 100%;
  }
  .pageSection .contentPadHorizontal {
    padding-left: 20px;
    padding-right: 20px;
  }
  .pageSection .contentPadVertical {
    padding: 50px 0;
  }

  /* Page headers */
  .pageSection.homeHeader {
    padding-top: 100px;
    padding-bottom: 150px;
    height: auto;
  }
  .pageSection.securityHeader {
    height: auto;
  }
  .pageSection.serviceHeader {
    padding-top: 100px;
    height: 400px;
  }
  .pageSection.integrationHeader {
    height: auto;
    padding-bottom: 100px;
  }
  .pageSection.referralHealthHeader {
    height: auto;
    padding-bottom: 100px;
  }
  .pageSection.pricingHeader {
    padding-top: 80px;
    height: auto;
    min-height: 250px;
  }
  .pageSection.pricingPageHeader {
    margin-bottom: 50vh; /* Adds extra space after the header */
    height: auto;
    min-height: 100vh;
    padding-bottom: 40px;
    overflow: visible;
  }
  .pageSection.partnersHeader {
    padding-top: 100px;
  }
  .pageSection.contactHeader {
    padding-top: 100px;
  }
  .pageSection .sectionContent.flex {
    flex-direction: column;
    align-items: flex-start;
  }
  .pageSection .sectionContent.flex.mobileReverse {
    flex-direction: column-reverse;
  }
  .pageSection .sectionContent .sectionContent40 {
    width: 100%;
  }
  .pageSection .sectionContent .sectionContent60 {
    width: 100%;
  }
  .pageSection .sectionContent .sectionContent50 {
    width: 100%;
  }
  .pageSection .sectionContent .sectionContentLeft {
    width: 100%;
  }
  .pageSection .sectionContent .sectionContentRight {
    width: 100%;
  }
  .pageSection .sectionContent .sectionText {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .pageSection .sectionContent .sectionDescription {
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block !important;
    overflow: visible;
    padding: 0 20px;
    position: relative;
    z-index: 2;
  }
  
  .pageSection .sectionContent .sectionDescription.breakWidth {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    position: relative;
    z-index: 2;
  }

  /* Grids */
  .solutionsOverview {
    grid-template-columns: auto;
  }
  .solutionsOverview .solutionItem {
    height: auto;
    padding: 30px 40px 30px 40px;
  }
  .solutionsOverview {
    flex-direction: column;
    align-items: center;
    grid-row-gap: 20px;
  }
  .solutionsOverview .solutionItem {
    margin: 0 0 20px 0 !important;
  }
  .solutionsOverview .solutionItem.three {
    width: 100%;
    max-width: 400px;
  }
  .solutionsOverview .solutionItem.two {
    width: 100%;
    max-width: 400px;
  }

  /* CTAs */
  .CTATitle {
    text-align: center;
  }
  .CTATitle.alt {
    text-align: left;
  }
  .CTABody {
    margin-left: auto;
    margin-right: auto;
  }
  .CTADescription {
    text-align: center;
  }
  .buttonContainer {
    text-align: center;
  }
  .jointCTASection.alt {
    text-align: center;
  }

  /* Calendy container */
  .calendlyContainer {
    margin-top: 50px;
    position: relative;
    min-height: 680px;
  }

  /* Demo page responsive styles */
  .demoVideoSection {
    margin-bottom: 20px;
  }
  
  .demoVideoThumbnail {
    height: auto;
  }

  .demoMainHeading {
    margin-bottom: 30px;
  }

  .demoMainHeading h1 {
    font-size: 36px;
  }

  .demoMainDescription {
    font-size: 18px;
    line-height: 26px;
  }

  .demoMainDescription .desktop-text {
    display: none;
  }

  .demoMainDescription .mobile-text {
    display: block;
  }

  .demoVideoText {
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    margin-bottom: 15px;
  }

  .demoVideoText .desktop-text {
    display: none;
  }

  .demoVideoText .mobile-text {
    display: block;
  }

  .demoVideoThumbnail {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  @media (max-width: 480px) {
    .demoVideoContainer {
      padding-bottom: 56.25%; /* Consistent aspect ratio on smaller screens */
    }
    
    .demoMainHeading h1 {
      font-size: 28px;
    }

    .demoMainDescription {
      font-size: 16px;
      line-height: 24px;
    }
    
    .demoVideoText {
      font-size: 15px;
    }

    /* Ensure mobile demo video stays centered and proper size */
    .demoHeader .demoVideoSection .demoVideoThumbnail {
      max-width: 100% !important;
      width: 100% !important;
      margin: 0 auto !important;
      display: block !important;
    }
    
    .demoHeader .demoVideoSection {
      text-align: center !important;
    }
  }

  .demoDescription {
    font-size: 16px;
    line-height: 28px;
    text-align: center;
    margin-bottom: 20px;
  }

  /* Images */
  .imageContainer {
    text-align: center;
    margin-bottom: 50px;
  }
  .videoThumbNailContainer {
    display: none;
  }
  .mobileVideoThumbNailContainer {
    display: block;
    margin-top: 50px;
    text-align: center;
  }
  .videoThumbNail {
    max-width: 90%;
    margin-right: 0;
  }
  .showcaseImage {
    max-width: 90%;
    margin-right: 0;
  }
  .atsLogos {
    display: none;
  }
  .atsLogosMobile {
    display: inline-block;
  }
  .advertiseImage {
    width: 100%;
  }

  /* Icons */
  .securityIcon {
    margin-top: 50px;
  }
  .integrationIcon {
    margin-top: 50px;
  }
  .partnerIcon {
    margin-top: 50px;
  }

  /* Illustrations */
  .peopleWorkingIllustration {
    margin-right: 20px;
  }
  .partnerHandshakeIllustration {
    margin-right: 25px;
  }
  .internalMobilityIllustration {
    margin-right: 20px;
  }
  .employeeReferralIllustration {
    margin-right: 20px;
  }
  .alumniConnectIllustration {
    margin-right: 20px;
  }
  .howItWorksIllustration {
    margin-bottom: 20px;
  }
  .contactIllustration {
    margin-top: 40px;
  }

  /* Bespoke section padding */
  .pageSection .hireUpWaySection.im .communication {
    text-align: right;
  }
  .pageSection .hireUpWaySection.im .engagement {
    text-align: left;
    padding-left: 20px;
  }
  .pageSection .hireUpWaySection.im .tracking {
    text-align: right;
    padding-right: 20px;
  }

  .pageSection .hireUpWaySection.er .communication {
    text-align: left;
  }
  .pageSection .hireUpWaySection.er .engagement {
    text-align: right;
    padding-right: 20px;
  }
  .pageSection .hireUpWaySection.er .tracking {
    text-align: left;
    padding-left: 20px;
  }

  .pageSection .hireUpWaySection.ac .communication {
    text-align: right;
  }
  .pageSection .hireUpWaySection.ac .engagement {
    text-align: left;
    padding-left: 20px;
  }
  .pageSection .hireUpWaySection.ac .tracking {
    text-align: right;
    padding-right: 20px;
  }

  /* Video player modal */
  .modal-video-movie-wrap {
    width: 90% !important;
    margin: 0 auto !important;
  }

  /* Security Overview */
  .securityOverview {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Accordian Menu */
  .accordion__section {
    width: 100%;
  }

  /* Early Access */
  .ea-content {
    display: block;
  }
  .ea-left,
  .ea-right {
    display: block;
  }
  .ea-right .ea-form {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  /* Support Form */
  .supportForm {
    margin-top: 50px;
  }

  .headlineList {
    list-style: none;
  }

  .ratingBadge {
    margin-left: auto;
    margin-right: auto;
  }

  .contactForm {
    margin: 40px 0 20px 0;
  }
  .contactPage .contactForm {
    margin: -40px 0 100px 0;
  }

  .button {
    margin-left: auto;
    margin-right: auto;
  }

  /* Filo */
  .filoDemoPositioning {
    display: flex;
    justify-content: center;
    padding-bottom: 70px;
  }
}

@media (max-width: 900px) {
  .clientBanner,
  .atsBanner {
    grid-template-columns: repeat(2, 1fr);
  }

  .solutionsOverview {
    flex-direction: column;
    align-items: center;
    grid-row-gap: 20px;
  }
  .solutionsOverview .solutionItem {
    margin: 0 0 20px 0 !important;
  }
  .solutionsOverview .solutionItem.three {
    width: 100%;
    max-width: 400px;
  }
  .solutionsOverview .solutionItem.two {
    width: 100%;
    max-width: 400px;
  }

  .revolutionisingReferralsContainer {
    flex-direction: column;
    align-items: unset;
    width: 60%;
  }
  .revolutionisingReferralsContainer .line-horizontal {
    display: none;
  }
  .revolutionisingReferralsItem.one {
    height: 200px;
  }
  .revolutionisingReferralsItem.two {
    height: 200px;
  }
  .revolutionisingReferralsItem.three {
    height: 200px;
  }
  .revolutionisingReferralsItem.four {
    height: 200px;
  }
  .revText {
    padding: 0px 10px 0 10px;
  }
}

@media (max-width: 870px) {
  .tryCTA .tryCTAGraphic {
    height: 200px;
  }
  .cultureCTA .cultureCTAGraphic {
    height: 110px;
  }
  .tryCTALeft,
  .cultureCTALeft {
    margin-left: 50px !important;
  }
  .CTAHeader {
    font-size: 24px;
  }

  /* Backgrounds */
  .whiteGreyBackground {
    background: linear-gradient(to bottom, #ffffff 15%, #f8f8f8 0%);
  }
  .greyWhiteBackground {
    background: linear-gradient(to bottom, #f8f8f8 90%, #ffffff 10%);
  }
  .coreGradient {
    background: linear-gradient(to bottom right, #41a8a4, #4294b5);
  }
  .internalGradient {
    background: linear-gradient(to bottom right, #6c63ff, #230bb4);
  }
  .referralGradient {
    background: linear-gradient(to bottom right, #4d8af0, #33bec7);
  }
  .alumniGradient {
    background: linear-gradient(to bottom right, #fb6592, #6586fb);
  }

  /* Curve breaks */
  .curveBreak.header {
    display: none;
  }
  .curveBreak.mobile {
    display: block;
  }
  .curveBreakSolutions {
    top: 90%;
  }

  /* Grids */
  .whatYouGetContainer .whatYouGetGrid {
    grid-column-gap: 100px;
  }

  /* Images */
  .featureShowcase {
    width: 100%;
  }
  .advertiseImage {
    width: 100%;
  }

  /* Illustrations */
  .peopleWorkingIllustration {
    display: none;
  }
  .partnerHandshakeIllustration {
    margin-bottom: 25px;
  }
  .disruptiveIllustration {
    display: block;
    margin: 20px auto 0 auto;
    width: 245.3px;
    height: 222px;
  }
  .internalMobilityIllustration {
    display: none;
  }
  .employeeReferralIllustration {
    display: none;
  }
  .alumniConnectIllustration {
    display: none;
  }
  .imCommunicationIllustration,
  .erCommunicationIllustration,
  .acCommunicationIllustration {
    width: 335px;
  }
  .imTrackingIllustration,
  .erTrackingIllustration,
  .acTrackingIllustration {
    width: 282px;
    margin-bottom: 40px;
  }
  .imEngagementIllustration {
    width: 287px;
    margin-bottom: 40px;
  }
  .erEngagementIllustration {
    width: 245px;
    margin-bottom: 40px;
  }
  .acEngagementIllustration {
    width: 287px;
    margin-bottom: 40px;
  }
  .designIllustration {
    width: 280px;
    height: auto;
    margin-bottom: 40px;
  }
  .buildIllustration {
    width: 265px;
    height: auto;
    margin-bottom: 40px;
  }
  .transferIllustration {
    width: 250px;
    height: auto;
    margin-bottom: 40px;
  }
  .pricingIllustration {
    display: none;
  }
  .pricingIllustrationMobile {
    display: block;
  }
  .stickyNoteIllustration {
    display: none;
  }
  .stickyNoteIllustrationMobile {
    display: block;
  }

  /* General background patterns */
  .imScribble4,
  .erScribble4,
  .acScribble4 {
    display: none;
  }

  /* Home Background patterns */
  .homeSribble1 {
    width: 395px;
    right: 30px;
    top: auto;
  }
  .homeCircle1 {
    top: auto;
    bottom: 50px;
  }

  /* ER Background patterns */
  .erWave3 {
    right: 0;
    left: auto;
  }

  /* Pricing Background patterns */
  .pricingScribble1 {
    display: none;
  }

  /* Partner Background patterns */
  .partnersScribble1 {
    display: none;
  }

  /* Page sections */
  .pageSection .sectionContent.disruptive {
    padding-top: 120px;
  }

  /* Page headers */
  .pageSection.homeHeader {
    padding-top: 100px;
  }
  .pageSection.security {
    padding-top: 100px;
    height: auto;
  }
  .pageSection.serviceHeader {
    padding-top: 100px;
    height: 400px;
  }
  .pageSection.pricingHeader {
    padding-top: 100px;
    height: 500px;
  }
  .pageSection.partnersHeader {
    padding-top: 100px;
  }
  .pageSection.contactHeader {
    padding-top: 100px;
  }
  .pageSection .sectionContent.flex {
    flex-direction: column;
    align-items: flex-start;
  }
  .pageSection .sectionContent.flex.mobileReverse {
    flex-direction: column-reverse;
  }
  .pageSection .sectionContent .sectionContent40 {
    width: 100%;
  }
  .pageSection .sectionContent .sectionContent60 {
    width: 100%;
  }
  .pageSection .sectionContent .sectionContent50 {
    width: 100%;
  }
  .pageSection .sectionContent .sectionContentLeft {
    width: 100%;
  }
  .pageSection .sectionContent .sectionContentRight {
    width: 100%;
  }

  /* Solution pages banner */
  .pageSection .sectionContent .solutionBanner {
    flex-direction: column;
  }
  .pageSection .sectionContent .solutionBanner .bannerItem {
    margin: 0 0 45px 0;
  }
  .pageSection .sectionContent .solutionBanner .bannerItem:last-child {
    margin-bottom: 0;
  }

  /* Solution page CTA */
  .button.learnmore {
    margin-top: 50px;
  }

  /* Bespoke section padding */
  .pageSection .hireUpWaySection {
    padding: 30px 0 70px 0;
  }
  .pageSection .benefitsSection {
    padding: 30px 0 50px 0;
  }

  /* Contact form */
  .contactForm {
    margin: 40px 0 20px 0;
  }
  .contactPage .contactForm {
    margin: -40px 0 100px 0;
  }

  /* Footer */
  .footerBottom {
    flex-direction: column-reverse;
    margin: 40px 0 20px 0;
  }
  .footerBottomLeft {
    display: block;
    margin: 40px auto 0 0;
  }
  .footerBottomLeft .socialIcons {
    margin: 0 0 30px 0;
  }
  .footerBottomRight .productShowcase {
    display: none;
  }
  .footerBottomRight .productShowcaseMobile {
    display: block;
  }

  .rh_metrics_input {
    width: 90%;
  }
}

@media (max-width: 850px) {
  .referralHealthResults {
    flex-direction: column;
  }
}

@media (max-width: 800px) {
  /* Grids */
  .whatYouGetContainer .whatYouGetGrid {
    grid-template-columns: auto;
    grid-row-gap: 50px;
  }

  .featurePadding {
    padding-bottom: 30px;
  }
  .securityOverview {
    margin-bottom: 0;
  }

  .featureColumns {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .featureColumns .column {
    margin: 0 0 50px 0;
    width: 500px;
  }
  .featureColumns .column:last-child {
    margin: 0;
  }

  .benefitsGraphic {
    width: 100%;
  }

  /* Pricing */
  .pricingStep {
    width: 100%;
    line-height: 30px;
    padding: 20px;
  }
  .pricingStep .stepLogo {
    width: auto;
    margin-right: 20px;
  }
  .pricingStepIcon {
    width: 70px;
    height: 70px;
  }

  /* CTAs */
  .CTAInputFieldFull {
    width: 100% !important;
  }
  .CTABodyFull {
    width: 100%;
  }

  /* Footer */
  .footerTop {
    display: block;
  }
  .footerTopLeft {
    display: flex;
    flex-direction: column;
  }
  .footerTopRight {
    margin-top: 100px;
  }
  .footerLinks {
    justify-content: center;
  }
}

@media (max-width: 750px) {
  .rh_metrics_container > * {
    width: 100%;
  }

  .advertisingOptionsGrid {
    flex-direction: column;
  }
  .advertisingOptionsGrid div {
    margin: 0 0 40px 0;
  }
  .advertisingOptionsGrid div:last-child {
    margin: 0;
  }
}

@media (max-width: 700px) {
  /* Benefits Section */
  .benefitsSection .benefitCarousel {
    display: none;
  }

  /* Pricing */
  .pageSection.pricingHeader {
    height: auto;
    padding-bottom: 40px;
  }
  .pageSection.pricingPageHeader {
    height: auto;
    min-height: auto;
    padding: 60px 0 40px;
    overflow: visible;
  }
  .pricingTitle {
    display: block;
    text-align: center;
  }
  .pricingTitle h1 {
    margin-right: 0;
    font-size: 36px;
    line-height: 1.3;
  }
  .pricingTitle h1:first-child {
    margin-bottom: 25px;
  }
  .pageSection .sectionContent .sectionDescription {
    width: 100%;
    padding: 0 15px;
    margin-top: 30px !important;
    font-size: 16px !important;
    word-wrap: break-word;
    position: relative;
    z-index: 2;
  }
  
  .pageSection .sectionContent .sectionDescription.breakWidth {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px;
    position: relative;
    z-index: 2;
  }
  
  .videoThumbNail2 {
    width: 100%;
  }

  .revolutionisingReferralsContainer {
    width: 60%;
  }
  .revolutionisingReferralsItem.one {
    height: 200px;
  }
  .revolutionisingReferralsItem.two {
    height: 200px;
  }
  .revolutionisingReferralsItem.three {
    height: 200px;
  }
  .revolutionisingReferralsItem.four {
    height: 200px;
  }
  .revText {
    padding: 0px 15px 0 15px;
  }
  .rh_experience_container > * {
    width: 100%;
  }
  .referralHealthOverview .rh_accordion {
    flex-direction: column;
    align-items: baseline;
  }

  .sectionText h1 {
    font-size: 32px !important;
    line-height: 1.3 !important;
    padding: 0 15px;
    margin-bottom: 0;
    color: #000000 !important;
  }
  
  .sectionText.whiteText h1 {
    color: #ffffff !important;
  }

  .pageSection .contentPadHorizontal {
    padding-left: 15px;
    padding-right: 15px;
    position: relative;
    z-index: 2;
  }
}

@media (max-width: 620px) {
  .clientBanner {
    padding-top: 50px;
  }

  .tryPreviewImage {
    width: 100%;
    height: auto;
  }

  /* Modal */
  .overlay .modal {
    padding: 20px 20px 20px 20px;
  }
  .overlay .modal .modalContent .modalTitle {
    font-size: 24px;
  }

  /* Backgrounds */
  .whiteGreyBackground {
    background: linear-gradient(to bottom, #ffffff 10%, #f8f8f8 0%);
  }

  /* Illustrations */
  .partnerHandshakeIllustration {
    width: 303px;
    height: 242px;
    object-fit: contain;
  }

  /* images */
  .employeeCentricImage,
  .atsLogosMobile,
  .supportImage {
    width: 90%;
  }
  .placeholderImage {
    width: 100%;
  }
  .enterprise_ireland {
    width: 350px;
  }
  .award {
    width: 200px;
  }

  /* IM Background patterns */
  .imScribble1 {
    width: 150px;
    top: 0;
    right: 10%;
  }
  .imScribble2 {
    width: 250px;
    bottom: 28%;
  }
  .imScribble3 {
    width: 280px;
    left: -50px;
    bottom: 20%;
  }
  .imCircle1 {
    left: -50px;
  }
  .imSpeckles1 {
    top: 3%;
    left: 10%;
  }
  .imWave1 {
    top: 37%;
    left: -30px;
  }

  /* ER Background patterns */
  .erScribble1 {
    width: 300px;
    top: -20%;
    right: 10%;
  }
  .erScribble2 {
    width: 300px;
    top: 25%;
    left: auto;
    right: 10%;
  }
  .erScribble3 {
    width: 300px;
    top: 57%;
  }
  .erWave1 {
    top: 69%;
    left: -30px;
  }
  .erWave2 {
  }
  .erWave3 {
    width: 110px;
    right: 0;
    left: auto;
  }

  /* AC Background patterns */
  .acScribble1 {
    width: 190px;
    top: -20%;
    left: 12%;
  }
  .acScribble2 {
    width: 340px;
    top: 50%;
  }
  .acScribble3 {
    width: 380px;
    right: auto;
    left: -80px;
    bottom: 20%;
  }
  .acSpeckles1 {
    width: 80px;
  }
  .acSpeckles2 {
    top: 3%;
    left: 7%;
  }
  .acWave1 {
    width: 100px;
    top: 35%;
  }

  /* Service Background patterns */
  .serviceScribble1 {
    width: 280px;
    top: 10%;
  }
  .serviceScribble2 {
    width: 280px;
    top: 60%;
  }
  .serviceWave1 {
    width: 70px;
    top: 47%;
  }
  .serviceCircles1 {
    width: 100px;
    bottom: 10%;
  }

  /* Pricing Background patterns */
  .pricingScribble1 {
    width: 300px;
    top: 100%;
  }
  .pricingScribble2 {
    display: none;
  }
  .pricingSpeckles1 {
    bottom: 45%;
  }

  /* Contact Us Background patterns */
  .contactScribble1 {
    display: none;
  }
  .contactSpeckles2 {
    width: 130px;
  }

  /* Page headers */
  .pageSection .sectionContent .sectionText,
  .altSectionText {
    font-size: 24px;
    line-height: 40px;
  }

  /* Page sections */
  .pageSection .sectionContent.disruptive {
    padding-top: 100px;
  }

  /* Contact form */
  .contactForm {
    padding: 20px 20px 40px 20px;
  }

  .revolutionisingReferralsContainer {
    width: 70%;
  }

  .rh_accordion__title {
    padding-left: 20px;
  }
  .rh_accordion__text {
    padding: 0px 20px 20px 40px;
  }
  .switch-field {
    padding-left: 20px;
  }
  .kpmgLarge {
    height: 60px;
  }

  /* Filo */
  .filoDemoContainer {
    display: flex;
    flex-direction: column;
  }
  .filotrymecontainer {
    display: none;
  }
  .filotrymecontainermobile {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-end;
    padding-top: 10px;
  }
  .filotrymecontainermobile span {
    font-size: 28px;
    font-weight: 500;
    padding-left: 10px;
    margin-bottom: -12px;
    margin-right: -10px;
  }
}

@media (max-width: 580px) {
  .tryCTA,
  .cultureCTA {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 30px;
  }
  .tryCTA .tryCTALeft,
  .cultureCTA .cultureCTALeft {
    margin: 0 !important;
  }
  .tryCTA .tryCTAGraphic {
    display: none;
  }
  .tryCTA .tryCTAGraphicMobile {
    display: block;
    height: 200px;
    width: auto;
    object-fit: contain;
    margin-bottom: 50px;
  }
  .cultureCTA .cultureCTAGraphic {
    margin-bottom: 50px;
  }
  .cultureCTABlueBlob {
    display: none;
  }
}

@media (max-width: 560px) {
  .pageSection .sectionContent .sectionDescription {
    width: 100%;
  }

  /* Features */
  .advertisingOptionsGrid {
    grid-template-columns: auto;
    font-size: 16px;
  }
  .advertisingIcon {
    width: 40px;
  }
  .featureColumns .column {
    width: 100%;
    padding: 0 20px;
  }

  /* Buttons */
  .button {
    margin-left: auto;
    margin-right: auto;
  }

  /* Background patterns */
  .imWave2,
  .erWave2,
  .acWave2 {
    display: none;
  }

  /* Background patterns */
  .homeWave1 {
    bottom: 40%;
  }
  .homeSribble3 {
    display: none;
  }

  .clientBanner,
  .atsBanner {
    grid-gap: 50px;
  }
  .clientBanner .clientLogo,
  .atsBanner .atstLogo {
    height: 40px;
  }

  .complianceIcon,
  .headsetIcon {
    height: 150px;
  }
}

@media (max-width: 550px) {
  /* Backgrounds */
  .whiteGreyBackground {
    background: linear-gradient(to bottom, #ffffff 6%, #f8f8f8 0%);
  }

  /* Early Access */
  .earlyAccessPage {
    padding: 0 30px 0 30px;
  }
  .ea-right .ea-form {
    padding: 30px;
    border-radius: 10px;
  }

  .pricingBlueBlob {
    display: none;
  }
  .pricingGreenBlob {
    display: none;
  }
}

@media (max-width: 510px) {
  .clientBanner .clientLogo,
  .atsBanner .atsLogo {
    height: 30px;
  }
}

@media (max-width: 476px) {
  .filoJointCTASection {
    flex-direction: column;
  }
  .secondaryButton {
    margin-top: 20px;
  }
}

@media (max-width: 457px) {
  .featuresJointCTASection .primaryDemoButton {
    margin-right: 0px;
  }
  .homePageFiloButton {
    margin-right: 0px;
  }
}

@media (max-width: 430px) {
  .ratingBadge {
    width: 100%;
  }

  /* Backgrounds */
  .whiteGreyBackground {
    background: linear-gradient(to bottom, #ffffff 6%, #f8f8f8 0%);
  }

  /* Illustrations */
  .pricingIllustrationMobile {
    margin-left: auto;
    margin-right: auto;
  }

  /* Solution Items */
  .solutionsOverview .solutionItem.alt {
    height: 550px;
  }

  /* Images */
  .enterprise_ireland {
    width: 100%;
  }
  .award {
    width: 150px;
  }
  .feature_mobile_app {
    width: calc(100% - 20px);
  }

  /* CTAs */
  /*.CTABody{width: 100%;}*/
  .CTAInputField {
    width: 100%;
  }

  /* Page headers */
  .pageSection.pricingHeader {
    padding-top: 80px;
    height: 300px;
  }

  .revolutionisingReferralsContainer {
    width: 80%;
  }

  .ratingBadge {
    width: 100%;
  }
  .ratingBadge .stars {
    width: 100px;
  }
  .pageSection.pricingPageHeader {
    padding-top: 80px;
    height: 300px;
  }
}

@media (max-width: 385px) {
  /* Illustrations */
  .stickyNoteIllustrationMobile {
    width: 310px;
  }
  .pricingIllustrationMobile {
    width: 310px;
  }

  .integrationIcon {
    width: 200px;
  }
  .integrationJobIcon,
  .integrationApplyIcon,
  .contactIllustration {
    width: 150px;
  }
  .integrationUpdateIcon,
  .partnerIcon {
    width: 200px;
  }
  .securityIcon {
    width: 180px;
  }

  .externalCommunity {
    width: 150px;
  }

  /* CTAs */
  .jointCTASection .ctaButton {
    padding: 0 15px;
  }

  /* Early Access */
  .earlyAccessPage {
    width: 100%;
    padding: 0 20px 0 20px;
  }
}

@media (max-width: 345px) {
  /* Illustrations */
  .imCommunicationIllustration,
  .erCommunicationIllustration,
  .acCommunicationIllustration {
    width: 300px;
  }

  /* Page headers */
  .pageSection.pricingHeader {
    padding-top: 100px;
    height: 600px;
  }
}

@media (max-width: 330px) {
  /* Illustrations */
  .partnerHandshakeIllustration {
    width: 280px;
    height: auto;
  }

  .howItWorksIllustration {
    width: 130px;
  }
}

@media (max-width: 480px) {
  .pageSection .sectionContent .sectionDescription {
    font-size: 16px !important;
    line-height: 1.5;
  }
  
  .sectionText h1 {
    font-size: 28px !important;
    color: #000000 !important;
  }
  
  .sectionText.whiteText h1 {
    color: #ffffff !important;
  }

  .pageSection.pricingPageHeader {
    padding: 40px 0 30px;
  }

  @media (max-width: 480px) {
    .centerText > div {
      padding: 20px;
    }
  }
}

/* Mobile Pricing Accordion Styles */
@media (max-width: 1023px) {
  .desktopPricingTable {
    display: none;
  }
  
  .mobilePricingAccordion {
    display: block;
    width: 100%;
    margin: 30px 0;
  }
  
  .pricingAccordionItem {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px 0 rgba(189, 189, 189, 0.15);
  }
  
  .pricingAccordionHeader {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 22px;
  }
  
  .pricingAccordionItem:first-child .pricingAccordionHeader {
    background-color: #f8f8f8;
    color: #333;
  }
  
  .pricingAccordionItem:nth-child(2) .pricingAccordionHeader {
    background-color: #d6f2f3;
    color: #333;
  }
  
  .pricingAccordionItem:nth-child(3) .pricingAccordionHeader {
    background-color: #e6f5f8;
    color: #333;
  }
  
  .pricingAccordionContent {
    padding: 20px;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.05);
  }
  
  .planDescription {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .planDescription p {
    font-size: 18px;
    font-weight: 700;
    margin: 10px 0;
  }
  
  .planDescription span {
    font-size: 14px;
    font-weight: normal;
  }
  
  .planDescription .price {
    font-size: 22px;
    font-weight: 800;
    margin-top: 15px;
  }
  
  .planFeatures {
    margin-bottom: 20px;
  }
  
  .featureItem {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
  }
  
  .featureItem:last-child {
    border-bottom: none;
  }
  
  .featureItem .checkmark {
    font-size: 20px;
    font-weight: bold;
  }

   /* Add appropriate spacing for mobile pricing header */
   .pageSection.pricingPageHeader {
    min-height: 120vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  /* Make buttons stack on mobile */
  .pricingPageHeader .jointCTASection {
    flex-direction: column;
    align-items: center;
  }
  
  .pricingPageHeader .jointCTASection a {
    margin-right: 0 !important;
    margin-bottom: 20px;
    width: 100%;
    max-width: 250px;
  }
  
  .pricingPageHeader .jointCTASection button {
    width: 100%;
    max-width: 250px;
  }

   /* Make sure the pricing section is not visible on initial load */
   .pageSection.pricingPageHeader {
    min-height: 100vh;
    margin-bottom: 30px;
  }
  
  /* Remove unnecessary spacing */
  .pageSection.pricingPageHeader .jointCTASection {
    margin-top: 40px !important;
    margin-bottom: 40px !important;
    padding-bottom: 0 !important;
  }
  
  /* Make buttons stack on mobile */
  .pricingPageHeader .jointCTASection {
    flex-direction: column;
    align-items: center;
  }
  
  .pricingPageHeader .jointCTASection a {
    margin-right: 0 !important;
    margin-bottom: 20px;
    width: 100%;
    max-width: 250px;
  }
  
  .pricingPageHeader .jointCTASection button {
    width: 100%;
    max-width: 250px;
  }
}

@media (min-width: 1024px) {
  .mobilePricingAccordion {
    display: none;
  }
}

@media (max-width: 767px) {
  .jointCTASection {
    flex-direction: column;
    align-items: center;
  }

  .jointCTASection a, 
  .jointCTASection > div {
    margin-right: 0 !important;
    margin-bottom: 20px;
    width: 100%;
    max-width: 250px;
  }
  
  .jointCTASection button {
    width: 100%;
    max-width: 250px;
  }

  /* Make checkmark square on mobile */
  .sectionDescription span[style*="backgroundColor: #33bec7"] {
    border-radius: 4px !important;
  }

  .ReactModal__Content, 
  .contact-sales-modal {
    width: 85% !important;
    max-width: 85% !important;
    inset: unset !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    border-radius: 10px !important;
    margin: 0 !important;
    padding: 15px !important;
  }
  
  .ReactModal__Overlay,
  .contact-sales-overlay {
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* Reset any dynamic styles applied via JS */
  .ReactModal__Content[style*="width"],
  .contact-sales-modal[style*="width"] {
    width: 85% !important;
    max-width: 85% !important;
  }
}

/* Make the pricing table responsive at smaller widths */
@media (max-width: 1440px) {
  /* Fix the pricing table width */
  .pricingTable {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  /* Adjust cell padding to make the table more compact */
  .pricingHeader, 
  .pricingCell, 
  .planHeaderCell, 
  .planDescriptionCell, 
  .planPriceCell,
  .featureCell,
  .featureCheckCell,
  .ctaBottomCell {
    padding: 10px !important;
  }
  
  /* Adjust text size for better fit */
  .planTitle {
    font-size: 26px !important;
  }
  
  .planDescription {
    font-size: 18px !important;
  }
  
  .planPrice {
    font-size: 22px !important;
  }
  
  /* Make header more responsive */
  .pageSection .sectionContent .sectionText,
  .sectionText h1 {
    padding-left: 5px !important;
    padding-right: 5px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    color: #000000 !important;
  }
  
  .sectionText.whiteText h1 {
    color: #ffffff !important;
  }
  
  /* Fix positioning of decorative blobs */
  .pricingGreenBlob {
    left: -40px !important;
  }
  
  .pricingBlueBlob {
    right: -40px !important;
  }
  
  /* Ensure the content is properly centered */
  .contentPadHorizontal {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
  }
  
  /* Ensure all containers respect the viewport width */
  .sectionContent {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  
  /* Fix the button containers */
  .jointCTASection {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .pricingTable, .desktopPricingTable {
    overflow-x: hidden !important;
    margin-bottom: 60px !important;
    position: relative !important;
  }
  
  body, html {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
}


/* Improved fix for the blob issue at 1400x900 resolution */

@media (min-width: 1400px) and (max-width: 1441px) {
  /* Make the blobs smaller and position them differently */
  .pricingGreenBlob {
    position: absolute !important;
    left: 5px !important;
    top: -30px !important;
    height: 80px !important;
    width: auto !important;
    z-index: 1 !important;
  }

  /* Make sure the container allows overflow */
  .desktopPricingTable.posRel {
    padding: 40px 10px !important;
    position: relative !important;
    overflow: visible !important;
  }
  
  /* Ensure the page section doesn't cut off elements */
  .pageSection#pricingSection {
    overflow: visible !important;
    padding-bottom: 40px !important;
  }
  
  /* Force the body and html to hide horizontal overflow but allow vertical */
  body, html {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
}

/* Fix for narrow screens like Surface Duo (540px width) */
@media (max-width: 600px) {
  .simpleStepsGrid {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }
  
  .simpleStepCard {
    padding: 30px 25px !important;
    text-align: center !important;
  }
  
  .simpleStepNumber {
    font-size: 2rem !important;
  }
  
  .simpleStepTitle {
    font-size: 18px !important;
    line-height: 1.4 !important;
  }
  
  .solutionFeaturesGrid {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }
  
  .solutionFeatureCard {
    padding: 30px 25px !important;
    border-right: none !important;
    border-bottom: 1px solid #e9ecef !important;
    min-height: auto !important;
  }
  
  .solutionFeatureCard:last-child {
    border-bottom: none !important;
  }
  
  .solutionFeatureHeader {
    flex-direction: column !important;
    text-align: center !important;
  }
  
  .solutionFeatureIcon {
    width: 55px !important;
    height: 55px !important;
    margin-right: 0 !important;
    margin-bottom: 15px !important;
  }
  
  .solutionFeatureTitle {
    font-size: 20px !important;
  }
  
  .solutionFeatureDescription {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }
  
  .benefitsGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px !important;
  }
  
  .benefitItem {
    padding: 20px 15px !important;
  }
  
  .benefitIcon {
    font-size: 1.8rem !important;
    margin-bottom: 12px !important;
  }
  
  .benefitText {
    font-size: 1rem !important;
  }
}

/* Override for mobile screens to stack benefits vertically */
@media (max-width: 767px) {
  .benefitsGrid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .benefitItem {
    padding: 20px 15px !important;
  }
  
  .benefitIcon {
    font-size: 1.8rem !important;
    margin-bottom: 12px !important;
  }
  
  .benefitText {
    font-size: 1rem !important;
  }
}

/* Fix for medium screens where benefits grid shows 3+1 layout */
@media (max-width: 1000px) and (min-width: 768px) {
  .benefitsGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px !important;
  }
  
  .benefitItem {
    padding: 20px 15px !important;
  }
  
  .benefitIcon {
    font-size: 1.8rem !important;
    margin-bottom: 12px !important;
  }
  
  .benefitText {
    font-size: 1rem !important;
  }
}

@media (min-width: 1400px) and (max-width: 1450px) {
  /* Add right padding to the footer navigation links container */
  .footerLinks, .footerTopRight {
    padding-right: 10px !important;
  }
  
  /* Ensure the footer container has proper padding */
  .footerTop, .footerBottom {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* Fix for 1396x900 resolution */
@media (min-width: 1360px) and (max-width: 1440px) {
  /* Add padding to the right side of the footer navigation */
  .footerLinks, 
  .footerTopRight {
    padding-right: 10px !important;
  }
  
  /* Ensure footer containers have proper padding */
  .footerTop, 
  .footerBottom {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  /* Fix any absolute positioning for footer elements */
  .footerTopRight,
  .footerBottomRight {
    right: 20px !important;
  }
  
  /* Ensure the footer content stays within bounds */
  .footerLogo,
  .footerLinks,
  .footerBottomLeft,
  .footerBottomRight {
    margin-right: 15px !important;
  }
}

/* Fix for tablets (like 823x900) */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Increase spacing between footer link columns */
  .footerLinks .leftLinks {
    margin-right: 50px !important;
  }
  
  /* Center the footer content better */
  .footerTop,
  .footerBottom {
    padding: 0 30px !important;
    justify-content: space-between !important;
  }

  /* Demo page specific - larger video thumbnail for iPad only */
  .demoHeader .demoVideoSection .demoVideoThumbnail {
    max-width: 75% !important;
    width: 75% !important;
    margin: 0 auto !important;
    display: block !important;
  }
  
  .demoHeader .demoVideoSection {
    text-align: center !important;
  }
}

/* Add a generic padding fix to ensure consistent spacing */
.footerLinks a, 
.footerLinks li {
  padding-right: 10px !important;
}

/* Apply consistent padding to the footer container for all screen sizes */
.footerBackground {
  overflow-x: hidden !important; /* Prevent horizontal scrollbars */
}

/* Default footer container styling improvements */
.footerTop, 
.footerBottom {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* Mobile Responsive Styles for Demo Page */
@media (max-width: 768px) {
  .demoGridContainer {
    display: flex;
    flex-direction: column;
  }
  
  .demoGridRow {
    flex-direction: column;
    margin-bottom: 20px;
  }
  
  .demoGridCol {
    padding: 0;
    margin-bottom: 15px;
  }
  
  /* Mobile: Stack columns */
  .demoGridContainer {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .demoGridCol {
    padding: 0;
  }
  
  .demoVideoHeading {
    text-align: center;
    margin-bottom: 0;
    margin-left: 0;
  }
  
  .demoVideoHeading h2 {
    font-size: 24px;
    text-align: center;
  }
  
  .demoVideoSubheading {
    text-align: center;
    margin-bottom: 5px;
  }
  
  .demoVideoSubheading p {
    font-size: 16px;
    text-align: center;
    margin-bottom: 0;
  }
  
  .demoCTASection {
    text-align: center;
    margin-bottom: 5px;
  }
  
  .demoCTASection h2 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 0;
  }
  
  .demoCTASection p {
    font-size: 18px;
    text-align: center;
    margin-bottom: 0;
  }
  
  /* Mobile demo benefits styling */
  .demoBenefitsList {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    padding-left: 20px !important;
  }
  
  .demoBenefitsItem {
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: #333333 !important;
    margin-bottom: 10px !important;
    text-align: left !important;
  }
  
  
  .demoVideoSection {
    height: auto;
    margin-bottom: 30px;
  }
  
  .demoVideoThumbnail {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin-left: 0;
  }
}

/* iPad Mini and similar tablet dimensions */
@media (min-width: 768px) and (max-width: 820px) {
  .demoVideoSubheading {
    text-align: center;
    margin-bottom: 5px;
  }
  
  .demoCTASection {
    text-align: center;
    margin-bottom: 5px;
  }
}

/* iPad Air and similar tablet dimensions */
@media (min-width: 820px) and (max-width: 1024px) {
  .demoGridContainer {
    display: flex;
    flex-direction: column;
  }
  
  .demoGridRow {
    flex-direction: column;
    margin-bottom: 20px;
  }
  
  .demoGridCol {
    padding: 0;
    margin-bottom: 15px;
  }
  
  /* Tablet: Stack columns */
  .demoGridContainer {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .demoGridCol {
    padding: 0;
  }
  
  .demoVideoHeading {
    text-align: center;
    margin-bottom: 0;
    margin-left: 0;
  }
  
  .demoVideoHeading h2 {
    font-size: 24px;
    text-align: center;
  }
  
  .demoVideoSubheading {
    text-align: center;
    margin-bottom: 5px;
  }
  
  .demoVideoSubheading p {
    font-size: 18px;
    text-align: center;
    margin-bottom: 0;
  }
  
  .demoCTASection {
    text-align: center;
    margin-bottom: 5px;
  }
  
  .demoCTASection h2 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 0;
  }
  
  .demoCTASection p {
    font-size: 18px;
    text-align: center;
    margin-bottom: 0;
  }
  
  .demoVideoSection {
    height: auto;
    margin-bottom: 20px;
  }
  
  .demoVideoThumbnail {
    max-width: 80%;
    width: 80%;
    height: auto;
    margin: 0 auto;
    display: block;
  }
  
  .calendlyContainer {
    margin-top: 2px;
    min-height: 680px !important;
  }
}

/* Surface Pro 7 specific fixes */
@media (min-width: 912px) and (max-width: 1368px) {
  .calendlyContainer {
    margin-top: 2px;
    min-height: 680px !important;
  }
  
  /* Reduce Calendly height to prevent scrollbar */
  .calendlyContainer iframe {
    height: 680px !important;
    min-height: 680px !important;
  }
}

/* MacBook Pro and larger desktop screens */
@media (min-width: 1369px) {
  .demoVideoHeading {
    text-align: left;
    margin-bottom: 0;
    margin-left: 0;
  }
  
  .demoVideoHeading h2 {
    font-size: 24px;
    text-align: left;
  }
  
  .demoVideoSection {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
  }
  
  .demoVideoThumbnail {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    display: block;
    align-self: flex-start;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .demoVideoHeading h2 {
    font-size: 24px;
  }
  
  .demoCTASection h2 {
    font-size: 24px;
  }
  
  .demoCTASection p {
    font-size: 18px;
    margin-bottom: 0;
  }
  
  .demoVideoSection {
    margin-bottom: 20px;
  }
}
