/* Home page specific styles */

/* Header Sticky Behavior */
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-bar {
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.top-bar.hidden {
    height: 0 !important;
    opacity: 0;
    transform: translateY(-100%);
}

/* Compact header state */
.header-container.compact {
    transform: translateY(0);
}

.header-container.compact .top-bar {
    height: 0;
    opacity: 0;
    transform: translateY(-100%);
}

        /* Proper backdrop blur support */
        .backdrop-blur-md {
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        /* Ensure text is readable on all screen sizes */
        

        /* Desktop layout - two clean lines */
        @media (min-width: 1024px) {
            .hero-text {
                line-height: 1.1;
                max-width: 1400px;
                /* Constrain width to prevent overflow */
            }
        }

        /* Tablet layout */
        @media (max-width: 1023px) and (min-width: 768px) {
            .hero-text {
                line-height: 1.2;
                max-width: 600px;
            }
        }

        /* Mobile layout - remove forced break */
        @media (max-width: 767px) {
            .hero-text br {
                display: none;
            }
        }


/* Add padding to body to compensate for fixed header */
body {
    padding-top: 120px; /* Adjust based on your header height */
}

/* Responsive padding adjustments */
@media (max-width: 1023px) {
    body {
        padding-top: 100px; /* Increased padding for taller mobile header */
    }

    /* Hide top bar completely on mobile */
    .top-bar {
        display: none !important;
    }

    /* Increase main header height on mobile */
    .main-header {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    /* Increase logo size on mobile for better visibility */
    .mobile-logo {
        height: 3rem !important; /* h-12 equivalent */
    }

    /* Hero section mobile responsive */
    .hero-section {
        min-height: 100vh !important;
        background-size: cover !important;
        background-position: center !important;
        display: flex !important;
        align-items: center !important;
    }

    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem !important;
        text-align: center !important;
        margin: 0 auto !important;
    }

    /* Hero text mobile adjustments */
    .hero-text {
        font-size: 1.75rem !important; /* text-3xl mobile */
        line-height: 1.3 !important;
        text-align: center !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        margin-bottom: 1.5rem !important;
    }


    /* Hero description mobile */
    .hero-description {
        font-size: 0.95rem !important;
        text-align: center !important;
        padding: 0 0.5rem !important;
        margin-bottom: 2rem !important;
        line-height: 1.6 !important;
    }

    /* Hero badge mobile - allow Tailwind margin classes to work */
    .hero-badge {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        /* margin-bottom removed to allow Tailwind classes mb-8 lg:mb-0 to work */
    }

    .hero-badge span {
        display: inline-block !important;
        font-size: 0.75rem !important;
        padding: 0.5rem 1rem !important;
        text-align: center !important;
    }

    /* Hero button mobile */
    .hero-button {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        margin-top: 2rem !important;
    }

    .hero-button button {
        width: 100% !important;
        max-width: 280px !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
        border-radius: 0.375rem !important;
    }

    /* Publications section mobile responsive */
    .publications-section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .publications-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .publications-content {
        text-align: center !important;
        margin-bottom: 2rem !important;
    }

    .publications-heading {
        font-size: 1.875rem !important; /* text-3xl */
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }

    .publications-description {
        font-size: 0.875rem !important; /* text-sm */
        margin-bottom: 1.5rem !important;
    }

    .publications-cards {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .publication-card {
        margin-bottom: 1rem !important;
    }

    .publications-navigation {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: center !important;
        margin-top: 1.5rem !important;
    }

    .publications-nav-buttons {
        order: 2 !important;
    }

    .publications-nav-dots {
        order: 1 !important;
    }

    /* Licensed Primary Dealers section mobile responsive */
    .dealers-section {
        position: static !important;
        left: auto !important;
        right: auto !important;
        margin-top: 0 !important;
        margin-bottom: 2rem !important;
        padding: 1rem !important;
    }

    .dealers-container {
        padding: 0 !important;
    }

    .dealers-card {
        border-radius: 0.5rem !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    }

    .dealers-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .dealers-header {
        padding: 1rem !important;
        text-align: center !important;
        background-size: cover !important;
        min-height: 200px !important;
    }

    .dealers-header h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        padding-left: 0 !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
    }

    .dealers-header p {
        padding-left: 0 !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
    }

    .dealers-navigation {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        justify-items: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .dealers-nav-buttons {
        justify-content: center !important;
        padding-left: 0 !important;
        margin-bottom: 0 !important;
    }

    .dealers-cards {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 1rem !important;
    }

    .dealer-card {
        margin-bottom: 1rem !important;
    }

    /* Members section mobile responsive */
    .members-section {
        min-height: 400px !important;
        padding: 2rem 0 !important;
    }

    .members-content-wrapper {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-bottom: 2rem !important;
        min-height: 400px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .members-content {
        max-width: 100% !important;
        padding: 1.5rem !important;
        text-align: center !important;
    }

    .members-play-button {
        margin-bottom: 1.5rem !important;
    }

    .members-play-button button {
        width: 4rem !important;
        height: 4rem !important;
    }

    .members-text {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 2rem !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .members-cta {
        width: 100% !important;
    }

    .members-cta button {
        width: 100% !important;
        max-width: 280px !important;
        padding: 0.875rem 1.5rem !important;
        font-size: 1rem !important;
    }

    /* Featured Products section mobile responsive */
    .products-section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .products-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 2rem !important;
        gap: 1.5rem !important;
    }

    .products-header-content {
        max-width: 100% !important;
        text-align: center !important;
    }

    .products-heading {
        font-size: 1.875rem !important; /* text-3xl */
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }

    .products-description {
        font-size: 0.875rem !important; /* text-sm */
        line-height: 1.5 !important;
    }

    .products-description br {
        display: none !important;
    }

    .products-view-all {
        order: 2 !important;
        width: 100% !important;
    }

    .products-view-all button {
        width: 100% !important;
        max-width: 200px !important;
    }

    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .product-card {
        margin-bottom: 1rem !important;
    }

    .product-image {
        height: 12rem !important; /* h-48 */
    }

    .product-content {
        padding: 1rem !important;
    }

    .product-title {
        font-size: 1.125rem !important; /* text-lg */
        margin-bottom: 0.75rem !important;
    }

    .product-description {
        font-size: 0.875rem !important; /* text-sm */
        margin-bottom: 1rem !important;
    }
}

/* Footer logo positioning - Desktop only */
/* @media (min-width: 768px) {
    .footer-logo-container {
        position: absolute;
        bottom: 8rem;
        right: 2rem;
        z-index: 10;
    }

    .footer-content {
        position: relative;
    }
} */

/* Footer links mobile responsive - 2x2 grid */
@media (max-width: 767px) {
    .footer-links-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
        margin-bottom: 2rem !important;
    }

    .footer-link-section {
        margin-bottom: 1.5rem !important;
    }

    .footer-link-section h4 {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .footer-link-section ul {
        space-y: 0.5rem !important;
    }

    .footer-link-section li {
        margin-bottom: 0.5rem !important;
    }

    .footer-link-section a {
        font-size: 0.875rem !important;
    }

    .footer-logo-container {
        position: static !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 1rem !important;
    }

    .footer-logo-container img {
        height: 3rem !important;
    }

    /* Publications carousel mobile optimizations */
    .publications-carousel {
        min-height: auto !important;
    }

    .publications-wrapper {
        min-height: auto !important;
    }

    /* Line clamp utility for publication titles */
    .line-clamp-2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-height: 2.5rem; /* Roughly 2 lines */
    }
}


            /* Mobile-only responsive design */
            @media (max-width: 639px) {
                .about-hero-section {
                    background-size: cover !important;
                    background-position: center !important;
                    min-height: 350px !important;
                }

                .mobile-title {
                    font-size: 1.5rem !important;
                    line-height: 1.4 !important;
                    padding: 0 1rem !important;
                }
                .mobile-breadcrumb {
                    bottom: 0 !important;
                    left: 1rem !important;
                    padding: 0.5rem 0.75rem !important;
                    font-size: 0.75rem !important;
                }

                /* Extra small screens - Hero adjustments */
                .hero-text {
                    font-size: 1.5rem !important; /* Slightly smaller on very small screens */
                    line-height: 1.25 !important;
                }

                .hero-description {
                    font-size: 0.875rem !important; /* text-sm */
                    padding: 0 1rem !important;
                }

                .hero-badge span {
                    font-size: 0.7rem !important;
                    padding: 0.375rem 0.75rem !important;
                }
            }

            /* Keep desktop as original */
            @media (min-width: 640px) {
                .about-hero-section {
                    background-size: contain !important;
                    min-height: 350px !important;
                }
            }