/* =========================================
   SMARTMYTOOLS - PNG TO WEBP
========================================= */


/* =========================================
   BASIC PAGE
========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #2d3e50;
}


/* =========================================
   IMAGE TOOLS NAVIGATION
========================================= */

.tools-navigation {
    background: #ffffff;
    border-bottom: 1px solid #d8dee8;
}

.tools-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 60px;

    display: flex;
    align-items: center;
    gap: 40px;
}

.tools-nav-container h2 {
    margin: 0;
    font-size: 20px;
}

.tools-nav-container nav {
    display: flex;
    gap: 30px;
}

.tools-nav-container nav a {
    color: #2d3e50;
    text-decoration: none;
    font-weight: 600;
    padding: 20px 0;
}

.tools-nav-container nav a:hover {
    color: #24476b;
}

.tools-nav-container nav a.active {
    color: #24476b;
}


/* =========================================
   BREADCRUMB
========================================= */

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;

    font-size: 14px;
    color: #4b5563;
}

.breadcrumb a {
    color: #24476b;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 6px;
}


/* =========================================
   TOP ADVERTISEMENT
========================================= */

.top-ad-placeholder {
    max-width: 1100px;
    min-height: 100px;

    margin: 0 auto 32px;

    border: 1px dashed #cbd5e1;
    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #94a3b8;
    background: #f8fafc;
}


/* =========================================
   MAIN PAGE LAYOUT
========================================= */

.page-layout {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
    padding: 0 24px 40px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        300px;

    gap: 32px;

    align-items: start;
}

.page-main-content {
    width: 100%;
    min-width: 0;
}


/* =========================================
   ADVERTISEMENT SIDEBAR
========================================= */

.ad-sidebar {

    width: 300px;

    display: flex;

    flex-direction: column;

    gap: 30px;

    align-self: start;

    position: sticky;

    top: 20px;

    height: fit-content;

    box-sizing: border-box;
}

.ad-placeholder {
    width: 100%;
    min-height: 280px;

    border: 1px dashed #cbd5e1;
    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #94a3b8;
    background: #f8fafc;
}


/* =========================================
   CONVERTER PAGE
========================================= */

.converter-page {
    width: 100%;
    max-width: none;

    margin: 0;
    padding: 45px 0 70px;
}


/* =========================================
   CONVERTER HERO
========================================= */

.converter-hero {
    width: 100%;

    text-align: center;

    margin-bottom: 30px;
}

.converter-hero h1 {
    margin: 0 0 12px;

    color: #2d3e50;

    font-size: 40px;
    font-weight: 700;
}

.converter-hero p {
    margin: 0;

    color: #5b6775;

    font-size: 18px;
    line-height: 1.5;
}


/* =========================================
   UPLOAD SECTION
========================================= */

.upload-section {
    width: 100%;
}

