


/* 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;
	--color-background: #0f172a;
    --font-heading: '<?php echo isset($font_heading) ? $font_heading : "Montserrat"; ?>', serif;
    --font-body: '<?php echo isset($font_body) ? $font_body : "Open Sans"; ?>', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --z-header: 50;
    --z-dropdown: 100;
    --z-modal: 200;
    --z-back-to-top: 50;
}

/* Ensure variables are used */
body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
}

/* ==========================================================================
   H1 EXPLICIT FONT SIZING FIX - PageSpeed Deprecation Warning
   ========================================================================== */

/* Fix for h1 elements inside sectioning elements */
article h1, 
section h1, 
aside h1, 
nav h1 {
    font-size: 2.5rem !important; /* Explicit font-size to prevent deprecation warning */
}

/* Specific overrides for your existing classes */
.mobile-title {
    font-size: clamp(1.25rem, 4vw, 1.75rem) !important;
}

.parallax-title {
    font-size: clamp(2rem, 5vw, 3rem) !important;
}

/* Blog article h1 */
article .text-4xl {
    font-size: 2.25rem !important;
}

@media (min-width: 640px) {
    article .text-4xl {
        font-size: 2.5rem !important;
    }
}

@media (min-width: 1024px) {
    article .text-4xl {
        font-size: 3rem !important;
    }
}



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

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


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 - FIXED MOBILE LAYOUT
   ========================================================================== */

.social-media-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* Desktop gap */
    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);
}

/* FIXED: Mobile spacing to prevent wrapping */
@media (max-width: 768px) {
    .social-media-icons {
        gap: 1rem; /* Reduced from 1.5rem */
        max-width: 400px; /* Slightly smaller container */
        padding: 0 0.5rem; /* Less side padding */
        margin: 1rem auto 0; /* Less top margin */
    }
    
    .social-icon {
        padding: 0.25rem; /* Slightly smaller padding */
    }
    
    .social-icon svg {
        width: 1.125rem; /* Slightly smaller icons */
        height: 1.125rem;
    }
}

/* FIXED: Even tighter spacing for very small screens */
@media (max-width: 480px) {
    .social-media-icons {
        gap: 0.75rem; /* Even smaller gap */
        max-width: 350px;
        padding: 0 0.25rem;
    }
    
    .social-icon {
        padding: 0.2rem; /* Minimal padding */
    }
    
    .social-icon svg {
        width: 1rem; /* Smaller icons for tiny screens */
        height: 1rem;
    }
}

/* FIXED: Portrait orientation specific fixes */
@media (max-width: 480px) and (orientation: portrait) {
    .social-media-icons {
        gap: 0.6rem; /* Very tight spacing in portrait */
        max-width: 320px; /* Fit better in portrait */
    }
}

/* Individual icon colors (unchanged) */
.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: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) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    border-color: rgba(96, 165, 250, 0.5);
}

/* FIXED: Logo link container */
.related-logo-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    width: 100%;
    text-decoration: none;
    padding: 0.25rem; /* Minimal padding */
    color: #ffffff;
    background: transparent;
    transition: all 0.3s ease;
}

.related-logo-item a:hover {
    background: rgba(96, 165, 250, 0.1);
    color: #93c5fd;
}



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

/* Desktop Buttons - Clean and Professional */
.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;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    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 240px;
        width: 240px;
        min-height: 120px;
    }
    
    .related-logos-track {
        gap: 1rem;
    }
	
	.related-logo-item a {
        padding: 1rem;
        min-height: 120px;
    }
	
}

@media (max-width: 640px) {
    .related-logos-container {
        padding: 0 0.5rem !important;
    }
    
    .related-logo-item {
        flex: 0 0 200px;
        width: 200px;
        min-height: 110px;
    }
	
	.related-logo-item a {
        padding: 0.75rem;
        min-height: 110px;
    }
}
/* ==========================================================================
   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;
        margin-bottom: 0.5rem;
    }
}

/* 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;
    }
}

/* OPTIMIZED STYLES FOR FORMATTED CONTENT */

/* FAQ Styles */
.faq-item {
    margin-bottom: 1.5rem;
    background: #1f2937;
    border-radius: 0.75rem;
    overflow: hidden;
    contain: layout; /* Only on container */
}

.faq-content {
    padding: 1rem;
    border-left: 4px solid #3b82f6;
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #60a5fa;
}

.faq-answer-text {
    margin-bottom: 0.75rem;
    color: #d1d5db;
}

.faq-list {
    margin: 0.75rem 0;
    padding: 0;
}

.faq-list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.faq-bullet {
    color: #60a5fa;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* Resources Styles */
.resources-header {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #60a5fa;
}

.resources-list {
    margin-bottom: 1.5rem;
    space-y: 0.75rem;
}

.resource-item {
    padding: 0.75rem;
    background: #1f2937;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.resource-name {
    font-weight: 600;
    color: #93c5fd;
}

.resource-desc {
    color: #d1d5db;
    margin-top: 0.25rem;
}

.resource-link {
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.resource-link:hover {
    text-decoration: underline;
}

/* Testimonials Styles */
.testimonial-item {
    margin-bottom: 2rem;
    background: #1f2937;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.testimonial-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #60a5fa;
}

.testimonial-desc {
    font-size: 1.125rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.testimonial-quote {
    color: #9ca3af;
    font-style: italic;
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
}

/* TOOK THE BELOW FROM TEMPLATE */
/* CLS prevention for content areas */
.space-y-6 {
    min-height: 500px !important;
    contain: layout !important;
}

.max-w-4xl {
    contain: layout !important;
}

/* Ensure main content has stable height */
main#main {
    min-height: 600px;
    contain: layout;
    padding: 1rem 0;
}

    /* CRITICAL CSS - CLS PREVENTION & PERFORMANCE OPTIMIZED */
    *, *::before, *::after { 
        box-sizing: border-box; 
        margin: 0; 
        padding: 0; 
    }
    
    body { 
        font-family: system-ui, -apple-system, sans-serif; 
        background: #1a1a1a; 
        color: #fff; 
        line-height: 1.5; 
        overflow-x: hidden;
        contain: layout style paint;
    }
    
    html, body { 
        max-width: 100vw !important; 
        overflow-x: hidden !important; 
    }
    
    .container { 
        width: min(95%, 1400px); 
        margin: 0 auto; 
        padding: 0 1rem; 
    }
    
    /* FIXED: Header with explicit sizing to prevent CLS */
    header { 
        background: #2d3748; 
        padding: 1rem 0; 
        min-height: 80px; 
        position: relative;
        contain: layout style;
    }
    
    /* FIXED: Logo sizing - 60% bigger */
    .logo-container {
        max-width: 480px;
        width: 450px;
        height: 160px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        contain: layout;
    }
    
    .logo-container img {
        width: 100%;
        height: auto;
        max-height: 160px; /* FIXED: Increased from 100px to 160px (60% bigger) */
        object-fit: contain;
        display: block;
    }
    
    @media (min-width: 1025px) {
        .logo-container {
            max-width: 720px;
            width: 560px;
            height: 160px;
            min-width: 450px;
        }
    }
    
    .hidden { 
        display: none !important; 
    }
    
    /* FIXED: Mobile banner - PREVENT CLS with explicit dimensions */
    .mobile-banner { 
        height: 300px; 
        width: 100%;
        background: #1a1a1a; 
        display: flex;
        position: relative;
        contain: layout paint style;
        content-visibility: auto;
    }
    
    /* FIXED: Mobile title - PREVENT LAYOUT SHIFT */
    .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;
        /* FIXED: Reserve space to prevent CLS */
        min-height: 2.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* FIXED: Main content container with explicit sizing */
    main#main {
        min-height: 400px;
        contain: layout; /* Prevent layout shift */
        padding: 1rem 0; /* Add consistent padding */
    }
    
    @media (min-width: 1025px) {
        .mobile-banner { 
            display: none !important; 
            height: 0 !important;
            min-height: 0 !important;
            max-height: 0 !important;
            position: absolute !important;
            left: -9999px !important;
            visibility: hidden !important;
            opacity: 0 !important;
        }
        .parallax-container { 
            display: block !important; 
            min-height: 500px;
            contain: layout paint style;
        }
    }
    
    /* FIXED: Grid layouts - PREVENT CLS */
    .grid { 
        display: grid; 
        gap: 2rem;
        contain: layout;
    }
    .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)); }
    }
    
    /* REVERTED: Feature cards - 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 image - w-full h-auto object-cover style (800x600 proportions) */
    .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;
    }
    
    /* FIXED: Share buttons - PROPERLY STYLED AND CENTERED */
    .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-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 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);
    }
    
    /* Share button individual colors */
    .share-button.email {
        background: linear-gradient(135deg, #059669, #10b981);
    }
    
    .share-button.email:hover {
        background: linear-gradient(135deg, #047857, #059669);
        border-color: #10b981;
    }
    
    .share-button.facebook {
        background: linear-gradient(135deg, #1877f2, #42a5f5);
    }
    
    .share-button.facebook:hover {
        background: linear-gradient(135deg, #166fe5, #1877f2);
        border-color: #42a5f5;
    }
    
    .share-button.twitter {
        background: linear-gradient(135deg, #1d9bf0, #55c2ff);
    }
    
    .share-button.twitter:hover {
        background: linear-gradient(135deg, #1a8cd8, #1d9bf0);
        border-color: #55c2ff;
    }
    
    .share-button.linkedin {
        background: linear-gradient(135deg, #0a66c2, #378fe6);
    }
    
    .share-button.linkedin:hover {
        background: linear-gradient(135deg, #0959aa, #0a66c2);
        border-color: #378fe6;
    }
    
    /* FIXED: Mobile menu vertical stacking */
    #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: 100;
        box-shadow: 0 10px 25px rgba(0,0,0,0.3);
        backdrop-filter: blur(8px);
        max-height: 70vh;
        overflow-y: auto;
    }
    
    #mobile-menu > * {
        display: block !important;
        width: 100% !important;
        margin-bottom: 0.25rem;
    }
    
/* BACK TO TOP BUTTON - NUCLEAR OPTION */
#backToTop {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    background: #1d4ed8 !important;
    color: white !important;
    width: 3rem !important;
    height: 3rem !important;
    border-radius: 50% !important;
    border: none !important;
    cursor: pointer !important;
    z-index: 999999 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) !important;
    pointer-events: none !important;
    /* FORCE POSITIONING */
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    float: none !important;
    clear: both !important;
}

#backToTop.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

#backToTop:hover {
    background: #1e40af !important;
    transform: translateY(-2px) scale(1.1) !important;
}

#backToTop svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    pointer-events: none !important;
}

@media (max-width: 768px) {
    #backToTop {
        bottom: 1.5rem !important;
        right: 1.5rem !important;
        width: 2.5rem !important;
        height: 2.5rem !important;
    }
    
    #backToTop svg {
        width: 1rem !important;
        height: 1rem !important;
    }
}
    
    /* Explore dropdown positioning fix */
    nav ul li { 
        position: relative; 
    }
    
    #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: 100;
        min-width: 200px;
        margin-top: 0.5rem;
    }
    
    /* Footer navigation styling */
    .footer-nav {
        margin-bottom: 1rem;
    }
    
    .footer-nav ul {
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        padding: 0;
        margin: 0;
    }
    
    .footer-nav a {
        color: #93c5fd;
        text-decoration: none;
        padding: 0.5rem 1rem;
        display: block;
        transition: color 0.3s ease;
    }
    
    .footer-nav a:hover {
        color: #ffffff;
        text-decoration: underline;
    }
    
    /* Mobile viewport fix */
    @media (max-width: 768px) {
        body {
            padding: 0;
        }
        
        .container {
            padding: 0 0.5rem;
        }
    }
    
    /* REVERTED: Blog preview cards - proper proportions */
    .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);
    }
    
    /* REVERTED: Blog preview image - w-full h-auto object-cover style (800x600 proportions) */
    .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 for products */
    .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;
    }
    
    /* 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);
    }
    
    /* PERFORMANCE: Deferred content loading */
    .deferred-content {
        opacity: 0;
        transition: opacity 0.3s ease;
        content-visibility: auto;
    }
    
    .deferred-content.loaded {
        opacity: 1;
    }
    
    /* FIXED: Brand value page nicestdomains image - 800x600 sizing */
    .brand-value-image,
    .nicestdomains-image,
    img[src*="brandvalue"],
    img[src*="nicestdomains"] {
        max-width: 800px !important;
        max-height: 600px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        aspect-ratio: 4/3 !important;
        margin: 1rem auto !important;
        display: block !important;
        border-radius: 0.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    /* Mobile sizing for brand value image */
    @media (max-width: 768px) {
        .brand-value-image,
        .nicestdomains-image,
        img[src*="brandvalue"],
        img[src*="nicestdomains"] {
            max-width: 95% !important;
            max-height: 400px !important;
        }
    }
    
    /* UTILITY CLASSES FOR PROPER IMAGE SIZING */
    .w-full { width: 100%; }
    .h-auto { height: auto; }
    .object-cover { object-fit: cover; }
	
	
/* ADD THESE SPECIFIC FIXES TO THE INLINE CSS IN TEMPLATE.PHP */

/* LOGO FIX - REMOVE ALL CONSTRAINTS */
.header-left {
    flex: 0 0 auto !important;
    min-width: unset !important;
    max-width: unset !important;
    width: auto !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.logo-container {
    max-width: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    contain: none !important;
    min-width: 600px !important; /* Force minimum size */
}

.logo-container img {
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: 120px !important; /* Force minimum height */
    max-width: 800px !important; /* Allow full width */
    object-fit: contain !important;
    display: block !important;
}

/* Mobile logo - bigger */
@media (max-width: 1024px) {
    .logo-container {
        min-width: 400px !important;
    }
    
    .logo-container img {
        min-height: 100px !important;
        max-width: 600px !important;
    }
}

/* Desktop logo - even bigger */
@media (min-width: 1025px) {
    .header-left {
        min-width: 450px !important;
        max-width: 550px !important;
    }
    
    .logo-container {
        min-width: 700px !important;
    }
    
    .logo-container img {
        min-height: 140px !important;
        max-width: 1000px !important;
    }
}


/* EXPLORE DROPDOWN - MOBILE FIX */
@media (max-width: 1024px) {
    #explore-dropdown {
        position: fixed !important;
        top: auto !important;
        left: 1rem !important;
        right: 1rem !important;
        bottom: auto !important;
        max-width: calc(100vw - 2rem) !important;
        width: auto !important;
        min-width: unset !important;
        background: #1f2937 !important;
        border: 1px solid #374151 !important;
        border-radius: 0.5rem !important;
        padding: 0.5rem 0 !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.3) !important;
        z-index: 150 !important;
        margin-top: 0.5rem !important;
        max-height: 60vh !important;
        overflow-y: auto !important;
    }
    
    #explore-dropdown a {
        display: block !important;
        padding: 0.75rem 1rem !important;
        color: #e5e7eb !important;
        text-decoration: none !important;
        transition: background-color 0.2s ease !important;
        font-size: 0.875rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    #explore-dropdown a:last-child {
        border-bottom: none !important;
    }
    
    #explore-dropdown a:hover {
        background: #374151 !important;
        color: #ffffff !important;
    }
}

