/* =========================================
   SmartMyTools - PDF Tools
   PDF Homepage Styles
   ========================================= */


/* =========================================
   PDF Navigation
   ========================================= */

.pdf-nav {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #d9e0e7;
}

.pdf-nav-container {
    max-width: 1200px;
    min-height: 58px;
    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    align-items: center;
    gap: 40px;
}

.pdf-nav-brand {
    color: #0f3b66;
    text-decoration: none;
    font-size: 19px;
    font-weight: 700;
    white-space: nowrap;
}

.pdf-nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.pdf-nav-links a {
    color: #222222;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.pdf-nav-links a:hover {
    color: #2563eb;
}

.nav-arrow {
    margin-left: 4px;
    font-size: 15px;
}

/* =========================================
   Convert PDF Dropdown
   ========================================= */

.pdf-dropdown {
    position: relative;
}

.pdf-dropdown-btn {
    background: none;
    border: none;
    padding: 0;

    color: #222222;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    white-space: nowrap;
    cursor: pointer;
}

.pdf-dropdown-menu {
    display: none;

    position: absolute;
    top: 22px;
    left: 0;

    min-width: 170px;
    background: #ffffff;

    border: 1px solid #d9e0e7;
    border-radius: 8px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);

    padding: 8px 0;
    z-index: 1000;
}

.pdf-dropdown-menu a {
    display: block;

    padding: 10px 16px;

    color: #222222;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.pdf-dropdown-menu a:hover {
    background: #f3f5f7;
}

/* Show dropdown on hover */

.pdf-dropdown:hover .pdf-dropdown-menu {
    display: block;
}

.nav-arrow {
    margin-left: 5px;
    font-size: 12px;
}

/* =========================================
   PDF Homepage
   ========================================= */

.pdf-home {
    width: 100%;
    min-height: 700px;
    padding-bottom: 70px;
    background: #f7f7fb;
}


/* =========================================
   Hero
   ========================================= */

.pdf-hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 45px 24px 25px;
    text-align: center;
}

.pdf-hero h1 {
    margin: 0 0 12px;

    color: #30313b;

    font-size: 38px;
    line-height: 1.2;
    font-weight: 700;
}

.pdf-hero p {
    max-width: 850px;
    margin: 0 auto;

    color: #555866;

    font-size: 17px;
    line-height: 1.6;
}


/* =========================================
   Category Filters
   ========================================= */

.pdf-filters {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 16px;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.pdf-filter {
    padding: 9px 19px;

    border: 1px solid #d5d9e1;
    border-radius: 22px;

    background: #ffffff;
    color: #4a4d57;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.pdf-filter:hover {
    background: #f1f3f6;
    border-color: #b8bfca;
}

.pdf-filter.active {
    background: #30313b;
    border-color: #30313b;
    color: #ffffff;
}


/* =========================================
   PDF Tools Grid
   ========================================= */

.pdf-tools-grid {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 16px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}


/* =========================================
   PDF Tool Card
   ========================================= */

.pdf-tool-card {
    min-height: 220px;

    padding: 24px;

    background: #ffffff;

    border: 1px solid #d6d9e0;
    border-radius: 14px;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.pdf-tool-card:hover {
    transform: translateY(-3px);

    border-color: #c4cad4;

    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.07);
}


/* =========================================
   Tool Icons
   ========================================= */

.pdf-tool-icon {
    width: 48px;
    height: 48px;

    margin-bottom: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    font-size: 23px;
    font-weight: 700;
}

.pdf-tool-icon span {
    line-height: 1;
}


/* Icon Variations */

.icon-orange {
    background: #ffe3da;
    color: #ef6c4d;
}

.icon-green {
    background: #dcefd8;
    color: #4c9b52;
}

.icon-blue {
    background: #dce7f8;
    color: #5077ba;
}

.icon-purple {
    background: #eadced;
    color: #94669a;
}

.icon-red {
    background: #ffe0d8;
    color: #ed6547;
}


/* =========================================
   Tool Card Text
   ========================================= */

.pdf-tool-card h2 {
    margin: 0 0 8px;

    color: #30313b;

    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
}

.pdf-tool-card p {
    margin: 0;

    color: #666b76;

    font-size: 14px;
    line-height: 1.55;
}


/* =========================================
   Information Section
   ========================================= */

.pdf-information {
    max-width: 1000px;
    margin: 65px auto 0;
    padding: 0 24px;
}

.pdf-information h2,
.pdf-how-it-works h2,
.pdf-faq h2 {
    margin: 0 0 16px;

    color: #30313b;

    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
}

.pdf-information p {
    margin: 0 0 14px;

    color: #555866;

    font-size: 15px;
    line-height: 1.7;
}


/* =========================================
   How It Works
   ========================================= */

.pdf-how-it-works {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 24px;
}

.pdf-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pdf-step {
    padding: 22px;

    background: #ffffff;

    border: 1px solid #d9dde5;
    border-radius: 12px;
}

.step-number {
    width: 36px;
    height: 36px;

    margin-bottom: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #0f3b66;
    color: #ffffff;

    font-size: 15px;
    font-weight: 700;
}

.pdf-step h3 {
    margin: 0 0 8px;

    color: #30313b;

    font-size: 17px;
}

.pdf-step p {
    margin: 0;

    color: #666b76;

    font-size: 14px;
    line-height: 1.55;
}


/* =========================================
   FAQ
   ========================================= */

.pdf-faq {
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 0 24px;
}

.pdf-faq-item {
    padding: 18px 0;

    border-bottom: 1px solid #d9dde5;
}

.pdf-faq-item h3 {
    margin: 0 0 7px;

    color: #30313b;

    font-size: 17px;
}

.pdf-faq-item p {
    margin: 0;

    color: #666b76;

    font-size: 15px;
    line-height: 1.6;
}


/* =========================================
   PDF Footer Adjustment
   ========================================= */

/*
   The main SmartMyTools style.css currently
   uses .site-footer nav.

   These rules make the PDF page footer
   work with the footer structure in index.html.
*/

.site-footer .container {
    width: 100%;
}

.site-footer .footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 12px;
}

