/* =========================================
   PDF TO WORD
   ========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f9fc;
    color: #1f2937;
}


/* =========================================
   HEADER
   ========================================= */

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 70px;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

.main-nav a:hover {
    color: #a3e635;
}


/* =========================================
   MAIN PAGE
   ========================================= */

.pdf-to-word-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 55px 24px 80px;
}


/* =========================================
   TOOL HEADER
   ========================================= */

.tool-header {
    text-align: center;
    margin-bottom: 30px;
}

.tool-header h1 {
    margin: 0 0 12px;
    color: #30313b;
    font-size: 38px;
    line-height: 1.2;
    font-weight: 700;
}

.tool-header p {
    max-width: 850px;
    margin: 0 auto;
    color: #555866;
    font-size: 17px;
    line-height: 1.6;
}

/* =========================================
   UPLOAD CONTAINER
   ========================================= */

.upload-container {
    max-width: 850px;
    margin: 0 auto;
}


/* =========================================
   UPLOAD BOX
   ========================================= */

.upload-box {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    min-height: 360px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 40px 30px;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.upload-box:hover {
    border-color: #2563eb;
    background: #f8fbff;
}

.upload-box.drag-over {
    border-color: #2563eb;
    background: #eff6ff;
}


/* =========================================
   UPLOAD ICON
   ========================================= */

.upload-icon {
    width: 76px;
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 18px;
    background: #eff6ff;

    font-size: 38px;
}

.upload-box h2 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #111827;
}

.upload-box p {
    margin: 0 0 12px;
    color: #6b7280;
    font-size: 15px;
}

.upload-box>span {
    margin-bottom: 16px;
    color: #9ca3af;
    font-size: 14px;
}


/* =========================================
   CHOOSE FILE BUTTON
   ========================================= */

.choose-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 28px;
    border-radius: 6px;
    background: #2563eb;

    color: #ffffff;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: background-color 0.2s ease,
        transform 0.1s ease;
}

.choose-file-btn:hover {
    background: #1d4ed8;
}

.choose-file-btn:active {
    transform: translateY(1px);
}

.file-limit {
    margin-top: 20px !important;
    margin-bottom: 0 !important;
    font-size: 13px !important;
    color: #9ca3af !important;
}


/* =========================================
   SELECTED FILE
   ========================================= */

.selected-file {
    margin-top: 20px;
    padding: 20px;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.file-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    background: #eff6ff;

    font-size: 25px;
}

.file-info div {
    display: flex;
    flex-direction: column;
    gap: 5px;

    min-width: 0;
}

.file-info strong {
    color: #111827;
    font-size: 15px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-info span {
    color: #6b7280;
    font-size: 13px;
}


/* =========================================
   CONVERT BUTTON
   ========================================= */

#convertBtn {
    border: none;
    border-radius: 8px;

    padding: 13px 22px;

    background: #2563eb;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    white-space: nowrap;

    transition: background-color 0.2s ease;
}

#convertBtn:hover {
    background: #1d4ed8;
}

#convertBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* =========================================
   PROGRESS
   ========================================= */