.upload-box {
    width: 100%;
    min-height: 250px;

    border: 2px dashed #c5ced8;
    border-radius: 10px;

    background: #ffffff;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* =========================================
   SELECT FILE BUTTON
========================================= */

.select-file-button {
    border: none;
    border-radius: 10px;

    background: #ff3131;
    color: #ffffff;

    font-size: 18px;
    font-weight: 700;

    padding: 18px 70px;

    cursor: pointer;
}

.select-file-button:hover {
    background: #e52b2b;
}


/* =========================================
   UPLOAD TEXT
========================================= */

.upload-box p {
    margin: 18px 0 5px;

    font-size: 16px;
}

.upload-box span {
    color: #6b7683;
    font-size: 14px;
}


/* =========================================
   SELECTED FILE
========================================= */

.selected-file-section {
    margin-top: 25px;
}

.selected-file-card {
    background: #ffffff;

    border: 1px solid #d8dee8;
    border-radius: 10px;

    padding: 18px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.selected-file-card strong {
    display: block;
}

.selected-file-card span {
    display: block;

    margin-top: 6px;

    color: #5b6775;
}

#removeFileButton {
    border: none;

    background: transparent;

    font-size: 28px;

    color: #d94a4a;

    cursor: pointer;
}


/* =========================================
   CONVERT BUTTON
========================================= */

.convert-section {
    margin-top: 25px;
}

.convert-button {
    width: 100%;

    border: none;
    border-radius: 8px;

    background: #ff3131;
    color: #ffffff;

    padding: 17px;

    font-size: 17px;
    font-weight: 700;

    cursor: pointer;
}

.convert-button:hover {
    background: #e52b2b;
}


/* =========================================
   RESULT
========================================= */

.result-section {
    margin-top: 30px;

    padding: 30px;

    text-align: center;

    background: #f1faf4;

    border: 1px solid #c9e3d0;
    border-radius: 10px;
}

.result-section h2 {
    margin: 0 0 8px;

    color: #2d5a42;

    font-size: 24px;
}

.result-section p {
    margin: 0 0 25px;

    color: #5b6775;
}

.result-actions {
    display: flex;

    justify-content: center;

    gap: 15px;
}


/* =========================================
   DOWNLOAD BUTTON
========================================= */

.download-button {
    border: none;
    border-radius: 7px;

    background: #24476b;
    color: #ffffff;

    padding: 14px 30px;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
}

.download-button:hover {
    background: #1d3b5b;
}


/* =========================================
   START OVER BUTTON
========================================= */

.start-over-button {
    border: 1px solid #c8d0da;
    border-radius: 7px;

    background: #ffffff;
    color: #2d3e50;

    padding: 14px 30px;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
}

.start-over-button:hover {
    background: #f1f3f5;
}


/* =========================================
   ERROR MESSAGE
========================================= */

.error-message {
    margin-top: 20px;

    padding: 15px;

    border-radius: 8px;

    background: #fff0f0;
    color: #b42318;
}


/* =========================================
   TOOL INFORMATION
========================================= */

.tool-information {
    padding: 50px 24px;
}

.info-container {
    max-width: 1100px;
    margin: 0 auto;
}

.tool-information h2 {
    margin: 0 0 28px;

    color: #2d3e50;

    font-size: 30px;
}

.steps-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.step-card {
    background: #ffffff;

    border: 1px solid #d8dee8;
    border-radius: 12px;

    padding: 24px;
}

.step-number {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: #24476b;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;

    margin-bottom: 14px;
}

.step-card h3 {
    margin: 0 0 10px;

    color: #2d3e50;
}

.step-card p {
    margin: 0;

    color: #4b5563;

    line-height: 1.7;
}


/* =========================================
   ABOUT
========================================= */

.about-section {
    padding-top: 20px;
}

.about-section p {
    margin: 0 0 14px;

    color: #4b5563;

    line-height: 1.8;
}


/* =========================================
   FAQ
========================================= */

.faq-section {
    padding-top: 20px;
}

.faq-item {
    padding: 20px 0;

    border-bottom: 1px solid #d8dee8;
}

.faq-item h3 {
    margin: 0 0 10px;

    color: #2d3e50;
}

.faq-item p {
    margin: 0;

    color: #4b5563;

    line-height: 1.7;
}


/* =========================================
   DISCLAIMER
========================================= */

.disclaimer-section {
    padding: 20px 24px 50px;
}

.disclaimer-container {
    max-width: 1100px;
    margin: 0 auto;
}

.disclaimer-container h2 {
    margin: 0 0 25px;

    color: #2d3e50;

    font-size: 30px;
}

.disclaimer-container p {
    margin: 0 0 14px;

    color: #4b5563;

    line-height: 1.8;
}


/* =========================================
   HIDDEN
========================================= */

[hidden] {
    display: none !important;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    .page-layout {
        grid-template-columns: 1fr;
    }

    .ad-sidebar {
        width: 100%;

        flex-direction: row;

        gap: 24px;

        margin-top: 0;
    }

    .ad-placeholder {
        flex: 1;
        min-height: 180px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .header-container {
        flex-direction: column;

        padding: 10px 15px;
    }

    .main-navigation {
        margin-top: 10px;

        gap: 15px;

        flex-wrap: wrap;

        justify-content: center;
    }

    .tools-nav-container {
        flex-direction: column;

        align-items: flex-start;

        gap: 5px;

        padding: 15px 20px;
    }

    .tools-nav-container nav {
        gap: 18px;

        flex-wrap: wrap;
    }

    .converter-page {
        padding: 35px 0 55px;
    }

    .converter-hero h1 {
        font-size: 32px;
    }

    .converter-hero p {
        font-size: 16px;
    }

    .result-actions {
        flex-direction: column;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .tool-information {
        padding: 40px 20px;
    }

    .tool-information h2 {
        font-size: 26px;
    }

    .disclaimer-section {
        padding: 20px 20px 40px;
    }

    .disclaimer-container h2 {
        font-size: 26px;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 600px) {

    .breadcrumb {
        padding: 14px 16px;
    }

    .top-ad-placeholder {
        margin: 0 16px 25px;
        min-height: 90px;
    }

    .page-layout {
        padding: 0 16px 30px;
    }

    .ad-sidebar {
        flex-direction: column;

        gap: 20px;
    }

    .ad-placeholder {
        width: 100%;
        min-height: 120px;
    }

    .upload-box {
        min-height: 230px;
    }

    .select-file-button {
        padding: 16px 45px;
        font-size: 17px;
    }
}

/* =========================================
   MOBILE - HIDE NON-STICKY SIDEBAR ADS
========================================= */

@media (max-width: 600px) {

    .ad-sidebar {
        display: none !important;
    }

    .ad-sidebar .ad-placeholder {
        display: none !important;
    }

}