/* ==========================================================================
   Theme Variants - Apply one of these classes to .intro element
   Available themes: intro-theme-beige, intro-theme-yellow, intro-theme-lightblue,
   intro-theme-green, intro-theme-whitepurple, intro-theme-blue, intro-theme-red,
   intro-theme-darkgrey, intro-theme-purple
   ========================================================================== */

.intro-theme-beige {
  --intro-card-bg-color: #FFF5C6;           /* Content box background color */
  --intro-card-text-color: #000000;         /* Content box title and text color */
  --intro-button-bg-color: #000000;         /* Button background color */
  --intro-button-text-color: #FFFFFF;       /* Button text color */
  --intro-tag-bg-color: rgba(0, 0, 0, 0.05);  /* Tag background color */
  --intro-tag-text-color: rgba(0, 0, 0, 0.8); /* Tag text color */
}

.intro-theme-yellow {
  --intro-card-bg-color: #FFDE40;           /* Content box background color */
  --intro-card-text-color: #000000;         /* Content box title and text color */
  --intro-button-bg-color: #000000;         /* Button background color */
  --intro-button-text-color: #FFFFFF;       /* Button text color */
  --intro-tag-bg-color: rgba(0, 0, 0, 0.05);  /* Tag background color */
  --intro-tag-text-color: rgba(0, 0, 0, 0.8); /* Tag text color */
}

.intro-theme-lightblue {
  --intro-card-bg-color: #E8FAFE;           /* Content box background color */
  --intro-card-text-color: #000000;         /* Content box title and text color */
  --intro-button-bg-color: #000000;         /* Button background color */
  --intro-button-text-color: #FFFFFF;       /* Button text color */
  --intro-tag-bg-color: rgba(0, 0, 0, 0.05);  /* Tag background color */
  --intro-tag-text-color: rgba(0, 0, 0, 0.8); /* Tag text color */
}

.intro-theme-green {
  --intro-card-bg-color: #42FF98;           /* Content box background color */
  --intro-card-text-color: #000000;         /* Content box title and text color */
  --intro-button-bg-color: #000000;         /* Button background color */
  --intro-button-text-color: #FFFFFF;       /* Button text color */
  --intro-tag-bg-color: rgba(0, 0, 0, 0.05);  /* Tag background color */
  --intro-tag-text-color: rgba(0, 0, 0, 0.8); /* Tag text color */
}

.intro-theme-whitepurple {
  --intro-card-bg-color: #FFFFFF;           /* Content box background color */
  --intro-card-text-color: #000000;         /* Content box title and text color */
  --intro-button-bg-color: #6A73EE;         /* Button background color */
  --intro-button-text-color: #FFFFFF;       /* Button text color */
  --intro-tag-bg-color: rgba(0, 0, 0, 0.05);  /* Tag background color */
  --intro-tag-text-color: rgba(0, 0, 0, 0.8); /* Tag text color */
}

.intro-theme-blue {
  --intro-card-bg-color: #2A33A4;           /* Content box background color */
  --intro-card-text-color: #FFFFFF;         /* Content box title and text color */
  --intro-button-bg-color: #FFFFFF;         /* Button background color */
  --intro-button-text-color: #000000;       /* Button text color */
  --intro-tag-bg-color: rgba(255, 255, 255, 0.1); /* Tag background color */
  --intro-tag-text-color: rgba(255, 255, 255, 0.8); /* Tag text color */
}

.intro-theme-red {
  --intro-card-bg-color: #FF5327;           /* Content box background color */
  --intro-card-text-color: #FFFFFF;         /* Content box title and text color */
  --intro-button-bg-color: #FFFFFF;         /* Button background color */
  --intro-button-text-color: #000000;       /* Button text color */
  --intro-tag-bg-color: rgba(255, 255, 255, 0.1); /* Tag background color */
  --intro-tag-text-color: rgba(255, 255, 255, 0.8); /* Tag text color */
}

.intro-theme-darkgrey {
  --intro-card-bg-color: #3E424C;           /* Content box background color */
  --intro-card-text-color: #FFFFFF;         /* Content box title and text color */
  --intro-button-bg-color: #FFFFFF;         /* Button background color */
  --intro-button-text-color: #000000;       /* Button text color */
  --intro-tag-bg-color: rgba(255, 255, 255, 0.1); /* Tag background color */
  --intro-tag-text-color: rgba(255, 255, 255, 0.8); /* Tag text color */
}

.intro-theme-purple {
  --intro-card-bg-color: #6A73EE;           /* Content box background color */
  --intro-card-text-color: #FFFFFF;         /* Content box title and text color */
  --intro-button-bg-color: #FFFFFF;         /* Button background color */
  --intro-button-text-color: #000000;       /* Button text color */
  --intro-tag-bg-color: rgba(255, 255, 255, 0.1); /* Tag background color */
  --intro-tag-text-color: rgba(255, 255, 255, 0.8); /* Tag text color */
}

/* ==========================================================================
   Intro Section Styles
   ========================================================================== */

