/* ==========================================================================
   OPTIMIZED WEBSITE STYLES - FINAL FIXES FOR CLS & MOBILE MENU
   ========================================================================== */

:root {
    --color-primary: #1a1a1a;
    --color-header: #2d3748;
    --color-footer: #1f2937;
    --color-text: #ffffff;
    --color-accent: #60a5fa;
    --color-success: #059669;
    --color-error: #dc2626;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --z-header: 50;
    --z-dropdown: 100;
    --z-modal: 200;
    --z-back-to-top: 50;
}

/* ==========================================================================
   BASE LAYOUT
   ========================================================================== */

.container {
    width: min(95%, 1400px);
    margin: 0 auto;
    padding: 0 0.25rem;
}

main#main {
    min-height: 400px;
}

section {
    margin: 0;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

header {
    background: var(--color-header);
    padding: 1rem 0;
    position: relative;
    z-index: var(--z-header);
    min-height: 80px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    flex-direction: column;
    gap: 0.75rem;
}

/* FIXED: Logo container - 60% bigger on mobile and desktop */
.logo-container {
    max-width: 480px !important; /* 60% bigger than 300px */
    width: 450px !important; /* 60% bigger than 280px */
    height: 160px !important; /* 60% bigger than 100px */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    contain: layout;
    transition: opacity var(--transition-fast);
}

/* TO THIS: */
.logo-container img {
    width: 100%;
    height: auto;
    max-height: 160px;  /* FIXED: Increased from 100px (60% bigger) */
    object-fit: contain;
    display: block;
}

/* ==========================================================================
   MOBILE-FIRST RESPONSIVE SYSTEM - FIXED
   ========================================================================== */

/* Hide desktop elements by default */
.header-center,
.header-right,
.parallax-container,
.footer-parallax-container {
    display: none;
}

/* Show mobile elements by default */
.mobile-controls,
.mobile-banner,
.md\:hidden,
.mobile-footer-banner {
    display: flex;
}

.header-left {
    order: 1;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-controls {
    order: 2;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.md\:hidden {
    order: 3;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

/* ==========================================================================
   MOBILE MENU - FIXED FOR VERTICAL STACKING
   ========================================================================== */

#mobile-menu-button,
.mobile-search-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #4b5563;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s;
    font-size: 0.875rem;
}

#mobile-menu-button:hover,
.mobile-search-toggle:hover {
    background: #374151;
}

#mobile-menu-button svg,
.mobile-search-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* FIXED: Mobile menu as proper vertical dropdown */
#mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2d3748;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.75rem;
    z-index: var(--z-dropdown);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    max-height: 70vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column; /* ENSURE VERTICAL STACKING */
    gap: 0;
}

#mobile-menu.hidden {
    display: none;
}

/* FIXED: Mobile menu links - force vertical stacking */
.mobile-menu-link {
    display: block !important;
    width: 100% !important;
    padding: 1rem 1.25rem;
    color: var(--color-text);
    border-radius: 0.375rem;
    transition: background-color var(--transition-fast);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    flex-direction: column; /* FORCE VERTICAL */
}

.mobile-menu-link:last-child {
    border-bottom: none;
}

.mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* FIXED: Mobile submenu styling - force vertical */
.mobile-submenu-button {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.875rem;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: background-color var(--transition-fast);
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    flex-direction: row; /* Keep button as row for arrow */
}

.mobile-submenu-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-submenu-button svg {
    width: 0.75rem !important;
    height: 0.75rem !important;
    transition: transform 0.2s ease;
    margin-left: 0.5rem;
    flex-shrink: 0;
}
/* Desktop explore arrow */
.explore-arrow {
    width: 0.75rem !important;
    height: 0.75rem !important;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.mobile-submenu {
    display: flex;
    flex-direction: column !important; /* FORCE VERTICAL STACKING */
    width: 100% !important;
    padding: 0.75rem 0 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.375rem;
    margin: 0.5rem 0;
    border-left: 3px solid #60a5fa;
    box-sizing: border-box;
}

.mobile-submenu.hidden {
    display: none !important;
}

.mobile-submenu a {
    display: block !important;
    width: 100% !important;
    padding: 0.75rem 1rem;
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.8125rem;
    border-radius: 0.25rem;
    transition: background-color var(--transition-fast);
    margin-bottom: 0.25rem;
    box-sizing: border-box;
}

.mobile-submenu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ==========================================================================
   DESKTOP LAYOUT - FIXED DUPLICATION ISSUES
   ========================================================================== */

@media (min-width: 1025px) {
    /* COMPLETELY HIDE MOBILE ELEMENTS */
    .mobile-controls,
    #mobile-menu-button,
    .mobile-banner,
    .md\:hidden,
    .mobile-footer-banner {
        display: none !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Show desktop elements */
    .header-center,
    .header-right,
    .parallax-container,
    .footer-parallax-container {
        display: flex !important;
    }
    
    .header-content {
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 1.5rem !important;
        padding-left: 0 !important;  /* Add this */
        margin-left: -50px !important;  /* Add this - roughly 2 inches */
    }
    
    .header-left {
        flex: 0 0 auto;
        min-width: 450px; /* Updated for bigger logo */
        max-width: 550px; /* Updated for bigger logo */
        text-align: left;
        order: 1;
        justify-content: flex-start;
    }
    
    /* FIXED: Desktop logo - 60% bigger */
    .logo-container {
        max-width: 720px !important; /* 60% bigger than 450px */
        width: 560px !important; /* 60% bigger than 350px */
        height: 160px !important; /* Keep height consistent */
        min-width: 450px !important;
    }
    
    .header-center {
        flex: 1 1 auto;
        justify-content: center;
        order: 2;
        padding: 0 2rem;
    }
    
    nav ul {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 0.75rem;
        justify-content: center;
        align-items: center;
    }
    
    nav ul li a {
        color: #93c5fd;
        text-decoration: none;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0.5rem 0.75rem;
        border-radius: 0.5rem;
        font-weight: 500;
        font-size: 0.875rem;
        white-space: nowrap;
        display: block;
    }
    
    nav ul li a:hover {
        color: #ffffff;
        transform: translateY(-2px) scale(1.05);
        background: rgba(59, 130, 246, 0.1);
    }
    
    /* Desktop explore dropdown */
    .explore-dropdown-btn {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0.5rem 0.75rem;
        border-radius: 0.5rem;
        font-weight: 500;
        font-size: 0.875rem;
        color: #93c5fd;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .explore-dropdown-btn:hover {
        color: #ffffff;
        background: rgba(59, 130, 246, 0.1);
    }
    
    .explore-arrow {
        width: 0.75rem !important;
        height: 0.75rem !important;
        transition: transform 0.2s ease;
        flex-shrink: 0;
    }
    
    #explore-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        background: #1f2937;
        border: 1px solid #374151;
        border-radius: 0.5rem;
        padding: 0.5rem 0;
        box-shadow: 0 10px 25px rgba(0,0,0,0.3);
        z-index: var(--z-dropdown);
        min-width: 200px;
        margin-top: 0.5rem;
    }
    
    #explore-dropdown a {
        display: block;
        padding: 0.5rem 1rem;
        color: #e5e7eb;
        text-decoration: none;
        transition: background-color 0.2s ease;
        font-size: 0.875rem;
    }
    
    #explore-dropdown a:hover {
        background: #374151;
        color: #ffffff;
    }
    
    .header-right {
        flex: 0 0 auto;
        min-width: 200px;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
        order: 3;
    }
}

