
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --secondary: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-focus: #2563eb;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --radius-card: 16px;
    --radius-btn: 8px;
    --radius-input: 8px;
}

/* Dark Mode Variables */
body.dark {
    --bg-page: #0f172a;
    --bg-card: #1e293b;
    --text-heading: #f8fafc;
    --text-body: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --primary-light: #1e293b;
    --card-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 2. BASE & RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

/* 3. SITE HEADER & NAVIGATION */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s, border-color 0.3s;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo a {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    gap: 24px;
    list-style: none;
    align-items: center;
}

.nav-menu > li > a {
    color: var(--text-heading);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 0;
    display: block;
    transition: color 0.2s;
}

.nav-menu > li > a:hover {
    color: var(--primary);
}

/* Desktop Dropdowns */
.dropdown {
    position: relative;
}

.dropdown > a::after {
    content: ' ▾';
    font-size: 11px;
    color: var(--text-muted);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-card);
    min-width: 250px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    z-index: 1000;
    padding: 8px 0;
}

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

.dropdown-content li {
    list-style: none;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-body);
    transition: background 0.2s, color 0.2s;
}

.dropdown-content a:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* 2-Column Desktop Dropdowns for Tool Menus */
.dropdown-content.dropdown-2col {
    width: 410px;
    min-width: 410px;
    max-width: 92vw;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    padding: 10px;
    gap: 4px 6px;
    border-radius: 14px;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.04);
}

.dropdown-content.dropdown-2col.dropdown-wide {
    width: 430px;
    min-width: 430px;
}

.dropdown-content.dropdown-2col.dropdown-compact {
    width: 350px;
    min-width: 350px;
}

.dropdown:hover .dropdown-content.dropdown-2col {
    display: grid;
    animation: fadeInDropdown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-content.dropdown-2col li {
    list-style: none;
    margin: 0;
}

.dropdown-content.dropdown-2col a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-body);
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.15s ease;
}

.dropdown-content.dropdown-2col a:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    transform: translateX(2px);
}

body.dark .dropdown-content.dropdown-2col a {
    color: #cbd5e1;
}

body.dark .dropdown-content.dropdown-2col a:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.scrollable-dropdown {
    max-height: 420px;
    overflow-y: auto;
}

.scrollable-dropdown::-webkit-scrollbar {
    width: 6px;
}

.scrollable-dropdown::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.dark-toggle, .mobile-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--text-heading);
    transition: background 0.2s;
}

.dark-toggle:hover, .mobile-toggle:hover {
    background: rgba(128, 128, 128, 0.1);
}

.mobile-toggle {
    display: none;
}

/* Mobile Menu Drawer */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 88%;
    max-width: 350px;
    height: 100%;
    background: var(--bg-card);
    z-index: 2000;
    transition: right 0.3s ease;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-container {
    height: 100%;
    overflow-y: auto;
    padding: 24px;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.mobile-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-heading);
}

.mobile-nav-menu {
    list-style: none;
}

.mobile-nav-menu > li {
    margin-bottom: 8px;
}

.mobile-nav-menu > li > a {
    color: var(--text-heading);
    font-size: 16px;
    display: block;
    padding: 8px 0;
    font-weight: 600;
}

.mobile-dropdown-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    color: var(--text-heading);
    font-size: 16px;
    font-weight: 600;
    padding: 8px 0;
    text-align: left;
    cursor: pointer;
}

.mobile-dropdown-content {
    display: none;
    padding-left: 15px;
    margin-top: 5px;
    list-style: none;
    border-left: 2px solid var(--border-color);
    margin-left: 5px;
}

.mobile-dropdown-content.active {
    display: block;
}

.mobile-dropdown-content a {
    display: block;
    font-size: 14px;
    padding: 8px 0;
    color: var(--text-muted);
    font-weight: 500;
}

.mobile-dropdown-content a:hover {
    color: var(--primary);
}

/* Mobile 2-Column Grid for Tool Menus */
.mobile-dropdown-content.mobile-grid-2col {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 8px;
    padding-left: 10px;
    margin-top: 6px;
    margin-bottom: 6px;
    list-style: none;
    border-left: 2px solid var(--border-color);
}

.mobile-dropdown-content.mobile-grid-2col.active {
    display: grid;
}

.mobile-dropdown-content.mobile-grid-2col li {
    list-style: none;
}

.mobile-dropdown-content.mobile-grid-2col li a {
    padding: 6px 4px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.3;
    display: block;
    white-space: normal;
}

.mobile-dropdown-content.mobile-grid-2col li a:hover {
    color: var(--primary);
}

body.dark .mobile-dropdown-content.mobile-grid-2col li a {
    color: #94a3b8;
}

body.dark .mobile-dropdown-content.mobile-grid-2col li a:hover {
    color: #60a5fa;
}

/* 4. MASTER TWO-COLUMN BODY CONTAINER (AGE CALCULATOR STANDARD) */
.freeconvert-layout-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
    flex: 1;
}