/* DESKTOP HEADER ALIGNMENT FIX - SIMPLE SHIFT */
@media (min-width: 1025px) {
    .header-content {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 1.5rem !important;
        /* Shift entire header content left to align with main container */
        margin-left: -30px !important; /* Adjust this value as needed */
        padding-right: 30px !important; /* Compensate on the right */
    }
    
    .header-left {
        flex: 0 0 auto !important;
        min-width: 450px !important;
        order: 1 !important;
    }
    
    .header-center {
        flex: 1 1 auto !important;
        display: flex !important;
        justify-content: center !important;
        order: 2 !important;
        /* Shift menu slightly left */
        margin-left: -20px !important;
    }
    
    .header-right {
        flex: 0 0 auto !important;
        min-width: 200px !important;
        order: 3 !important;
        /* Pull search/social in from the right */
        margin-right: 10px !important;
    }
}
/* EXPLORE DROPDOWN - MOBILE FIX */
@media (max-width: 1024px) {
    /* FORCE SMALLER DROPDOWN */
    #explore-dropdown {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: auto !important;
        width: 200px !important; /* FORCE SMALL WIDTH */
        max-width: 200px !important;
        min-width: 200px !important;
        background: #1f2937 !important;
        border: 1px solid #374151 !important;
        border-radius: 0.5rem !important;
        padding: 0.5rem 0 !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.3) !important;
        z-index: 150 !important;
        margin-top: 0.5rem !important;
        max-height: 300px !important; /* LIMIT HEIGHT */
        overflow-y: auto !important;
    }
    
    /* FORCE SMALL DROPDOWN LINKS */
    #explore-dropdown a {
        display: block !important;
        padding: 0.5rem 0.75rem !important; /* SMALLER PADDING */
        color: #e5e7eb !important;
        text-decoration: none !important;
        transition: background-color 0.2s ease !important;
        font-size: 0.8125rem !important; /* SMALLER FONT */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        white-space: nowrap !important; /* PREVENT WRAPPING */
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    #explore-dropdown a:last-child {
        border-bottom: none !important;
    }
    
    #explore-dropdown a:hover {
        background: #374151 !important;
        color: #ffffff !important;
    }
    
    /* FORCE MOBILE SUBMENU BUTTON TO BE NORMAL SIZE */
    .mobile-submenu-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.75rem 1rem !important; /* SMALLER PADDING */
        font-size: 0.8125rem !important; /* SMALLER FONT */
    }
    
    /* MAKE SURE PARENT CONTAINER DOESN'T EXPAND */
    nav ul li {
        position: relative !important;
        max-width: 200px !important;
    }
    
    /* FORCE EXPLORE BUTTON TO BE NORMAL SIZE */
    .explore-dropdown-btn {
        max-width: 200px !important;
        width: auto !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8125rem !important;
        white-space: nowrap !important;
    }
}	

/* Fix mobile explore arrow size */
#mobile-menu .mobile-submenu-button svg {
    width: 0.75rem !important;
    height: 0.75rem !important;
    min-width: 0.75rem !important;
    min-height: 0.75rem !important;
    max-width: 0.75rem !important;
    max-height: 0.75rem !important;
}

/* MOBILE MENU ARROW FIX - VERY SPECIFIC */
#mobile-menu .mobile-submenu-button > svg,
#mobile-menu button[onclick*="toggleMobileSubmenu"] > svg {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    max-width: 12px !important;
    min-height: 12px !important;
    max-height: 12px !important;
    flex-shrink: 0 !important;
}

/* Also fix any desktop arrows that might leak into mobile */
@media (max-width: 1024px) {
    .explore-arrow {
        width: 12px !important;
        height: 12px !important;
    }
}


/* KILL ALL BACK TO TOP BUTTONS */
/* HIDE UNWANTED BACK TO TOP BUTTONS - FIXED SELECTOR */
#backToTop, 
.back-to-top,
#newBackToTop,
#pureBackToTop,
#backToTopButton,
.btn-back-to-top,
[class*="back-to-top"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
}

/* EXCEPTION: Allow our specific button to work */
#simpleBackToTop {
    /* Override the above hiding rules */
    position: fixed !important;
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    left: auto !important;
    
    /* Let JavaScript handle the show/hide logic */
    font-family: inherit !important;
    outline: none !important;
}
/* TARGETED FIX: Only disable containing block creators that affect fixed positioning */
/* Allow transforms to work properly */
body {
    contain: layout style !important; /* Keep layout containment but allow transforms */
    /* Remove transform: none - this was blocking all transforms! */
    will-change: auto !important;
}

/* Keep parallax effects but prevent them from affecting fixed positioning */
.parallax-bg,
.footer-parallax {
    /* Keep transforms for parallax, but prevent containing block issues */
    contain: style !important;
}
/* Don't apply contain to carousel track - it needs to transform freely */

