/* Hover Accordion Slider - Frontend Styles */

.has-accordion-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.has-accordion-wrapper {
    display: flex;
    height: 500px;
    gap: 2px;
    position: relative;
    width: 100%;
}

/* Individual Slide */
.has-slide {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    min-width: 0;
	margin-left: 3px;
}

/* Active/First slide - 75% width */
.has-slide.has-active {
    flex: 0 0 75%;
}

/* Background Image */
.has-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Overlay */
.has-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

/* Content Container */
.has-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

/* Hide content on collapsed slides */
.has-slide:not(.has-active) .has-slide-content {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* Typography */
.has-slide-title  {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
	color: white!important;
}

.has-slide-subtitle {
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 25px 0;
  opacity: 0.9;
  color: white !important;
  text-shadow: 0px 2px 3px rgba(0,0,0,0.5);
  text-align: left;
  background-color: transparent;
  padding: 0;
  width: auto;
  position: relative;
}

.has-slide-subtitle::after {
  display: none;
}

.has-slide-text {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 30px 0;
    max-width: 600px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Button Styles */
.has-slide-button {
    display: inline-block;
    padding: 14px 40px 14px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    cursor: pointer;
    border: none;
}

.has-button-primary {
    background: #f15d22;
    color: #fff;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
}

.has-button-primary:hover {
    background: #d94d15;
    color: #fff;
    transform: translateX(3px);
    box-shadow: none;
}

/* Secondary button - outline arrow style */
.has-button-secondary {
    background: transparent;
    color: #fff;
    border: none;
    z-index: 0;
}

.has-button-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
    transition: background 0.3s ease;
    z-index: -2;
}

.has-button-secondary::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: rgba(0, 0, 0, 0.3);
    clip-path: polygon(0 0, calc(100% - 19px) 0, 100% 50%, calc(100% - 19px) 100%, 0 100%);
    z-index: -1;
}

.has-button-secondary:hover {
    color: #fff;
    transform: translateX(3px);
}

.has-button-secondary:hover::before {
    background: rgba(255, 255, 255, 0.7);
}

/* Side Indicator for Collapsed Slides */
.has-slide-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    white-space: nowrap;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.has-slide:not(.has-active) .has-slide-indicator {
    opacity: 1;
}

.has-indicator-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    margin-right: 10px;
    font-size: 14px;
}

/* Hover Effects */
.has-slide:hover .has-slide-bg {
    transform: scale(1.05);
}

.has-slide:hover .has-slide-overlay {
    opacity: 0.25 !important;
}
.has-active .has-slide-overlay  {
	 opacity: 0.35 !important;
}

/* Navigation */
.has-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
}

.has-nav-prev,
.has-nav-next {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
}

.has-nav-prev:hover,
.has-nav-next:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Theme Variations */
.has-theme-minimal .has-slide-title {
    font-size: 36px;
    font-weight: 400;
}

.has-theme-minimal .has-slide-subtitle {
    font-size: 20px;
}

.has-theme-minimal .has-slide-button {
    /* Arrow shape is maintained via clip-path */
}

.has-theme-bold .has-slide-title {
    font-size: 60px;
    font-weight: 900;
    text-transform: uppercase;
}

