/* Slider Wrapper - fixes overflow and display issues */
.ar-franchise-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
  background: #000;
}

/* keep slides inline, no wrapping; margin accounted for in JS */ 
.ar-franchise-slider { 
  display: flex; 
  align-items: stretch; 
  will-change: transform;
  height: 100%;
  width: max-content;
  min-width: 100%;
  position: relative;
}

.ar-franchise-slide { 
  flex: 0 0 auto;
  position: relative;
  width: 66.666%;
  min-width: 66.666%;
  max-width: 66.666%;
  height: 100%;
  display: block;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Ensure first slide is visible */
.ar-franchise-slider > .ar-franchise-slide:first-child {
  margin-left: 0;
}

/* Ensure videos/images fill the slide properly */
.ar-franchise-slide video,
.ar-franchise-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

:root {
  --ar-franchise-slide-width: 66.666%; /* Change this to your preferred width */
}

.ar-franchise-title{
    font-size: 44px;
    line-height: 1.2;
    font-weight: 600;
    color: #ffffff;
    text-align: left; 
    font-family: 'alwaysdry-SansRegular';  
     width:100%; 
    letter-spacing: -0.6px;  
    margin-top:8px;
    margin-bottom: 28px;
} 

.ar-franchise-subtitle{
  font-family: 'GeneralSans-Regular', sans-serif!important;
  font-size: 22px;
    line-height: 1.4;
    font-weight: normal;
    color: #62b92c;
    text-align:left; 
    margin-top: 8px;
 }

 .ar-franchise-desc{
  font-family: 'GeneralSans-Extralight', sans-serif!important;
  font-size: 16px;
  font-weight: normal;
  width: 100%;
  letter-spacing: 0.4px;
  line-height: 1.4em;
  margin-bottom: 80px;
}

.ar-franchise-slider-nav{
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 100px;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ar-franchise-slider-nav:hover{
    background: #73e600; 
    border-color: #73e600;
    color: #000000;
    transform: scale(1.1);
}

.ar-franchise-slider-nav:active{
    transform: scale(0.95);
}

.ar-franchise-slider-nav svg{
    stroke: currentColor !important;
    stroke-width: 2.5;
    width: 24px;
    height: 24px;
    pointer-events: none;
    color: #ffffff !important;
}

/* Navigation container - ensure it's always visible on both desktop and mobile */
.ar-franchise-nav {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 25px !important;
    margin-top: 35px !important;
    margin-bottom: 15px !important;
    width: 100% !important;
    z-index: 9999 !important;
    position: relative !important;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 20px 0 !important;
    overflow: visible !important;
    background: transparent !important;
}

/* Ensure buttons are always visible and clickable */
.ar-franchise-slider-nav {
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Make sure SVG is visible */
.ar-franchise-slider-nav svg {
    stroke: #ffffff !important;
    stroke-width: 2.5 !important;
    display: block !important;
    width: 24px !important;
    height: 24px !important;
}

/* Force button visibility - highest priority */
#ar-franchise-prev,
#ar-franchise-next {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 9999 !important;
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    min-height: 70px !important;
    background: #62b92c !important;
    border: 3px solid #62b92c !important;
    color: #000000 !important;
    box-shadow: 0 4px 15px rgba(98, 185, 44, 0.5) !important;
}

#ar-franchise-prev:hover,
#ar-franchise-next:hover {
    background: #73e600 !important;
    border-color: #73e600 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(98, 185, 44, 0.7) !important;
}

#ar-franchise-prev:active,
#ar-franchise-next:active {
    transform: scale(0.95) !important;
}

#ar-franchise-prev svg,
#ar-franchise-next svg {
    stroke: #000000 !important;
    stroke-width: 3 !important;
    width: 32px !important;
    height: 32px !important;
    display: block !important;
}

/* Overlay Navigation Buttons - Positioned on sides of carousel */
.ar-franchise-slider-nav-overlay {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex !important;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(98, 185, 44, 0.95) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  color: #000000 !important;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.ar-franchise-prev-overlay {
  left: 20px;
}

.ar-franchise-next-overlay {
  right: 20px;
}

.ar-franchise-slider-nav-overlay:hover {
  background: rgba(115, 230, 0, 1) !important;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 25px rgba(98, 185, 44, 0.6);
  border-color: rgba(255, 255, 255, 0.6) !important;
}

.ar-franchise-slider-nav-overlay:active {
  transform: translateY(-50%) scale(0.95);
}

.ar-franchise-slider-nav-overlay svg {
  stroke: #000000 !important;
  stroke-width: 2.5 !important;
  width: 28px !important;
  height: 28px !important;
  display: block !important;
  pointer-events: none;
}

