/* Fix for black box at bottom of page */
body {
    overflow-x: hidden;
}

/* Ensure no black backgrounds on benefit section */
#benefit .root,
#benefits .root {
    background-color: transparent !important;
}

/* Remove black decorations from footer */
.decoration-footer,
.decoration-footer svg {
    display: none !important;
}

#footer .decoration-footer {
    display: none !important;
}

/* Hide any stray black elements */
.page-nav-bottom {
    display: block !important;
}

/* Remove any overflow issues */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.main-wrap {
    overflow-x: hidden;
}

/* Keep Log In and Register buttons on same line */
.nav-auth {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

.nav-auth > div {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
}

/* Keep all navigation items on one line */
.header-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
}

.nav-logo.nav-menu {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
}

.scrollactive-nav ul {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
}

.scrollactive-nav ul li {
    white-space: nowrap !important;
}

/* Remove excessive padding from header */
.app-bar.header {
    padding-top: 0 !important;
}

.header .container {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}


/* How It Works Card Hover Effects */
.how-it-works-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.how-it-works-card:hover img {
    transform: scale(1.1) !important;
}

/* Testimonial Carousel Styling */
#testimonial_carousel .slick-dots {
    bottom: -50px;
}

#testimonial_carousel .slick-dots li button:before {
    font-size: 12px;
    color: #4CAF50;
    opacity: 0.5;
}

#testimonial_carousel .slick-dots li.slick-active button:before {
    opacity: 1;
    color: #4CAF50;
}

/* Testimonial Card Hover Effect */
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

/* Add margin bottom to testimonials section for dots */
#testimonials .testimonial-carousel {
    margin-bottom: 60px;
    padding: 0 20px;
    position: relative;
}

#testimonials .testimonial-carousel .slick-carousel {
    position: relative;
    overflow: visible;
}

/* Ensure proper spacing between cards */
#testimonial_carousel .slick-slide {
    margin: 0 10px;
}

#testimonial_carousel .slick-list {
    margin: 0 -10px;
    overflow: visible;
}

#testimonial_carousel .slick-track {
    display: flex;
    align-items: stretch;
}

/* Counter Numbers - Mobile Responsive */
@media (max-width: 767px) {
    .counter-number {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }

    .feature-stats .col-4,
    .cta-stats .col-md-4 {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .feature-stats .use-text-caption,
    .cta-stats .use-text-caption {
        font-size: 0.7rem !important;
    }
}

@media (max-width: 480px) {
    .counter-number {
        font-size: 1.2rem !important;
    }

    .feature-stats .use-text-caption,
    .cta-stats .use-text-caption {
        font-size: 0.65rem !important;
    }
}

/* Footer Background Styling */
.footer {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8f5e9 100%);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, #4CAF50 0%, #81C784 50%, #4CAF50 100%);
}

.footer .divider {
    border-top: 1px solid rgba(76, 175, 80, 0.2);
    margin-top: 0;
    margin-bottom: 0;
}

/* Darken logo for light footer background */
.footer .footer-brand img {
    filter: brightness(0.3) sepia(1) hue-rotate(50deg) saturate(2);
}

/* Hero Banner Image Styling */
#banner .object-art img,
[dir=ltr] #banner .object-art img,
[dir=rtl] #banner .object-art img {
    border-radius: 16px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
    border: 4px solid rgba(255, 255, 255, 0.9) !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    top: 140px !important;
    left: 0 !important;
    right: auto !important;
    transform: rotate(2deg) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

#banner .object-art img:hover,
[dir=ltr] #banner .object-art img:hover {
    transform: rotate(0deg) scale(1.02) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35) !important;
}

@media (max-width: 1279px) {
    #banner .object-art img,
    [dir=ltr] #banner .object-art img {
        top: 60px !important;
        left: 0 !important;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Show nav items on tablet landscape (960px - 1279px) */
@media (min-width: 960px) and (max-width: 1279px) {
    .scrollactive-nav.show-lg-up {
        display: block !important;
    }

    /* Hide hamburger on tablet landscape */
    .mobile-menu.show-md-down {
        display: none !important;
    }

    /* Match desktop positioning */
    #banner .text {
        margin-top: 220px !important;
    }

    #banner .object-art img {
        top: 260px !important;
    }
}

/* Hide auth buttons on small screens - use hamburger menu instead */
@media (max-width: 480px) {
    .nav-auth .hidden-xs-down {
        display: none !important;
    }
}

/* Fix About Preview cards on mobile */
@media (max-width: 576px) {
    #about-preview .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #about-preview .col-6 .p-4 {
        padding: 1.25rem !important;
    }

    #about-preview .col-6 .mb-4 {
        margin-bottom: 1rem !important;
    }
}

/* Mobile menu Register button - call to action */
.sidenav .collection:last-of-type .collection-item:last-child a {
    display: inline-block;
    background: linear-gradient(135deg, #FFA000, #FF8F00);
    color: white !important;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.sidenav .collection:last-of-type .collection-item:last-child a:hover {
    background: linear-gradient(135deg, #FF8F00, #F57C00);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 160, 0, 0.4);
}

/* Instant navbar active state */
.scrollactive-nav ul li a.current,
.scrollactive-nav ul li a.active {
    color: #4CAF50 !important;
    font-weight: 500;
}