.main-tool-workspace {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

/* 5. TOP TOOL CARD DESIGN */
.tool-card,
.card,
.main-wrapper > .card,
.converter-grid-layout > .tool-card,
.pdf-tool-grid-layout > .pdf-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-card);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 100% !important;
    text-align: center;
    box-sizing: border-box;
    transition: background 0.3s, border-color 0.3s;
}

.promo-header {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
    margin-top: 0;
}

.promo-subtext {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
    margin-top: 0;
    line-height: 1.5;
}

/* Form Inputs & Upload Box */
.input-group,
.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label,
.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-heading);
    display: block;
    margin-bottom: 8px;
}

input[type="date"],
input[type="text"],
input[type="number"],
input[type="file"],
input[type="email"],
select,
textarea,
.form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-input);
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    outline: none;
    font-size: 15px;
    color: var(--text-heading);
    background: var(--bg-card);
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Modern Minimalist Upload Drag/Drop Box */
.upload-area,
.modern-dropzone,
.jpg-drop-zone,
.pdf-drop-zone {
    border: 2px dashed #3b82f6;
    padding: 40px 20px;
    background: #f8fbff;
    cursor: pointer;
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

body.dark .upload-area,
body.dark .modern-dropzone,
body.dark .jpg-drop-zone,
body.dark .pdf-drop-zone {
    background: #0f172a;
    border-color: #4f46e5;
}

.upload-area:hover,
.modern-dropzone:hover,
.jpg-drop-zone:hover,
.pdf-drop-zone:hover {
    background: #eff6ff;
    border-color: var(--primary-dark);
}

body.dark .upload-area:hover,
body.dark .modern-dropzone:hover {
    background: #1e293b;
}

.upload-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

/* Master Button (Age Calculator Standard) */
.btn-main,
.btn-action,
.tool-premium-btn,
.btn-submit {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    border: none;
    padding: 14px 24px;
    border-radius: var(--radius-btn);
    width: 100%;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-main:hover,
.btn-action:hover,
.tool-premium-btn:hover,
.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.35);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text-heading);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

body.dark .btn-secondary {
    background: #334155;
    color: #f8fafc;
}

/* Download / Result Card */
.download-card,
.result-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-top: 25px;
    text-align: center;
    box-sizing: border-box;
}

body.dark .download-card,
body.dark .result-box {
    background: #0f172a;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
    margin-top: 10px;
}

.result-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.result-item span {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.result-item label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tool Previews & Matrices */
#preview-container img,
.preview-img {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid var(--border-color);
}

.info-grid,
.info-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.info-item,
.matrix-box {
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

/* 6. CONTENT & ARTICLE BOX (AGE CALCULATOR STANDARD) */
.seo-rich-content,
.article-section,
.content-container,
.blog-container,
.legal-card,
.contact-card,
.content-wrapper,
.about-card {
    background: var(--bg-card);
    width: 100%;
    max-width: 100% !important;
    padding: 45px;
    border-radius: var(--radius-card);
    box-shadow: var(--card-shadow);
    line-height: 1.8;
    color: var(--text-body);
    text-align: left;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    transition: background 0.3s, border-color 0.3s;
}

.seo-rich-content h1,
.article-section h1,
.content-container h1,
.blog-container h1,
.legal-card h1,
.contact-card h1,
.about-title {
    color: var(--text-heading);
    font-size: 26px;
    margin-bottom: 20px;
    font-weight: 700;
    margin-top: 0;
    line-height: 1.3;
}

.seo-rich-content h2,
.article-section h2,
.content-container h2,
.blog-container h2,
.legal-card h2,
.contact-card h2 {
    color: var(--text-heading);
    font-size: 21px;
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 600;
    border-left: 4px solid var(--primary);
    padding-left: 12px;
}

.seo-rich-content h3,
.article-section h3,
.content-container h3,
.blog-container h3 {
    color: var(--text-heading);
    font-size: 17px;
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: 600;
}

.seo-rich-content p,
.article-section p,
.content-container p,
.blog-container p,
.legal-card p,
.contact-card p,
.about-subtitle {
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text-body);
}

.seo-rich-content ul,
.seo-rich-content ol,
.article-section ul,
.article-section ol,
.blog-container ul,
.blog-container ol,
.legal-card ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.seo-rich-content li,
.article-section li,
.blog-container li,
.legal-card li {
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--text-body);
}

.seo-rich-content hr,
.about-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 35px 0;
}

/* FAQ Box (Age Calculator Standard) */
.faq-box,
.faq-item {
    background: #f8fbff;
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

body.dark .faq-box,
body.dark .faq-item {
    background: #0f172a;
    border-color: #334155;
    border-left-color: var(--primary);
}

.faq-box h4,
.faq-item h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: var(--text-heading);
    font-weight: 600;
}

.faq-box p,
.faq-item p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

/* 7. SIDEBAR COMPONENT (AGE CALCULATOR STANDARD) */
.sidebar-wrapper {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: background 0.3s, border-color 0.3s;
}

.sidebar-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 10px;
}

.sidebar-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-body);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    background: #f8fbff;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease-in-out;
    font-weight: 500;
}

body.dark .sidebar-list a {
    background: #0f172a;
}

.sidebar-list a:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateX(4px);
}

.sidebar-trust-box {
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: #1e3a8a;
}