/* Force visibility on all screen sizes - desktop and mobile */
@media (max-width: 1024px) {
  .ar-franchise-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 20px !important;
  }
  
  .ar-franchise-slider-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Smaller overlay buttons on tablet */
  .ar-franchise-slider-nav-overlay {
    width: 48px;
    height: 48px;
  }
  
  .ar-franchise-prev-overlay {
    left: 15px;
  }
  
  .ar-franchise-next-overlay {
    right: 15px;
  }
  
  .ar-franchise-slider-nav-overlay svg {
    width: 24px !important;
    height: 24px !important;
  }
}

/* Desktop navigation - ensure buttons are visible */
@media (min-width: 1025px) {
  .ar-franchise-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 24px !important;
  }
  
  .ar-franchise-slider-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

.ar-franchise-con-div{
  backdrop-filter: blur(40px) brightness(0.5);
  border-radius: 12px;
  border:1px solid #ffffff10;
}

.ar-franchise-con-div h3{
    font-size: 22px;
    line-height: 1.2;
    font-weight: 100;
    color: #ffffff;
    text-align: left; 
    font-family: 'alwaysdry-SansRegular';  
     width:100%; 
    letter-spacing: 0.2px;  
    margin-bottom: 20px;
    font-style:italic;
    text-decoration:underline;
}

.ar-franchise-con-div p{
  font-family: 'GeneralSans-Extralight', sans-serif!important;
  font-size: 16px;
  font-weight: normal;
  width: 100%;
  letter-spacing: 0.4px;
  line-height: 1.4em;
  margin-bottom: 24px;
}

.ar-franchise-location-div{
  background: black;
  padding: 10px 12px;
  border-radius: 6px;
  border:2px solid #73e60020; 
  font-family: 'GeneralSans-regular', sans-serif!important;
  font-size: 16px;
  font-weight: normal;
  width: 100%;
  letter-spacing: 0.4px;
  line-height: 1.2em; 
  color: white;
}

.ar-CTA-bnr-title{
  width: 50%;
}

/* ========================================
   RESPONSIVE STYLES - TABLET & MOBILE
   ======================================== */

/* Tablet devices (768px to 1024px) */
@media screen and (max-width: 1024px) {
  /* Franchise Section - Stack columns */
  .ar-franchise-section {
    flex-direction: column;
    padding: 60px 20px;
    gap: 40px;
  }

  .ar-franchise-left {
    width: 100% !important;
    padding: 0;
    height: auto !important;
  }

  .ar-franchise-right {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    overflow: visible !important;
  }

  .ar-franchise-slider-wrapper {
    width: 100%;
    height: 60vh;
  }

  /* Adjust slide width for tablet - show 1.5 slides */
  .ar-franchise-slide {
    min-width: 65% !important;
    width: 65% !important;
    max-width: 65% !important;
  }

  /* Title adjustments */
  .ar-franchise-title {
    font-size: 36px;
    text-align: center;
  }

  .ar-franchise-subtitle {
    font-size: 20px;
    text-align: center;
  }

  .ar-franchise-desc {
    font-size: 15px;
    text-align: center;
    margin-bottom: 40px;
  }

  /* Navigation buttons - now below slider */
  .ar-franchise-nav {
    margin-top: 20px;
  }

  /* Slide height adjustment */
  .ar-franchise-slide {
    height: 60vh !important;
  }

  .ar-franchise-slider-wrapper {
    height: 60vh;
  }

  /* CTA Banner adjustments */
  .ar-CTA-bnr-section {
    padding: 40px 20px;
  }

  .ar-CTA-bnr-container {
    padding: 40px 0;
  }

  .ar-CTA-bnr-title {
    width: 100% !important;
    font-size: 36px;
    text-align: center;
  }

  .ar-CTA-bnr-desc {
    width: 100% !important;
    font-size: 15px;
    text-align: center;
  }

  .ar-CTA-bnr-form {
    width: 100% !important;
    padding: 24px;
  }

  .ar-CTA-bnr-left {
    text-align: center;
  }

  /* Hero banner text */
  .banner-txt {
    font-size: 48px !important;
    line-height: 1.2;
    padding: 0 20px;
  }

  .ar-abt-p {
    font-size: 15px;
    padding: 0 30px;
  }
}