/* ==========================================================================
   SEARCH FUNCTIONALITY
   ========================================================================== */

.header-search-container {
    position: relative;
    margin-bottom: 0.5rem;
}

.search-toggle-btn {
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.3);
    color: #93c5fd;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-toggle-btn:hover {
    background: rgba(59,130,246,0.2);
    color: #ffffff;
}

.expandable-search-form {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    padding: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: var(--z-dropdown);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.expandable-search-form.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.expandable-search-form input {
    width: 100%;
    background: #374151;
    border: 1px solid #4b5563;
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

.expandable-search-form button {
    width: 100%;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
}

.mobile-search-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal);
    display: none;
}

.mobile-search-backdrop.show {
    display: block;
}

.mobile-search-form {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal);
    width: calc(100vw - 4rem);
    max-width: 280px;
}

.mobile-search-form.hidden {
    display: none;
}

.mobile-search-form input {
    width: 100%;
    background: #374151;
    border: 1px solid #4b5563;
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
}

.mobile-search-form button {
    width: 100%;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
}

/* ==========================================================================
   BANNER IMAGES - FIXED LAYOUT ISSUES
   ========================================================================== */

/* Mobile Banner - FIXED PERFORMANCE */
.mobile-banner {
    height: 300px;
    width: 100%;
    background: #1a1a1a url('/images/header-sm.webp') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    contain: layout paint style;
}