body.dark .sidebar-trust-box {
    background: #0f172a;
    border-color: #312e81;
    color: #93c5fd;
}

.sidebar-trust-box strong {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

/* 8. BLOG & CALLOUTS */
.blog-meta {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.cta-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

body.dark .cta-box {
    background: #1e293b;
    border-color: #312e81;
}

.cta-box a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
}

.blog-header-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 60px 20px;
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.blog-header-section h1 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 12px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary);
}

.blog-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    margin-bottom: 12px;
    width: fit-content;
}

/* 9. CONTACT & ABOUT SPECIFIC STYLING */
.contact-info-box {
    background: #f8fbff;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

body.dark .contact-info-box {
    background: #0f172a;
}

.about-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 12px;
}

.contact-cta {
    background: var(--primary-light);
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 24px;
    margin-top: 35px;
}

body.dark .contact-cta {
    background: #1e293b;
    border-color: #312e81;
}

/* 10. HOMEPAGE HERO & GRID */
.hero-premium {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}

body.dark .hero-premium {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}

.hero-premium-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-heading);
}

.title-highlight {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-glass {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: 80px;
    padding: 6px;
    box-shadow: var(--card-shadow-hover);
    border: 1px solid var(--border-color);
    margin: 0 auto;
    max-width: 650px;
}

.search-glass input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    padding: 12px 20px;
}

.search-glass button {
    padding: 12px 24px;
    border-radius: 60px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.tools-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    width: 100%;
}

.tool-premium-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tool-premium-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary);
}

.status-badge {
    font-size: 11px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* 11. FOOTER STYLING */
.site-footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 60px 0 30px;
    margin-top: 60px;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-grid h4 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
}

.footer-grid li {
    margin-bottom: 10px;
}

.footer-grid a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-grid a:hover {
    color: #ffffff;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #334155;
    font-size: 14px;
}

.copyright a {
    color: #38bdf8;
}

/* Floating Back To Top Button */
#backToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    font-size: 20px;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.2s;
}

#backToTopBtn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* 12. RESPONSIVE MEDIA QUERIES */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .freeconvert-layout-container {
        flex-direction: column;
    }
    .sidebar-wrapper {
        width: 100%;
        max-width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .freeconvert-layout-container {
        margin: 15px auto;
        padding: 0 15px;
    }
    .tool-card,
    .card,
    .seo-rich-content,
    .article-section,
    .content-container,
    .blog-container,
    .legal-card,
    .contact-card,
    .about-card {
        padding: 24px;
    }
    .promo-header {
        font-size: 22px;
    }
    .seo-rich-content h1,
    .article-section h1 {
        font-size: 22px;
    }
}


/* ==========================================================================
   13. HOMEPAGE ENHANCED COMPONENTS & ANIMATIONS
   ========================================================================== */
.hero-bg { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
    pointer-events: none; 
}
.gradient-orb { 
    position: absolute; 
    border-radius: 50%; 
    filter: blur(80px); 
    opacity: 0.4; 
}
.orb-1 { 
    width: 500px; 
    height: 500px; 
    background: radial-gradient(circle, var(--primary), transparent); 
    top: -150px; 
    left: -150px; 
    animation: floatOrb 20s ease-in-out infinite; 
}
.orb-2 { 
    width: 400px; 
    height: 400px; 
    background: radial-gradient(circle, var(--secondary), transparent); 
    bottom: -100px; 
    right: -100px; 
    animation: floatOrb 25s ease-in-out infinite reverse; 
}

@keyframes floatOrb { 
    0%, 100% { transform: translate(0, 0) rotate(0deg); } 
    50% { transform: translate(50px, 30px) rotate(10deg); } 
}

.hero-premium-content { 
    position: relative; 
    z-index: 50; 
    max-width: 900px; 
    margin: 0 auto; 
}
.trust-badge { 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    padding: 8px 20px; 
    background: rgba(255,255,255,0.9); 
    backdrop-filter: blur(10px); 
    border-radius: 60px; 
    font-size: 14px; 
    font-weight: 500; 
    margin-bottom: 24px; 
    box-shadow: var(--card-shadow); 
    border: 1px solid rgba(255,255,255,0.2); 
    color: var(--text-heading);
}
body.dark .trust-badge { 
    background: rgba(30,41,59,0.9); 
    border: 1px solid rgba(255,255,255,0.1); 
    color: #fff;
}

.hero-premium-description { 
    font-size: 18px; 
    line-height: 1.6; 
    color: var(--text-body); 
    margin-bottom: 35px; 
}

.hero-premium-search { 
    max-width: 700px; 
    margin: 0 auto 30px; 
    position: relative; 
    z-index: 100; 
}

#searchDropdownList { 
    display: none; 
    position: absolute; 
    top: calc(100% + 8px); 
    left: 0; 
    right: 0; 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: 16px; 
    max-height: 320px; 
    overflow-y: auto; 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04); 
    z-index: 999; 
    padding: 8px; 
    text-align: left; 
}
body.dark #searchDropdownList { 
    background: #1e293b; 
    border-color: #334155; 
}