/* Mobile devices (up to 767px) */
@media screen and (max-width: 768px) {
  /* Hero Section */
  .banner-txt {
    font-size: 32px !important;
    line-height: 1.3;
    padding: 0 15px;
    margin-top: 40px !important;
  }

  .ar-abt-p {
    font-size: 14px;
    padding: 0 20px;
    line-height: 1.5;
  }

  .section.is--hero .swiper-slide {
    padding-top: 80px;
  }

  /* Franchise Section */
  .ar-franchise-section {
    padding: 40px 15px !important;
    gap: 30px;
    padding-left: 15px !important;
  }

  .ar-franchise-section .container {
    padding: 0;
  }

  .ar-franchise-left {
    padding: 0 !important;
  }

  .ar-franchise-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .ar-franchise-subtitle {
    font-size: 18px;
  }

  .ar-franchise-desc {
    font-size: 14px;
    margin-bottom: 30px;
    line-height: 1.6;
  }

  /* Mobile slider - show one complete slide at a time - increased height */
  .ar-franchise-slider-wrapper {
    height: 70vh !important;
    min-height: 450px !important;
    max-height: 600px !important;
    width: 100%;
  }

  .ar-franchise-slide {
    min-width: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    margin-right: 0 !important;
  }

  .ar-franchise-slide:last-child {
    margin-right: 0 !important;
  }

  /* Prevent text selection during swipe on mobile and enable smooth scrolling */
  .ar-franchise-slider {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  .ar-franchise-slider-wrapper {
    -webkit-overflow-scrolling: touch;
  }

  /* Overlay buttons on mobile */
  .ar-franchise-slider-nav-overlay {
    width: 44px;
    height: 44px;
  }
  
  .ar-franchise-prev-overlay {
    left: 10px;
  }
  
  .ar-franchise-next-overlay {
    right: 10px;
  }
  
  .ar-franchise-slider-nav-overlay svg {
    width: 20px !important;
    height: 20px !important;
  }

  /* Navigation buttons - visible on mobile */
  .ar-franchise-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    gap: 25px !important;
    margin-top: 35px !important;
    margin-bottom: 15px !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    padding: 20px 0 !important;
    background: transparent !important;
  }

  .ar-franchise-slider-nav,
  #ar-franchise-prev,
  #ar-franchise-next {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    background: #62b92c !important;
    border: 3px solid #62b92c !important;
    box-shadow: 0 4px 15px rgba(98, 185, 44, 0.5) !important;
  }

  .ar-franchise-slider-nav svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #ffffff !important;
    stroke-width: 2.5 !important;
  }

  /* Slide content adjustments */
  .ar-franchise-con-div {
    padding: 20px !important;
  }

  .ar-franchise-con-div h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .ar-franchise-location-div {
    font-size: 13px;
    padding: 8px 10px;
    line-height: 1.4;
  }

  .ar-franchise-location-div svg {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
  }

  /* CTA Banner */
  .ar-CTA-bnr-section {
    padding: 30px 15px;
  }

  .ar-CTA-bnr-container {
    padding: 30px 0;
    gap: 30px;
  }

  .ar-CTA-bnr-title {
    font-size: 28px;
    line-height: 1.3;
  }

  .ar-CTA-bnr-desc {
    font-size: 14px;
    line-height: 1.5;
  }

  .ar-CTA-bnr-form {
    padding: 20px;
  }

  /* Form inputs - stack on mobile */
  .ar-CTA-bnr-form .grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  /* Button adjustments */
  .ad-btn {
    padding: 14px 24px !important;
    font-size: 14px;
  }
}

/* Small mobile devices (up to 480px) */
@media screen and (max-width: 480px) {
  .banner-txt {
    font-size: 24px !important;
    margin-top: 20px !important;
  }

  .ar-abt-p {
    font-size: 13px;
    padding: 0 15px;
  }

  .ar-franchise-section {
    padding: 30px 10px;
  }

  .ar-franchise-title {
    font-size: 24px;
  }

  .ar-franchise-subtitle {
    font-size: 16px;
  }

  .ar-franchise-desc {
    font-size: 13px;
  }

  .ar-franchise-slider-wrapper {
    height: 60vh !important;
    min-height: 350px !important;
  }

  .ar-franchise-slide {
    min-width: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    margin-right: 0 !important;
  }

  .ar-franchise-slide:last-child {
    margin-right: 0 !important;
  }

  /* Overlay buttons for small mobile */
  .ar-franchise-slider-nav-overlay {
    width: 40px;
    height: 40px;
  }
  
  .ar-franchise-prev-overlay {
    left: 8px;
  }
  
  .ar-franchise-next-overlay {
    right: 8px;
  }
  
  .ar-franchise-slider-nav-overlay svg {
    width: 18px !important;
    height: 18px !important;
  }

  .ar-franchise-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    gap: 12px !important;
    margin-top: 20px !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    z-index: 100 !important;
    pointer-events: auto !important;
  }

  .ar-franchise-slider-nav {
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 101 !important;
    pointer-events: auto !important;
    background: rgba(98, 185, 44, 0.95) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
  }

  .ar-franchise-slider-nav svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #000000 !important;
    stroke-width: 2.5 !important;
  }


  .ar-CTA-bnr-title {
    font-size: 24px;
  }

  .ar-CTA-bnr-desc {
    font-size: 13px;
  }

  .ar-CTA-bnr-form {
    padding: 16px;
  }
}

/* Landscape orientation for mobile */
@media screen and (orientation: landscape) and (max-height: 600px) {
  .ar-franchise-slide {
    height: 70vh !important;
  }

  .section.is--hero {
    height: auto;
    min-height: 100vh;
  }
}