.mobile-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
    z-index: 1;
}

.mobile-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 2rem);
    text-align: center;
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    line-height: 1.3;
    color: white;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    word-wrap: break-word;
    max-width: 90%;
    margin: 0;
    padding: 0 1rem;
    contain: layout;
    will-change: transform;
}

/* Desktop Parallax - FIXED PERFORMANCE */
@media (min-width: 1025px) {
    .mobile-banner {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .parallax-container {
        display: block !important;
        position: relative;
        height: 60vh;
        min-height: 500px;
        max-height: 600px;
        overflow: hidden;
        margin: 0;
        padding: 0;
        contain: layout paint style;
    }
    
    .parallax-bg {
        position: absolute;
        top: -20%;
        left: 0;
        width: 100%;
        height: 140%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: 1;
        will-change: transform;
        backface-visibility: hidden;
        transform: translate3d(0,0,0);
    }
    
    .parallax-content {
        position: relative;
        z-index: 2;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
    }
    
    .parallax-title {
        font-size: clamp(2rem, 5vw, 3rem);
        text-align: center;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
        color: white;
        line-height: 1.2;
        word-wrap: break-word;
        max-width: 90%;
        margin: 0;
        contain: layout;
    }
    
    .banner-parallax {
        background-image: url('/images/header-lg.webp');
    }
}

/* Mobile Footer */
.mobile-footer-banner {
    position: relative;
    height: 30vh;
    min-height: 200px;
    background: #1a1a1a url('/images/footer-sm.webp') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    contain: layout paint style;
}

.mobile-footer-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
    z-index: 1;
}

.mobile-footer-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 1rem;
}

/* Desktop Footer - FIXED */
@media (min-width: 1025px) {
    .mobile-footer-banner {
        display: none !important;
        height: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .footer-parallax-container {
        display: block !important;
        position: relative;
        height: 60vh;
        min-height: 400px;
        max-height: 500px;
        overflow: hidden;
        margin-top: 2rem;
        background: #1a1a1a;
        contain: layout paint style;
    }
    
    .footer-parallax {
        position: absolute;
        top: -20%;
        left: 0;
        width: 100%;
        height: 140%;
        background: #1a1a1a url('/images/footer-lg.webp') center/cover;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: 1;
        will-change: transform;
        backface-visibility: hidden;
        transform: translate3d(0,0,0);
    }
    
    .footer-parallax-container::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
        z-index: 2;
    }
}

/* ==========================================================================
   SOCIAL MEDIA ICONS
   ========================================================================== */

.social-media-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem auto 0;
    flex-wrap: wrap;
    max-width: 500px;
    padding: 0 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.social-icon:hover::before {
    width: 150%;
    height: 150%;
}

.social-icon svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    width: 1.25rem;
    height: 1.25rem;
}

.social-icon:hover svg {
    transform: scale(1.2) rotate(5deg);
}