.search-result-item { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 10px 14px; 
    border-radius: 10px; 
    text-decoration: none; 
    color: var(--text-heading); 
    transition: background 0.2s; 
    margin-bottom: 4px; 
}
body.dark .search-result-item { color: #fff; }
.search-result-item:hover { background: rgba(37,99,235,0.1); }
.search-result-info { display: flex; align-items: center; gap: 12px; }

.card-top-row { 
    display: flex; 
    justify-content: flex-end; 
    align-items: center; 
    margin-bottom: 15px; 
}
.tool-premium-card h3 { 
    font-size: 19px; 
    font-weight: 700; 
    margin-bottom: 10px; 
    color: var(--text-heading); 
}
.tool-premium-card p { 
    color: var(--text-muted); 
    font-size: 14px; 
    margin-bottom: 20px; 
    line-height: 1.5; 
    flex-grow: 1; 
}
.tool-premium-btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    padding: 10px 20px; 
    background: linear-gradient(135deg, var(--primary), var(--secondary)); 
    color: white !important; 
    border-radius: 8px; 
    font-weight: 600; 
    font-size: 14px; 
    text-decoration: none; 
    transition: 0.2s; 
}
.tool-premium-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.content-wrapper { 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: 24px; 
    padding: 50px; 
    margin: 60px 0; 
    box-shadow: var(--card-shadow); 
}
.content-wrapper h2 { 
    font-size: 28px; 
    font-weight: 700; 
    margin-bottom: 25px; 
    color: var(--text-heading); 
}
.content-wrapper h3 { 
    font-size: 22px; 
    font-weight: 600; 
    margin-top: 35px; 
    margin-bottom: 15px; 
    color: var(--text-heading); 
}
.content-wrapper p { 
    color: var(--text-body); 
    font-size: 16px; 
    line-height: 1.8; 
    margin-bottom: 15px; 
}

.features-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; 
    margin: 30px 0; 
}
.feature-item { 
    padding: 20px; 
    background: rgba(37,99,235,0.05); 
    border-radius: 16px; 
    border: 1px solid rgba(37,99,235,0.1); 
}
.feature-item h4 { 
    font-size: 18px; 
    font-weight: 700; 
    color: var(--text-heading); 
    margin-bottom: 8px; 
}
.feature-item p { 
    font-size: 14px; 
    margin-bottom: 0; 
    color: var(--text-body);
}

.steps-container { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px; 
    margin: 30px 0; 
    justify-content: space-between; 
}
.step-box { 
    flex: 1; 
    min-width: 200px; 
    text-align: center; 
    padding: 20px; 
}
.step-number { 
    width: 50px; 
    height: 50px; 
    background: var(--primary); 
    color: white; 
    font-size: 24px; 
    font-weight: bold; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    margin: 0 auto 15px; 
}

.faq-container { margin-top: 20px; }
.stats-premium { 
    padding: 60px 0; 
    background: linear-gradient(135deg, var(--primary), var(--secondary)); 
    color: white; 
    border-radius: 24px; 
    margin: 40px 0; 
}
.stats-premium-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 30px; 
    text-align: center; 
}
.stat-premium-number { 
    font-size: 42px; 
    font-weight: 800; 
    margin-bottom: 8px; 
}

/* ==========================================================================
   14. INTERACTIVE TOOL COMPONENTS & UTILITIES
   ========================================================================== */
.upload-area { 
    border: 2px dashed var(--primary); 
    padding: 40px 20px; 
    background: #f8fbff; 
    cursor: pointer; 
    border-radius: 14px; 
    transition: all 0.2s ease;
    text-align: center;
}
body.dark .upload-area {
    background: #1e293b;
    border-color: #3b82f6;
}
.upload-area:hover, .upload-area.dragover { 
    border-color: var(--primary-dark); 
    background: #eff6ff; 
    transform: translateY(-2px);
}
body.dark .upload-area:hover, body.dark .upload-area.dragover {
    background: #0f172a;
}
.upload-icon { 
    width: 56px; 
    height: 56px; 
    margin: 0 auto 15px auto; 
    background: rgba(37,99,235,0.1); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--primary);
    font-size: 28px;
}
.upload-title { 
    font-size: 17px; 
    font-weight: 600; 
    color: var(--text-heading); 
    margin-bottom: 6px; 
}
.upload-desc { 
    font-size: 13px; 
    color: var(--text-muted); 
    margin: 0; 
}
.file-name-text { 
    font-size: 14px; 
    color: var(--primary); 
    font-weight: 600; 
    margin-top: 10px; 
    display: none; 
    word-break: break-all; 
}

.btn-secondary { 
    background: #f1f5f9; 
    color: #334155; 
    border: 1px solid var(--border-color); 
    padding: 12px; 
    border-radius: 8px; 
    width: 100%; 
    cursor: pointer; 
    font-weight: 600; 
    font-size: 15px; 
    margin-top: 10px; 
    transition: 0.2s; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 6px; 
}
body.dark .btn-secondary {
    background: #1e293b;
    color: #f1f5f9;
    border-color: #334155;
}
.btn-secondary:hover { 
    background: #e2e8f0; 
    color: #0f172a; 
}
body.dark .btn-secondary:hover {
    background: #334155;
    color: #fff;
}

