/* Dropdown Container */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    text-decoration: none;
    color: black;
    font-weight: 300;
    font-size: 20px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.45s;
    line-height: 50px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropbtn::after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropbtn::after {
    transform: rotate(180deg);
}

/* Dropdown Content */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 950px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    z-index: 1000;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 25px;
    border: 1px solid #e5e7eb;
    margin-top: 0px;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.dropdown-content:hover {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Grid Layout */
.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.dropdown-category {
    display: flex;
    flex-direction: column;
}

.category-title {
    font-size: 16px;
    font-weight: 700;
    color: #9a0001;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #9a0001;
    padding-bottom: 8px;
}

.subcategory {
    margin-bottom: 20px;
}

.subcategory-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e5e7eb;
}

.tools-row {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 6px;
    align-items: stretch;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 6px;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 11px;
    height: 70px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tool-item:hover {
    background-color: #9a0001;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(154, 0, 1, 0.2);
    text-decoration: none;
}

.tool-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 14px;
    flex-shrink: 0;
    margin-bottom: 6px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #9a0001, #cc0002);
    color: white;
}

.tool-item:hover .tool-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.tool-name {
    font-weight: 600;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-other-tools-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-top: 1px solid #e9ecef;
    transition: color 0.3s ease;
}

.view-other-tools-link:hover {
    color: #9a0001;
}

/* Icon styles - you'll need to copy these from your existing CSS */
/* Image-based Professional Icons */
.icon-excel-to-pdf {
    background-image: url('../images/excel.png');
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-pdf-to-excel {
    background-image: url('../images/PDF.avif');
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-excel-to-word {
    background-image: url('../images/Excelword.avif');
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-excel-to-ppt {
    background-image: url('../images/docs.avif');
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-pdf-to-word {
    background-image: url('../images/Doc_conv.avif');
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-pdf-to-ppt {
    background-image: url('../images/docs1.avif');
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
}
.icon-pptx-to-xlsx::before { content: "📊"; }
.icon-pptx-to-pdf::before { content: "📄"; }
.icon-pptx-to-docx::before { content: "📝"; }
.icon-docx-to-pdf::before { content: "📄"; }
.icon-docx-to-xlsx::before { content: "📊"; }
.icon-docx-to-ppt::before { content: "📊"; }
.icon-merge::before { content: "🔗"; }
.icon-compress::before { content: "🗜️"; }
.icon-lock::before { content: "🔒"; }
.icon-edit::before { content: "✏️"; }
.icon-organize::before { content: "📋"; }
.icon-merge-docx::before { content: "📄"; }
.icon-merge-pptx::before { content: "📊"; }
.icon-merge-xlsx::before { content: "📊"; }