/**
 * Open Agency Elements - Main Stylesheet
 * Built for GeneratePress theme compatibility
 * Version: 1.2.2
 */

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Slider height utility classes */
.oa-slider-height-10 { height: 10vh; overflow: hidden; }
.oa-slider-height-20 { height: 20vh; overflow: hidden; }
.oa-slider-height-30 { height: 30vh; overflow: hidden; }
.oa-slider-height-40 { height: 40vh; overflow: hidden; }
.oa-slider-height-50 { height: 50vh; overflow: hidden; }
.oa-slider-height-60 { height: 60vh; overflow: hidden; }
.oa-slider-height-70 { height: 70vh; overflow: hidden; }
.oa-slider-height-80 { height: 80vh; overflow: hidden; }
.oa-slider-height-90 { height: 90vh; overflow: hidden; }
.oa-slider-height-100 { height: 100vh; overflow: hidden; }

/* Full-width image mode - height determined by image aspect ratio */
.oa-slider-height-auto,
.oa-slider-height-image {
    height: auto !important;
    overflow: visible;
}

.oa-slider-height-auto .oa-slide,
.oa-slider-height-image .oa-slide {
    height: auto !important;
    min-height: auto;
    position: relative;
}

.oa-slider-height-auto .oa-slide-bg-image,
.oa-slider-height-image .oa-slide-bg-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Default 16:9 ratio - adjust if needed */
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: top center;
    display: block;
}

/* Ensure image displays at full width and maintains aspect ratio */
.oa-slider-height-auto .oa-slide-bg-image,
.oa-slider-height-image .oa-slide-bg-image {
    background-size: 100% auto;
    background-position: top center;
}

.oa-slider-height-auto .oa-slide-content,
.oa-slider-height-image .oa-slide-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
}