.progress-box { 
    display: none; 
    margin-top: 20px; 
    text-align: center; 
    width: 100%;
}
.progress-bar-bg { 
    width: 100%; 
    background: var(--border-color); 
    height: 8px; 
    border-radius: 4px; 
    overflow: hidden; 
    margin-bottom: 8px; 
}
.progress-bar-fill { 
    width: 0%; 
    height: 100%; 
    background: var(--primary); 
    border-radius: 4px; 
    transition: width 0.3s ease; 
}
.status-text { 
    font-size: 13px; 
    color: var(--text-muted); 
    font-weight: 500; 
}

#preview-container, .preview-thumb-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
}
#preview-container img, .preview-thumb-container img {
    max-width: 180px;
    max-height: 140px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    object-fit: contain;
}

.cropper-workspace {
    display: none;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
    text-align: left;
}
.image-preview-wrapper {
    width: 100%;
    max-height: 480px;
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.image-preview-wrapper img {
    max-width: 100%;
    display: block;
}
.circle-cropper .cropper-view-box,
.circle-cropper .cropper-face {
    border-radius: 50%;
}
.control-section {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    box-sizing: border-box;
}
body.dark .control-section {
    background: #1e293b;
}
.control-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}
.ratio-pills, .action-tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ratio-btn, .tool-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-heading);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ratio-btn:hover, .tool-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}
.ratio-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}
.export-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    align-items: center;
}
.setting-item label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-heading);
    display: block;
    margin-bottom: 6px;
}
.setting-item select, .setting-item input[type=range] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text-heading);
    outline: none;
    box-sizing: border-box;
    font-size: 14px;
}
.stats-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    padding: 8px 14px;
    background: var(--bg-body);
    border-radius: 6px;
    font-weight: 600;
}
body.dark .stats-badge-row {
    background: #1e293b;
}
.cta-row {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}
.primary-btn {
    flex: 2;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}
.result-view {
    display: none;
    text-align: center;
    margin-top: 25px;
    padding: 25px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}