.mobile-banner,
.parallax-container,
.footer-parallax-container {
    contain: style !important; /* Remove 'layout paint' and keep only 'style' */
}

/* Optimized back-to-top button */
#pureBackToTop {
    position: fixed !important;
    bottom: 32px !important;
    right: 32px !important;
    width: 48px !important;
    height: 48px !important;
    background: #1d4ed8 !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 999999 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    border: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(20px) scale(0.8) !important;
}

#pureBackToTop.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
}

#pureBackToTop:hover {
    background: #1e40af !important;
    transform: translateY(-2px) scale(1.1) !important;
}

/* MOBILE CAROUSEL - NO BUTTONS */
@media (max-width: 1024px) {
    .carousel-nav {
        display: none !important;
        pointer-events: none !important;
    }
    
    .related-logos-container {
        padding: 0 1rem !important; /* Less padding since no buttons */
    }
}

}

/* SHARE BUTTONS - COMPACT DESIGN */
.share-buttons-section {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8), rgba(55, 65, 81, 0.6));
    border: 1px solid rgba(96, 165, 250, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    margin: 1.5rem auto;
    max-width: 700px;
    padding: 1.5rem !important; /* Reduced from 2rem */
}

.share-buttons-section h3 {
    color: #60a5fa;
    font-size: 1.25rem !important; /* Reduced from 1.5rem */
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem !important; /* Reduced from 1.5rem */
}

.share-buttons-container {
    display: flex;
    gap: 0.75rem !important; /* Reduced from 1rem */
    flex-wrap: nowrap !important; /* Force single line */
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 100%;
    overflow-x: auto; /* Allow horizontal scroll on very small screens */
}

.share-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important; /* Reduced from 0.75rem */
    padding: 0.75rem 1rem !important; /* Reduced from 1rem 1.5rem */
    background: linear-gradient(135deg, #374151, #4b5563) !important;
    border: 1px solid #6b7280 !important;
    border-radius: 0.5rem !important; /* Reduced from 0.75rem */
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 0.8125rem !important; /* Reduced from 0.875rem */
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.025em !important; /* Reduced from 0.05em */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important; /* Reduced shadow */
    min-width: 100px !important; /* Reduced from 140px */
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    flex-shrink: 0 !important; /* Prevent buttons from shrinking */
}

.share-btn::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-btn:hover::before {
    left: 100%;
}

.share-btn:hover {
    transform: translateY(-2px) scale(1.03) !important; /* Reduced from -3px and 1.05 */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important; /* Reduced shadow */
    border-color: currentColor !important;
    text-decoration: none !important;
}

.share-btn svg {
    width: 1rem !important; /* Reduced from 1.25rem */
    height: 1rem !important; /* Reduced from 1.25rem */
    flex-shrink: 0 !important;
    transition: transform 0.3s ease !important;
}

.share-btn:hover svg {
    transform: rotate(3deg) scale(1.05) !important; /* Reduced rotation and scale */
}

