/*============================================================== 
RESPONSIVE IMPROVEMENTS FOR FRONTEND
Mobile-first responsive design enhancements
 ============================================================== */

/* ==================== GLOBAL RESPONSIVE ==================== */

/* Ensure images are responsive (don't force width:100% globally; it breaks logos/icons and can feel "stretched") */
img {
  max-width: 100%;
  height: auto;
}

picture {
  display: block;
}

/* Ensure containers are responsive */
.container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

@media (max-width: 576px) {
  .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Better touch targets on mobile */
@media (max-width: 767px) {
  button, a, input[type="button"], input[type="submit"] {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ==================== Z-INDEX FIXES FOR RESPONSIVE ==================== */

/* Minimal z-index fixes - only what's needed for proper layering */
@media (max-width: 767px) {
  /* Ensure mobile menu stays above content when open */
  .mobile-menu-container:not(.hidden) {
    z-index: 999;
  }

  .mean-nav {
    z-index: 998;
  }
}

/* Ensure body/main can contain absolutely positioned corner-image */
body.home-page {
  position: relative;
  margin: 0;
  padding: 0;
}

body.home-page main {
  position: relative;
  margin: 0;
  padding: 0;
}


/* Fix hero section background overflow and z-index issues */
.hero_area {
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.hero_area .container {
  position: relative;
  z-index: 3;
}

.hero_area_inner {
  position: relative;
  z-index: 3;
}

/* Ensure hero content stays below header */
@media (max-width: 767px) {
  .hero_area {
    z-index: 1;
  }

  .hero_area .container,
  .hero_area_inner {
    z-index: 2;
  }
}

/* Fix corner-image positioning - align with hero_area section */
body.home-page main {
  position: relative;
}

.corner-image {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  z-index: 0 !important;
  pointer-events: none;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background-position: left top !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
}

.modal {
  z-index: 2000 !important;
  position: fixed;
  pointer-events: auto;
}

.modal.show,
.modal-dialog,
.modal-content {
  pointer-events: auto;
}

.hero_area_image {
  z-index: 1;
  pointer-events: none;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Ensure section-1 and subsequent sections are above hero background */
.section-1,
.section_1,
.features {
  position: relative;
  z-index: 5;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: top right;
  background-size: contain;
  margin: 0;
  padding: 0;
}

.section-1 .container,
.section_1 .container,
.features .container {
  position: relative;
  z-index: 2;
}

/* Fix any text/content that might be behind hero background */
.section-1 .section_title,
.section_1 .section_title,
.features .section_title {
  position: relative;
  z-index: 3;
}

/* Ensure section-1 content is visible above any background elements */
.section-1 .section_title span,
.section-1 .section_title h2,
.section_1 .section_title span,
.section_1 .section_title h2 {
  position: relative;
  z-index: 4;
}

.section-1 .features_items,
.section_1 .features_items {
  position: relative;
  z-index: 3;
}

/* ==================== TYPOGRAPHY RESPONSIVE ==================== */

h1 {
  font-size: clamp(24px, 5vw, 48px);
  line-height: 1.2;
}

h2 {
  font-size: clamp(20px, 4vw, 36px);
  line-height: 1.3;
}

h3 {
  font-size: clamp(18px, 3.5vw, 28px);
  line-height: 1.4;
}

h4 {
  font-size: clamp(16px, 3vw, 24px);
}

h5, h6 {
  font-size: clamp(14px, 2.5vw, 18px);
}

p {
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.6;
}

/* ==================== FORM RESPONSIVE ==================== */

.form-control,
.form-control-sm,
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

@media (max-width: 767px) {
  .form-control,
  .form-control-sm {
    padding: 12px 15px;
    font-size: 16px;
  }

  textarea {
    min-height: 120px;
  }

  input[type="checkbox"],
  input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
  }
}

/* ==================== BUTTON RESPONSIVE ==================== */

.site_btn,
.site_btn_2,
button,
input[type="submit"] {
  display: inline-block;
  width: auto;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: inherit;
}

@media (max-width: 767px) {
  /* inner pages (pricing etc) have too much top padding on small screens */
  .inner-page .page-wrapper {
    padding-top: 120px !important;
  }

  .inner-page .page-header {
    padding: 28px 15px !important;
  }

  .site_btn,
  .site_btn_2 {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
  }

  /* Hero area description responsive */
  .hero_area_inner .x-description {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 15px !important;
    line-height: 1.6;
    padding-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Hero area buttons margin-bottom on mobile */
  .hero_area_inner .site_btn,
  .hero_area_inner .site_btn_2,
  .hero_area_inner .x-button-1 {
    margin-bottom: 15px;
    display: block;
    margin-right: 0 !important;
  }

  .hero_area_inner .site_btn:last-child,
  .hero_area_inner .site_btn_2:last-child {
    margin-bottom: 30px;
  }

  /* Ensure hero background doesn't overflow on mobile */
  .hero_area {
    overflow: hidden;
    position: relative;
  }

  /* Fix corner-image on mobile - prevent stretching */
  .corner-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background-size: contain !important;
    background-position: left top !important;
    background-repeat: no-repeat !important;
    z-index: 1 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: hidden !important;
  }

  /* Ensure section-1 is properly positioned on mobile */
  .section-1,
  .section_1 {
    margin-top: 0;
    padding-top: 40px;
    position: relative;
    z-index: 5;
    background-size: contain;
    background-position: top right;
    background-repeat: no-repeat;
  }

  /* Fix hero_area_image on mobile */
  .hero_area_image {
    margin: 0;
    padding: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }

  .w-100 {
    width: 100% !important;
  }

  .w-md-auto {
    width: auto !important;
  }
}

@media (min-width: 768px) {
  .w-100 {
    width: auto !important;
  }

  .w-md-auto {
    width: auto !important;
  }
}

/* ==================== NAVIGATION RESPONSIVE ==================== */

/* Desktop Navigation - ensure menu items display inline horizontally */
@media (min-width: 768px) {
  .heading_menu ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .heading_menu_list {
    display: inline-block;
    margin: 0;
    padding: 0;
  }

  .heading_menu_list_links {
    display: inline-block;
    white-space: nowrap;
  }
}

/* Tablet Navigation Adjustments */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .heading_menu_list_links {
    padding: 5px 12px;
    font-size: 15px;
  }
}

/* Mobile Navigation */
@media (max-width: 767px) {
  /* Hide desktop menu on mobile */
  .heading_menu {
    display: none;
  }

  /* Logo adjustments on mobile */
  .heading_logo img {
    max-height: 50px;
    width: auto;
  }
}

/* ==================== GRID & SPACING RESPONSIVE ==================== */
/* Removed global .row / [class*="col-"] overrides.
   Bootstrap already manages gutters; overriding here breaks spacing on some pages (incl. pricing). */

/* Bootstrap gap utility support */
.g-3 {
  gap: 1rem;
}

.g-4 {
  gap: 1.5rem;
}

.g-md-4 {
  gap: 1.5rem;
}

.g-md-5 {
  gap: 3rem;
}

@media (max-width: 767px) {
  .g-md-4 {
    gap: 1rem;
  }

  .g-md-5 {
    gap: 1.5rem;
  }
}

/* ==================== FOOTER RESPONSIVE ==================== */

.footer {
  padding: 60px 0 30px;
}

.footer-content {
  padding: 0 15px;
  margin-bottom: 30px;
}

@media (max-width: 575px) {
  .footer {
    padding: 40px 0 20px;
  }


}
  .footer-content {
    margin-bottom: 50px;
    /* text-align: center; */
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .footer-content:last-child {
    margin-bottom: 0;
    border-bottom: none;
  }

@media (min-width: 576px) and (max-width: 991px) {
  .footer-content {
    margin-bottom: 30px;
  }

  /* Remove margin from last row items (3rd and 4th items) */
  .footer-content:nth-child(3),
  .footer-content:nth-child(4) {
    margin-bottom: 0;
  }
}

@media (min-width: 992px) {
  .footer-content {
    margin-bottom: 0;
    padding: 0 15px;
  }
}

/* ==================== CTA RESPONSIVE ==================== */

.cta_area {
  padding: 80px 20px;
}

@media (max-width: 767px) {
  .cta_area {
    padding: 40px 20px;
  }

  .cta_area_inner {
    padding: 20px;
  }

  .cta_area_inner h3 {
    font-size: 24px;
  }

  .cta_area_inner_btns {
    flex-direction: column;
    gap: 10px;
  }

  .cta_area_inner_btns a {
    width: 100%;
    text-align: center;
  }
}

/* ==================== PRICING PAGE RESPONSIVE ==================== */

.page-header {
  padding: 40px 20px;
}

@media (max-width: 767px) {
  .page-header {
    padding: 30px 20px;
  }

  .page-header h2 {
    margin-bottom: 15px;
  }
}

.pricing-plan {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  margin-bottom: 30px;
}

/* Add margin to pricing card columns for better spacing */
.pricing-table .col-12,
.pricing-table .col-md-6,
.pricing-table .col-lg-4 {
  margin-bottom: 30px;
}

@media (max-width: 991px) {
  .pricing-plan {
    margin-bottom: 30px;
  }

  .pricing-table .col-12,
  .pricing-table .col-md-6 {
    margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .pricing-plan {
    margin-bottom: 40px;
  }

  .pricing-table .col-12 {
    margin-bottom: 40px;
  }

  .pricing-card-title {
    font-size: 24px;
  }
}

@media (max-width: 576px) {
  .pricing-plan {
    margin-bottom: 30px;
  }

  .pricing-table .col-12 {
    margin-bottom: 30px;
  }
}

.pricing-plan:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Switch container responsive */
.switch-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .switch-container {
    gap: 15px;
    margin: 30px 0;
  }

  .pricing-toggle-period {
    font-size: 14px;
  }
}


/* ==================== CONTACT FORM RESPONSIVE ==================== */

.contact-form,
.contact-details {
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .contact-form,
  .contact-details {
    margin-bottom: 0;
  }
}

.contact-details h3 {
  margin-bottom: 20px;
}

@media (max-width: 767px) {
  .contact-details {
    text-align: center;
  }

  .contact-details h3 {
    margin-bottom: 15px;
  }
}

/* ==================== TEXT UTILITIES RESPONSIVE ==================== */

.text-start {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-end {
  text-align: right;
}

@media (max-width: 767px) {
  .text-md-end {
    text-align: left;
  }

  .text-md-center {
    text-align: center;
  }

  .text-md-start {
    text-align: left;
  }
}

@media (min-width: 768px) {
  .text-md-end {
    text-align: right;
  }

  .text-md-center {
    text-align: center;
  }

  .text-md-start {
    text-align: left;
  }
}

/* ==================== MARGIN & PADDING RESPONSIVE ==================== */

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-0 {
  margin-top: 0;
}

.p-0 {
  padding: 0;
}

@media (max-width: 767px) {
  .mb-md-4 {
    margin-bottom: 1rem;
  }

  .mb-md-3 {
    margin-bottom: 0.75rem;
  }

  .p-l-50,
  .p-r-40,
  .p-r-50 {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (min-width: 768px) {
  .mb-md-4 {
    margin-bottom: 1.5rem;
  }

  .mb-md-3 {
    margin-bottom: 1rem;
  }
}

/* ==================== SECTION RESPONSIVE ==================== */

.featured_section {
  padding: 40px 20px;
}

@media (max-width: 767px) {
  .featured_section {
    padding: 30px 15px;
  }

  .featured_section .row {
    margin-left: 0;
    margin-right: 0;
    display: flex;
    flex-direction: column;
  }

  .featured_section .col-lg-6 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px;
    flex: 0 0 100%;
  }

  .featured_section .col-lg-6:last-child {
    margin-bottom: 0;
  }

  /* Section 2 and Section 4 image centering - High specificity */
  .featured_section .featured-section-image,
  .section_2 .featured-section-image,
  .section_4 .featured-section-image,
  .featured_section .col-lg-6 .featured-section-image,
  .section_2 .col-lg-6 .featured-section-image,
  .section_4 .col-lg-6 .featured-section-image {
    margin-bottom: 30px !important;
    padding: 0 !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
  }

  .featured_section .featured-section-image img,
  .section_2 .featured-section-image img,
  .section_4 .featured-section-image img,
  .featured_section .col-lg-6 .featured-section-image img,
  .section_2 .col-lg-6 .featured-section-image img,
  .section_4 .col-lg-6 .featured-section-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
  }

  /* Override the specific selector from style.css */
  .section-image-left,
  .featured-section-image.section-image-left,
  .section_2 .featured-section-image.section-image-left,
  .section_4 .featured-section-image.section-image-left,
  .featured_section .featured-section-image.section-image-left,
  .section_2 .col-lg-6 .featured-section-image.section-image-left,
  .section_4 .col-lg-6 .featured-section-image.section-image-left {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .p-l-50,
  .p-r-50,
  .p-l-40,
  .p-r-40 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Content centering for both sections */
  .featured_section .about_us_inner,
  .section_2 .about_us_inner,
  .section_4 .about_us_inner {
    padding: 0 !important;
    text-align: center !important;
    width: 100% !important;
  }

  .featured_section .about_us_inner span,
  .featured_section .about_us_inner h3,
  .featured_section .about_us_inner p,
  .section_2 .about_us_inner span,
  .section_2 .about_us_inner h3,
  .section_2 .about_us_inner p,
  .section_4 .about_us_inner span,
  .section_4 .about_us_inner h3,
  .section_4 .about_us_inner p {
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  .featured_section {
    padding: 25px 12px;
  }

  .featured_section .col-lg-6 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .featured-section-image,
  .section_2 .featured-section-image,
  .section_4 .featured-section-image {
    margin-bottom: 25px;
    padding: 0 !important;
  }

  .featured-section-image img,
  .section_2 .featured-section-image img,
  .section_4 .featured-section-image img {
    width: 100% !important;
    max-width: 100% !important;
  }

  .p-l-50,
  .p-r-50,
  .p-l-40,
  .p-r-40 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* ==================== VIDEO RESPONSIVE ==================== */

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ==================== TABLE RESPONSIVE ==================== */

table {
  width: 100%;
  overflow-x: auto;
  display: block;
}

@media (max-width: 767px) {
  table {
    font-size: 14px;
  }

  th, td {
    padding: 10px 5px;
  }
}

/* ==================== SCROLL BEHAVIOR ==================== */

html {
  scroll-behavior: smooth;
}

/* ==================== ACCESSIBILITY ==================== */

/* Focus states for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #6772e5;
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: #6772e5;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-to-main:focus {
  top: 0;
}

/* Print styles */
@media print {
  body {
    background: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }

  button, input[type="submit"] {
    display: none;
  }
}

/* ==================== HIGH RESOLUTION DISPLAYS ==================== */

@media (min-width: 1440px) {
  .container-fluid {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==================== LANDSCAPE ORIENTATION ==================== */

@media (max-height: 500px) and (orientation: landscape) {
  .section_padding {
    padding: 20px 0;
  }

  h1, h2 {
    font-size: 20px;
  }
}

/* ==================== REDUCED MOTION ==================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==================== SHOWCASE SECTION RESPONSIVE ==================== */

.cta_area_showcase {
  padding: 60px 20px;
  position: relative;
}

.cta_area_showcase_title {
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.3;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 15px;
}

.cta_area_showcase_description {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  color: #4a5568;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta_area_showcase_description p {
  margin-bottom: 10px;
}

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

/* x-menu base styling - override default link colors */
.cta_area_showcase .x-menu ul li a {
  color: #5c65c7 !important;
  text-decoration: none !important;
  background-color: transparent;
}

.cta_area_showcase .x-menu ul li a:visited {
  color: #5c65c7 !important;
}

.cta_area_showcase .x-menu ul li a:focus {
  outline: 2px solid #6772e5;
  outline-offset: 2px;
  color: #5c65c7 !important;
}

.cta_area_showcase .x-menu ul li a.active,
.cta_area_showcase .x-menu ul li a:hover {
  background-color: #6772e5 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

@media (max-width: 767px) {
  .cta_area_showcase {
    padding: 30px 15px;
  }

  .cta_area_showcase .cta_area_inner {
    padding: 0;
  }

  .cta_area_showcase_title {
    font-size: 22px;
    margin-bottom: 12px;
    line-height: 1.4;
  }

  .cta_area_showcase_description {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .cta_area_showcase_description p {
    margin-bottom: 8px;
  }

  /* x-menu mobile responsive */
  .cta_area_showcase .x-menu {
    margin: 0 -15px 25px -15px;
    padding: 0 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 transparent;
  }

  .cta_area_showcase .x-menu::-webkit-scrollbar {
    height: 4px;
  }

  .cta_area_showcase .x-menu::-webkit-scrollbar-track {
    background: transparent;
  }

  .cta_area_showcase .x-menu::-webkit-scrollbar-thumb {
    background-color: #cbd5e0;
    border-radius: 2px;
  }

  .cta_area_showcase .x-menu ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    min-width: max-content;
  }

  .cta_area_showcase .x-menu ul li {
    display: inline-block;
    flex-shrink: 0;
  }

  .cta_area_showcase .x-menu ul li a {
    display: inline-block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 0;
    white-space: nowrap;
    border-radius: 18px;
    transition: all 0.3s ease;
    color: #5c65c7 !important;
    text-decoration: none !important;
    background-color: transparent;
  }

  .cta_area_showcase .x-menu ul li a:visited {
    color: #5c65c7 !important;
  }

  .cta_area_showcase .x-menu ul li a:focus {
    outline: 2px solid #6772e5;
    outline-offset: 2px;
  }

  .cta_area_showcase .x-menu ul li a.active,
  .cta_area_showcase .x-menu ul li a:hover {
    background-color: #6772e5 !important;
    color: #ffffff !important;
  }

  /* x-image-container mobile responsive */
  .cta_area_showcase .x-image-container {
    margin: 0 -15px 0 -15px;
    padding: 0;
    width: calc(100% + 30px);
  }

  .cta_area_showcase .splash-images {
    width: 100%;
    overflow: hidden;
    padding: 0 15px;
  }

  .cta_area_showcase .splash-images img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    border-radius: 8px;
  }

  /* CTA buttons mobile responsive */
  .cta_area_showcase .cta_buttons {
    padding-top: 35px !important;
    padding-bottom: 20px !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
  }

  .cta_area_showcase .cta_buttons .site_btn,
  .cta_area_showcase .cta_buttons .site_btn_2,
  .cta_area_showcase .cta_buttons .cta_btn_primary,
  .cta_area_showcase .cta_buttons .cta_btn_secondary {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
  }
}

@media (max-width: 480px) {
  /* Hero area description for very small screens */
  .hero_area_inner .x-description {
    font-size: 14px !important;
    padding-bottom: 15px;
  }

  .cta_area_showcase {
    padding: 25px 12px;
  }

  .cta_area_showcase_title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .cta_area_showcase_description {
    font-size: 14px;
    margin-bottom: 18px;
  }

  .cta_area_showcase .x-menu {
    margin: 0 -12px 20px -12px;
    padding: 0 12px;
  }

  .cta_area_showcase .x-menu ul li a {
    padding: 8px 14px;
    font-size: 13px;
  }

  .cta_area_showcase .splash-images {
    padding: 0 12px;
  }

  .cta_area_showcase .x-image-container {
    margin: 0 -12px 0 -12px;
    width: calc(100% + 24px);
  }

  .cta_area_showcase .cta_buttons {
    padding-top: 30px !important;
    padding-bottom: 15px !important;
    gap: 10px;
  }

  .cta_area_showcase .cta_buttons .site_btn,
  .cta_area_showcase .cta_buttons .site_btn_2,
  .cta_area_showcase .cta_buttons .cta_btn_primary,
  .cta_area_showcase .cta_buttons .cta_btn_secondary {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Image transition animations - prevent double image display */
.cta_area_showcase .x-image-container {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

@media (max-width: 767px) {
  .cta_area_showcase .x-image-container {
    min-height: 300px;
  }
}

/* All images are hidden by default - only JavaScript will show them */
.cta_area_showcase .splash-images {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out;
}

/* First image should be visible on page load */
.cta_area_showcase .splash-images:first-child {
  position: relative;
}

/* Only show image when JavaScript explicitly sets display:block - must override hidden class */
.cta_area_showcase .splash-images[style*="display: block"],
.cta_area_showcase .splash-images[style*="display:block"],
.cta_area_showcase .splash-images[style*="display: block;"],
.cta_area_showcase .splash-images[style*="display:block;"] {
  display: block !important;
  position: relative !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2;
  transition: opacity 0.4s ease-in-out;
}

/* Hidden class hides - but inline style with display:block overrides it */
.cta_area_showcase .splash-images.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* When display:block is set via inline style, it overrides hidden class */
.cta_area_showcase .splash-images.hidden[style*="display: block"],
.cta_area_showcase .splash-images.hidden[style*="display:block"],
.cta_area_showcase .splash-images.hidden[style*="display: block;"],
.cta_area_showcase .splash-images.hidden[style*="display:block;"] {
  display: block !important;
  position: relative !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2;
}

/* Image styling */
.cta_area_showcase .splash-images img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Desktop image container constraints */
@media (min-width: 768px) {
  .cta_area_showcase .x-image-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
  }

  .cta_area_showcase .splash-images {
    width: 100%;
    padding: 0;
  }

  .cta_area_showcase .splash-images img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .cta_area_showcase {
    padding: 50px 20px;
  }

  .cta_area_showcase_title {
    font-size: 28px;
    margin-bottom: 18px;
  }

  .cta_area_showcase_description {
    font-size: 17px;
    margin-bottom: 25px;
  }

  .cta_area_showcase .x-menu ul li a {
    padding: 8px 18px;
    font-size: 14px;
    margin-left: 15px;
  }

  .cta_area_showcase .cta_buttons {
    padding-top: 50px !important;
    padding-bottom: 40px !important;
    gap: 15px;
  }

  .cta_area_showcase .cta_buttons .site_btn,
  .cta_area_showcase .cta_buttons .site_btn_2 {
    padding: 14px 28px;
    font-size: 16px;
  }
}

@media (min-width: 992px) {
  .cta_area_showcase {
    padding: 70px 20px;
  }

  .cta_area_showcase_title {
    font-size: 36px;
    margin-bottom: 20px;
  }

  .cta_area_showcase_description {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .cta_area_showcase .cta_buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding-top: 60px !important;
    padding-bottom: 50px !important;
  }

  .cta_area_showcase .cta_buttons .site_btn,
  .cta_area_showcase .cta_buttons .site_btn_2 {
    width: auto;
    min-width: 180px;
  }
}

/* ==================== ACCOUNT PAGES (SIGNUP/SIGNIN) RESPONSIVE ==================== */

/* Minimal responsive adjustments for signup/signin pages only */
@media (max-width: 991px) {
  .account .signup .row {
    flex-direction: column;
  }

  .account .signup .col-lg-6 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .account .signup .x-splash-image {
    padding-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .account .signup .x-splash-image img {
    max-width: 90%;
    margin: 0 auto;
  }

  .account .signup .signup-form {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ==================== DOMAIN INPUT GROUP RESPONSIVE ==================== */

/* Base responsive domain input group styling */
.x-domain-input-group {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  align-items: stretch;
}

.x-domain-input-group .form-control {
  flex: 1 1 0;
  min-width: 0;
}

.x-domain-input-group .x-sub-domain {
  flex: 0 0 auto;
  max-width: 45%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  padding: 0 8px;
}

/* Remove fixed width on domain suffix for better responsiveness */
.account .signup .signup-form .x-sub-domain,
.account .signin .signup-form .x-sub-domain,
.x-domain-input-group .x-sub-domain {
  width: auto !important;
  min-width: 0;
}

/* Very small screens */
@media (max-width: 480px) {
  .x-domain-input-group .x-sub-domain {
    max-width: 55%;
    padding: 6px 10px !important;
  }
}

/* ==================== BACKGROUND ELEMENTS RESPONSIVE FIXES ==================== */

/* Fix corner-image on smaller tablets - override style.css */
@media screen and (max-width: 1200px) {
  .corner-image {
    position: absolute !important;
    height: 90vh !important;
    max-height: 90vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background-position: left top !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    display: block !important;
    visibility: visible !important;
    overflow: hidden !important;
  }
}

/* Fix corner-image on tablet - override style.css */
@media screen and (max-width: 1000px) {
  .corner-image {
    position: absolute !important;
    height: 80vh !important;
    max-height: 80vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background-position: left top !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    display: block !important;
    visibility: visible !important;
    overflow: hidden !important;
  }
}

/* Fix background images/elements on mobile - prevent stretching */
@media (max-width: 576px) {
  .corner-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 60vh !important;
    max-height: 60vh !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background-size: contain !important;
    background-position: left top !important;
    background-repeat: no-repeat !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: hidden !important;
  }
}

.section-1,
.section_1 {
  background-size: cover !important;
  background-position: top center !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