body.dark .result-view {
    background: #1e293b;
}
.result-preview-img {
    max-width: 100%;
    max-height: 320px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    background: #fff;
}
.result-stats {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.docx-viewer-container {
    width: 100%;
    max-height: 480px;
    overflow-y: auto;
    overflow-x: auto;
    background: #525659;
    padding: 25px 15px;
    border-radius: 12px;
    box-sizing: border-box;
    margin: 20px 0;
    text-align: left;
}
.docx-wrapper {
    background: transparent !important;
    padding: 0 !important;
}
.docx-wrapper > section.docx {
    background: #ffffff !important;
    margin: 0 auto 20px auto !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    box-sizing: border-box;
}

@media print {
    body * { visibility: hidden !important; }
    .docx-viewer-container, .docx-viewer-container * { visibility: visible !important; }
    .docx-viewer-container {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .docx-wrapper > section.docx {
        box-shadow: none !important;
        margin: 0 !important;
        page-break-after: always !important;
    }
}

.player-container {
    margin: 20px 0;
    width: 100%;
    display: flex;
    justify-content: center;
}
audio, video {
    width: 100%;
    max-width: 520px;
    border-radius: 8px;
}

.info-matrix {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    margin: 20px 0;
}
.matrix-box {
    flex: 1;
    background: var(--bg-body);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
}
body.dark .matrix-box {
    background: #1e293b;
}
.size-metric {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.alert-box {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.table-responsive { overflow-x: auto; margin-bottom: 25px; }
.specs-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.specs-table th { background: #f8fafc; padding: 12px 14px; border: 1px solid var(--border-color); color: var(--text-heading); font-weight: 600; }
body.dark .specs-table th { background: #1e293b; color: #f1f5f9; }
.specs-table td { padding: 10px 14px; border: 1px solid var(--border-color); color: var(--text-body); }


/* ==========================================================================
   15. TOOL UTILITY INTERFACES & PREVIEWS
   ========================================================================== */
.workspace-center {
    display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
}
.tool-main-heading {
    font-size: 32px; font-weight: 700; color: #0f172a; margin-bottom: 10px;
}
.tool-subheading {
    font-size: 16px; color: #64748b; margin-bottom: 35px;
}
#file-status-tray {
    display: none;
        background: #f1f5f9;
        border: 1px dashed #cbd5e1;
        padding: 15px 20px;
        border-radius: 10px;
        margin-bottom: 25px;
        text-align: left;
        align-items: center;
        justify-content: space-between;
}
.pdf-icon-badge {
    font-weight: bold;
        background: #ef4444;
        color: white;
        padding: 4px 8px;
        border-radius: 5px;
        font-size: 12px;
        margin-right: 10px;
}
.success-green {
    color: #16a34a !important;
}
.slider-wrapper {
    position: relative;
        margin: 20px 0 10px 0;
}
.pdf-range-slider {
    width: 100%;
        height: 8px;
        border-radius: 5px;
        background: #e2e8f0;
        outline: none;
        -webkit-appearance: none;
        accent-color: #ef4444;
        cursor: pointer;
}
.badge-active-color {
    background: #fee2e2;
        color: #ef4444;
}
.btn-pdf-action {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); 
        color: white; 
        border: none; 
        padding: 16px; 
        border-radius: 12px; 
        font-size: 16px; 
        font-weight: bold; 
        cursor: pointer; 
        width: 100%; 
        transition: all 0.2s; 
        box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}
.btn-reset-data {
    background: #64748b; color: white; border: none; padding: 12px 25px; border-radius: 8px; cursor: pointer; margin-top: 30px; font-size: 14px; font-weight: 500; transition: 0.2s;
}
.pdf-download-card {
    display: none; border: 1px solid #cbd5e1; padding: 35px; border-radius: 16px; background: white; width: 100%; text-align: center; animation: slideUp 0.4s ease-out; box-sizing: border-box;
}
.rename-pdf-input {
    width: 100%; padding: 12px; margin: 15px 0; border: 1px solid #cbd5e0; border-radius: 8px; outline: none; font-size: 14px; box-sizing: border-box;
}
#preview-grid-tray {
    display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
        max-height: 250px;
        overflow-y: auto;
        background: #f1f5f9;
        border: 1px dashed #cbd5e1;
        padding: 15px;
        border-radius: 12px;
        margin-bottom: 25px;
        text-align: left;
}
.success-blue {
    color: #2563eb !important;
}
.settings-control-panel {
    text-align: left; margin-bottom: 30px; background: #fafafa; padding: 20px; border-radius: 12px; border: 1px solid #f1f5f9; width: 100%; box-sizing: border-box;
}
.form-select-premium {
    width: 100%; padding: 12px; border-radius: 8px; border: 1px solid #cbd5e1; outline: none; background-color: #fff; font-size: 14px; color: #334155; margin-bottom: 15px; box-sizing: border-box;
}
.btn-jpg-action {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: white; border: none; padding: 16px; border-radius: 12px; font-size: 16px; font-weight: bold; cursor: pointer; width: 100%; transition: all 0.2s; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.download-card-tray {
    display: none; border: 1px solid #cbd5e1; padding: 35px; border-radius: 16px; background: white; width: 100%; text-align: center; animation: slideUp 0.4s ease-out; box-sizing: border-box;
}
.rename-input-field {
    width: 100%; padding: 12px; margin: 15px 0; border: 1px solid #cbd5e0; border-radius: 8px; outline: none; font-size: 14px; box-sizing: border-box;
}
.unit-selector-row {
    display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 10px;
        align-items: flex-end;
        margin-bottom: 20px;
}
.swap-btn {
    background: #eff6ff;
        border: 1px solid #bfdbfe;
        color: #2563eb;
        width: 44px;
        height: 44px;
        border-radius: 8px;
        font-size: 20px;
        font-weight: bold;
        cursor: pointer;
        transition: 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
}
.result-main {
    font-size: 24px;
        font-weight: 700;
        color: #2563eb;
        word-break: break-word;
}
.result-formula {
    font-size: 13px;
        color: #64748b;
        font-weight: 500;
        margin-top: 6px;
}
.result-row {
    margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #edf2f7;
}
.result-label {
    font-size: 12px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 3px;
}
.result-value {
    font-size: 14px; color: #0f172a; font-family: monospace; word-break: break-all;
}
.size-val {
    display: block; font-weight: 700; margin-top: 4px; color: #0f172a;
}
.target-color {
    color: #16a34a !important;
}
.control-group {
    text-align: left; margin-bottom: 25px;
}
.btn-delete {
    background: #ef4444; color: white; border: none; padding: 12px 25px; border-radius: 8px; cursor: pointer; margin-top: 30px; font-size: 14px; font-weight: 500; transition: 0.2s;
}
.rename-input {
    width: 100%; padding: 12px; margin: 15px 0; border: 1px solid #cbd5e0; border-radius: 8px; outline: none; font-size: 14px; box-sizing: border-box;
}
.select-label {
    font-size: 13px; font-weight: 600; display: block; text-align: left; margin-bottom: 8px; color: #334155;
}
.video-preview-wrapper {
    margin: 15px auto;
        max-width: 100%;
        border-radius: 10px;
        overflow: hidden;
        background: #000;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.settings-row {
    margin-top: 20px; text-align: left;
}
.audio-player-wrapper {
    margin: 20px 0;
}
.loading-text {
    display: none; color: #2563eb; font-weight: 600; margin-top: 15px; font-size: 14px;
}
.player-box {
    margin: 15px 0 20px 0;
        padding: 12px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
}
.vector-preview-wrapper {
    margin: 20px 0;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-height: 380px;
        overflow: auto;
}
.preview-box {
    margin: 15px auto;
        max-width: 100%;
        max-height: 260px;
        overflow: hidden;
        border-radius: 10px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        background: #f8fafc;
}
.secondary-btn {
    flex: 1;
        background: #f1f5f9;
        color: #475569;
        border: 1px solid #cbd5e1;
        padding: 14px 16px;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
}
div.Section1 {
    page: Section1;
}


/* ==========================================================================
   16. HOMEPAGE SPECIFIC LAYOUT: 8 TRENDING TOOLS & 6 LATEST BLOGS
   ========================================================================== */
.home-container {
    max-width: 1200px;
    margin: 40px auto 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header-left {
    max-width: 700px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

body.dark .section-tag {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0 0 10px 0;
    line-height: 1.25;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.06);
    transition: all 0.2s;
}

.view-all-link:hover {
    background: var(--primary);
    color: white;
    transform: translateX(3px);
}

/* 8 Trending Tools Grid */
.tools-grid-8 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.home-tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.home-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.25s;
}

.home-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 28px -10px rgba(37, 99, 235, 0.15);
    border-color: #bfdbfe;
}

body.dark .home-tool-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 16px 28px -10px rgba(0, 0, 0, 0.5);
}

.home-tool-card:hover::before {
    opacity: 1;
}

.tool-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.tool-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.2s;
}

.home-tool-card:hover .tool-icon-box {
    transform: scale(1.1);
}

.tool-badge-pill {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
}

.badge-popular { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.badge-instant { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.badge-trending { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.badge-quality { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

.tool-card-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 8px 0;
    transition: color 0.2s;
}

.home-tool-card:hover .tool-card-body h3 {
    color: var(--primary);
}

.tool-card-body p {
    font-size: 13.5px;
    color: var(--text-muted);
    margin: 0 0 20px 0;
    line-height: 1.55;
}

.tool-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.tool-card-action span.arrow {
    transition: transform 0.2s;
}

.home-tool-card:hover .tool-card-action span.arrow {
    transform: translateX(5px);
}

/* Feature Strip */
.features-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0 60px 0;
}

.feature-strip-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.feature-strip-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.feature-strip-text h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-heading);
}

.feature-strip-text p {
    margin: 0;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* 6 Latest Blog Cards Grid */
.blogs-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.home-blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 28px -10px rgba(37, 99, 235, 0.15);
    border-color: #bfdbfe;
}

body.dark .home-blog-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 16px 28px -10px rgba(0, 0, 0, 0.5);
}