/* Share button individual colors (unchanged) */
.share-btn-email {
    background: linear-gradient(135deg, #059669, #10b981) !important;
}

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

.share-btn-facebook {
    background: linear-gradient(135deg, #1877f2, #42a5f5) !important;
}

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

.share-btn-twitter {
    background: linear-gradient(135deg, #1d9bf0, #55c2ff) !important;
}

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

.share-btn-linkedin {
    background: linear-gradient(135deg, #0a66c2, #378fe6) !important;
}

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

/* Mobile responsive design - UPDATED FOR COMPACT */
@media (max-width: 768px) {
    .share-buttons-container {
        gap: 0.5rem !important;
        overflow-x: auto !important;
        padding: 0 0.5rem !important; /* Add side padding for scroll */
    }
    
    .share-btn {
        padding: 0.5rem 0.75rem !important; /* Even smaller on mobile */
        font-size: 0.75rem !important;
        min-width: 85px !important; /* Smaller minimum width */
    }
    
    .share-btn svg {
        width: 0.875rem !important;
        height: 0.875rem !important;
    }
}

@media (max-width: 480px) {
    .share-buttons-container {
        gap: 0.375rem !important; /* Very tight spacing */
        justify-content: flex-start !important; /* Left align for scroll */
    }
    
    .share-btn {
        min-width: 75px !important;
        padding: 0.5rem 0.625rem !important;
    }
    
    .share-btn span {
        display: none !important; /* Hide text on very small screens, show only icons */
    }
    
    /* Show tooltips on very small screens */
    .share-btn:hover::after {
        content: attr(title);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 0.25rem 0.5rem;
        border-radius: 0.25rem;
        font-size: 0.75rem;
        white-space: nowrap;
        z-index: 1000;
    }
}

/* Remove extra spacing paragraph */
.share-buttons-section p {
    font-size: 0.75rem !important; /* Smaller helper text */
    margin-top: 0.75rem !important; /* Reduced margin */
}

/* ==========================================================================
   RETURN TO TOP BUTTON - CLEAN SOLUTION (Replace existing back-to-top CSS)
   ========================================================================== */

/* Remove all conflicting back-to-top button styles */
#backToTop, 
.back-to-top,
#newBackToTop,
#pureBackToTop,
[id*="BackToTop"]:not(#simpleBackToTop) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Our simple back-to-top button - no conflicts */
#simpleBackToTop {
    /* All styles are applied via JavaScript to prevent conflicts */
    font-family: inherit !important;
    outline: none !important;
}

#simpleBackToTop:focus {
    outline: 2px solid rgba(96, 165, 250, 0.5) !important;
    outline-offset: 2px !important;
}

/* ==========================================================================
   CAROUSEL MOBILE IMPROVEMENTS
   ========================================================================== */

/* Ensure carousel container doesn't allow overflow on mobile */
@media (max-width: 1024px) {
    .related-logos-container {
        overflow: hidden !important;
        padding: 0 1rem !important;
    }
    
    .carousel-viewport {
        overflow: hidden !important;
        touch-action: pan-y !important;
    }
    
    .related-logos-track {
        touch-action: pan-y !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
    }
    
    /* Prevent text selection during touch */
    .related-logo-item {
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -khtml-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
    }
}

/* ==========================================================================
   MOBILE RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 640px) {
    .related-logos-container {
        padding: 0 0.5rem !important;
    }
    
    .related-logo-item {
        flex: 0 0 calc(100vw - 4rem) !important;
        width: calc(100vw - 4rem) !important;
        max-width: 200px !important;
    }
    
    .related-logos-track {
        gap: 1rem !important;
    }
}

/* Ensure proper spacing for very small screens */
@media (max-width: 480px) {
    #simpleBackToTop {
        bottom: 20px !important;
        right: 20px !important;
        width: 40px !important;
        height: 40px !important;
    }
    
    .related-logos-container {
        padding: 0 0.25rem !important;
    }
}
/* ADD THIS TO THE INLINE <style> SECTION IN TEMPLATE.PHP */

/* MOBILE SOCIAL ICONS SPACING FIX */
@media (max-width: 768px) {
    .social-media-icons {
        gap: 1rem !important; /* Reduced from 1.5rem */
        max-width: 400px !important;
        padding: 0 0.5rem !important;
        margin: 1rem auto 0 !important;
    }
    
    .social-icon {
        padding: 0.25rem !important;
    }
    
    .social-icon svg {
        width: 1.125rem !important;
        height: 1.125rem !important;
    }
}

@media (max-width: 480px) {
    .social-media-icons {
        gap: 0.75rem !important; /* Even tighter for small screens */
        max-width: 350px !important;
        padding: 0 0.25rem !important;
    }
    
    .social-icon {
        padding: 0.2rem !important;
    }
    
    .social-icon svg {
        width: 1rem !important;
        height: 1rem !important;
    }
}

/* Portrait mode - extra tight */
@media (max-width: 480px) and (orientation: portrait) {
    .social-media-icons {
        gap: 0.6rem !important;
        max-width: 320px !important;
    }
}

/* ADD THIS TO THE <style> SECTION IN TEMPLATE.PHP - CLS PREVENTION */

/* FIXED: Testimonials grid CLS prevention */
.testimonials-container {
    contain: layout;
    min-height: 600px;
}

.testimonials-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
    contain: layout !important;
}

/* FIXED: Image aspect ratio enforcement */
img[src*="nicestdomains.com"] {
    aspect-ratio: 16/9 !important;
    object-fit: cover !important;
    display: block !important;
}

/* FIXED: Content area minimum heights to prevent shifts */
.space-y-6 {
    min-height: 400px;
    contain: layout;
}

/* FIXED: Resource content specific fixes */
.max-w-4xl .space-y-6 {
    min-height: 500px;
}

/* FIXED: FAQ grid layout stability */
.grid.grid-cols-1.md\:grid-cols-2 {
    contain: layout;
    min-height: 300px;
}

/* MOBILE: Optimize long text rendering */
@media (max-width: 768px) {
    .space-y-6 p,
    .space-y-6 li {
        line-height: 1.5 !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Break up long text blocks for faster rendering */
    .space-y-6 {
        column-count: 1 !important;
        text-rendering: optimizeSpeed !important;
    }
}

/* FIXED: Prevent font loading CLS */
body {
    font-display: swap;
}

/* MOBILE PERFORMANCE FIXES - Add to your existing <style> section */

/* FAQ page optimizations */
.faq-item {
    contain: layout style;
    min-height: 120px; /* Prevent layout shift */
}

.faq-answer {
    contain: layout;
}

/* Resources page optimizations */
.resource-item {
    contain: layout style;
    min-height: 60px; /* Prevent layout shift */
}

/* About page optimizations */
.about-content {
    contain: layout;
}

/* Testimonials optimizations */
.testimonial-item {
    contain: layout style;
    min-height: 200px; /* Prevent layout shift */
}

/* General mobile list performance */
@media (max-width: 768px) {
    .faq-list, .resource-list {
        contain: layout style;
    }
    
    .faq-list > div, .resource-item {
        will-change: auto; /* Prevent unnecessary compositing */
    }
}

/* ADD THESE CRITICAL RULES TO INLINE CSS IN TEMPLATE.PHP */

/* FAQ page optimizations - MOBILE PERFORMANCE */
.faq-item {
    contain: layout style;
    min-height: 120px;
    background: #1f2937;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.faq-answer {
    contain: layout;
}

.faq-list {
    contain: layout style;
    margin: 0.75rem 0;
    padding: 0;
}

.faq-list > div {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    contain: layout;
}

.faq-list > div > span:first-child {
    color: #60a5fa;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.faq-list > div > span:last-child {
    color: #d1d5db;
    flex: 1;
}

/* Resources page optimizations - MOBILE PERFORMANCE */
.resource-item {
    contain: layout style;
    min-height: 60px;
    padding: 0.75rem;
    background: #1f2937;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

/* About page optimizations */
.about-content {
    contain: layout;
}

/* Testimonials optimizations */
.testimonial-item {
    contain: layout style;
    min-height: 200px;
    background: #1f2937;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* FIXED: Main content area - prevent layout shift */
main#main {
    min-height: 400px;
    contain: layout; /* CRITICAL FIX */
}

/* FIXED: Mobile banner - prevent render delay */
.mobile-banner {
    height: 300px !important;
    width: 100% !important;
    background: #1a1a1a !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    contain: layout paint style !important;
    content-visibility: auto !important; /* PERFORMANCE BOOST */
}

/* FIXED: Feature images - explicit dimensions to prevent CLS */
.feature-image {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    aspect-ratio: 4/3 !important;
    display: block !important;
    contain: layout !important;
    content-visibility: auto !important;
}

/* MOBILE: General list performance fixes */
@media (max-width: 768px) {
    .faq-list, .resource-list {
        contain: layout style;
        will-change: auto;
    }
    
    .faq-list > div, .resource-item {
        will-change: auto;
        contain: size layout style;
    }
    
    /* Force explicit dimensions on mobile images */
    img[width][height] {
        contain: layout !important;
    }
}

/* ADD THESE TO THE <style> SECTION IN TEMPLATE.PHP */

/* CRITICAL CLS FIXES */
main#main {
    min-height: 600px !important; /* Increased from 400px */
    contain: layout !important; /* Force containment */
}

/* FIXED: All content areas need explicit min-heights */
.space-y-6, .max-w-4xl .space-y-6 {
    min-height: 500px !important;
    contain: layout !important;
}

/* FIXED: Resource content container */
.resources-container {
    min-height: 600px !important;
    contain: layout !important;
}

/* FIXED: FAQ container */
.faq-container {
    min-height: 500px !important;
    contain: layout !important;
}

/* FIXED: Testimonials container */
.testimonials-container {
    min-height: 600px !important;
    contain: layout !important;
}

/* FIXED: Blog content areas */
.article-content, .blog-content {
    min-height: 400px !important;
    contain: layout !important;
}

/* FIXED: Force all image dimensions */
img:not([width]):not([height]) {
    width: auto !important;
    height: auto !important;
    aspect-ratio: 4/3 !important;
    min-height: 200px !important;
    background: #1f2937 !important;
}

/* FIXED: Prevent font loading CLS */
body, * {
    font-display: swap !important;
}

/* FIXED: Stabilize grid layouts */
.grid {
    min-height: 300px !important;
    contain: layout !important;
}

/* FIXED: Feature and blog grids */
.feature-section, .blog-preview-section {
    min-height: 400px !important;
    contain: layout !important;
}

/* FIXED: Forms container */
.forms-container {
    min-height: 600px !important;
    contain: layout !important;
}

/* FOOTER IMAGE FIX - Ensure proper responsive display */
@media (max-width: 1024px) {
    .footer-parallax-container {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    .mobile-footer-banner {
        display: flex !important;
    }
}

@media (min-width: 1025px) {
    .mobile-footer-banner {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    .footer-parallax-container {
        display: block !important;
        position: relative !important;
        height: 60vh !important;
        min-height: 400px !important;
        max-height: 500px !important;
        overflow: hidden !important;
        margin-top: 2rem !important;
        background: #1a1a1a !important;
    }
}
/* ADD these CSS fixes to styles.css to resolve mobile header image issues: */

/* MOBILE HEADER IMAGE FIX - Force proper display and fallback */
.mobile-banner {
    height: 300px !important;
    width: 100% !important;
    background-color: #1a1a1a !important; /* Fallback color */
    background-image: url('/images/header-sm.webp') !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Fallback for browsers that don't support WebP */
.mobile-banner {
    background-image: url('/images/header-sm.jpg'), url('/images/header-sm.webp') !important;
}

/* Force mobile banner to show on mobile, hide on desktop */
@media (max-width: 1024px) {
    .mobile-banner {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .parallax-container {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

@media (min-width: 1025px) {
    .mobile-banner {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    .parallax-container {
        display: block !important;
        min-height: 500px !important;
    }
}

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

/* CACHE BUSTING FOR IMAGES - Add version parameter */
.mobile-banner {
    background-image: url('/images/header-sm.webp?v=2') !important;
}

/* Ensure mobile banner overlay is visible */
.mobile-banner::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6)) !important;
    z-index: 1 !important;
}

/* ADD this CSS fix to styles.css to ensure mobile menu button is clickable */

/* MOBILE MENU BUTTON - ENSURE CLICKABILITY */
#mobile-menu-button {
    position: relative !important;
    z-index: 100 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* MOBILE CONTROLS CONTAINER */
.mobile-controls {
    position: relative !important;
    z-index: 99 !important;
    pointer-events: auto !important;
}

/* MOBILE MENU DROPDOWN */
#mobile-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 101 !important;
    pointer-events: auto !important;
}

/* MOBILE MENU LINKS */
.mobile-menu-link,
.mobile-submenu-button {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    cursor: pointer !important;
}

/* PREVENT INTERFERENCE FROM OTHER ELEMENTS */
@media (max-width: 1024px) {
    /* Ensure header content doesn't interfere */
    .header-content {
        position: relative !important;
        z-index: 50 !important;
    }
    
    /* Ensure mobile banner doesn't interfere */
    .mobile-banner {
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* Ensure mobile controls are above everything */
    .mobile-controls {
        position: relative !important;
        z-index: 100 !important;
    }
	
}

/* DEBUG: Temporary red border to verify button location */
/* Remove after testing */
/*
@media (max-width: 1024px) {
    #mobile-menu-button {
        border: 2px solid red !important;
    }
}
*/

/* Add this to styles.css - MOBILE MENU BUTTON CLICK FIX */

/* Ensure mobile menu button is visible and clickable */
@media (max-width: 1024px) {
    #mobile-menu-button {
        position: relative !important;
        z-index: 9999 !important;
        pointer-events: auto !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: #4b5563 !important;
        border: 1px solid #6b7280 !important;
        border-radius: 0.375rem !important;
        padding: 0.75rem 1rem !important;
        color: white !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1) !important;
        user-select: none !important;
        min-height: 44px !important; /* iOS minimum touch target */
        min-width: 100px !important;
    }
    
    #mobile-menu-button:hover {
        background: #374151 !important;
    }
    
    /* Ensure mobile controls container doesn't interfere */
    .mobile-controls {
        position: relative !important;
        z-index: 9998 !important;
        display: flex !important;
        gap: 0.75rem !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        pointer-events: auto !important;
    }
    
    /* Ensure mobile menu dropdown works */
    #mobile-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9997 !important;
        background: #2d3748 !important;
        border: 1px solid #374151 !important;
        border-radius: 0.5rem !important;
        margin-top: 0.5rem !important;
        padding: 0.75rem !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.3) !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
    }
    
    #mobile-menu.hidden {
        display: none;
    }
    
    /* Make sure header doesn't interfere */
    header {
        position: relative !important;
        z-index: 50 !important;
    }
    
    .header-content {
        position: relative !important;
        z-index: 51 !important;
    }
}
/* ADD these CSS fixes to styles.css to ensure carousel buttons work properly */

/* DESKTOP CAROUSEL BUTTONS - FORCE PROPER DISPLAY */
@media (min-width: 1025px) {
    .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;
        visibility: visible !important;
        opacity: 1 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
        backdrop-filter: blur(4px) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        transition: all 0.2s ease !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;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
    }
    
    .carousel-nav:disabled {
        opacity: 0.4 !important;
        cursor: not-allowed !important;
        background: rgba(107, 114, 128, 0.7) !important;
    }
    
    .carousel-nav svg {
        width: 1.25rem !important;
        height: 1.25rem !important;
        pointer-events: none !important;
    }
    
    /* Ensure container allows buttons to overflow */
    .related-logos-container {
        overflow: visible !important;
        position: relative !important;
        padding: 0 4rem !important; /* Space for buttons */
    }
}

/* MOBILE - ABSOLUTELY NO BUTTONS */
@media (max-width: 1024px) {
    .carousel-nav {
        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;
    }
    
    .related-logos-container {
        padding: 0 1rem !important;
        overflow: hidden !important;
    }
}



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

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

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

@media (max-width: 1024px) {
    .related-logos-track {
        gap: 1rem;
    }
    
    .related-logo-item {
        flex: 0 0 240px !important;
        width: 240px !important;
    }
}

@media (max-width: 640px) {
    .related-logo-item {
        flex: 0 0 200px !important;
        width: 200px !important;
    }
    
    .related-logos-track {
        gap: 0.75rem !important;
    }
}

//* ==========================================================================
   MOBILE CAROUSEL LOGO SIZE FIX - Replace in styles.css
   ========================================================================== */

/* REPLACE the existing carousel section in styles.css with this updated version */

/* ==========================================================================
   CAROUSEL - FIXED WITH LARGER MOBILE LOGOS
   ========================================================================== */

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

@media (max-width: 1024px) {
    .related-logos-container {
        padding: 0 1rem !important;
        overflow: hidden !important;
    }
}

/* Force carousel viewport */
.carousel-viewport {
    overflow: hidden !important;
    width: 100% !important;
    position: relative !important;
    height: auto !important;
}

