/* Dropdown container */
        .dropdown {
            position: relative;
            display: inline-block;
        }
        
        /* Dropdown button */
        .dropbtn {
            background-color: transparent;
            color: white;
            padding: 12px 16px;
            font-size: 16px;
            border: none;
            cursor: pointer;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        /* Dropdown button hover */
        .dropbtn:hover {
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
        }
        
        /* Dropdown content (hidden by default) */
        .dropdown-content {
            display: none;
            position: absolute;
            background-color: #fff;
            min-width: 200px;
            box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
            z-index: 1000;
            border-radius: 6px;
            overflow: hidden;
            opacity: 0;
            transform: translateY(-10px);
            transition: opacity 0.15s ease, transform 0.15s ease;
        }
        
        /* MINIMAL COLUMN GAP with READABLE FONTS */
        .dropdown-content.multi-column {
            width: 700px; /* Slightly wider for better readability */
            max-width: 90vw;
            display: none;
            grid-template-columns: repeat(3, 1fr);
            column-gap: 1px; /* MINIMAL horizontal gap - reduced from 4px */
            row-gap: 0px; /* No vertical gap */
            padding: 0.5rem 0.3rem; /* Balanced padding */
            opacity: 0;
            transform: translateY(-10px);
            border: 1px solid #e2e8f0;
            background: #fafafa;
        }
        
        /* Show dropdown on hover */
        .dropdown:hover .dropdown-content {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }
        
        .dropdown:hover .dropdown-content.multi-column {
            display: grid;
            opacity: 1;
            transform: translateY(0);
        }
        
        /* Links inside dropdown - READABLE with MINIMAL GAP */
        .dropdown-content a {
            color: #2d3748;
            padding: 6px 10px;
            text-decoration: none;
            display: block;
            border-radius: 3px;
            transition: background-color 0.1s;
            font-size: 13.5px; /* INCREASED by 1px - more readable */
            line-height: 1.2; /* Good line height for readability */
            font-weight: 500;
            min-height: 26px; /* Comfortable height for readability */
            display: flex;
            align-items: center;
            margin: 0;
        }
        
        /* READABLE: Multi-column links */
        .dropdown-content.multi-column a {
            padding: 0.3rem 0.5rem; /* Balanced padding */
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            min-height: 24px; /* Comfortable for reading */
            display: flex;
            align-items: center;
            margin: 0;
            border-radius: 2px;
            border: none;
        }
        
        /* Change color of dropdown links on hover */
        .dropdown-content a:hover {
            background-color: #edf2f7;
            color: #3182ce;
        }
        
        /* READABLE: Section dividers */
        .dropdown-content.multi-column .section-divider {
            grid-column: 1 / -1;
            border-top: 1px solid #e2e8f0;
            margin: 0.2rem 0; /* Balanced spacing */
            padding-top: 0.2rem;
            height: 1px;
            background: #e2e8f0;
        }
        
        .dropdown-content.multi-column .section-title {
            grid-column: 1 / -1;
            padding: 0.3rem 0.5rem; /* Readable padding */
            font-weight: 600;
            color: #2d3748;
            background: #f1f5f9;
            border-radius: 2px;
            margin-bottom: 0.2rem; /* Balanced margin */
            font-size: 12px; /* INCREASED by 1px - more readable */
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }
        
        /* Arrow in dropdown button */
        .arrow {
            font-size: 0.7em;
            margin-left: 2px;
            transition: transform 0.15s;
        }
        
        .dropdown:hover .arrow {
            transform: rotate(180deg);
        }
        
        /* MINIMAL GAP: Responsive adjustments */
        @media (max-width: 768px) {
            .dropdown-content.multi-column {
                grid-template-columns: repeat(2, 1fr);
                width: 92vw;
                column-gap: 1px; /* Minimal gap maintained */
                row-gap: 0px;
                padding: 0.4rem 0.2rem;
                left: 50% !important;
                transform: translateX(-50%) translateY(-10px) !important;
            }
            
            .dropdown:hover .dropdown-content.multi-column {
                transform: translateX(-50%) translateY(0) !important;
            }
            
            .dropdown-content.multi-column a {
                padding: 0.35rem 0.5rem;
                font-size: 13px; /* Readable on mobile */
                min-height: 24px;
            }
        }
        
        @media (max-width: 480px) {
            .dropdown-content.multi-column {
                grid-template-columns: 1fr;
                column-gap: 0px;
                padding: 0.3rem;
            }
            
            .dropdown-content.multi-column a {
                padding: 0.4rem 0.6rem;
                font-size: 13px; /* Maintain readability */
                min-height: 24px;
                border-bottom: 1px solid #f0f0f0;
            }
            
            .dropdown-content.multi-column a:last-child {
                border-bottom: none;
            }
            
            /* Mobile menu adjustment */
            .mobile-menu-open .dropdown-content {
                position: static;
                display: block !important;
                opacity: 1 !important;
                transform: none !important;
                box-shadow: none;
                background: transparent;
                width: 100%;
            }
            
            .mobile-menu-open .dropdown-content.multi-column {
                display: grid !important;
            }
            
            .mobile-menu-open .dropdown-content.multi-column a {
                padding: 0.5rem 0.7rem;
                border-bottom: 1px solid #e2e8f0;
            }
        }
        
        /* For very wide screens */
        @media (min-width: 1200px) {
            .dropdown-content.multi-column {
                width: 720px; /* Slightly wider for large screens */
            }
        }
        
        /* Make columns tighter on medium screens */
        @media (min-width: 769px) and (max-width: 1024px) {
            .dropdown-content.multi-column {
                width: 680px;
            }
            
            .dropdown-content.multi-column a {
                font-size: 13px;
                padding: 0.25rem 0.4rem;
            }
        }
        
        /* No hover effect on mobile touch devices */
        @media (hover: none) and (pointer: coarse) {
            .dropdown-content a:hover {
                background-color: transparent;
            }
            
            .dropdown-content a:active {
                background-color: #edf2f7;
            }
        }
        
        /* Improve readability for longer text */
        .dropdown-content.multi-column a {
            text-overflow: ellipsis;
            overflow: hidden;
            max-width: 100%;
        }
        
        /* Visual column separators for minimal gap design */
        .dropdown-content.multi-column {
            border-left: 1px solid #f0f0f0;
            border-right: 1px solid #f0f0f0;
        }
        
        .dropdown-content.multi-column a {
            border-right: 1px solid #f8f8f8;
        }
        
        .dropdown-content.multi-column a:nth-child(3n) {
            border-right: none;
        }
        
        /* SEO Content Styles */
        .seo-content {
            max-width: 800px;
            margin: 3rem auto;
            line-height: 1.7;
            color: #4a5568;
        }
        
        .seo-content h2 {
            color: #2d3748;
            margin-top: 2.5rem;
            margin-bottom: 1rem;
            font-size: 1.5rem;
        }
        
        .seo-content h3 {
            color: #2d3748;
            margin-top: 1.5rem;
            margin-bottom: 0.75rem;
            font-size: 1.25rem;
        }
        
        .seo-content p {
            margin-bottom: 1rem;
        }
        
        .seo-content ul, .seo-content ol {
            margin-bottom: 1.5rem;
            padding-left: 1.5rem;
        }
        
        .seo-content li {
            margin-bottom: 0.5rem;
        }
        
        .faq-item {
            margin-bottom: 1rem;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            overflow: hidden;
        }
        
        .faq-question {
            padding: 1rem;
            background: #edf2f7;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .faq-answer {
            padding: 1rem;
            background: white;
            display: none;
        }
        
        .info-box {
            background: #f0fff4;
            border-left: 4px solid #38a169;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border-radius: 0 8px 8px 0;
        }
        
        .warning-box {
            background: #fffaf0;
            border-left: 4px solid #ed8936;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border-radius: 0 8px 8px 0;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .modern-button {
            position: relative;
            overflow: hidden;
        }

        .modern-button::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .modern-button:hover::before {
            width: 300px;
            height: 300px;
        }

        .upload-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
        }

        .convert-btn:hover {
            transform: translateY(-3px) scale(1.02);
            box-shadow: 0 8px 24px rgba(66, 153, 225, 0.5);
        }

        .download-btn:hover {
            transform: translateY(-2px);
        }

        #downloadZipBtn:hover {
            box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
            background: linear-gradient(135deg, #7c3aed, #6d28d9);
        }

        #downloadIndividualBtn:hover {
            box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
        }

        #downloadAnimatedBtn:hover {
            box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
            background: linear-gradient(135deg, #d97706, #b45309);
        }

        .modern-button:active {
            transform: translateY(0);
        }

        #imagePreviewGrid::-webkit-scrollbar {
            width: 8px;
        }

        #imagePreviewGrid::-webkit-scrollbar-track {
            background: #f1f5f9;
            border-radius: 4px;
        }

        #imagePreviewGrid::-webkit-scrollbar-thumb {
            background: #cbd5e0;
            border-radius: 4px;
        }

        #imagePreviewGrid::-webkit-scrollbar-thumb:hover {
            background: #a0aec0;
        }

        #clearBtn:hover {
            background: #fee2e2;
            border-color: #fca5a5;
        }

        .page-btn {
            transition: all 0.2s ease;
        }

        .page-btn:hover {
            transform: translateY(-1px);
        }

        [data-format] {
            transition: all 0.2s ease;
        }

        [data-format]:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        /* WebP format specific styling */
        [data-format="webp"] .format-icon {
            background: linear-gradient(135deg, #4299e1, #2b6cb0);
            color: white;
        }
        
        [data-format="lossless"] .format-icon {
            background: linear-gradient(135deg, #38a169, #276749);
            color: white;
        }
        
        [data-format="animated"] .format-icon {
            background: linear-gradient(135deg, #d69e2e, #975a16);
            color: white;
        }