.blog-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.blog-category-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    border-radius: 20px;
}

.blog-read-time {
    font-size: 12px;
    color: var(--text-muted);
}

.home-blog-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 10px 0;
    line-height: 1.4;
    transition: color 0.2s;
}

.home-blog-card:hover h3 {
    color: var(--primary);
}

.home-blog-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    margin: 0 0 20px 0;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.blog-card-footer span.arrow {
    transition: transform 0.2s;
}

.home-blog-card:hover .blog-card-footer span.arrow {
    transform: translateX(5px);
}

/* Quick Search Shortcuts */
.quick-tags-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.quick-tag-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.quick-tag-pill {
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-heading);
    text-decoration: none;
    transition: all 0.2s;
}

body.dark .quick-tag-pill {
    background: rgba(30, 41, 59, 0.8);
    border-color: #334155;
    color: #e2e8f0;
}

.quick-tag-pill:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Responsive Media Queries for Home */
@media (max-width: 1024px) {
    .tools-grid-8 {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blogs-grid-6 {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 26px;
    }
}

@media (max-width: 600px) {
    .tools-grid-8 {
        grid-template-columns: 1fr;
    }
    .features-strip {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   17. GDPR / ePrivacy COOKIE CONSENT BANNER
   ========================================================================== */
.cookie-consent-bar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 1000px;
    margin: 0 auto;
    background: #0f172a;
    color: #f8fafc;
    border-radius: 16px;
    padding: 16px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid #334155;
    z-index: 9999;
    animation: slideUpCookie 0.4s ease-out;
}

@keyframes slideUpCookie {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-consent-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 280px;
    font-size: 14px;
    line-height: 1.5;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.cookie-btn-learn {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid #334155;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.cookie-btn-learn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 640px) {
    .cookie-consent-bar {
        bottom: 12px;
        left: 12px;
        right: 12px;
        padding: 16px;
    }
    .cookie-consent-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .cookie-btn-accept, .cookie-btn-learn {
        flex: 1;
        text-align: center;
    }
}


/* ==========================================================================
   18. RELATED TOOL CTA CARD (BOTTOM OF BLOG POSTS)
   ========================================================================== */
.related-tool-card {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

body.dark .related-tool-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
}

.related-tool-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.related-tool-icon {
    font-size: 38px;
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

body.dark .related-tool-icon {
    background: #1e293b;
    border: 1px solid #334155;
}

.related-tool-text h3 {
    margin: 0 0 6px 0;
    font-size: 19px;
    color: var(--text-heading);
}

.related-tool-text p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.related-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 26px;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    flex-shrink: 0;
}

.related-tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

@media (max-width: 768px) {
    .related-tool-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }
    .related-tool-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   19. ENHANCED TOOL WORKSPACE & EXPANDED FAQ STYLING
   ========================================================================== */
.tool-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.dark .tool-header-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.file-selected-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 18px;
    margin: 15px 0;
    text-align: left;
}

body.dark .file-selected-box {
    background: #1e293b;
    border-color: #334155;
}

.file-selected-left {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.file-selected-name {
    font-weight: 600;
    font-size: 14.5px;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.file-selected-size {
    font-size: 12.5px;
    color: var(--text-muted);
}

.file-remove-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

.file-remove-btn:hover {
    color: #dc2626;
}

.tool-progress-wrapper {
    margin: 20px 0;
    display: none;
}

.tool-progress-bar-bg {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

body.dark .tool-progress-bar-bg {
    background: #334155;
}

.tool-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    transition: width 0.3s ease;
}


/* ==========================================================================
   UNIFIED FREQUENTLY ASKED QUESTIONS (FAQs) COMPONENT - IDENTICAL ACROSS ALL PAGES
   ========================================================================== */
.faq-section-title,
.faq-container h2,
.faq-container h3,
.seo-rich-content .faq-section-title,
.article-section .faq-section-title {
    margin-top: 45px !important;
    margin-bottom: 22px !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: var(--text-heading) !important;
    border-bottom: 2px solid var(--primary) !important;
    border-left: none !important;
    padding-bottom: 10px !important;
    padding-left: 0 !important;
    line-height: 1.3 !important;
}

body.dark .faq-section-title,
body.dark .faq-container h2,
body.dark .faq-container h3 {
    color: #ffffff !important;
    border-bottom-color: #3b82f6 !important;
}

.faq-list-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 25px 0 35px 0;
}

.faq-card-modern {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-left: 4px solid var(--primary, #2563eb);
    border-radius: 10px;
    padding: 18px 22px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

body.dark .faq-card-modern {
    background: #1e293b;
    border-color: #334155;
    border-left-color: #3b82f6;
}

.faq-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    border-left-color: #1d4ed8;
}

body.dark .faq-card-modern:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.faq-card-modern h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: var(--text-heading, #0f172a);
    font-weight: 700;
    line-height: 1.45;
}

body.dark .faq-card-modern h4 {
    color: #f8fafc;
}

.faq-card-modern p {
    margin: 0;
    font-size: 14.5px;
    color: var(--text-body, #334155);
    line-height: 1.65;
}

body.dark .faq-card-modern p {
    color: #cbd5e1;
}


.seo-rich-content h1,
.article-section h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-heading);
    margin: 35px 0 16px 0;
    line-height: 1.35;
}

.seo-rich-content h2,
.article-section h2 {
    font-size: 21px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 30px 0 14px 0;
    line-height: 1.35;
}

.seo-rich-content h3,
.article-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 24px 0 10px 0;
}



/* ==========================================================================
   BLOG 3-COLUMN MEGA MENU STYLES
   ========================================================================== */
.dropdown-mega {
    position: relative;
}

.mega-menu-box {
    display: none;
    position: absolute;
    top: 100%;
    left: auto !important;
    right: -60px !important;
    width: 880px !important;
    max-width: 94vw;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.15), 0 10px 20px -5px rgba(0, 0, 0, 0.05);
    padding: 0;
    overflow: hidden;
    z-index: 1100;
}

body.dark .mega-menu-box {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.6);
}