/* FIXED: Beautiful carousel items with MUCH larger logos */
.related-logo-item {
    flex: 0 0 280px;
    width: 280px;
    user-select: none;
    pointer-events: auto;
    
    /* Beautiful styling */
    background: linear-gradient(135deg, #1f2937, #374151);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    min-height: 112px !important; /* 30% reduction from 160px */
    display: flex;
    flex-direction: column;
    padding: 0.375rem !important; /* Reduced padding */
}

.related-logo-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    border-color: rgba(96, 165, 250, 0.5);
}

/* DESKTOP LOGOS - Keep current size */
.related-logo-item img {
    width: 100% !important;
    height: auto !important;
    max-height: 120px !important; /* Desktop size */
    min-height: 90px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 0.75rem auto !important; /* Space for text below */
    border-radius: 0.375rem !important;
    transition: transform 0.3s ease !important;
    filter: brightness(0.9) !important;
    flex-shrink: 0 !important; /* Prevents logo from shrinking */
}

.related-logo-item:hover img {
    transform: scale(1.05) !important;
    filter: brightness(1) !important;
}

/* FIXED: Text positioned properly under logo */
.related-logo-item .logo-text {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #d1d5db !important;
    text-align: center !important;
    margin-top: 0 !important; /* FIXED: Don't push to bottom */
    line-height: 1.2 !important;
    transition: color 0.3s ease !important;
    word-break: break-word !important;
    hyphens: auto !important;
    max-height: 1.2em !important; /* Single line */
    min-height: 1.2em !important; /* Single line */
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    padding: 0 0.25rem !important;
    display: block !important;
    flex-shrink: 0 !important; /* Prevents text from shrinking */
}

.related-logo-item:hover .logo-text {
    color: #ffffff !important;
}

/* MOBILE ADJUSTMENTS - SIGNIFICANTLY LARGER LOGOS */
@media (max-width: 1024px) {
    .related-logo-item {
        flex: 0 0 260px !important; /* Increased from 240px */
        width: 260px !important; /* Increased from 240px */
               
    }
    
    /* MOBILE LOGOS - MUCH BIGGER */
    .related-logo-item img {
        
        
        margin: 0 auto 0.75rem auto !important; /* More space below */
        width: calc(100% - 0.5rem) !important; /* Almost full width */
    }
    
    .related-logo-item .logo-text {
        font-size: 0.8125rem !important; /* Slightly bigger text */
        padding: 0 0.25rem 0.25rem !important;
    }
    
    .related-logos-track {
        gap: 18px !important; /* Slightly more gap for larger items */
    }
}

/* SMALL MOBILE - STILL BIGGER THAN BEFORE */
@media (max-width: 640px) {
    .related-logo-item {
        flex: 0 0 220px !important; /* Increased from 200px */
        width: 220px !important; /* Increased from 200px */
        min-height: 160px !important; /* Increased from 140px */
        padding: 0.5rem !important;
    }
    
    /* SMALL MOBILE LOGOS - MUCH BIGGER THAN BEFORE */
    .related-logo-item img {
        max-height: 120px !important; /* INCREASED from 85px to 120px */
        min-height: 95px !important; /* INCREASED from 65px to 95px */
        margin: 0 auto 0.5rem auto !important;
        width: calc(100% - 0.25rem) !important; /* Almost full width */
    }
    
    .related-logo-item .logo-text {
        font-size: 0.75rem !important;
        padding: 0 0.2rem 0.2rem !important;
        min-height: 2.2em !important; /* Adjust for smaller font */
        max-height: 2.2em !important;
    }
    
    .related-logos-track {
        gap: 14px !important;
    }
}

/* EXTRA SMALL MOBILE - ENSURE MINIMUM SIZE */
@media (max-width: 480px) {
    .related-logo-item {
        flex: 0 0 200px !important; /* Still reasonable size */
        width: 200px !important;
        min-height: 150px !important;
        padding: 0.375rem !important;
    }
    
    /* EXTRA SMALL MOBILE LOGOS - STILL BIGGER THAN ORIGINAL */
    .related-logo-item img {
        max-height: 110px !important; /* MUCH bigger than original ~50px */
        min-height: 85px !important; /* MUCH bigger than original ~40px */
        margin: 0 auto 0.5rem auto !important;
    }
    
    .related-logo-item .logo-text {
        font-size: 0.7rem !important;
        padding: 0 0.15rem 0.15rem !important;
    }
    
    .related-logos-track {
        gap: 12px !important;
    }
}

/* CAROUSEL TRACK - SINGLE DEFINITION */
.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;
    -webkit-backface-visibility: hidden;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    transform-origin: left center;
}

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

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

/* Desktop buttons remain the same */
@media (min-width: 1025px) {
    .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: 12px !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        z-index: 999 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 48px !important;
        height: 48px !important;
        pointer-events: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
        transition: all 0.2s ease !important;
        outline: none !important;
        user-select: none !important;
    }
    
    .carousel-nav.prev {
        left: -24px !important;
    }
    
    .carousel-nav.next {
        right: -24px !important;
    }
    
    .carousel-nav:hover:not(:disabled) {
        background: rgba(29, 78, 216, 0.95) !important;
        transform: translateY(-50%) scale(1.1) !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
    }
    
    .carousel-nav:disabled {
        opacity: 0.4 !important;
        cursor: not-allowed !important;
        background: rgba(107, 114, 128, 0.7) !important;
    }
    
    .carousel-nav svg {
        width: 20px !important;
        height: 20px !important;
        pointer-events: none !important;
        display: block !important;
    }
}

/* Mobile - no buttons */
@media (max-width: 1024px) {
    .carousel-nav {
        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;
    }
    
    .related-logos-track {
        cursor: grab !important;
        touch-action: pan-y !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
    }
    
    .related-logos-track:active {
        cursor: grabbing !important;
    }
    
    .related-logo-item {
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -khtml-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
        pointer-events: auto !important;
    }
}