.has-theme-bold .has-slide-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .has-accordion-wrapper {
        height: 400px;
    }
    
    .has-slide-title {
        font-size: 36px;
    }
    
    .has-slide-subtitle {
        font-size: 20px;
    }
    
    .has-slide-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    /* ==========================================================================
       MOBILE VERTICAL ACCORDION - Click to expand/collapse
       ========================================================================== */
    
    .has-accordion-wrapper {
        display: flex;
        flex-direction: column;
        height: auto !important;
        min-height: auto !important;
        gap: 2px;
    }
    
    /* Each slide becomes an accordion item */
    .has-slide {
        flex: none !important;
        height: auto;
        min-height: 0;
        margin: 0;
        cursor: pointer;
        overflow: hidden;
        transition: all 0.4s ease;
    }
    
    /* Collapsed state - just show header bar */
    .has-slide:not(.has-active) {
        height: 60px;
    }
    
    /* Expanded state */
    .has-slide.has-active {
        height: 280px;
    }
    
    /* Background adjustments */
    .has-slide-bg {
        background-position: center center;
        transition: none;
    }
    
    .has-slide:not(.has-active) .has-slide-bg {
        filter: brightness(0.7);
    }
    
    /* Overlay darker on collapsed */
    .has-slide:not(.has-active) .has-slide-overlay {
        opacity: 0.6 !important;
    }
    
    .has-slide.has-active .has-slide-overlay {
        opacity: 0.35 !important;
    }
    
    /* Content positioning */
    .has-slide-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 15px 20px;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: all !important;
        transition: all 0.3s ease;
    }
    
    /* Collapsed: show only title inline */
    .has-slide:not(.has-active) .has-slide-content {
        display: flex;
        align-items: center;
        padding: 0 50px 0 20px;
        height: 60px;
        bottom: auto;
        top: 0;
    }
    
    /* Title styling - NO underlines, NO borders, NO decorations */
    .has-slide-title {
        font-size: 18px !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.2;
        transition: all 0.3s ease;
        position: relative;
        width: 100%;
        border: none !important;
        text-decoration: none !important;
        background: none !important;
    }
    
    /* Remove ALL pseudo-elements from titles on mobile */
    .has-slide-title::before,
    .has-slide-title::after,
    .has-slide:not(.has-active) .has-slide-title::before {
        display: none !important;
        content: none !important;
        border: none !important;
        background: none !important;
    }
    
    .has-slide:not(.has-active) .has-slide-title {
        font-size: 16px !important;
        margin: 0 !important;
    }
    
    /* Plus indicator - positioned at far RIGHT of the row */
    .has-slide:not(.has-active)::after {
        content: '+';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 28px;
        font-weight: 300;
        color: #F15D22;
        line-height: 1;
        z-index: 10;
    }
    
    .has-slide.has-active::after {
        content: none;
    }
    
    /* Hide subtitle, text on collapsed */
    .has-slide:not(.has-active) .has-slide-subtitle,
    .has-slide:not(.has-active) .has-slide-text,
    .has-slide:not(.has-active) .has-slide-button {
        display: none !important;
    }
    
    /* Show subtitle on expanded */
    .has-slide.has-active .has-slide-subtitle {
        display: block;
        font-size: 16px;
        padding: 0;
        margin: 0 0 15px 0;
    }
    
    .has-slide.has-active .has-slide-subtitle::after {
        display: none;
    }
    
    /* Hide description text for cleaner look */
    .has-slide-text {
        display: none !important;
    }
    
    /* Button on expanded */
    .has-slide.has-active .has-slide-button {
        display: inline-block;
        padding: 10px 30px 10px 16px;
        font-size: 12px;
    }
    
    /* Hide the rotated indicator */
    .has-slide-indicator {
        display: none !important;
    }
    
    /* Hide navigation */
    .has-navigation {
        display: none !important;
    }
    
    /* Disable hover effects on touch */
    .has-slide:hover .has-slide-bg {
        transform: none;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .has-slide:not(.has-active) {
        height: 55px;
    }
    
    .has-slide.has-active {
        height: 250px;
    }
    
    .has-slide:not(.has-active) .has-slide-content {
        height: 55px;
        padding: 0 45px 0 15px;
    }
    
    .has-slide:not(.has-active) .has-slide-title {
        font-size: 14px !important;
    }
    
    .has-slide:not(.has-active)::after {
        right: 15px;
        font-size: 24px;
    }
    
    .has-slide.has-active .has-slide-content {
        padding: 12px 15px;
    }
    
    .has-slide-title {
        font-size: 16px !important;
    }
    
    .has-slide.has-active .has-slide-subtitle {
        font-size: 14px;
        padding: 0;
        margin: 0 0 12px 0;
    }
    
    .has-slide.has-active .has-slide-subtitle::after {
        display: none;
    }
    
    .has-slide.has-active .has-slide-button {
        padding: 8px 26px 8px 14px;
        font-size: 11px;
    }
}

/* Animation Classes */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.has-slide.has-animating .has-slide-content {
    animation: slideIn 0.5s ease forwards;
}

/* Loading State */
.has-accordion-container.has-loading {
    position: relative;
}

.has-accordion-container.has-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.has-slide-subtitle {
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 25px 0;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    position: relative;
    display: block;
    background-color: transparent;
    color: white !important;
    padding: 0;
}

.has-slide-subtitle::after {
    display: none;
}



/* Grid Mode Styles */
.has-mode-grid .has-accordion-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    gap: 4px;
}

/* Grid specific slide styles */
.has-mode-grid .has-slide {
    flex: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Make first slide span 2 columns and 2 rows */
.has-mode-grid .has-slide:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

/* Content always visible in grid mode */
.has-mode-grid .has-slide .has-slide-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Adjust overlay for grid mode */
.has-mode-grid .has-slide .has-slide-overlay {
    opacity: 0.6 !important;
}

.has-mode-grid .has-slide:hover .has-slide-overlay {
    opacity: 0.3 !important;
}

/* Hide indicator in grid mode */
.has-mode-grid .has-slide-indicator {
    display: none;
}

/* Grid responsive adjustments */
@media (max-width: 1024px) {
    .has-mode-grid .has-accordion-wrapper {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
}

@media (max-width: 768px) {
    .has-mode-grid .has-accordion-wrapper {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        grid-auto-rows: auto;
        height: auto !important;
        gap: 2px;
    }
    
    .has-mode-grid .has-slide {
        min-height: 0;
    }
    
    .has-mode-grid .has-slide:not(.has-active) {
        height: 60px;
    }
    
    .has-mode-grid .has-slide.has-active {
        height: 280px;
    }
    
    .has-mode-grid .has-slide:first-child {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .has-mode-grid .has-slide .has-slide-content {
        padding: 15px 20px;
    }
    
    .has-mode-grid .has-slide-title {
        font-size: 16px !important;
    }
    
    .has-mode-grid .has-slide-title::before,
    .has-mode-grid .has-slide-title::after {
        display: none !important;
        content: none !important;
    }
    
    .has-mode-grid .has-slide:not(.has-active)::after {
        content: '+';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 28px;
        font-weight: 300;
        color: #F15D22;
        z-index: 10;
    }
    
    .has-mode-grid .has-slide-subtitle {
        font-size: 14px;
    }
}

/* Video Background Styles */
.has-slide-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.has-slide-video iframe,
.has-slide-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.has-slide-video iframe {
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
}

/* Ensure video doesn't interfere with content */
.has-slide-video + .has-slide-overlay {
    z-index: 1;
}

.has-slide-content {
    z-index: 2;
}