/* Text color utilities */
.oa-text-white { color: #ffffff; }
.oa-text-black { color: #000000; }
.oa-text-white a,
.oa-text-black a { color: inherit; }

/* Alignment utilities */
.oa-align-left { justify-content: flex-start; text-align: left; }
.oa-align-center { justify-content: center; text-align: center; }
.oa-align-right { justify-content: flex-end; text-align: right; }

.oa-valign-top { align-items: flex-start; }
.oa-valign-center { align-items: center; }
.oa-valign-bottom { align-items: flex-end; }

/* ==========================================================================
   SLIDER COMPONENT
   ========================================================================== */

.oa-slide {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.oa-slide-bg-image,
.oa-slide-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.oa-slide-content {
    position: relative;
    z-index: 1;
    height: 100%;
    width: 100%;
    display: flex;
    padding: 100px 40px 100px;
}

.oa-slide-content b,
.oa-slide-content strong {
    font-weight: 500;
}

.oa-slide-inner {
    max-width: 700px;
}

.oa-slide-inner img {
    width: auto !important;
    height: auto !important;
    max-width: none !important;
}

/* Override Owl Carousel image styles for slider content */
.oa-slider .oa-slide-inner img {
    width: auto !important;
    height: auto !important;
    max-width: none !important;
}

/* Specific override for images with width attributes */
.oa-slide-inner img[width] {
    width: auto !important;
    max-width: none !important;
}

/* Force respect of inline width attributes */
.oa-slide-inner img[width="200"] { width: 200px !important; }
.oa-slide-inner img[width="300"] { width: 300px !important; }
.oa-slide-inner img[width="400"] { width: 400px !important; }
.oa-slide-inner img[width="500"] { width: 500px !important; }
.oa-slide-inner img[width="600"] { width: 600px !important; }
.oa-slide-inner img[width="100"] { width: 100px !important; }
.oa-slide-inner img[width="150"] { width: 150px !important; }
.oa-slide-inner img[width="250"] { width: 250px !important; }
.oa-slide-inner img[width="350"] { width: 350px !important; }
.oa-slide-inner img[width="450"] { width: 450px !important; }

/* Center alignment for images and content */
.oa-align-center .oa-slide-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.oa-align-center .oa-slide-inner img {
    display: block;
    margin: 0 auto;
}

.oa-align-center .oa-slide-inner h1,
.oa-align-center .oa-slide-inner h2,
.oa-align-center .oa-slide-inner h3,
.oa-align-center .oa-slide-inner h4,
.oa-align-center .oa-slide-inner h5,
.oa-align-center .oa-slide-inner h6,
.oa-align-center .oa-slide-inner p {
    text-align: center;
}

/* Left alignment for images and content */
.oa-align-left .oa-slide-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.oa-align-left .oa-slide-inner img {
    display: block;
    margin: 0;
}

.oa-align-left .oa-slide-inner h1,
.oa-align-left .oa-slide-inner h2,
.oa-align-left .oa-slide-inner h3,
.oa-align-left .oa-slide-inner h4,
.oa-align-left .oa-slide-inner h5,
.oa-align-left .oa-slide-inner h6,
.oa-align-left .oa-slide-inner p {
    text-align: left;
}

/* Right alignment for images and content */
.oa-align-right .oa-slide-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.oa-align-right .oa-slide-inner img {
    display: block;
    margin: 0 0 0 auto;
}

.oa-align-right .oa-slide-inner h1,
.oa-align-right .oa-slide-inner h2,
.oa-align-right .oa-slide-inner h3,
.oa-align-right .oa-slide-inner h4,
.oa-align-right .oa-slide-inner h5,
.oa-align-right .oa-slide-inner h6,
.oa-align-right .oa-slide-inner p {
    text-align: right;
}

/* JavaScript to handle dynamic width attributes */
.oa-slide-inner img[width] {
    /* This will be overridden by JavaScript for any width value */
}

.oa-slide-inner h1,
.oa-slide-inner h2,
.oa-slide-inner h3,
.oa-slide-inner h4,
.oa-slide-inner h5,
.oa-slide-inner h6 {
    margin-bottom: 0;
}

/* ==========================================================================
   BUTTON COMPONENT
   ========================================================================== */

.oa-button.button {
    margin: 0 10px 10px !important;
}

.oa-button.button.oa-button-outline:not(:hover) {
    background: transparent;
    color: inherit;
}

.oa-button.button.oa-button-outline {
    box-shadow: inset 0 0 0 2px;
}

.oa-button.button.oa-button-outline:hover {
    box-shadow: 0 0 0 2px;
}

.oa-text-white .oa-button.button:not(.oa-button-outline):not(:hover) {
    color: #000000;
    background: #ffffff;
}

/* Button sizes */
.oa-button-small {
    padding: 8px 16px;
    font-size: 14px;
}

.oa-button-medium {
    padding: 12px 24px;
    font-size: 16px;
}

.oa-button-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Button colors */
.oa-button-primary {
    background-color: #0073aa;
    color: #ffffff;
}

.oa-button-secondary {
    background-color: #6c757d;
    color: #ffffff;
}

.oa-button-success {
    background-color: #28a745;
    color: #ffffff;
}

.oa-button-danger {
    background-color: #dc3545;
    color: #ffffff;
}

.oa-button-warning {
    background-color: #ffc107;
    color: #000000;
}

.oa-button-info {
    background-color: #17a2b8;
    color: #ffffff;
}

/* ==========================================================================
   CAROUSEL COMPONENTS
   ========================================================================== */

/* Owl Carousel overrides */
.owl-carousel .owl-stage {
    overflow: hidden;
}

.owl-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 50px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.owl-carousel .owl-nav .owl-prev,
.owl-carousel .owl-nav .owl-next {
    pointer-events: auto;
    background: transparent;
    width: 50px;
    height: 50px;
}

.owl-carousel .owl-nav .owl-prev {
    position: absolute;
    left: -70px;
}

.owl-carousel .owl-nav .owl-next {
    position: absolute;
    right: -70px;
}

.owl-carousel.inset-arrows .owl-nav .owl-prev {
    left: 20px;
}

.owl-carousel.inset-arrows .owl-nav .owl-next {
    right: 20px;
}

.owl-carousel .owl-nav svg {
    width: 50px;
    height: 50px;
    stroke: currentColor;
    stroke-width: 1;
}

/* Only apply stroke to carousel navigation SVGs */
.owl-carousel .owl-nav svg {
    stroke: currentColor;
    stroke-width: 1;
}

.owl-carousel .owl-dots {
    position: absolute;
    bottom: 80px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.owl-carousel .owl-dot {
    display: inline-block;
    margin: 0 7px;
}

.owl-carousel .owl-dot span {
    display: block;
    opacity: 0.5;
    width: 14px;
    height: 14px;
    background: transparent;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.owl-carousel .owl-dot.active span,
.owl-carousel .owl-dot:hover span {
    opacity: 1;
    background: #000000;
    border: 0 solid transparent;
}

.oa-text-white .owl-nav svg {
    stroke: #ffffff;
}

.oa-text-white .owl-dot span {
    border: 2px solid #ffffff;
}

.oa-text-white .owl-dot.active span,
.oa-text-white .owl-dot:hover span {
    background: #ffffff;
}

/* Full-height carousel items */
.oa-slider.owl-carousel .owl-stage-outer,
.oa-slider.owl-carousel .owl-stage,
.oa-slider.owl-carousel .owl-item {
    height: 100%;
}

/* Featured products carousel override */
.oa-featured-carousel.products.columns-1.owl-carousel {
    margin: 0 !important;
}

.oa-featured-carousel.products.columns-1.owl-carousel li.product {
    width: 100% !important;
    margin: 0 !important;
}

/* ==========================================================================
   LOGO CAROUSEL
   ========================================================================== */

.oa-logo-carousel .oa-logo-item img {
    max-height: 120px;
    width: auto;
    margin: 0 auto;
    transition: opacity 0.3s ease;
}


/* Logo link styles - fix color inheritance for SVG logos */
.oa-logo-carousel .oa-logo-item a {
    color: inherit !important;
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.oa-logo-carousel .oa-logo-item a:hover {
    color: inherit !important;
    text-decoration: none;
    transform: scale(1.1);
}

/* Hover effect for all logo items */
.oa-logo-carousel .oa-logo-item {
    transition: transform 0.3s ease;
}

.oa-logo-carousel .oa-logo-item:hover {
    transform: scale(1.1);
}

/* Logo subheading styles */
.oa-logo-subheading {
    margin-top: 10px;
    text-align: center;
    color: #666;
    font-weight: 400;
}

.oa-logo-carousel .oa-logo-subheading {
    margin-top: 8px;
}

.oa-logo-grid .oa-logo-subheading {
    margin-top: 12px;
    margin-bottom: 0;
}

/* Logo button styles */
.oa-logo-button {
    margin-top: 12px !important;
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
}

.oa-logo-carousel .oa-logo-button {
    margin-top: 10px !important;
    font-size: 13px;
    padding: 6px 14px;
}

.oa-logo-grid .oa-logo-button {
    margin-top: 15px !important;
    font-size: 14px;
    padding: 8px 16px;
}

/* ==========================================================================
   LOGO GRID
   ========================================================================== */

.oa-logo-grid {
    display: grid;
    gap: 20px;
    align-items: start;
}

.oa-logo-grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    flex-direction: column;
}

.oa-logo-grid-image {
    max-height: 80px;
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* SVG Logo Styles */
.oa-logo-grid-svg,
.oa-logo-svg {
    max-height: 80px;
    max-width: 100%;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit; /* Inherit container's font color */
}

.oa-logo-grid-svg svg,
.oa-logo-svg svg {
    max-height: 80px;
    max-width: 100%;
    width: 100%;
    height: auto;
    fill: currentColor;
    /* Removed stroke: currentColor to prevent unwanted outlines */
    transition: all 0.3s ease;
}

/* SVG Logo Hover Effects - removed opacity for consistent behavior */

/* Responsive SVG sizing */
@media (max-width: 768px) {
    .oa-logo-grid-svg svg,
    .oa-logo-svg svg {
        max-height: 60px;
    }

    .oa-button.button.oa-button-outline:not(:hover){
        width: 100%;
    text-align: center;
    }


}

@media (max-width: 480px) {
    .oa-logo-grid-svg svg,
    .oa-logo-svg svg {
        max-height: 85px;
    }
}

.oa-logo-grid-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

/* Grid alignment classes */
.oa-logo-grid--align-left {
    justify-items: start;
}

.oa-logo-grid--align-center {
    justify-items: center;
}

.oa-logo-grid--align-right {
    justify-items: end;
}

/* Responsive grid adjustments */
@media (max-width: 768px) {
    .oa-logo-grid {
        gap: 15px;
    }
    
    .oa-logo-grid-item {
        padding: 12px;
    }
    
    .oa-logo-grid-image {
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    .oa-logo-grid {
        gap: 10px;
    }
    
    .oa-logo-grid-item {
        padding: 10px;
    }
    
    .oa-logo-grid-image {
        max-height: 50px;
    }
}

/* ==========================================================================
   TESTIMONIAL CAROUSEL
   ========================================================================== */

.oa-testimonial-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.oa-testimonial-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 25px 25px 10px 25px;
    background-color: #ffffff;
    height: 100%;
    border: 2px solid #ac8745;
    border-radius: 6px;
}

/* Position navigation arrows below content */
.oa-testimonial-carousel {
    position: relative;
    padding-bottom: 68px;
}

.oa-testimonial-carousel .owl-nav {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.oa-testimonial-carousel .owl-nav button {
    position: static !important;
    transform: none !important;
}

.oa-testimonial-carousel .owl-dots {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Testimonial alignment classes */
.oa-testimonial-align-left {
    text-align: left;
}

.oa-testimonial-align-left .oa-testimonial-stars {
    justify-content: flex-start;
    display: flex;
}

.oa-testimonial-align-left .oa-testimonial-text {
    text-align: left;
}

.oa-testimonial-align-left .oa-testimonial-author {
    text-align: left;
}

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

.oa-testimonial-align-center .oa-testimonial-stars {
    justify-content: center;
    display: flex;
}

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

.oa-testimonial-align-center .oa-testimonial-author {
    text-align: center;
}

.oa-testimonial-align-right {
    text-align: right;
}

.oa-testimonial-align-right .oa-testimonial-stars {
    justify-content: flex-end;
    display: flex;
}

.oa-testimonial-align-right .oa-testimonial-text {
    text-align: right;
}

.oa-testimonial-align-right .oa-testimonial-author {
    text-align: right;
}

.oa-testimonial-text {
    margin: 0 0 20px;
    padding: 0;
    border: none;
    font-style: normal;
    font-size: 16px;
    line-height: 1.6;
    color: #787878;
}

.oa-testimonial-stars {
    color: #dd332a;
    font-size: 24px;
    margin-bottom: 10px;
}

.oa-testimonial-author {
    margin-bottom: 0;
    color: #787878;
    font-weight: 400;
    font-size: 16px;
}

/* ==========================================================================
   LINKS ELEMENT
   ========================================================================== */

.oa-links-element {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    --oa-links-icon-color: inherit;
    --oa-links-icon-hover-color: inherit;
}

.oa-links-element .oa-links-socials,
.oa-links-element .oa-links-others {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.oa-links-element a,
.oa-links-element button.wc-block-mini-cart__button,
.oa-links-element .wc-block-mini-cart.wp-block-woocommerce-mini-cart {
    display: inline-flex;
    align-items: center;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    color: var(--oa-links-icon-color, currentColor);
    text-decoration: none;
    background: transparent !important;
    transition: opacity 0.2s ease;
}

.oa-links-element a:hover,
.oa-links-element button.wc-block-mini-cart__button:hover {
    background: transparent !important;
    opacity: 0.8;
}

.oa-links-element img {
    width: 20px !important;
    max-width: 20px !important;
    height: 20px !important;
    display: block;
    background: transparent !important;
}

.oa-links-element .wc-block-mini-cart__icon {
    width: 25px !important;
    max-width: 25px !important;
    height: 25px !important;
    display: block;
}

.oa-links-element .wc-block-mini-cart__quantity-badge {
    position: relative;
}

.oa-links-element .wc-block-mini-cart__badge {
    position: absolute;
    display: inline-flex;
    top: 0;
    right: 0;
    left: initial;
    margin: 0;
    padding: 5px;
    font-size: 0;
    width: 10px;
    height: 10px;
    justify-content: center;
    text-align: center;
    color: var(--oa-links-icon-color, currentColor);
    background-color: var(--oa-links-icon-color, currentColor);
    border: none;
    border-radius: 50%;
    align-items: center;
}

.oa-links-element .is-loading.wc-block-components-drawer__screen-overlay.wc-block-components-drawer__screen-overlay--is-hidden {
    display: none !important;
}

/* Combined icon color rules for all links in .oa-links-element */
.oa-links-element a svg,
.oa-links-element button svg,
.oa-links-element .wc-block-mini-cart__button svg {
    fill: var(--oa-links-icon-color, currentColor);
    transition: fill 0.2s;
}

.oa-links-element a:hover svg,
.oa-links-element button:hover svg,
.oa-links-element .wc-block-mini-cart__button:hover svg {
    fill: var(--oa-links-icon-hover-color, currentColor);
}

.oa-links-element a i,
.oa-links-element button i,
.oa-links-element .wc-block-mini-cart__button i {
    color: var(--oa-links-icon-color, currentColor);
    transition: color 0.2s;
}

.oa-links-element a:hover i,
.oa-links-element button:hover i,
.oa-links-element .wc-block-mini-cart__button:hover i {
    color: var(--oa-links-icon-hover-color, currentColor);
}

.oa-links-element .wc-block-mini-cart__badge,
.oa-links-element .wc-block-mini-cart__quantity-badge {
    color: var(--oa-links-icon-hover-color, currentColor);
}

/* ==========================================================================
   TITLE AREA
   ========================================================================== */

.oa-title-area {
    text-align: center;
    padding: 60px 0;
    margin-bottom: 40px;
}

.oa-title-heading {
    margin-bottom: 20px;
    font-size: 2.5em;
    font-weight: 600;
    line-height: 1.2;
}

.oa-title-subheading {
    font-size: 1.2em;
    color: #666;
    line-height: 1.5;
}

/* ==========================================================================
   GENERATEPRESS COMPATIBILITY
   ========================================================================== */

/* Container compatibility */
.container .oa-slide-content {
    max-width: 100%;
}

/* Button compatibility with GeneratePress */
.oa-button.button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .oa-slide-content {
        padding: 60px 20px 100px;
    }
    
    /* Adjust padding for sliders with inset arrows to prevent overlap */
    .oa-slider.inset-arrows .oa-slide-content {
        padding-left: 80px;
        padding-right: 80px;
    }
    
    /* Additional bottom padding for bottom-aligned content to avoid dots overlap */
    .oa-slider.inset-arrows .oa-slide-content.oa-valign-bottom {
        padding-bottom: 140px;
    }
    
    .oa-slide-inner {
        max-width: 100%;
    }
    
    .oa-slide-inner h1 {
        font-size: 2em;
    }
    
    .oa-slide-inner h2 {
        font-size: 1.5em;
    }
    
    .oa-slide-inner h3 {
        font-size: 1.2em;
    }
    
    .oa-links-element {
        /* flex-direction: column; */
        gap: 15px;
    }
    
    .oa-title-area {
        padding: 40px 0;
    }
    
    .oa-title-heading {
        font-size: 2em;
    }
    
    .owl-carousel .owl-nav .owl-prev {
        left: 10px;
    }
    
    .owl-carousel .owl-nav .owl-next {
        right: 10px;
    }
}

@media (max-width: 480px) {

    .oa-featured-carousel.products.columns-1.owl-carousel li.product{
        padding: 15px;
    }

    .oa-logo-grid{
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .owl-carousel .owl-nav{
        left: -45px;
        right: -45px;
    }

    .owl-carousel .owl-nav svg {
        width: 35px;
        height: 35px;
    }

    .oa-slide-content {
        padding: 40px 15px 80px;
    }
    
    /* Adjust padding for sliders with inset arrows to prevent overlap on mobile */
    .oa-slider.inset-arrows .oa-slide-content {
        padding-left: 60px;
        padding-right: 60px;
    }
    
    /* Additional bottom padding for bottom-aligned content to avoid dots overlap on mobile */
    .oa-slider.inset-arrows .oa-slide-content.oa-valign-bottom {
        padding-bottom: 120px;
    }
    
    .oa-slide-inner h1 {
        font-size: 2.5em;
    }
    
    .oa-slide-inner h2 {
        font-size: 1.2em;
    }
    
    .oa-title-heading {
        font-size: 1.5em;
    }
    
    .oa-title-subheading {
        font-size: 1em;
    }
}

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

/* Focus styles */
.oa-button:focus,
.oa-links-element a:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

/* Hardware acceleration for animations */
.oa-slide,
.oa-button,
.oa-links-element a {
    transform: translateZ(0);
    backface-visibility: hidden;
}


/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .oa-button,
    .oa-links-element a,
    .owl-carousel .owl-item {
        transition: none !important;
        animation: none !important;
    }
}

/* ==========================================================================
   SLIDER PAGE LAYOUT
   ========================================================================== */

/* Hide content area on slider pages */
body.oa-slider-page .entry-content,
body.oa-slider-page .post-content,
body.oa-slider-page .content-area,
body.oa-slider-page .site-content,
body.oa-slider-page .main-content,
body.oa-slider-page .entry-header,
body.oa-slider-page .post-header,
body.oa-slider-page .page-header {
    display: none !important;
}

/* Ensure full-width layout for slider pages */
body.oa-slider-page .container,
body.oa-slider-page .site-container,
body.oa-slider-page .main-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove any padding/margins that might interfere */
body.oa-slider-page .site-main,
body.oa-slider-page .main,
body.oa-slider-page .content {
    padding: 0 !important;
    margin: 0 !important;
}

/* Hide breadcrumbs and titles on slider pages */
body.oa-slider-page .breadcrumb,
body.oa-slider-page .woocommerce-breadcrumb,
body.oa-slider-page .generate-breadcrumb,
body.oa-slider-page .entry-title,
body.oa-slider-page .page-title {
    display: none !important;
}

/* ==========================================================================
   FEATURES COMPONENT
   ========================================================================== */

.oa-features {
    margin: 2rem 0;
}

.oa-features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: start;
}

.oa-feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Default to left alignment */
    text-align: left; /* Default to left alignment */
    padding: 0;
    border-radius: 8px;
    flex: 0 1 calc((100% - (var(--oa-feature-columns, 3) - 1) * 2rem) / var(--oa-feature-columns, 3)); /* Column-based flex-basis, don't grow */
    max-width: var(--oa-feature-max-width, 400px); /* Use custom property or fallback */
}

/* Handle auto values for max-width */
.oa-features-grid[style*="--oa-feature-max-width: auto"] .oa-feature-item {
    max-width: none;
}

/* Center remaining items when fewer items than columns */
.oa-features-grid[style*="--oa-feature-columns: 2"][style*="--oa-feature-count: 1"] {
    justify-content: center;
}

.oa-features-grid[style*="--oa-feature-columns: 3"][style*="--oa-feature-count: 1"],
.oa-features-grid[style*="--oa-feature-columns: 3"][style*="--oa-feature-count: 2"] {
    justify-content: center;
}

.oa-features-grid[style*="--oa-feature-columns: 4"][style*="--oa-feature-count: 1"],
.oa-features-grid[style*="--oa-feature-columns: 4"][style*="--oa-feature-count: 2"],
.oa-features-grid[style*="--oa-feature-columns: 4"][style*="--oa-feature-count: 3"] {
    justify-content: center;
}

.oa-features-grid[style*="--oa-feature-columns: 5"][style*="--oa-feature-count: 1"],
.oa-features-grid[style*="--oa-feature-columns: 5"][style*="--oa-feature-count: 2"],
.oa-features-grid[style*="--oa-feature-columns: 5"][style*="--oa-feature-count: 3"],
.oa-features-grid[style*="--oa-feature-columns: 5"][style*="--oa-feature-count: 4"] {
    justify-content: center;
}

.oa-features-grid[style*="--oa-feature-columns: 6"][style*="--oa-feature-count: 1"],
.oa-features-grid[style*="--oa-feature-columns: 6"][style*="--oa-feature-count: 2"],
.oa-features-grid[style*="--oa-feature-columns: 6"][style*="--oa-feature-count: 3"],
.oa-features-grid[style*="--oa-feature-columns: 6"][style*="--oa-feature-count: 4"],
.oa-features-grid[style*="--oa-feature-columns: 6"][style*="--oa-feature-count: 5"] {
    justify-content: center;
}

/* Column-specific overrides */
.oa-features-grid[style*="--oa-feature-columns: 1"] .oa-feature-item {
    flex: 0 1 100%;
}

.oa-features-grid[style*="--oa-feature-columns: 2"] .oa-feature-item {
    flex: 0 1 calc((100% - 2rem) / 2);
}

.oa-features-grid[style*="--oa-feature-columns: 3"] .oa-feature-item {
    flex: 0 1 calc((100% - 4rem) / 3);
}

.oa-features-grid[style*="--oa-feature-columns: 4"] .oa-feature-item {
    flex: 0 1 calc((100% - 6rem) / 4);
}

.oa-features-grid[style*="--oa-feature-columns: 5"] .oa-feature-item {
    flex: 0 1 calc((100% - 8rem) / 5);
}

.oa-features-grid[style*="--oa-feature-columns: 6"] .oa-feature-item {
    flex: 0 1 calc((100% - 10rem) / 6);
}

.oa-feature-icon {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /* width: 64px; */
    /* height: 64px; */
    border-radius: 50%;
    /* background: rgba(0, 0, 0, 0.05); */
}

.oa-feature-svg-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oa-feature-svg-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.oa-feature-image-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.oa-feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Default to left alignment */
}

.oa-feature-title {
    margin: 0 0 0.75rem 0;
}

.oa-feature-description {
    margin: 0;
}

/* Default left alignment (default) */
.oa-features-align-left .oa-feature-item {
    align-items: flex-start;
    text-align: left;
}

.oa-features-align-left .oa-feature-content {
    align-items: flex-start;
}

/* Center alignment override */
.oa-features-align-center .oa-feature-item {
    align-items: center;
    text-align: center;
}

.oa-features-align-center .oa-feature-content {
    align-items: center;
}

.oa-features-align-right .oa-feature-item {
    align-items: flex-end;
    text-align: right;
}

.oa-features-align-right .oa-feature-content {
    align-items: flex-end;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .oa-features-grid {
        gap: 1.5rem;
    }
    
    .oa-feature-item {
        padding: 1rem;
        flex: 0 1 calc((100% - 1.5rem) / 2) !important; /* Force 2 columns on tablet */
    }
    
    .oa-feature-icon {
        width: 48px;
        height: 48px;
    }
    
    .oa-feature-svg-icon,
    .oa-feature-image-icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .oa-features-grid {
        gap: 1rem;
    }
    
    .oa-feature-item {
        padding: 0.75rem;
        flex: 0 1 100% !important; /* Force single column on mobile */
    }
    
    .oa-feature-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.75rem;
    }
    
    .oa-feature-svg-icon,
    .oa-feature-image-icon {
        width: 20px;
        height: 20px;
    }
}

/* ==========================================================================
   FAQ ACCORDION COMPONENT
   ========================================================================== */

.oa-faq-accordion {
    border-top: 1px solid #222;
    margin-top: 2em;
    margin-bottom: 2em;
    max-width: 900px;
    margin: auto;
}

.oa-faq-accordion-item {
    border-bottom: 1px solid #222;
}

/* FAQ Accordion header styling */
.oa-faq-accordion-toggle {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 16px !important;
    padding: 1.2em 30px 1.2em 1.5em;
    cursor: pointer;
    position: relative;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #222;
    outline: none;
    transition: background 0.15s;
}

.oa-faq-accordion-toggle:hover,
.oa-faq-accordion-toggle:focus {
    color: #222;
    background: transparent;
}

.oa-faq-accordion-toggle:after {
    content: '+';
    position: absolute;
    top: 4px;
    right: 20px;
    font-size: 36px;
    font-weight: 300;
    color: #222;
    transition: content 0.2s;
}

.oa-faq-accordion-toggle.active:after {
    content: '-';
    right: 23px;
}

.oa-faq-accordion-panel {
    display: none;
    padding: 0 1.2em 1.5em;
    color: #222;
    border: none;
    line-height: 1.6;
}

.oa-faq-accordion-toggle[disabled] {
    color: #aaa;
    cursor: not-allowed;
}

/* FAQ Accordion responsive adjustments */
@media (max-width: 768px) {
    .oa-faq-accordion-toggle {
        font-size: 1em;
        padding: 1em 0 1em 1.2em;
    }
    
    .oa-faq-accordion-toggle:after {
        right: 15px;
        font-size: 25px;
    }
    
    .oa-faq-accordion-toggle.active:after {
        right: 18px;
    }
    
    .oa-faq-accordion-panel {
        padding: 0 1em 1.2em;
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .oa-faq-accordion-toggle {
        font-size: 0.95em;
        padding: 0.8em 0 0.8em 1em;
    }
    
    .oa-faq-accordion-toggle:after {
        right: 10px;
        font-size: 22px;
    }
    
    .oa-faq-accordion-toggle.active:after {
        right: 13px;
    }
    
    .oa-faq-accordion-panel {
        padding: 0 0.8em 1em;
        font-size: 0.8em;
    }
}