.site-footer .footer-links a {
    color: #333333;
    font-size: 14px;
    text-decoration: underline;
}


/* =========================================
   Responsive - Tablet
   ========================================= */

@media (max-width: 1050px) {

    .pdf-tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pdf-steps {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================
   Responsive - Small Tablet
   ========================================= */

@media (max-width: 800px) {

    .pdf-nav-container {
        min-height: auto;

        padding: 14px 16px;

        flex-direction: column;
        align-items: flex-start;

        gap: 12px;
    }

    .pdf-nav-links {
        width: 100%;

        overflow-x: auto;

        gap: 22px;

        padding-bottom: 4px;
    }

    .pdf-hero {
        padding: 35px 20px 22px;
    }

    .pdf-hero h1 {
        font-size: 32px;
    }

    .pdf-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================
   Responsive - Mobile
   ========================================= */

@media (max-width: 600px) {

    .pdf-home {
        padding-bottom: 50px;
    }

    .pdf-hero {
        padding: 30px 18px 20px;
    }

    .pdf-hero h1 {
        font-size: 27px;
    }

    .pdf-hero p {
        font-size: 15px;
    }

    .pdf-filters {
        justify-content: flex-start;

        overflow-x: auto;

        flex-wrap: nowrap;

        padding: 0 16px 8px;
    }

    .pdf-filter {
        flex-shrink: 0;
    }

    .pdf-tools-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pdf-tool-card {
        min-height: auto;
    }

    .pdf-information,
    .pdf-how-it-works,
    .pdf-faq {
        padding-left: 20px;
        padding-right: 20px;
    }

    .pdf-information h2,
    .pdf-how-it-works h2,
    .pdf-faq h2 {
        font-size: 24px;
    }

    .pdf-steps {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   DISCLAIMER
   ========================================================= */

.disclaimer-section {
    max-width: 1100px;
    margin: 40px auto 50px;
    padding: 0 24px;
}

.disclaimer-section h2 {
    margin: 0 0 12px;
    font-size: 24px;
    color: #0f4378;
}

.disclaimer-section p {
    margin: 0 0 14px;
    line-height: 1.7;
    color: #1e293b;
    font-size: 15px;
}

/* =========================================================
   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 ad follows the page while scrolling */
    position: sticky;
    top: 20px;
    z-index: 10;
}
/* 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;
}


/* =========================================================
   PDF AD RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .pdf-ad-layout {
        grid-template-columns: 1fr;
    }

    .pdf-sidebar-ad {
        min-height: 180px;
    }

}


@media (max-width: 600px) {

    .pdf-top-ad {
        width: calc(100% - 32px);
        height: 70px;
        margin: 12px auto 20px;
    }

    .pdf-ad-layout {
        padding: 0 20px;
    }

    .pdf-sidebar-ad {
        min-height: 150px;
    }

    

    .site-footer {
        padding-bottom: 100px;
    }

}

/* =========================================
   Mobile - Hide Sidebar Advertisement
   ========================================= */

@media (max-width: 768px) {

    .pdf-sidebar-ad {
        display: none;
    }

}