/* NUCLEAR OVERRIDE - FORCE LARGER MOBILE LOGOS */
@media (max-width: 1024px) {
    .related-logo-item img,
    .related-logos-track img,
    .carousel-logo-img {
        max-height: 140px !important;
        min-height: 110px !important;
        height: auto !important;
        width: auto !important;
        max-width: 95% !important;
        display: block !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 640px) {
    .related-logo-item img,
    .related-logos-track img,
    .carousel-logo-img {
        max-height: 120px !important;
        min-height: 95px !important;
    }
}

@media (max-width: 480px) {
    .related-logo-item img,
    .related-logos-track img,
    .carousel-logo-img {
        max-height: 110px !important;
        min-height: 85px !important;
    }
}

/* DESKTOP LOGOS - Increased height, reduced container */
@media (min-width: 1025px) {
    .related-logo-item {
        min-height: 112px !important;
        padding: 0.375rem !important;
    }
    
    .related-logo-item img {
        max-height: 90px !important; /* Increased from current */
        min-height: 80px !important;
        width: auto !important;
        max-width: 95% !important;
        margin: 0.25rem auto !important; /* Reduced margin */
    }
}

/* MOBILE LOGOS - 30% taller, 10% wider */
@media (max-width: 1024px) {
    .related-logo-item {
        min-height: 119px !important; /* 30% reduction from 170px */
        padding: 0.25rem !important; /* Minimal padding */
    }
    
    .related-logo-item img {
        max-height: 105px !important; /* 30% increase from ~80px */
        min-height: 95px !important;
        width: auto !important;
        max-width: 98% !important; /* Almost full width */
        margin: 0.125rem auto !important; /* Minimal margin */
    }
}

@media (max-width: 640px) {
    .related-logo-item {
        min-height: 112px !important; /* 30% reduction from 160px */
        padding: 0.25rem !important;
    }
    
    .related-logo-item img {
        max-height: 95px !important; /* Larger logos */
        min-height: 85px !important;
        width: auto !important;
        max-width: 98% !important;
        margin: 0.125rem auto !important;
    }
}

/* Text area adjustment to match reduced container */
.related-logo-item .logo-text {
    font-size: 0.75rem !important;
    margin-top: 0.125rem !important;
    padding: 0 0.125rem 0.125rem !important;
    min-height: 1.5em !important; /* Reduced from 2.4em */
    max-height: 1.5em !important;
}

/* CAROUSEL LOGO FIX - CORRECT VERSION */

/* Desktop logos - shorter containers, bigger logos */
@media (min-width: 1025px) {
    .related-logo-item {
        min-height: 100px !important; /* SHORTER than existing 112px */
        padding: 0.5rem !important; /* Less padding */
    }
    
    .related-logo-item img {
        max-height: 120px !important; /* BIGGER than existing 90px */
        min-height: 90px !important; /* BIGGER than existing 80px */
        width: auto !important;
        max-width: 95% !important;
        margin: 0.25rem auto !important;
    }
}

/* Mobile logos - shorter containers, bigger logos */
@media (max-width: 1024px) {
    .related-logo-item {
        min-height: 100px !important; /* SHORTER than existing 119px */
        padding: 0.5rem !important; /* Less padding than 0.75rem */
    }
    
    .related-logo-item img,
    .related-logos-track img,
    .carousel-logo-img {
        max-height: 120px !important; /* BIGGER than your existing sizes */
        min-height: 90px !important; /* BIGGER than existing */
        width: auto !important;
        max-width: 95% !important;
        margin: 0.25rem auto !important;
    }
}

@media (max-width: 640px) {
    .related-logo-item {
        min-height: 90px !important; /* SHORTER container */
        padding: 0.4rem !important;
    }
    
    .related-logo-item img,
    .related-logos-track img,
    .carousel-logo-img {
        max-height: 110px !important; /* BIGGER logos */
        min-height: 80px !important; /* BIGGER logos */
        margin: 0.2rem auto !important;
    }
}

@media (max-width: 480px) {
    .related-logo-item {
        min-height: 85px !important; /* SHORTER container */
        padding: 0.3rem !important;
    }
    
    .related-logo-item img,
    .related-logos-track img,
    .carousel-logo-img {
        max-height: 100px !important; /* BIGGER than existing */
        min-height: 75px !important; /* BIGGER than existing */
    }
}

/* Nuclear override - bigger logos, shorter containers */
.related-logo-item img,
.related-logos-track img,
.carousel-logo-img {
    max-height: 120px !important; /* BIGGER */
    min-height: 90px !important; /* BIGGER */
    height: auto !important;
    width: auto !important;
    max-width: 95% !important;
    display: block !important;
    margin: 0.25rem auto !important;
    object-fit: contain !important;
}

/* Shorter containers */
.related-logo-item {
    min-height: 100px !important; /* SHORTER */
    padding: 0.5rem !important; /* LESS padding */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}
/* ==========================================================================
   CAROUSEL FIX - BIGGER CONTAINERS AND LOGOS (Replace existing fix)
   ========================================================================== */

/* NUCLEAR FIX: Make entire carousel items 20% bigger in ALL dimensions */
.related-logo-item {
    /* Container sizing - 20% bigger in both width AND height */
    min-height: 100px !important;
    max-height: 130px !important;
    height: auto !important;
    
    /* ALSO make width bigger for desktop */
    min-width: 280px !important;
    width: 300px !important;
    flex: 0 0 300px !important;
    
    /* MINIMAL padding to maximize logo space */
    padding: 0.4rem !important;
    
    /* Keep existing visual styling */
    background: linear-gradient(135deg, #1f2937, #374151) !important;
    border: 1px solid rgba(96, 165, 250, 0.3) !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    
    /* Layout - maximize logo space */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    
    /* Prevent text from taking too much space */
    text-align: center !important;
}

/* NUCLEAR FIX: Make logos MUCH bigger to fill the bigger containers */
.related-logo-item img,
.related-logos-track img,
.carousel-logo-img,
.related-logo-item a img {
    /* Make logos MUCH bigger - fill most of the container */
    max-height: 95px !important;
    min-height: 75px !important;
    width: auto !important;
    max-width: 95% !important;
    
    /* Center the logo */
    display: block !important;
    margin: 0 auto 0.3rem auto !important;
    
    /* Ensure perfect fit */
    object-fit: contain !important;
    object-position: center !important;
    
    /* Remove any flex properties that might interfere */
    flex-shrink: 0 !important;
    
    /* Ensure visibility */
    opacity: 1 !important;
    visibility: visible !important;
}

/* NUCLEAR FIX: Keep text compact so logos can be bigger */
.related-logo-item .logo-text,
.related-logo-item a .logo-text {
    /* Compact text to save space for bigger logos */
    font-size: 0.7rem !important;
    line-height: 1.0 !important;
    margin: 0 !important;
    padding: 0 0.2rem !important;
    max-height: 1.4em !important;
    min-height: 1.0em !important;
    
    /* Text styling */
    color: #d1d5db !important;
    text-align: center !important;
    overflow: hidden !important;
    
    /* Prevent text from expanding container */
    flex-shrink: 1 !important;
}

/* MOBILE SPECIFIC - Bigger containers and logos */
@media (max-width: 1024px) {
    .related-logo-item {
        min-height: 90px !important;
        max-height: 120px !important;
        min-width: 260px !important;
        width: 280px !important;
        flex: 0 0 280px !important;
        padding: 0.3rem !important;
    }
    
    .related-logo-item img,
    .related-logos-track img,
    .carousel-logo-img {
        max-height: 85px !important;
        min-height: 65px !important;
        max-width: 95% !important;
        margin: 0 auto 0.2rem auto !important;
    }
    
    .related-logo-item .logo-text {
        font-size: 0.65rem !important;
        max-height: 1.3em !important;
        line-height: 1.0 !important;
    }
}

/* VERY SMALL MOBILE - Still bigger than before */
@media (max-width: 640px) {
    .related-logo-item {
        min-height: 85px !important;
        max-height: 110px !important;
        min-width: 220px !important;
        width: 240px !important;
        flex: 0 0 240px !important;
        padding: 0.25rem !important;
    }
    
    .related-logo-item img {
        max-height: 75px !important;
        min-height: 55px !important;
        margin: 0 auto 0.15rem auto !important;
    }
    
    .related-logo-item .logo-text {
        font-size: 0.6rem !important;
        max-height: 1.2em !important;
    }
}

/* DESKTOP - Bigger containers AND bigger logos */
@media (min-width: 1025px) {
    .related-logo-item {
        min-height: 110px !important;
        max-height: 140px !important;
        min-width: 320px !important;
        width: 340px !important;
        flex: 0 0 340px !important;
        padding: 0.5rem !important;
    }
    
    .related-logo-item img {
        max-height: 105px !important;
        min-height: 80px !important;
        max-width: 95% !important;
        margin: 0 auto 0.4rem auto !important;
    }
    
    .related-logo-item .logo-text {
        font-size: 0.75rem !important;
        max-height: 1.5em !important;
        line-height: 1.1 !important;
    }
}

/* HOVER EFFECTS - Subtle enhancement */
.related-logo-item:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

.related-logo-item:hover img {
    filter: brightness(1.1) contrast(1.05) !important;
}

/* FORCE CONTAINER LAYOUT - Perfect logo centering */
.related-logo-item a,
.related-logo-item > a {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
    color: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* CAROUSEL TRACK - Adjust for bigger items */
.related-logos-track {
    gap: 1.2rem !important;
}

@media (max-width: 1024px) {
    .related-logos-track {
        gap: 1rem !important;
    }
}

@media (max-width: 640px) {
    .related-logos-track {
        gap: 0.8rem !important;
    }
}

/* ==========================================================================
   CAROUSEL TEXT FIX - ADD to the END of your existing carousel CSS
   ========================================================================== */

/* BRING BACK TEXT - Multiple selectors to catch all variations */
.related-logo-item .logo-text,
.related-logo-item a .logo-text,
.related-logo-item span,
.related-logo-item a span,
.related-logo-item .domain-name,
.related-logo-item a .domain-name,
.related-logo-item div:last-child,
.related-logo-item a div:last-child {
    /* FORCE VISIBILITY */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    
    /* Text sizing - will be adjusted by JavaScript */
    font-size: 0.75rem !important;
    line-height: 1.1 !important;
    font-weight: 500 !important;
    
    /* Positioning */
    margin: 0.25rem 0 0 0 !important;
    padding: 0 0.15rem !important;
    
    /* Single line with ellipsis for very long names */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    
    /* Appearance */
    color: #e5e7eb !important;
    text-align: center !important;
    
    /* Layout */
    width: 100% !important;
    box-sizing: border-box !important;
    
    /* Prevent expansion */
    flex-shrink: 1 !important;
    min-height: auto !important;
    max-height: 1.3em !important;
}

/* HOVER EFFECT for text */
.related-logo-item:hover .logo-text,
.related-logo-item:hover span,
.related-logo-item:hover .domain-name,
.related-logo-item:hover div:last-child {
    color: #60a5fa !important;
    transform: translateY(-1px) !important;
    transition: all 0.2s ease !important;
}

/* MOBILE TEXT ADJUSTMENTS */
@media (max-width: 1024px) {
    .related-logo-item .logo-text,
    .related-logo-item span,
    .related-logo-item .domain-name,
    .related-logo-item div:last-child {
        font-size: 0.7rem !important;
        margin: 0.2rem 0 0 0 !important;
        padding: 0 0.1rem !important;
    }
}

@media (max-width: 640px) {
    .related-logo-item .logo-text,
    .related-logo-item span,
    .related-logo-item .domain-name,
    .related-logo-item div:last-child {
        font-size: 0.65rem !important;
        margin: 0.15rem 0 0 0 !important;
        padding: 0 0.05rem !important;
    }
}

/* ENSURE TEXT DOESN'T INTERFERE WITH LOGO SIZING */
.related-logo-item img {
    /* Keep current logo sizes - don't change these! */
    margin: 0 auto 0.2rem auto !important;
}

/* TEXT CONTAINER FLEX LAYOUT */
.related-logo-item a,
.related-logo-item > a {
    /* Ensure proper text positioning */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
}

/* BACK TO TOP BUTTON - FINAL FIX */
/* Remove ALL conflicts first */
#backToTop, 
.back-to-top,
#newBackToTop,
#pureBackToTop,
#simpleBackToTop,
[id*="BackToTop"]:not(#returnToTopButton) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Our working button - immune to contain issues */
#returnToTopButton {
    /* Critical: position fixed at root level */
    position: fixed !important;
    z-index: 2147483647 !important; /* Maximum z-index */
    
    /* Ensure it's not affected by any containing blocks */
    transform: none !important;
    will-change: auto !important;
    contain: none !important;
    
    /* Force it to be relative to viewport, not any parent */
    top: auto !important;
    left: auto !important;
    bottom: 32px !important;
    right: 32px !important;
    
    /* Size and appearance */
    width: 48px !important;
    height: 48px !important;
    
    /* Reset any inherited styles */
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    background: none !important;
    
    /* Allow JS to control visibility */
    transition: none !important;
}

/* Remove containing blocks from body and main elements */
body,
main,
.container {
    /* Keep layout benefits but don't create containing blocks for fixed elements */
    contain: style !important; /* Remove 'layout' which creates containing blocks */
}

/* Ensure button works on mobile */
@media (max-width: 768px) {
    #returnToTopButton {
        bottom: 24px !important;
        right: 24px !important;
        width: 40px !important;
        height: 40px !important;
    }
}

/* NUCLEAR BACK TO TOP OVERRIDE - Add at the very end */
#returnToTopButton {
    position: fixed !important;
    z-index: 2147483647 !important;
    bottom: 32px !important;
    right: 32px !important;
    /* Don't set display, opacity, or visibility here - let JS control them */
}


/* MOBILE MENU SPACING FIX - Better touch targets */
@media (max-width: 1024px) {
    .mobile-menu-link {
        margin-bottom: 0.75rem !important; /* Increased from 0.25rem */
        padding: 1.25rem 1.5rem !important; /* Increased padding for bigger touch targets */
    }
    
    .mobile-submenu-button {
        margin-bottom: 0.75rem !important; /* Increased from 0.25rem */
        padding: 1.25rem 1.5rem !important; /* Increased padding for bigger touch targets */
    }
    
    .mobile-submenu a {
        padding: 1rem 1.25rem !important; /* Increased padding for submenu items too */
        margin-bottom: 0.5rem !important; /* More spacing between submenu items */
    }
    
    /* Add more space in the mobile menu container */
    #mobile-menu {
        padding: 1rem !important; /* Increased from 0.75rem */
    }
}