.progress-container {
    margin-top: 20px;
    padding: 22px;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.progress-text {
    display: flex;
    justify-content: space-between;

    margin-bottom: 10px;

    font-size: 14px;
    color: #4b5563;
}

.progress-bar {
    width: 100%;
    height: 9px;

    overflow: hidden;

    border-radius: 10px;
    background: #e5e7eb;
}

.progress-fill {
    width: 0;
    height: 100%;

    border-radius: 10px;
    background: #2563eb;

    transition: width 0.3s ease;
}


/* =========================================
   RESULT
   ========================================= */

.result-container {
    margin-top: 20px;
    padding: 35px 25px;

    text-align: center;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.success-icon {
    width: 58px;
    height: 58px;

    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #dcfce7;
    color: #16a34a;

    font-size: 30px;
    font-weight: 700;
}

.result-container h3 {
    margin: 0 0 8px;

    font-size: 22px;
    color: #111827;
}

.result-container p {
    margin: 0 0 20px;

    color: #6b7280;
    font-size: 15px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 13px 24px;

    border-radius: 8px;

    background: #16a34a;
    color: #ffffff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: background-color 0.2s ease;
}

.download-btn:hover {
    background: #15803d;
}


/* =========================================
   INFORMATION SECTION
   ========================================= */

.tool-info {
    max-width: 1000px;
    margin: 70px auto 0;
}

.tool-info h2 {
    margin: 0 0 30px;

    text-align: center;

    font-size: 28px;
    color: #111827;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step {
    padding: 28px 22px;

    text-align: center;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.step>span {
    width: 38px;
    height: 38px;

    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eff6ff;
    color: #2563eb;

    font-weight: 700;
}

.step h3 {
    margin: 0 0 8px;

    font-size: 17px;
    color: #111827;
}

.step p {
    margin: 0;

    font-size: 14px;
    line-height: 1.6;

    color: #6b7280;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 768px) {

    .header-container {
        min-height: auto;
        padding-top: 18px;
        padding-bottom: 18px;

        flex-direction: column;
        gap: 18px;
    }

    .main-nav {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.main-nav a {
    font-size: 12px;
    white-space: nowrap;
}

    .pdf-to-word-page {
        padding-top: 40px;
    }

    .tool-header h1 {
        font-size: 34px;
    }

    .tool-header p {
        font-size: 15px;
    }

    .upload-box {
        min-height: 350px;
        padding: 35px 20px;
    }

    .selected-file {
        flex-direction: column;
        align-items: stretch;
    }

    #convertBtn {
        width: 100%;
    }

    .steps {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 480px) {

    .pdf-to-word-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .tool-header h1 {
        font-size: 30px;
    }

    .upload-box h2 {
        font-size: 21px;
    }

    .upload-box {
        min-height: 330px;
    }
}

/* =========================================
   ABOUT SECTION
========================================= */

.about-section {

    max-width: 1100px;
    margin: 70px auto 0;
    padding: 0 24px;

}

.about-section h2 {

    margin: 0 0 20px;
    color: #2f3e52;
    font-size: 30px;
    font-weight: 700;

}

.about-section p {

    margin: 0 0 16px;
    color: #526070;
    font-size: 17px;
    line-height: 1.7;

}


/* =========================================
   FAQ SECTION
========================================= */

.faq-section {

    max-width: 1100px;
    margin: 70px auto 0;
    padding: 0 24px 30px;

}

.faq-section h2 {

    margin: 0 0 30px;
    color: #2f3e52;
    font-size: 30px;
    font-weight: 700;

}

.faq-item {

    padding: 0 0 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #d9e0e7;

}

.faq-item h3 {

    margin: 0 0 10px;
    color: #2f3e52;
    font-size: 18px;
    font-weight: 700;

}

.faq-item p {

    margin: 0;
    color: #526070;
    font-size: 16px;
    line-height: 1.6;

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .about-section,
    .faq-section {

        padding-left: 20px;
        padding-right: 20px;

    }

    .about-section h2,
    .faq-section h2 {

        font-size: 26px;

    }

}

/* =========================================================
   PDF TOOL ADVERTISEMENT LAYOUT
   ========================================================= */

/* Top Advertisement */

.pdf-top-ad {
    width: min(970px, calc(100% - 32px));
    height: 90px;
    margin: 16px auto 24px;

    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #94a3b8;
    font-size: 14px;

    /* Top ad must NOT be sticky */
    position: relative;
}


/* Main Content + Right Sidebar */

.pdf-ad-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
    align-items: start;
}


/* Main PDF Content */

.pdf-ad-main {
    min-width: 0;
}


/* Right Sidebar Advertisement */

.pdf-sidebar-ad {
    width: 100%;
    min-height: 250px;

    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #94a3b8;
    font-size: 14px;

    /* Sidebar follows the page while scrolling */
    position: sticky;
    top: 20px;
    z-index: 10;
}

/* =========================================
   PDF AD LAYOUT - MOBILE
   ========================================= */

@media (max-width: 768px) {

    .pdf-ad-layout {
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
    }

    .pdf-ad-main {
        width: 100%;
    }

    .pdf-sidebar-ad {
        display: none;
    }

}

/* Bottom Sticky Advertisement */

.pdf-bottom-ad {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: 90px;

    background: #ffffff;
    border-top: 1px solid #d9e0e7;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #94a3b8;
    font-size: 14px;

    z-index: 9999;
}


/* Footer Clearance */

.site-footer {
    padding-bottom: 120px;
}


/* Mobile */

@media (max-width: 768px) {

    .pdf-sidebar-ad {
        display: none;
    }

}

/* =========================================================
   PDF to Word - Sticky Sidebar Support
   ========================================================= */

.pdf-to-word-page {
    overflow: visible;
}

.pdf-to-word-page .pdf-ad-layout {
    overflow: visible;
}

/* =========================================
   PDF TO WORD - MOBILE LAYOUT
   ========================================= */

@media (max-width: 768px) {

    .pdf-to-word-page {
        width: 100%;
        box-sizing: border-box;
    }

    .pdf-ad-layout {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    .pdf-ad-main {
        width: 100%;
        min-width: 0;
    }

}
/* =========================================
   SELECTED FILE ACTIONS
========================================= */

.selected-file-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 16px;
}

.selected-file-actions button {
    min-width: 140px;
    padding: 10px 18px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#convertBtn {
    background: #2563eb;
    color: #ffffff;
    border: 1px solid #2563eb;
}

#convertBtn:hover {
    background: #1d4ed8;
}

#clearBtn {
    background: #ffffff;
    color: #123f6d;
    border: 1px solid #123f6d;
}

#clearBtn:hover {
    background: #123f6d;
    color: #ffffff;
}

@media (max-width: 480px) {



    .selected-file-actions {
        flex-direction: column;
    }

    .selected-file-actions button {
        width: 100%;
    }

}

#clearBtn {
    background: #ffffff;
    color: #123f6d;
    border: 1px solid #123f6d;
    border-radius: 6px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#clearBtn:hover {
    background: #123f6d;
    color: #ffffff;
}