/* ---------- Base Styles & Resets ---------- */
html, body {
  overflow-x: hidden;
  max-width: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Add smooth scrolling without JavaScript */
html {
  scroll-behavior: smooth;
}

/* ---------- Main Container Layout ---------- */
.intro {
  --intro-bg-position: center center; /* Default background position */
  box-sizing: border-box;
  padding: 0 64px;
  position: relative;
  width: 100%;
}

/* ---------- Background Position Variants ---------- */
.intro-bg-top-left { --intro-bg-position: top left; }
.intro-bg-top-center { --intro-bg-position: top center; }
.intro-bg-top-right { --intro-bg-position: top right; }
.intro-bg-center-left { --intro-bg-position: center left; }
.intro-bg-center-center { --intro-bg-position: center center; }
.intro-bg-center-right { --intro-bg-position: center right; }
.intro-bg-bottom-left { --intro-bg-position: bottom left; }
.intro-bg-bottom-center { --intro-bg-position: bottom center; }
.intro-bg-bottom-right { --intro-bg-position: bottom right; }

.intro__container {
  margin: 0 auto;
  max-width: 1792px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.intro__content {
  padding: 62px 0;
  position: relative;
  width: 100%;
}

/* ---------- Background Elements ---------- */
.intro__background-wrapper {
  background-color: #FFFFFF;
  border-radius: 36px;
  height: 100%;
  left: 0;
  margin: 0 auto;
  max-width: 1792px;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
  width: calc(100% - 128px);
  z-index: 0;
}

.intro__background {
  background-color: #FFFFFF;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

/* ---------- Images ---------- */
/* Large desktop image - only visible on 1440px+ */
.intro__desktop-image-large {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: var(--intro-bg-position);
  width: 100%;
}

/* Standard desktop image - only visible on medium screens */
.intro__desktop-image {
  display: none; /* Hidden by default, shown in media query */
  height: 100%;
  object-fit: cover;
  object-position: var(--intro-bg-position);
  width: 100%;
}

/* Mobile image - hidden on desktop, shown on mobile */
.intro__mobile-image {
  border-radius: 24px;
  display: none; 
  height: 240px;
  object-fit: cover;
  object-position: center right;
  width: 100%;
}

/* ---------- Card Styles ---------- */
.intro__card {
  background-color: var(--intro-card-bg-color);
  border-radius: 36px;
  box-sizing: border-box;
  color: var(--intro-card-text-color);
  margin-left: 62px;
  max-width: 582px;
  padding: 24px 30px 30px;
}

/* Set consistent width for all card content */
.intro__text {
  width: 100%;
  box-sizing: border-box;
}

/* Title, description, button all get consistent width */
.intro__title,
.intro__description,
.intro__btn {
  max-width: 100%;
  box-sizing: border-box;
}

/* Icon above the headline */
.intro__icon {
  display: block;
  margin-bottom: 16px;
  height: 64px;
  width: 64px;
  max-height: 64px;
  max-width: 64px;
}

/* Icon visibility classes */
.intro-icon-true .intro__icon {
  display: block;
}

.intro-icon-false .intro__icon {
  display: none;
}

.intro__title {
  font-family: 'YS Text Cond', 'Arial Narrow', Arial, sans-serif;
  font-size: 56px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 24px;
  margin-top: 0;
  color: var(--intro-card-text-color);
}

.intro__description {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 24px;
  font-family: 'YS Text', sans-serif;
  color: var(--intro-card-text-color);
}

/* ---------- Tags Styles ---------- */
.intro__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.intro__tag {
  background-color: var(--intro-tag-bg-color);
  border-radius: 12px;
  color: var(--intro-tag-text-color);
  font-family: 'YS Text', sans-serif;
  font-size: 14px;
  line-height: 1.2;
  padding: 4px 10px;
  white-space: nowrap;
}

/* ---------- Button Styles ---------- */
.intro__buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}
.intro__btn {
  background-color: var(--intro-button-bg-color);
  border-radius: 16px;
  box-sizing: border-box;
  color: var(--intro-button-text-color);
  display: block;
  font-family: 'YS Text', sans-serif;
  font-weight: 500;
  height: 64px;
  margin-left: 0;
  margin-right: 0;
  padding: 0 16px;
  text-align: center;
  line-height: 64px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  width: 100%;
}

.intro__btn--secondary {
  background-color: transparent;
  border: 2px solid var(--intro-button-bg-color);
  color: var(--intro-button-bg-color);
  line-height: 60px; /* Adjust line-height to account for border */
}

/* More specific hover selector to override potential conflicting styles */
.intro__card .intro__text .intro__btn:hover,
.intro__btn:hover {
  background-color: var(--intro-button-bg-color);
  filter: brightness(0.95);
  color: var(--intro-button-text-color);
  text-decoration: none;
}

.intro__btn--secondary:hover {
  background-color: var(--intro-button-bg-color);
  color: var(--intro-button-text-color);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* ---------- Large Tablets & Small Desktops (1440px and below) ---------- */
@media (max-width: 1439px) {
  body {
    background-color: #FFFFFF;
  }

  /* Show standard desktop image and hide large desktop image */
  .intro__desktop-image-large {
    display: none;
  }
  
  .intro__desktop-image {
    display: block;
  }
  
  .intro {
    overflow: hidden;
    padding: 0 16px;
    position: relative;
    width: 100%;
  }
  
  .intro__container {
    padding: 0 48px;
    position: relative;
    z-index: 2;
  }
  
  .intro__content {
    padding: 62px 0;
    position: relative;
    z-index: 2;
  }
  
  .intro__card {
    margin-left: 0;
    max-width: 428px;
  }
  
  .intro__title {
    font-size: 40px;
  }
  
  .intro__background-wrapper {
    border-radius: 36px;
    height: 100%;
    left: 0;
    margin: 0 auto;
    max-width: none;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 1;
  }
}

/* ---------- Medium Tablets (980px and below) ---------- */
@media (max-width: 979px) {
  .intro__content {
    padding: 48px 0;
  }
  
  .intro__container {
    padding: 0 32px;
  }
  
  .intro__card {
    max-width: 402px;
  }
}

/* ---------- Mobile Devices (767px and below) ---------- */
@media (max-width: 767px) {
  /* Reset base styles for mobile */
  html, body {
    margin: 0;
    padding: 0;
  }
  
  /* Container adjustments */
  .intro {
    margin: 0;
    padding: 0;
    width: 100%;
  }
  
  .intro__container {
    margin: 0 auto;
    padding: 0;
    width: 100%;
  }
  
  /* Content layout for mobile */
  .intro__content {
    background-color: transparent;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: visible;
    padding: 0;
    position: relative;
    width: 100%;
  }
  
  /* Show mobile image with overlap effect */
  .intro__mobile-image {
    border-radius: 24px;
    display: block;
    height: 240px;
    margin: 0;
    margin-bottom: -24px; /* Create overlap with card */
    object-fit: cover;
    position: relative;
    width: 100%;
    z-index: 2; /* Ensure image is above card for proper overlap */
  }
  
  /* Adjust card for mobile with bottom-only rounded corners */
  .intro__card {
    border-radius: 0 0 24px 24px;
    margin: 0;
    max-width: 100%;
    padding: 24px 16px 30px;
    padding-top: 48px; /* Extra padding for image overlap */
    position: relative;
    width: 100%;
    z-index: 1;
  }
  
  /* Hide desktop components on mobile */
  .intro__desktop-image-large,
  .intro__desktop-image,
  .intro__background-wrapper {
    display: none;
  }
  
  /* Mobile button styling */
  .intro__buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .intro__btn {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  
  /* Adjust icon for mobile */
  .intro__icon {
    margin-bottom: 12px;
    max-height: 64px;
    max-width: 64px;
  }
}

/* ==========================================================================
   FAQ Component
   ========================================================================== */

/* ==========================================================================
   FAQ Component 1.2
   
   THEME VARIANTS:
   faq-theme-beige = default theme with paddings, beige background, white box
   faq-theme-white = no vertical padding, white background, beige box
   ========================================================================== */

/* Base styles */
.faq {
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
    display: block;
    overflow: hidden;
    position: relative;
    border-radius: 0;
}

/* Theme variants */
.faq-theme-beige {
    background-color: #F2EFE7;
    padding: 80px 0;
}

.faq-theme-white {
    background-color: #fff;
    padding: 0;
}

.faq__container {
    padding: 0 64px;
    box-sizing: border-box;
    max-width: 1600px;
    margin: 0 auto;
}

/* Content styling based on theme */
.faq-theme-beige .faq__content {
    max-width: 1186px;
    margin: 0 auto;
    padding: 64px;
    box-sizing: border-box;
    border-radius: 36px;
    background-color: #ffffff;
    overflow: hidden;
}

.faq-theme-white .faq__content {
    max-width: 1186px;
    margin: 0 auto;
    padding: 64px;
    box-sizing: border-box;
    border-radius: 36px;
    background-color: #F2EFE7;
    overflow: hidden;
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    border-bottom: 1px solid #000000;
}

.faq__item:first-child {
    border-top: 1px solid #000000;
}

.faq__checkbox,
.faq__close-all {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.faq__item h3 {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
}

.faq__question {
    padding: 24px 0;
    margin: 0;
    font-family: 'YS Text', sans-serif;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    padding-right: 24px;
    display: block;
}

.faq__question:after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 6L8 11L13 6' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__checkbox:checked + h3 .faq__question:after {
    transform: rotate(180deg);
}

.faq__answer {
    padding: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__checkbox:checked ~ .faq__answer {
    padding-bottom: 24px;
    height: auto;
    opacity: 1;
}

.faq__answer p {
    margin: 0 0 16px;
    font-family: 'YS Text', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.faq__answer p:last-child {
    margin-bottom: 0;
}

.faq__answer a {
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: #666666;
}

.faq__headline {
    margin: 0 0 40px;
    font-size: 40px;
    line-height: 1;
    font-family: 'YS Text Cond', sans-serif;
    letter-spacing: -0.02em;
    text-align: center;
}

/* Responsive styles */
@media (max-width: 1439px) {
    .faq__container {
        padding: 0 16px;
    }
}

@media (max-width: 979px) {
    .faq__content {
        padding: 64px 48px;
    }
}

@media (max-width: 767px) {
    .faq-theme-beige {
        padding: 56px 0;
    }
    
    .faq-theme-white {
        padding: 0;
    }
    
    .faq, 
    .faq-theme-beige,
    .faq-theme-white {
        border-radius: 0;
    }
    
    .faq__container {
        padding: 0;
    }
    
    .faq__content,
    .faq-theme-beige .faq__content,
    .faq-theme-white .faq__content {
        padding: 32px 24px;
        border-radius: 24px;
        margin: 0 16px;
    }
    
    .faq__headline {
        font-size: 36px;
        margin-bottom: 32px;
    }
    
    .faq__question {
        padding: 14px 0;
        padding-right: 24px;
        font-size: 18px;
    }
    
    .faq__list {
        max-width: 100%;
    }
}

@media (max-width: 359px) {
    .faq__headline {
        font-size: 32px;
    }
    
    .faq__question {
        font-size: 16px;
        padding-right: 20px;
    }
    
    .faq__question:after {
        right: 0;
        width: 14px;
        height: 14px;
        margin-top: -7px;
    }
}
/* ==========================================================================
   Cards Component
   ========================================================================== */

/* ==========================================================================
   Cards Component 1.2
   
   THEME VARIANTS:
   cards-theme-white = white background, beige items, no padding 
   cards-theme-beige = beige background, white items, with padding
   
   COLUMN VARIANTS:
   cards-columns-2 = 2 columns per row
   cards-columns-3 = 3 columns per row 
   cards-columns-4 = 4 columns per row
   cards-columns-5 = 5 columns per row
   
   ICON VARIANTS:
   cards-icon-no = no icons displayed
   cards-icon-s = small icons (24px)
   cards-icon-m = medium icons (36px)
   cards-icon-l = large icons (48px)
   cards-icon-xl = extra large icons (80px)
   cards-icon-xxl = extra extra large icons (120px)
   cards-icon-xxxl = extra extra extra large icons (200px)
   ========================================================================== */
.cards {
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
    display: block;
    overflow: hidden;
    position: relative;
    max-width: 1600px;
    border-radius: 36px;
}

/* Theme Variants */
.cards-theme-white {
    background-color: #FFFFFF;
    padding: 0;
}

.cards-theme-white .cards__item {
    background-color: #F2EFE7;
}

.cards-theme-beige {
    background-color: #F2EFE7;
    padding: 80px 0;
}

.cards-theme-beige .cards__item {
    background-color: #FFFFFF;
}

/* Column Variants */
.cards-columns-2 {
    --cards-per-row: 2;
}

.cards-columns-3 {
    --cards-per-row: 3;
}

.cards-columns-4 {
    --cards-per-row: 4;
}

.cards-columns-5 {
    --cards-per-row: 5;
}

/* Icon Variants */
.cards-icon-no .cards__icon {
    display: none;
}

.cards-icon-s {
    --icon-size: 24px;   /* S for desktop */
}

.cards-icon-m {
    --icon-size: 36px;   /* M for desktop */
}

.cards-icon-l {
    --icon-size: 48px;   /* L for desktop */
}

.cards-icon-xl {
    --icon-size: 80px;   /* XL for desktop */
}

.cards-icon-xxl {
    --icon-size: 120px;   /* XXL for desktop */
}

.cards-icon-xxxl {
    --icon-size: 200px;   /* XXXL for desktop */
}

/* Add this selector to target the icon specifically when parent has xxxl size */
.cards-icon-xxxl .cards__icon {
    justify-content: center;
    align-items: center;
}

.cards__container {
    width: 100%;
    max-width: 1308px; /* 1180px + 64px padding on each side */
    margin-inline: auto;
    padding: 32px 64px;
    box-sizing: border-box;
}

.cards__header {
    text-align: center;
    max-width: 800px;
    margin-inline: auto;
}

/* Add space below header only if it contains elements */
.cards__header:not(:empty) {
    margin-block-end: 64px;
}

.cards__title {
    margin-block: 0 24px;
    font-size: 40px;
    line-height: 1;
    font-family: 'YS Text Cond', sans-serif;
    letter-spacing: -0.02em;
    color: #000000;
}

/* Remove bottom margin from title if it's the last element in header */
.cards__title:last-child {
    margin-block-end: 0;
}

.cards__subtitle {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    font-family: 'YS Text', sans-serif;
    color: #000000;
}

.cards__grid {
    display: grid;
    grid-template-columns: repeat(var(--cards-per-row), 1fr);
    gap: 24px;
    width: 100%;
    grid-auto-rows: 1fr;
}

.cards__item {
    border-radius: 36px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0; /* Prevent content from causing grid item to expand */
}

.cards__icon {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Icon sizing using the variable */
.cards__icon {
    height: var(--icon-size);
}

.cards__icon img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.cards__item-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.3;
    font-family: 'YS Text', sans-serif;
    color: #000000;
}

.cards__item-text {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    font-family: 'YS Text', sans-serif;
    color: #000000;
}

/* Bullet point list styles */
.cards__item-list {
    margin: 0;
    padding-left: 24px; /* Default padding for bullets */
    font-size: 20px;
    line-height: 1.3;
    font-family: 'YS Text', sans-serif;
    color: #000000;
}

.cards__item-list li {
    margin-bottom: 8px;
    padding-left: 4px; /* 4px left space as requested */
}

.cards__item-list li:last-child {
    margin-bottom: 0;
}

/* Button styles */
.cards__button-container {
    display: flex;
    justify-content: center;
    margin-top: 48px;
    width: 100%;
}

.cards__button {
    margin: 0;
    padding: 16px 32px;
    border: none;
    border-radius: 16px;
    background-color: #000000;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 500;
    font-family: 'YS Text', sans-serif;
    cursor: pointer;
    transition: opacity 0.2s;
    display: inline-block;
    white-space: nowrap;
    text-decoration: none;
}

.cards__button:hover {
    opacity: 0.8;
    color: #FFFFFF;
}

/* Footer text styles */
.cards__footer-text {
    margin: 48px auto 0;
    text-align: center;
    font-size: 20px;
    line-height: 1.4;
    font-family: 'YS Text', sans-serif;
    color: #808080;
    max-width: 800px;
}

/* Responsive styles */
@media (max-width: 1307px) {
    .cards__container {
        padding: 32px 32px;
        max-width: 1244px; /* 1180px + 32px padding on each side */
    }
}

@media (max-width: 979px) {
    .cards-theme-beige {
        padding: 64px 0;
    }
    
    .cards__grid {
        --cards-per-row: 2; /* Default to 2 columns on tablet */
    }
    
    /* Keep column counts for tablet if specified */
    .cards-columns-2 {
        --cards-per-row: 2;
    }
    
    /* Force max 2 columns on tablet regardless of desktop setting */
    .cards-columns-3,
    .cards-columns-4,
    .cards-columns-5 {
        --cards-per-row: 2;
    }
    
    .cards__title {
        font-size: 36px;
    }
    
    .cards__header:not(:empty) {
        margin-block-end: 48px;
    }
    
    .cards__container {
        max-width: 1228px; /* 1180px + 24px padding on each side */
        padding: 48px 24px;
    }
}

@media (max-width: 767px) {
    .cards-theme-beige {
        padding: 48px 0;
    }
    
    .cards, 
    .cards-theme-white, 
    .cards-theme-beige {
        border-radius: 0;
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        position: relative;
        box-sizing: border-box;
    }
    
    .cards__container {
        max-width: 100%;
        padding: 32px 16px;
    }

    .cards__header:not(:empty) {
        margin-block-end: 36px;
    }

    .cards__grid {
        --cards-per-row: 1; /* Single column on mobile */
        gap: 16px;
    }
    
    /* Force single column on mobile for all column variants */
    .cards-columns-2,
    .cards-columns-3,
    .cards-columns-4,
    .cards-columns-5 {
        --cards-per-row: 1;
    }

    .cards__title {
        font-size: 32px;
        margin-block-end: 16px;
    }

    .cards__item {
        padding: 24px;
    }

    .cards-icon-s {
        --icon-size: 20px; /* Smaller icons on mobile */
    }

    .cards-icon-m {
        --icon-size: 28px;
    }

    .cards-icon-l {
        --icon-size: 36px;
    }

    .cards-icon-xl {
        --icon-size: 48px;
    }

    .cards-icon-xxl {
        --icon-size: 64px;
    }

    .cards-icon-xxxl {
        --icon-size: 100px;
    }

    .cards-icon-xxxl .cards__icon {
        justify-content: center;
        display: flex;
        margin-left: auto;
        margin-right: auto;
    }

    .cards__button-container {
        margin-top: 36px;
    }

    .cards__footer-text {
        text-align: center;
        margin: 36px 0 0;
        font-size: 20px;
    }

    .cards__button {
        font-size: 18px;
        padding: 14px 28px;
        width: auto;
        text-align: center;
    }
} 
/* ==========================================================================
   Form Component
   ========================================================================== */

/* ==========================================================================
   Form Component 1.2
   
   THEME VARIANTS:
   form-background-beige = default theme with beige background and vertical paddings
   form-background-none = transparent background without vertical paddings
   ========================================================================== */

/* Base styles */
.form {
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
    display: block;
    overflow: hidden;
    position: relative;
    border-radius: 36px 36px 0 0;
}

/* Theme styles */
.form-background-beige {
    background-color: #F2EFE7;
    padding-top: 80px;
    padding-bottom: 80px;
}

.form-background-none {
    background-color: transparent;
    padding-top: 0;
    padding-bottom: 0;
}

/* Container styles */
.form__container {
    max-width: 1186px;
    margin: 0 auto;
    box-sizing: border-box;
    width: calc(100% - 128px);
    display: flex;
    flex-direction: column;
}

/* Content styles */
.form__content {
    margin: 0 auto;
    padding: 0;
}

.form__title {
    max-width: 880px;
    margin: 0 auto 24px;
    font-size: 40px;
    line-height: 1;
    font-family: 'YS Text Cond', sans-serif;
    letter-spacing: -0.02em;
    text-align: center;
}

.form__subtitle {
    max-width: 880px;
    margin: 0 auto 32px;
    font-family: 'YS Text', sans-serif;
    font-size: 20px;
    line-height: 1.3;
    text-align: center;
}

/* Existing form style */
.yandex-corp-form .Card {
    max-width: 880px; 
}

.yandex-corp-form .Card__title {
    display: none;
}

@media (max-width: 767px) {
    .CorpWidgetThemeStyle_modern .Step1-module__buttonText___1RQ3O {
        font-family: 'YS Text', sans-serif;
        font-size: 18px !important;
    }
}

/* Responsive styles */
@media (max-width: 979px) {
    .form__container {
        width: calc(100% - 96px);
    }
}

@media (max-width: 767px) {
    .form-background-beige {
        border-radius: 24px 24px 0 0;
        padding-top: 56px;
        padding-bottom: 56px;
    }
    
    .form__container {
        border-radius: 0;
        width: calc(100% - 32px);
    }

    .form__title {
        font-size: 36px;
        margin: 0 auto 16px;
    }
    
    .form__subtitle {
        margin: 0 auto 24px;
    }
}

@media (max-width: 359px) {
    .form__title {
        font-size: 32px;
    }
}
/* ==========================================================================
   Feature Component
   ========================================================================== */

/*
  Feature component
  
  Variants:
  - feature-image-right: Image on right, text on left (default)
  - feature-image-left: Image on left, text on right
*/

.feature {
  display: flex;
  flex-direction: row; /* Default: Content left, image right */
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 64px;
  padding: 0 64px;
}

.feature-image-right {
  flex-direction: row; /* Content left, image right */
}

.feature-image-left {
  flex-direction: row-reverse; /* Content right, image left */
}

.feature__header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
  padding: 0 64px;
}

.feature__header-title {
  margin: 0 0 24px;
  font-size: 40px;
  line-height: 1;
  font-family: 'YS Text Cond', sans-serif;
  letter-spacing: -0.02em;
  color: #000000;
}

.feature__header-subtitle {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-family: 'YS Text', sans-serif;
  color: #000000;
}

.feature__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  min-width: 0; /* Fix for flexbox in some browsers */
}

.feature__image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0; /* Fix for flexbox in some browsers */
}

.feature__image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 500px;
}

/* Placeholder styles removed as we now use actual images */

.feature__title {
  font-family: 'YS Text Cond', sans-serif;
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 24px;
}

.feature__text {
  font-size: 20px;
  line-height: 1.3;
  font-family: 'YS Text', sans-serif;
  margin: 0;
}

/* Mobile styles */
@media (max-width: 768px) {
  .feature {
    flex-direction: column;
    padding: 0 16px;
    gap: 0;
    margin-bottom: 0;
  }
  
  .feature-image-right,
  .feature-image-left {
    flex-direction: column;
    gap: 0;
  }

  .feature__header {
    margin-bottom: 60px;
    padding: 0 16px;
  }

  .feature__content {
    width: 100%;
    margin-bottom: 24px;
    text-align: left;
  }

  .feature__image-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    margin-bottom: 40px;
  }
}

/* Additional mobile adjustments */
@media (max-width: 767px) {
  .feature__header-title {
    font-size: 36px;
    margin: 0 0 16px;
  }

  .feature__title {
    font-size: 36px;
    margin: 0 0 16px;
  }
  
  .feature__content {
    margin-bottom: 16px;
  }
}

@media (max-width: 359px) {
  .feature__header-title {
    font-size: 32px;
  }

  .feature__title {
    font-size: 32px;
  }
} 
/* ==========================================================================
   Boxcenter Component 1.2
   
   THEME VARIANTS:
   boxcenter-theme-none = no paddings, no background, no box color, black button
   boxcenter-theme-white = paddings, white background, beige box, black button
   boxcenter-theme-beige = paddings, beige background, white box, black button
   boxcenter-theme-dark = paddings, black background, white box, black button
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base styles
   -------------------------------------------------------------------------- */
.boxcenter {
    border-radius: 36px;
    box-sizing: border-box;
    display: block;
    margin: 0 auto;
    max-width: 1600px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.boxcenter__content {
    margin: 0 auto;
    max-width: 640px;
    padding: 0;
    text-align: center;
}

.boxcenter__title {
    font-family: 'YS Text Cond', sans-serif;
    font-size: 40px;
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 0 0 24px;
}

.boxcenter__subtitle {
    font-size: 20px;
    line-height: 1.3;
    font-family: 'YS Text', sans-serif;
    margin: 0;
}

.boxcenter__footer-text {
    color: #808080;
    font-family: 'YS Text', sans-serif;
    font-size: 14px;
    line-height: 1.3;
    margin: 32px auto 0;
    max-width: 800px;
    text-align: center;
}

.boxcenter__button {
    background-color: #000;
    border: none;
    border-radius: 16px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: 'YS Text', sans-serif;
    font-size: 20px;
    font-weight: 500;
    margin: 32px 0 0 0;
    padding: 16px 32px;
    text-decoration: none;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.boxcenter__button:hover {
    color: #fff;
    opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Theme variants
   -------------------------------------------------------------------------- */

/* Theme: None (no padding, no background) */
.boxcenter-theme-none {
    background-color: transparent;
    padding: 0;
}

.boxcenter-theme-none .boxcenter__container {
    background-color: transparent;
    border-radius: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin: 0;
    max-width: none;
    padding: 0;
    width: 100%;
}

.boxcenter-theme-none .boxcenter__content {
    background-color: #fff;
    border-radius: 24px;
    margin: 0 auto;
    max-width: 880px;
    padding: 0px 32px;
}

/* Theme: White (white background, beige box) */
.boxcenter-theme-white {
    background-color: #fff;
    padding: 80px 0;
}

.boxcenter-theme-white .boxcenter__container {
    background-color: #F2EFE7;
    border-radius: 36px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 920px;
    padding: 64px;
    width: calc(100% - 128px);
}

/* Theme: Beige (beige background, white box) */
.boxcenter-theme-beige {
    background-color: #F2EFE7;
    padding: 80px 0;
}

.boxcenter-theme-beige .boxcenter__container {
    background-color: #fff;
    border-radius: 36px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 920px;
    padding: 64px;
    width: calc(100% - 128px);
}

/* Theme: Dark (black background, white box) */
.boxcenter-theme-dark {
    background-color: #000;
    padding: 80px 0;
}

.boxcenter-theme-dark .boxcenter__container {
    background-color: #fff;
    border-radius: 36px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 920px;
    padding: 64px;
    width: calc(100% - 128px);
}

/* --------------------------------------------------------------------------
   Responsive styles
   -------------------------------------------------------------------------- */
@media (max-width: 979px) {
    /* Theme adjustments for tablet */
    .boxcenter-theme-white,
    .boxcenter-theme-beige,
    .boxcenter-theme-dark {
        padding: 72px 0;
    }
    
    .boxcenter-theme-white .boxcenter__container,
    .boxcenter-theme-beige .boxcenter__container,
    .boxcenter-theme-dark .boxcenter__container {
        width: calc(100% - 96px);
    }
    
    .boxcenter-theme-none .boxcenter__container {
        margin: 0 auto;
        max-width: 920px;
        width: calc(100% - 96px);
    }
}

@media (max-width: 767px) {
    /* Base adjustments for mobile */
    .boxcenter__title {
        font-size: 36px;
        margin: 0 0 16px;
    }

    .boxcenter__footer-text {
        font-size: 14px;
        margin: 24px 0 0;
        text-align: center;
    }

    .boxcenter__button {
        display: inline-block;
        margin: 24px 0 0 0;
        max-width: none;
        width: auto;
    }
    
    /* Theme adjustments for mobile */
    .boxcenter, 
    .boxcenter-theme-white, 
    .boxcenter-theme-beige,
    .boxcenter-theme-dark {
        border-radius: 24px;
    }
    
    .boxcenter-theme-white,
    .boxcenter-theme-beige,
    .boxcenter-theme-dark {
        padding: 56px 0;
    }
    
    .boxcenter-theme-white .boxcenter__container,
    .boxcenter-theme-beige .boxcenter__container,
    .boxcenter-theme-dark .boxcenter__container {
        border-radius: 24px;
        padding: 32px 16px;
        width: calc(100% - 32px);
    }
    
    .boxcenter-theme-none .boxcenter__container {
        margin: 0 auto;
        max-width: 920px;
        width: calc(100% - 32px);
    }
    
    .boxcenter-theme-none .boxcenter__content {
        border-radius: 16px;
        margin: 0 auto;
        padding: 0px 16px;
    }
}

@media (max-width: 359px) {
    .boxcenter__title {
        font-size: 32px;
    }
}

body {
    margin: 0;
    padding: 0;
} 
/* ==========================================================================
   Line Component
   ========================================================================== */

/* Running Line Component 1.3 */

:root {
  --line-speed-desktop: 40;
  --line-speed-mobile: 32; 
  --line-separator: '✦';
}

.line-theme-purple {
  --line-bg-color: #6A73ED;
  --line-text-color: #FFFFFF;
}

.line-theme-black {
  --line-bg-color: #000000;
  --line-text-color: #FFFFFF;
}

.line-theme-green {
  --line-bg-color: #42FF98;
  --line-text-color: #000000;
}

.line-theme-red {
  --line-bg-color: #FF5327;
  --line-text-color: #FFFFFF;
}

.line-theme-yellow {
  --line-bg-color: #FFDE40;
  --line-text-color: #000000;
}

.line-theme-blue {
  --line-bg-color: #2A33A4;
  --line-text-color: #FFFFFF;
}

/* Main container */
.line {
  max-width: 1792px;
  margin: 0 auto;
  padding: 0 64px;
  box-sizing: border-box;
  width: 100%;
}

/* Ticker background */
.line__ticker {
  display: flex;
  width: 100%;
  height: 32px;
  background-color: var(--line-bg-color);
  border-radius: 12px;
  color: var(--line-text-color);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  z-index: 1; /* Keep it below potentially overlapping elements */
}

/* Content wrapper */
.line__content {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
}

/* Text items */
.line__item {
  white-space: nowrap;
  font-size: 14px;
  line-height: 32px;
  display: flex;
  align-items: center;
  font-weight: 500;
  font-family: 'YS Text', sans-serif;
  margin-right: 46px;
  position: relative;
  text-size-adjust: none;
  -webkit-text-size-adjust: none;
}

/* Separator */
.line__item:after {
  content: var(--line-separator);
  position: absolute;
  top: 0;
  right: -29px;
}

.line__separator {
  display: none;
}

/* Mobile styles */
@media (max-width: 767px) {
  .line {
    padding: 0 16px;
  }
}
/* ==========================================================================
   Divider Component
   ========================================================================== */

.divider-l {
    height: 128px;
}

.divider-m {
    height: 80px;
}

.divider-s {
    height: 40px;
}

.divider-xs {
    height: 24px;
}

@media(max-width: 767px){
  
.divider-l {
    height: 64px;
}

.divider-m {
    height: 40px;
}

.divider-s {
    height: 24px;
}

.divider-xs {
    height: 16px;
}

} 
/* ==========================================================================
   Footer Component
   ========================================================================== */

/* Footer component styles */
:root {
    --footer-bg-color: #F2EFE7;
    --footer-text-color: #999999;
    --footer-border-color: rgba(0, 0, 0, 0.3);
    --footer-link-color: #2b2b2b;
    --footer-link-hover-color: #000000;
    --footer-disclaimer-text-color: #808080;
}

/* Base footer styles */
.footer {
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
    display: block;
    position: relative;
    overflow: hidden;
    color: var(--footer-text-color);
    background-color: var(--footer-bg-color);
    font-family: 'YS Text', sans-serif;
    font-weight: 300;
}

/* Prefooter Section */
.footer-prefooter {
    width: 100%;
    padding: 20px 0;
    background-color: var(--footer-bg-color);
    font-family: 'YS Text', sans-serif;
}

.footer-prefooter__container {
    padding: 0 64px;
    box-sizing: border-box;
    width: 100%;
}

.footer-prefooter__content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.footer-prefooter__title {
    font-size: 14px;
    font-weight: 500;
    color: var(--footer-link-color);
    margin: 0 0 8px;
    font-family: 'YS Text', sans-serif;
    line-height: 1.3;
}

.footer-prefooter__text {
    font-size: 14px;
    font-weight: 400;
    color: var(--footer-link-color);
    margin: 0;
    font-family: 'YS Text', sans-serif;
    line-height: 1.3;
}

.footer-prefooter__link {
    color: var(--footer-link-color);
    text-decoration: underline;
    text-decoration-skip-ink: none;
    transition: color 0.3s ease;
}

.footer-prefooter__link:hover {
    color: var(--footer-link-hover-color);
}

/* Footer Menu Section */
.footer-menu {
    width: 100%;
    border-top: 1px solid var(--footer-border-color);
    height: 64px;
    display: flex;
    align-items: center;
}

.footer-menu__container {
    padding: 0 64px;
    box-sizing: border-box;
    width: 100%;
}

.footer-menu__content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
}

.footer-menu__nav {
    width: 100%;
}

.footer-menu__list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    height: 100%;
    row-gap: 4px;
}

.footer-menu__item {
    margin-right: 16px;
    margin-bottom: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.footer-menu__item:last-child {
    margin-right: 0;
}

.footer-menu__link {
    color: var(--footer-link-color);
    text-decoration: none;
    font-size: 14px;
    font-family: 'YS Text', sans-serif;
    line-height: 1.3;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-menu__link:hover {
    color: var(--footer-link-hover-color);
}

/* Footer Disclaimer Section */
.footer-disclaimer {
    width: 100%;
    padding: 20px 0;
    background-color: var(--footer-bg-color);
    margin: 0 auto;
    box-sizing: border-box;
    font-weight: 300;
    border-top: 1px solid var(--footer-border-color);
}

.footer-disclaimer__container {
    padding: 0 64px;
    box-sizing: border-box;
}

.footer-disclaimer__content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.footer-disclaimer__text {
    font-size: 12px;
    line-height: 1.3;
    margin: 0 0 16px;
    font-family: 'YS Text', sans-serif;
    color: var(--footer-disclaimer-text-color);
}

.footer-disclaimer__copyright {
    font-size: 12px;
    line-height: 1.3;
    margin: 0;
    font-family: 'YS Text', sans-serif;
    color: var(--footer-disclaimer-text-color);
}

.footer-disclaimer__link {
    color: var(--footer-disclaimer-text-color);
    text-decoration: underline;
    text-decoration-skip-ink: none;
    transition: color 0.3s ease;
}

.footer-disclaimer__link:hover {
    color: var(--footer-link-hover-color);
}

.footer-disclaimer__special {
        font-size: 12px;
        line-height: 1.3;
        margin: 0 0 16px;
        font-family: 'YS Text', sans-serif;
        color: var(--footer-disclaimer-text-color);
}

/* Media Queries */
@media (max-width: 1439px) {
    .footer-menu__container,
    .footer-disclaimer__container,
    .footer-prefooter__container {
        padding: 0 48px;
    }
}

@media (max-width: 979px) {
    .footer-menu__link {
        font-size: 12px;
    }

    .footer-prefooter__title,
    .footer-prefooter__text {
        font-size: 12px;
    }

    .footer-disclaimer__text,
    .footer-disclaimer__copyright {
        font-size: 11px;
    }
}

@media (max-width: 767px) {
    .footer-menu {
        padding: 8px 0;
        height: auto;
        min-height: 48px;
    }

    .footer-menu__container,
    .footer-disclaimer__container,
    .footer-prefooter__container {
        padding: 0 16px;
    }

    .footer-menu__list {
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
        row-gap: 2px;
    }

    .footer-menu__item {
        margin-right: 12px;
        margin-bottom: 4px;
        margin-top: 4px;
        height: auto;
    }

    .footer-disclaimer {
        padding: 16px 0;
    }

    .footer-prefooter {
        padding: 16px 0;
    }
}/* ==========================================================================
   Theme Variants - Apply one of these classes to .boximage element
   Available themes: boximage-theme-grey
   ========================================================================== */

.boximage-theme-grey {
  --boximage-card-bg-color: #F3F0E8;           /* Content box background color */
  --boximage-card-text-color: #000000;         /* Content box title and text color */
}


/* ==========================================================================
   boximage Section Styles
   ========================================================================== */

/* ---------- Base Styles & Resets ---------- */
html, body {
  overflow-x: hidden;
  max-width: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Add smooth scrolling without JavaScript */
html {
  scroll-behavior: smooth;
}

/* ---------- Main Container Layout ---------- */
.boximage {
  --boximage-bg-position: center center; /* Default background position */
  box-sizing: border-box;
  padding: 0 64px;
  position: relative;
  width: 100%;
}

/* ---------- Background Position Variants ---------- */
.boximage-bg-top-left { --boximage-bg-position: top left; }
.boximage-bg-top-center { --boximage-bg-position: top center; }
.boximage-bg-top-right { --boximage-bg-position: top right; }
.boximage-bg-center-left { --boximage-bg-position: center left; }
.boximage-bg-center-center { --boximage-bg-position: center center; }
.boximage-bg-center-right { --boximage-bg-position: center right; }
.boximage-bg-bottom-left { --boximage-bg-position: bottom left; }
.boximage-bg-bottom-center { --boximage-bg-position: bottom center; }
.boximage-bg-bottom-right { --boximage-bg-position: bottom right; }

.boximage__container {
  margin: 0 auto;
  max-width: 1792px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.boximage__content {
  display: flex;
  justify-content: flex-end;
  padding: 62px 0;
  position: relative;
  width: 100%;
}

/* ---------- Background Elements ---------- */
.boximage__background-wrapper {
  background-color: #FFFFFF;
  border-radius: 36px;
  height: 100%;
  left: 0;
  margin: 0 auto;
  max-width: 1792px;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
  width: calc(100% - 128px);
  z-index: 0;
}

.boximage__background {
  background-color: #FFFFFF;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

/* ---------- Images ---------- */
/* Large desktop image - only visible on 1440px+ */
.boximage__desktop-image-large {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: var(--boximage-bg-position);
  width: 100%;
}

/* Standard desktop image - only visible on medium screens */
.boximage__desktop-image {
  display: none; /* Hidden by default, shown in media query */
  height: 100%;
  object-fit: cover;
  object-position: var(--boximage-bg-position);
  width: 100%;
}

/* Mobile image - hidden on desktop, shown on mobile */
.boximage__mobile-image {
  border-radius: 24px;
  display: none;
  height: 240px;
  object-fit: cover;
  object-position: var(--boximage-bg-position);
  width: 100%;
}

/* ---------- Card Styles ---------- */
.boximage__card {
  background-color: var(--boximage-card-bg-color);
  border-radius: 36px;
  box-sizing: border-box;
  color: var(--boximage-card-text-color);
  margin-right: 62px;
  max-width: 582px;
  padding: 24px 30px 30px;
}

/* Set consistent width for all card content */
.boximage__text {
  width: 100%;
  box-sizing: border-box;
}

/* Title, description all get consistent width */
.boximage__title,
.boximage__description {
  max-width: 100%;
  box-sizing: border-box;
}

.boximage__title {
  font-family: 'YS Text Cond', 'Arial Narrow', Arial, sans-serif;
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 24px;
  margin-top: 0;
  color: var(--boximage-card-text-color);
}

.boximage__description {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 24px;
  font-family: 'YS Text', sans-serif;
  color: var(--boximage-card-text-color);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* ---------- Large Tablets & Small Desktops (1440px and below) ---------- */
@media (max-width: 1439px) {
  body {
    background-color: #FFFFFF;
  }

  /* Show standard desktop image and hide large desktop image */
  .boximage__desktop-image-large {
    display: none;
  }
  
  .boximage__desktop-image {
    display: block;
  }
  
  .boximage {
    overflow: hidden;
    padding: 0 16px;
    position: relative;
    width: 100%;
  }
  
  .boximage__container {
    padding: 0 48px;
    position: relative;
    z-index: 2;
  }
  
  .boximage__content {
    padding: 62px 0;
    position: relative;
    z-index: 2;
  }
  
  .boximage__card {
    margin-left: 0;
    max-width: 428px;
  }
  
  .boximage__title {
    font-size: 36px;
  }
  
  .boximage__background-wrapper {
    border-radius: 36px;
    height: 100%;
    left: 0;
    margin: 0 auto;
    max-width: none;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 1;
  }
}

/* ---------- Medium Tablets (980px and below) ---------- */
@media (max-width: 979px) {
  .boximage__content {
    display: flex;
    justify-content: flex-end;
    padding: 48px 0;
  }

  .boximage__container {
    padding: 0 32px;
  }

  .boximage__card {
    margin-left: 0;
    margin-right: 32px;
    max-width: 402px;
  }
}

/* ---------- Mobile Devices (767px and below) ---------- */
@media (max-width: 767px) {
  /* Reset base styles for mobile */
  html, body {
    margin: 0;
    padding: 0;
  }
  
  /* Container adjustments */
  .boximage {
    margin: 0;
    padding: 0;
    width: 100%;
  }
  
  .boximage__container {
    margin: 0 auto;
    padding: 0;
    width: 100%;
  }
  
  /* Content layout for mobile */
  .boximage__content {
    background-color: transparent;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0;
    overflow: visible;
    padding: 0;
    position: relative;
    width: 100%;
  }
  
  /* Show mobile image with overlap effect */
  .boximage__mobile-image {
    border-radius: 24px 24px 0 0; /* Rounded top corners only */
    display: block;
    height: 240px;
    margin: 0;
    margin-bottom: -24px; /* Create overlap with card */
    object-fit: cover;
    position: relative;
    width: 100%;
    z-index: 2; /* Ensure image is above card for proper overlap */
  }
  
  /* Adjust card for mobile with bottom-only rounded corners */
  .boximage__card {
    border-radius: 0 0 24px 24px;
    margin: 0;
    max-width: 100%;
    padding: 24px 16px 30px;
    padding-top: 48px; /* Extra padding for image overlap */
    position: relative;
    width: 100%;
    z-index: 1;
  }
  
  /* Hide desktop components on mobile */
  .boximage__desktop-image-large,
  .boximage__desktop-image,
  .boximage__background-wrapper {
    display: none;
  }

  .boximage__title {
    font-size: 32px;
  }
}

/* ==========================================================================
   Banner Component
   ========================================================================== */

/* Banner Component */
:root {
    --banner-bg: #F3F0E8;
    --banner-text: #000000;
    --banner-button: #000000;
    --banner-button-hover: #333333;
    --banner-button-text: #ffffff;
    --banner-border-radius: 36px;
}


/* Main container */
.banner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 64px;
    box-sizing: border-box;
}

/* Banner container */
.banner__container {
    display: flex;
    background-color: var(--banner-bg);
    border-radius: var(--banner-border-radius);
    overflow: hidden;
    gap: 0;
}

/* Content area - 50% width */
.banner__content {
    width: 50%;
    padding: 48px 32px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Image area - 50% width */
.banner__image {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    box-sizing: border-box;
}

.banner__image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

/* Typography */
.banner__title {
    font-family: 'YS Text Cond', sans-serif;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 0 0 24px 0;
}

.banner__title span {
    position: relative;
}

.banner__subtitle {
    font-family: 'YS Text', sans-serif;
    font-size: 20px;
    line-height: 1.3;
    margin: 0 0 24px 0;
    opacity: 0.8;
}

/* Button */
.banner__button {
    background-color: var(--banner-button);
    border: none;
    border-radius: 16px;
    color: var(--banner-button-text);
    cursor: pointer;
    display: inline-block;
    font-family: 'YS Text', sans-serif;
    font-size: 16px;
    font-weight: 500;
    margin: 24px 0 0 0;
    padding: 16px 32px;
    text-decoration: none;
    transition: opacity 0.2s;
    white-space: nowrap;
    width: fit-content;
}

.banner__button:hover {
    color: var(--banner-button-text);
    opacity: 0.8;
}

/* Disclaimer */
.banner__disclaimer {
    color: #808080;
    font-family: 'YS Text', sans-serif;
    font-size: 14px;
    line-height: 1.3;
    margin: 32px 0 0;
    opacity: 1;
    text-align: left;
}

.banner__link {
    color: #808080;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    transition: color 0.3s ease;
}

.banner__link:hover {
    color: #999999;
}

/* Mobile styles */
@media (max-width: 768px) {
    .banner {
        padding: 0 16px;
    }

    .banner__container {
        flex-direction: column;
    }

    .banner__image {
        width: 100%;
        padding: 24px;
        order: 1;
    }

    .banner__image img {
        max-height: 200px;
    }

    .banner__content {
        width: 100%;
        padding: 32px 24px;
        order: 2;
        text-align: left;
    }

    .banner__title {
        font-size: 36px;
        margin: 0 0 16px;
    }

    .banner__subtitle {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .banner__button {
        margin: 16px auto 0 auto;
        max-width: none;
        width: auto;
        display: block;
        text-align: center;
    }
}

@media (max-width: 359px) {
    .banner__title {
        font-size: 32px;
    }
}