.social-icon.facebook { color: #1877f2; }
.social-icon.twitter { color: #000000; }
.social-icon.linkedin { color: #0a66c2; }
.social-icon.youtube { color: #ff0000; }
.social-icon.instagram { color: #e1306c; }
.social-icon.pinterest { color: #bd081c; }
.social-icon.tiktok { color: #000000; }

/* ==========================================================================
   SHARE BUTTONS - PROPERLY STYLED BUTTONS
   ========================================================================== */

/* Share section container */
.share-section {
    text-align: center;
    margin: 2rem auto;
    max-width: 800px;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8), rgba(55, 65, 81, 0.6));
    border-radius: 1rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
}

.share-section h3 {
    color: #60a5fa;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.share-section p {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 600px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #374151, #4b5563);
    border: 1px solid #6b7280;
    border-radius: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.share-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.share-button:hover::before {
    left: 100%;
}

.share-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    border-color: currentColor;
}

.share-button:active {
    transform: translateY(-1px) scale(1.02);
}

.share-button svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.share-button:hover svg {
    transform: rotate(5deg) scale(1.1);
}

/* Individual share button colors */
.share-button.email {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
}

.share-button.email:hover {
    background: linear-gradient(135deg, #047857, #059669);
    border-color: #10b981;
}

.share-button.facebook {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    color: white;
}

.share-button.facebook:hover {
    background: linear-gradient(135deg, #166fe5, #1877f2);
    border-color: #42a5f5;
}

.share-button.twitter {
    background: linear-gradient(135deg, #1d9bf0, #55c2ff);
    color: white;
}

.share-button.twitter:hover {
    background: linear-gradient(135deg, #1a8cd8, #1d9bf0);
    border-color: #55c2ff;
}

.share-button.linkedin {
    background: linear-gradient(135deg, #0a66c2, #378fe6);
    color: white;
}

.share-button.linkedin:hover {
    background: linear-gradient(135deg, #0959aa, #0a66c2);
    border-color: #378fe6;
}

/* ==========================================================================
   IMAGE SIZING - REVERTED TO PROPER PROPORTIONS (800x600 style)
   ========================================================================== */

/* REVERTED: Feature images back to proper proportions */
.feature-card {
    background: #1f2937;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    contain: layout paint;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* REVERTED: Feature images - w-full h-auto object-cover style */
.feature-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/3; /* 800x600 proportion */
    display: block;
    content-visibility: auto;
}

.feature-content {
    padding: 1.5rem;
}

/* REVERTED: Blog preview images - w-full h-auto object-cover style */
.blog-preview {
    background: #1f2937;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    contain: layout paint;
}

.blog-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog-preview-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/3; /* 800x600 proportion */
    display: block;
    content-visibility: auto;
}

.blog-preview-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-preview-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #60a5fa;
}

.blog-preview-excerpt {
    color: #d1d5db;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-preview-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.blog-preview-link:hover {
    gap: 0.75rem;
}

/* Shop/Product grid */
.product-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.product-card {
    background: #1f2937;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Product images - square aspect ratio */
.product-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1; /* Square for products */
    display: block;
    content-visibility: auto;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #60a5fa;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #10b981;
}

/* ==========================================================================
   FORMS SYSTEM
   ========================================================================== */

.forms-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .forms-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.form-card {
    background: #1f2937;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.form-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 0.5rem;
}

.form-card p {
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: #e5e7eb;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    background: #374151;
    border: 1px solid #4b5563;
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 0.375rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.captcha-container {
    background: #374151;
    padding: 1rem;
    border-radius: 0.375rem;
    margin: 1rem 0;
    border: 1px solid #4b5563;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.captcha-container.show {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
    transform: translateY(0);
    pointer-events: auto;
}

.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.captcha-image {
    border-radius: 0.25rem;
    border: 1px solid #6b7280;
    max-width: 200px;
    height: auto;
    display: block;
    margin: 1rem 0;
}

.captcha-refresh {
    background: #4b5563;
    border: 1px solid #6b7280;
    color: #e5e7eb;
    padding: 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    transition: background 0.2s ease;
}

.captcha-refresh:hover {
    background: #374151;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-success, .form-error {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-top: 1rem;
    display: none;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-success[style*="display: block"],
.form-error[style*="display: block"] {
    display: block !important;
    opacity: 1;
    visibility: visible;
    max-height: 200px;
    pointer-events: auto;
}

.form-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #10b981;
}

.form-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.hidden-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.helper-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
}
/* ==========================================================================
   CAROUSEL - FIXED TO REMOVE EXTRA BUTTONS
   ========================================================================== */

.related-logos-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 4rem; /* Space for desktop buttons */
    overflow: visible;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
    border-radius: 0.5rem;
}

.related-logos-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: grab;
    touch-action: pan-y;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.related-logos-track:active {
    cursor: grabbing;
}

.related-logos-track.no-transition {
    transition: none !important;
}

.related-logo-item {
    flex: 0 0 280px;
    width: 280px;
    user-select: none;
    pointer-events: auto;
    transition: transform 0.3s ease;
}

.related-logo-item:hover {
    transform: translateY(-3px);
}

.related-logo-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.related-logo-item a:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-logo-item img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 0.375rem;
    transition: transform 0.3s ease;
}

.related-logo-item:hover img {
    transform: scale(1.05);
}

/* CAROUSEL BUTTONS - DESKTOP ONLY */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(37, 99, 235, 0.9);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-nav.prev {
    left: -1.5rem;
}

.carousel-nav.next {
    right: -1.5rem;
}

.carousel-nav:hover:not(:disabled) {
    background: rgba(29, 78, 216, 0.95);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(107, 114, 128, 0.7);
}

.carousel-nav svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* MOBILE - COMPLETELY HIDE ALL CAROUSEL BUTTONS */
@media (max-width: 1024px) {
    /* FORCE HIDE ALL CAROUSEL BUTTONS ON MOBILE */
    .carousel-nav,
    .carousel-nav.prev,
    .carousel-nav.next {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Mobile container - no space for buttons */
    .related-logos-container {
        padding: 0 1rem !important;
        overflow: hidden !important; /* Hide overflow on mobile */
    }
    
    /* Mobile items */
    .related-logo-item {
        flex: 0 0 calc(100vw - 8rem);
        width: calc(100vw - 8rem);
        max-width: 240px;
    }
    
    .related-logos-track {
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .related-logos-container {
        padding: 0 0.5rem !important;
    }
    
    .related-logo-item {
        flex: 0 0 calc(100vw - 4rem);
        width: calc(100vw - 4rem);
        max-width: 200px;
    }
}
/* ==========================================================================
   BACK TO TOP BUTTON - FIXED FOR DISPLAY FLEX LOGIC
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: rgba(29, 78, 216, 0.9);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: none; /* Start hidden */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9999;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px) scale(0.8);
}

.back-to-top:hover {
    background-color: rgba(30, 64, 175, 0.95);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.back-to-top:active {
    transform: translateY(-1px) scale(1.05);
}

.back-to-top svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .back-to-top svg {
        width: 1rem;
        height: 1rem;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    background: #1f2937;
    padding: 2rem 1rem;
    text-align: center;
    color: #d1d5db;
}

footer a {
    color: #93c5fd;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ==========================================================================
   COOKIE CONSENT
   ========================================================================== */

#cookieConsent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(31, 41, 55, 0.95);
    color: white;
    padding: 1rem;
    z-index: var(--z-modal);
    backdrop-filter: blur(4px);
}

.cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
}

.cookie-buttons button {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#acceptCookies {
    background: #059669;
    color: white;
}

#acceptCookies:hover {
    background: #047857;
}

#declineCookies {
    background: #4b5563;
    color: white;
}

#declineCookies:hover {
    background: #374151;
}

/* ==========================================================================
   GRID LAYOUTS
   ========================================================================== */

.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ==========================================================================
   IMAGE GALLERIES
   ========================================================================== */

.image-gallery {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    content-visibility: auto;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ==========================================================================
   RESPONSIVE LANDSCAPE FIXES
   ========================================================================== */

@media (max-width: 1024px) and (orientation: landscape) {
    .logo-container {
        max-width: 400px !important;
        width: 350px !important;
    }
    
    .mobile-banner {
        height: 250px;
    }
    
    .mobile-title {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
    }
}

@media (max-width: 667px) and (orientation: landscape) and (max-height: 375px) {
    .logo-container {
        max-width: 300px !important;
        width: 250px !important;
    }
    
    .mobile-banner {
        height: 200px;
    }
}

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

.deferred-content { 
    opacity: 0; 
    transition: opacity 0.3s ease; 
}

.deferred-content.loaded { 
    opacity: 1; 
}

/* Hardware acceleration for smooth animations */
.parallax-bg,
.footer-parallax,
.related-logos-track,
.carousel-nav {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Font loading */
.fonts-loaded body, 
.fonts-loaded h1, .fonts-loaded h2, .fonts-loaded h3, 
.fonts-loaded h4, .fonts-loaded h5, .fonts-loaded h6 {
    font-family: 'Montserrat', system-ui, sans-serif;
}

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

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.space-x-3>*+* { margin-left: 0.75rem; }
.hidden { display: none; }
.bg-gray-600 { background: #4b5563; }
.bg-gray-700 { background: #374151; }
.bg-gray-800 { background: #1f2937; }
.bg-gray-900 { background: #111827; }
.bg-blue-700 { background: #1d4ed8; }
.bg-blue-800 { background: #1e40af; }
.text-white { color: #fff; }
.text-blue-300 { color: #93c5fd; }
.text-blue-400 { color: #60a5fa; }
.text-gray-300 { color: #d1d5db; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.my-12 { margin-top: 2rem; margin-bottom: 2rem; }
.mx-auto { margin: 0 auto; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-2xl { font-size: 1.5rem; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.w-full { width: 100%; }
.h-auto { height: auto; }
.object-cover { object-fit: cover; }
.transition-colors { 
    transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

.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;
}

.focus\:not-sr-only:focus {
    position: fixed;
    width: auto;
    height: auto;
    padding: 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: #1a1a1a;
    color: #fff;
    z-index: 9999;
    top: 0;
    left: 0;
}

/* ==========================================================================
   REDUCED MOTION SUPPORT
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* CAROUSEL BUTTON FIXES */
.carousel-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(37, 99, 235, 0.9) !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    z-index: 999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 3rem !important;
    height: 3rem !important;
    pointer-events: auto !important;
}

.carousel-nav.prev {
    left: -1.5rem !important;
}

.carousel-nav.next {
    right: -1.5rem !important;
}

.carousel-nav:hover:not(:disabled) {
    background: rgba(29, 78, 216, 0.95) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.carousel-nav:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

/* Ensure container allows buttons to be visible outside */
.related-logos-container {
    overflow: visible !important;
    position: relative !important;
}

/* ==========================================================================
   MOBILE CAROUSEL - STRICT BOUNDARY ENFORCEMENT
   ========================================================================== */

@media (max-width: 1024px) {
    .related-logos-container {
        overflow: hidden !important;
        padding: 0 1rem !important;
        position: relative !important;
        width: 100% !important;
    }
    
    .carousel-viewport {
        overflow: hidden !important;
        width: 100% !important;
        position: relative !important;
    }
    
    .related-logos-track {
        display: flex !important;
        gap: 1rem !important;
        touch-action: pan-y !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        will-change: transform !important;
        position: relative !important;
        /* Prevent any chance of overflow */
        max-width: none !important;
    }
    
    .related-logo-item {
        flex: 0 0 240px !important; /* Fixed width for mobile */
        width: 240px !important;
        min-width: 240px !important;
        max-width: 240px !important;
        user-select: none !important;
        -webkit-touch-callout: none !important;
        pointer-events: auto !important;
    }
    
    /* Ensure images don't cause layout issues */
    .related-logo-item img {
        width: 100% !important;
        height: auto !important;
        max-height: 60px !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    /* COMPLETELY HIDE ALL CAROUSEL BUTTONS ON MOBILE */
    .carousel-nav {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
    }
}

/* Extra small mobile screens */
@media (max-width: 640px) {
    .related-logos-container {
        padding: 0 0.5rem !important;
    }
    
    .related-logo-item {
        flex: 0 0 200px !important;
        width: 200px !important;
        min-width: 200px !important;
        max-width: 200px !important;
    }
    
    .related-logos-track {
        gap: 0.75rem !important;
    }
    
    .related-logo-item img {
        max-height: 50px !important;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .related-logos-container {
        padding: 0 0.25rem !important;
    }
    
    .related-logo-item {
        flex: 0 0 180px !important;
        width: 180px !important;
        min-width: 180px !important;
        max-width: 180px !important;
    }
    
    .related-logos-track {
        gap: 0.5rem !important;
    }
}