/* MOBILE SOCIAL MEDIA SPACING FIX - 75% of icon width spacing */
@media (max-width: 768px) {
    .social-media-icons {
        gap: 0.85rem !important; /* 75% of 1.125rem icon width */
        max-width: 420px !important; /* Slightly wider to accommodate extra spacing */
        padding: 0 0.5rem !important;
        margin: 1rem auto 0 !important;
    }
}

@media (max-width: 480px) {
    .social-media-icons {
        gap: 0.75rem !important; /* 75% of 1rem icon width */
        max-width: 380px !important; /* Wider container for better spacing */
        padding: 0 0.25rem !important;
    }
}

/* Extra small screens - maintain good spacing */
@media (max-width: 320px) {
    .social-media-icons {
        gap: 0.7rem !important; /* Still reasonable spacing on very small screens */
        max-width: 300px !important;
    }
}
/* ==========================================================================
   TARGETED MOBILE FIXES - Add to END of styles.css
   ========================================================================== */
/* FIX 1: Mobile Menu Vertical Spacing */
@media (max-width: 1024px) {
    /* Target the actual menu structure: #mobile-menu > ul > li > a */
    #mobile-menu > ul > li > a {
        /* Increase padding for better touch targets */
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        /* Add margin between items - HALVED from 0.5rem */
        margin-bottom: 0.125rem !important;
        /* Ensure minimum height for fat fingers */
        min-height: 48px !important;
        display: block !important;
    }
    
    /* Target the explore button specifically */
    #mobile-menu .mobile-dropdown-toggle {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        margin-bottom: 0.25rem !important;
        min-height: 48px !important;
    }
    
    /* Explore submenu items - keep these smaller - HALVED from 0.25rem */
    #mobile-menu .mobile-submenu a {
        padding: 0.875rem 1.25rem !important;
        margin-bottom: 0.125rem !important;
    }
    
    /* Remove margin from last item */
    #mobile-menu > ul > li:last-child > a,
    #mobile-menu > ul > li:last-child > button {
        margin-bottom: 0 !important;
    }
}
/* FIX 2: Mobile Social Icons - Center AND increase spacing */
@media (max-width: 768px) {
    /* Center the entire mobile social section */
    .md\:hidden.mt-3.text-center {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
    }
    
    /* Center the "FOLLOW US:" text */
    .md\:hidden.mt-3.text-center > p {
        text-align: center !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Social icons container - ensure centered with increased spacing */
    .md\:hidden .social-media-icons,
    .md\:hidden .flex.flex-wrap.justify-center.gap-3 {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        /* Increase horizontal spacing between icons */
        gap: 1rem !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        flex-wrap: wrap !important;
    }
    
    /* Individual social icon links - add extra spacing */
    .md\:hidden .social-media-icons a,
    .md\:hidden .flex.flex-wrap.justify-center.gap-3 a {
        margin-left: 0.25rem !important;
        margin-right: 0.25rem !important;
    }
}
/* ==========================================================================
   END OF TARGETED FIXES
   ========================================================================== */
   
/* ADD this to your styles.css file */

/* Logo verification loading states */
.related-logo-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.related-logo-item[style*="none"] {
    opacity: 0;
    transform: scale(0.9);
}

.logo-placeholder {
    background-color: #374151;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.logo-placeholder .loading-text {
    font-size: 0.8rem;
    color: #9ca3af;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.carousel-logo-img {
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Fade-in animation for verified logos */
.related-logo-item[style*="block"] {
    animation: logoFadeIn 0.5s ease-out;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Hide the entire carousel section when no logos are available */
#related-logos-section[style*="none"] {
    display: none !important;
}

/* Ensure smooth transitions when items are shown/hidden */
.related-logos-track {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Loading shimmer effect for placeholders */
.logo-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}   

/* ==========================================================================
   DESIGN BUCKET SYSTEM ADDITIONS
   Add these to your existing styles.css
   ========================================================================== */

/* ==========================================================================
   CUSTOM FONT LOADING - Add after your existing font imports
   ========================================================================== */

/* Ensure custom fonts are loaded with swap for performance */
.fonts-loaded body {
    font-family: var(--font-body), system-ui, sans-serif;
}

.fonts-loaded h1, 
.fonts-loaded h2, 
.fonts-loaded h3, 
.fonts-loaded h4, 
.fonts-loaded h5, 
.fonts-loaded h6 {
    font-family: var(--font-heading), Georgia, serif;
}

/* ==========================================================================
   HERO GRADIENT OVERLAYS - Already handled by parallax-content::before
   ========================================================================== */

/* Ensure parallax content has proper stacking */
.parallax-content {
    position: relative;
}

/* ==========================================================================
   BUTTON HOVER ANIMATIONS - These will be generated dynamically
   ========================================================================== */

/* Base button transitions */
.btn, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   CARD HOVER EFFECTS - These will be generated dynamically
   ========================================================================== */

/* Base card transitions */
.feature-card, .blog-preview {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   SECTION DIVIDERS
   ========================================================================== */

.section-divider {
    width: 100%;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   BLOG LAYOUT - 3 + 2 CENTERED
   ========================================================================== */

@media (min-width: 768px) {
    .blog-preview-section {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 2rem;
        max-width: 1400px;
        margin: 0 auto;
    }
    
    /* First 3 blogs - full width */
    .blog-preview:nth-child(1),
    .blog-preview:nth-child(2),
    .blog-preview:nth-child(3) {
        grid-column: span 2;
    }
    
    /* 4th blog - centered left */
    .blog-preview:nth-child(4) {
        grid-column: 2 / span 2;
    }
    
    /* 5th blog - centered right */
    .blog-preview:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

/* Fallback for smaller screens */
@media (max-width: 767px) {
    .blog-preview-section {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================================================
   CTA ANIMATIONS (Bonus Wow Feature)
   ========================================================================== */

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes slide-in {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.cta-animation-pulse {
    animation: pulse 2s infinite;
}

.cta-animation-bounce {
    animation: bounce 2s infinite;
}

.cta-animation-slide {
    animation: slide-in 0.5s ease-out;
}

/* ==========================================================================
   IMAGE FILTERS - These will be generated dynamically
   ========================================================================== */

/* Base image transitions */
.feature-image, 
.blog-preview img,
.product-image,
.gallery-item img {
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* ==========================================================================
   PREMIUM TOUCHES
   ========================================================================== */

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

/* Premium text selection */
::selection {
    background-color: var(--color-accent);
    color: var(--color-background);
}

/* Premium focus styles */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Letter spacing for headings */
h1, h2, h3 {
    letter-spacing: -0.02em;
}

/* Premium link transitions */
a {
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

/* Ensure design system works on mobile */
@media (max-width: 640px) {
    :root {
        font-size: 16px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .section-divider {
        height: 60px;
    }
}

/* ==========================================================================
   WEBSITE STYLE FIXES & ENHANCEMENTS
   Add these to the END of your styles.css file
   ========================================================================== */

/* ==========================================================================
   1. LOGO ROLLOVER ANIMATION - Cool but performant
   ========================================================================== */

/* Logo container animation setup */
.logo-container {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: auto; /* Only when hovering */
}

/* Logo image animation - multi-effect on hover */
.logo-container img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1) contrast(1);
}

/* The cool hover effect - combines scale, glow, and subtle rotation */
.logo-container:hover {
    transform: scale(1.05) translateY(-2px);
    will-change: transform;
}

.logo-container:hover img {
    filter: brightness(1.1) contrast(1.05) drop-shadow(0 0 20px rgba(96, 165, 250, 0.4));
    transform: scale(1.02) rotate(1deg);
}

/* Pulse glow animation on hover - optional, very cool effect */
@keyframes logoGlow {
    0%, 100% { 
        filter: brightness(1.1) contrast(1.05) drop-shadow(0 0 20px rgba(96, 165, 250, 0.4));
    }
    50% { 
        filter: brightness(1.15) contrast(1.1) drop-shadow(0 0 30px rgba(96, 165, 250, 0.6));
    }
}

.logo-container:hover img {
    animation: logoGlow 2s ease-in-out infinite;
}

/* Performance optimization - disable on mobile for better performance */
@media (max-width: 1024px) {
    .logo-container:hover {
        transform: none;
    }
    .logo-container:hover img {
        animation: none;
        filter: brightness(1.05);
    }
}

/* ==========================================================================
   2. DESKTOP MENU TEXT - 50% Bigger
   ========================================================================== */

@media (min-width: 1025px) {
    /* Main navigation links - 50% bigger */
    nav ul li a {
        font-size: 1.3125rem !important; /* 50% bigger than 0.875rem */
        font-weight: 500 !important;
        padding: 0.75rem 1rem !important; /* Bigger padding too */
    }
    
    /* Explore button text - 50% bigger */
    .explore-dropdown-btn {
        font-size: 1.3125rem !important; /* 50% bigger */
        padding: 0.75rem 1rem !important;
    }
    
    /* Dropdown items - also make bigger for consistency */
    #explore-dropdown a {
        font-size: 1.125rem !important; /* Slightly bigger than 0.875rem */
        padding: 0.75rem 1.25rem !important;
    }
}

/* ==========================================================================
   3. INTRO TEXT SIZE INCREASE
   ========================================================================== */

/* Mobile intro text - increase by ~20% */
.mobile-title {
    font-size: clamp(1.5rem, 5vw, 2.1rem) !important; /* Increased from 1.25rem, 4vw, 1.75rem */
    font-weight: 700 !important; /* Make it bolder too */
    letter-spacing: -0.02em !important; /* Tighter spacing for impact */
}

/* Desktop parallax title - increase by ~20% */
.parallax-title {
    font-size: clamp(2.5rem, 6vw, 3.75rem) !important; /* Increased from 2rem, 5vw, 3rem */
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.9) !important; /* Stronger shadow */
}

/* ==========================================================================
   4. MOBILE EXPLORE BUTTON FIX - Remove white box
   ========================================================================== */

/* Fix the mobile explore button styling */
@media (max-width: 1024px) {
    /* Remove any white background from explore button */
    .mobile-submenu-button,
    .mobile-dropdown-toggle,
    button[onclick*="toggleMobileSubmenu"] {
        background: transparent !important; /* Remove white box */
        border: none !important;
        color: #fff !important;
        padding: 1rem 1.25rem !important;
        border-radius: 0.375rem !important;
        transition: background-color 0.2s ease !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    /* Hover state for explore button */
    .mobile-submenu-button:hover,
    .mobile-dropdown-toggle:hover {
        background: rgba(255, 255, 255, 0.1) !important;
    }
    
    /* Ensure explore dropdown also matches */
    #explore-dropdown {
        background: #1f2937 !important;
        border: 1px solid #374151 !important;
    }
    
    /* Fix any nested button styles that might cause white box */
    #mobile-menu button {
        background: transparent !important;
        color: #fff !important;
    }
    
    #mobile-menu button:hover {
        background: rgba(255, 255, 255, 0.1) !important;
    }
}

/* ==========================================================================
   5. INDEX PAGE HEADINGS - Key Features & Latest Blog Posts
   ========================================================================== */
/* SURGICAL HEADING FIXES - Add to styles.css */
.feature-section-title {
    font-size: 3rem !important;
    line-height: 1.1 !important;
}

.blog-section-title {
    font-size: 3rem !important; 
    line-height: 1.1 !important;
}

/* DESKTOP MENU FIXES */
@media (min-width: 768px) {
    .nav-link {
        font-size: 0.95rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    nav ul {
        gap: 0.5rem !important;
    }
    
    /* Ensure header layout doesn't break */
    header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
}
/* ==========================================================================
   BONUS: Additional Performance Optimizations
   ========================================================================== */

/* Optimize animations for 60fps */
@media (prefers-reduced-motion: reduce) {
    .logo-container,
    .logo-container img {
        animation: none !important;
        transition: opacity 0.2s ease !important;
    }
}

/* Hardware acceleration for smooth animations */
.logo-container {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ==========================================================================
   ADDITIONAL FIX: Ensure text sizing inheritance works properly
   ========================================================================== */

/* Force heading sizes in feature and blog sections */
.feature-section h2,
.blog-section h2,
section h2 {
    font-size: 2.75rem !important;
    line-height: 1.2 !important;
}

/* Fix any h2 that might be using Tailwind classes */
.text-2xl {
    font-size: 2.75rem !important;
}

.text-3xl {
    font-size: 2.75rem !important;
}

/* ==========================================================================
   TYPOGRAPHY HIERARCHY FIX
   ========================================================================== */

/* Ensure proper text size hierarchy throughout */
h1 {
    font-size: 3rem !important;
}

h2 {
    font-size: 2.75rem !important; /* Your requested bigger size */
}

h3 {
    font-size: 1.875rem !important;
}

h4 {
    font-size: 1.5rem !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    h1 { font-size: 2.25rem !important; }
    h2 { font-size: 2rem !important; }
    h3 { font-size: 1.5rem !important; }
    h4 { font-size: 1.25rem !important; }
}

/* ==========================================================================
   FEATURE & BLOG CARD TITLE SIZING - REFINED HIERARCHY
   Creates proper visual hierarchy: Section headings > Card titles > Body text
   ========================================================================== */

/* Card Titles - text-xl (20px) for clear hierarchy over body text */
.feature-item h4,
.feature-content h4,
.blog-preview h4,
.blog-preview-content h4,
.blog-preview-title {
    font-size: 1.25rem !important;   /* 20px - text-xl equivalent */
    line-height: 1.4 !important;
    font-weight: 700 !important;
    
    /* Prevent awkward wrapping - max 2 lines */
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Body Text - Explicitly maintain text-lg (18px) for proper contrast */
.feature-item p,
.feature-content p,
.blog-preview p,
.blog-preview-content p {
    font-size: 1.125rem !important;  /* 18px - text-lg, smaller than titles */
    line-height: 1.6 !important;     /* Good readability for body text */
}

/* Mobile Responsiveness - Titles still larger than body on mobile */
@media (max-width: 768px) {
    /* Mobile Card Titles - 18px (still bigger than mobile body text) */
    .feature-item h4,
    .feature-content h4,
    .blog-preview h4,
    .blog-preview-content h4,
    .blog-preview-title {
        font-size: 1.125rem !important;  /* 18px on mobile */
        line-height: 1.3 !important;
    }
    
    /* Mobile Body Text - 16px (smaller than titles) */
    .feature-item p,
    .feature-content p,
    .blog-preview p,
    .blog-preview-content p {
        font-size: 1rem !important;      /* 16px on mobile */
        line-height: 1.5 !important;
    }
}

/* Mobile menu visibility fix - OVERRIDE */
@media (max-width: 1024px) {
    #mobile-menu {
        transition: all 0.3s ease;
    }
    
    #mobile-menu:not(.hidden) {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    #mobile-menu.hidden {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* ==========================================================================
   PROFESSIONAL FOOTER DESIGN
   ========================================================================== */

.professional-footer {
    background: linear-gradient(135deg, #1a2332 0%, #0f1823 100%);
    border-top: 1px solid rgba(96, 165, 250, 0.2);
    margin-top: 4rem;
    padding: 0;
    color: #e5e7eb;
    position: relative;
    overflow: hidden;
}

.professional-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.5), transparent);
    animation: shimmer 3s infinite;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    padding: 4rem 0 3rem;
    align-items: start;
}

/* Logo Section */
.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(96, 165, 250, 0.2);
    transition: all 0.3s ease;
}

.footer-logo-wrapper:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(96, 165, 250, 0.4);
    transform: translateY(-2px);
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: brightness(1.1);
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-domain {
    font-size: 1.25rem;
    font-weight: 700;
    color: #60a5fa;
    letter-spacing: -0.02em;
}

.footer-tagline {
    font-size: 0.875rem;
    color: #93c5fd;
    font-weight: 400;
}

/* Footer Columns */
.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 700;
    color: #93c5fd;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(96, 165, 250, 0.3);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #60a5fa;
    padding-left: 20px;
}

.footer-links a:hover::before {
    left: 0;
    opacity: 1;
}

/* Social Column */
.footer-social-column {
    gap: 1rem;
}

.footer-social-text {
    color: #d1d5db;
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

.footer-social-icons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #93c5fd;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: #60a5fa;
    color: #ffffff;
    transform: translateY(-3px) scale(1.1);
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(96, 165, 250, 0.1);
    padding: 2rem 0;
    text-align: center;
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-copyright p {
    margin: 0;
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-copyright a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

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

/* Tablet View */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        padding: 3rem 0 2rem;
    }
    
    .footer-logo-section {
        grid-column: 1 / -1;
        margin-bottom: 1rem;
    }
    
    .footer-logo-wrapper {
        justify-content: center;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Mobile View */
@media (max-width: 640px) {
    .professional-footer {
        margin-top: 2rem;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 0 1.5rem;
        text-align: center;
    }
    
    .footer-logo-section {
        margin-bottom: 0;
    }
    
    .footer-logo-wrapper {
        flex-direction: column;
        padding: 1.5rem;
        text-align: center;
    }
    
    .footer-logo-img {
        width: 80px;
        height: 80px;
    }
    
    .footer-domain {
        font-size: 1.5rem;
    }
    
    .footer-heading {
        text-align: center;
        font-size: 1rem;
        border-bottom-width: 1px;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-links a {
        padding: 0.5rem 0;
        font-size: 1rem;
    }
    
    .footer-links a::before {
        display: none;
    }
    
    .footer-links a:hover {
        padding-left: 0;
    }
    
    .footer-social-text {
        text-align: center;
        font-size: 1rem;
    }
    
    .footer-social-icons {
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-social-link {
        width: 48px;
        height: 48px;
    }
    
    .footer-social-link svg {
        width: 24px;
        height: 24px;
    }
    
    .footer-bottom {
        padding: 1.5rem 0;
    }
    
    .footer-copyright {
        text-align: center;
        gap: 0.75rem;
    }
    
    .footer-copyright p {
        font-size: 0.8125rem;
        line-height: 1.5;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .footer-logo-wrapper {
        padding: 1rem;
    }
    
    .footer-logo-img {
        width: 60px;
        height: 60px;
    }
    
    .footer-domain {
        font-size: 1.25rem;
    }
    
    .footer-tagline {
        font-size: 0.8125rem;
    }
    
    .footer-links a {
        font-size: 0.9375rem;
    }
}

/* Shimmer animation for top border */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Dark mode enhancement for footer */
@media (prefers-color-scheme: dark) {
    .professional-footer {
        background: linear-gradient(135deg, #0f1419 0%, #000000 100%);
    }
    
    .footer-logo-wrapper {
        background: rgba(255, 255, 255, 0.03);
    }
    
    .footer-logo-wrapper:hover {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Hide old footer social icons if they exist elsewhere */
.social-media-icons:not(.footer-social-icons) {
    /* Keep existing styles for header social icons */
}

/* Ensure footer is always at bottom */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* LOGO CENTERING FIX - Desktop */
@media (min-width: 1025px) {
    .logo-container img {
        width: auto !important; /* Change from 100% to auto */
        height: auto !important;
        max-height: 160px !important;
        max-width: 100% !important; /* Prevent overflow */
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important; /* Center horizontally */
    }
}

/* Ensure container properly centers content */
.logo-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* FOOTER BLOG LINK COLOR FIX */
.footer-links a[href="blog.php"],
.footer-links a[href*="blog"] {
    color: #d1d5db !important; /* Force correct color */
}

.footer-links a[href="blog.php"]:hover,
.footer-links a[href*="blog"]:hover {
    color: #60a5fa !important; /* Force correct hover color */
}

/* Nuclear option - override any blog-specific styling */
.professional-footer .footer-links a {
    color: #d1d5db !important;
}

.professional-footer .footer-links a:hover {
    color: #60a5fa !important;
}