.dropdown-mega:hover .mega-menu-box {
    display: block;
    animation: fadeInMega 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInMega {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.mega-menu-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-page, #f8fafc);
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-heading, #0f172a);
}

body.dark .mega-menu-header-bar {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

.mega-menu-view-all {
    color: var(--primary, #2563eb) !important;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.08);
    transition: all 0.2s;
}

.mega-menu-view-all:hover {
    background: var(--primary, #2563eb) !important;
    color: #ffffff !important;
}

.mega-menu-columns-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-height: 480px;
    overflow-y: auto;
}

.mega-menu-columns-3::-webkit-scrollbar {
    width: 6px;
}
.mega-menu-columns-3::-webkit-scrollbar-thumb {
    background: var(--border-color, #e2e8f0);
    border-radius: 4px;
}

.mega-menu-columns-3 .mega-menu-col {
    padding: 16px 14px;
}

.mega-menu-columns-3 .mega-menu-col:nth-child(1),
.mega-menu-columns-3 .mega-menu-col:nth-child(2) {
    border-right: 1px solid var(--border-color, #e2e8f0);
}

body.dark .mega-menu-columns-3 .mega-menu-col:nth-child(1),
body.dark .mega-menu-columns-3 .mega-menu-col:nth-child(2) {
    border-color: #334155;
}

.mega-col-title {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--primary, #2563eb);
    margin-bottom: 10px;
    padding: 0 10px 6px 10px;
    border-bottom: 1px dashed var(--border-color, #e2e8f0);
}

body.dark .mega-col-title {
    color: #60a5fa;
    border-color: #334155;
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-list li {
    margin-bottom: 2px;
}

.mega-menu-list a {
    display: block;
    padding: 7px 10px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--text-body, #334155) !important;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark .mega-menu-list a {
    color: #cbd5e1 !important;
}

.mega-menu-list a:hover {
    background: rgba(37, 99, 235, 0.08) !important;
    color: var(--primary, #2563eb) !important;
    transform: translateX(3px);
}

body.dark .mega-menu-list a:hover {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
}

/* Mobile subcategory badges */
.mobile-sub-heading {
    padding: 10px 16px 4px 16px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    border-bottom: 1px dashed var(--border-color);
    margin-top: 8px;
}
