/* =========================================
   SMARTMYTOOLS - RESIZE IMAGES
========================================= */


/* =========================================
   RESET / PAGE SAFETY
========================================= */

* {
    box-sizing: border-box;
}





img {
    max-width: 100%;
}


/* =========================================
   MAIN RESIZE PAGE
========================================= */

.resize-page {

    width: 100%;

    max-width: 100%;

    min-height: 0;

    margin: 0;

    padding: 40px 20px 60px;

    background: #f4f6f9;

    overflow: visible;
}


/* =========================================
   HERO
========================================= */

.resize-hero {

    width: 100%;

    text-align: center;

    margin: 0 auto 30px;

}


.resize-hero h1 {

    margin: 0 0 12px;

    color: #2d3e50;

    font-size: 40px;

    line-height: 1.2;

}


.resize-hero p {

    margin: 0;

    color: #5c6b7a;

    font-size: 18px;

    line-height: 1.5;

}


/* =========================================
   UPLOAD AREA
========================================= */

.upload-section {

    width: 100%;

    max-width: 900px;

    margin: 0 auto;

}


.upload-box {

    width: 100%;

    min-height: 260px;

    padding: 30px;

    border: 2px dashed #c7d1dc;

    border-radius: 12px;

    background: white;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    transition: 0.2s ease;

}


.upload-box.drag-over {

    border-color: #ff3131;

    background: #fff5f5;

}


/* =========================================
   SELECT FILE BUTTON
========================================= */

.select-file-button {

    max-width: 100%;

    border: none;

    border-radius: 10px;

    background: #ff3131;

    color: white;

    padding: 16px 42px;

    font-size: 17px;

    font-weight: 600;

    cursor: pointer;

}


.select-file-button:hover {

    background: #e62828;

}


.upload-box p {

    margin: 18px 0 6px;

    color: #4d5b68;

    font-size: 16px;

    line-height: 1.5;

}


.upload-box span {

    color: #7a8794;

    font-size: 14px;

    line-height: 1.5;

}


/* =========================================
   RESIZE OPTIONS
========================================= */

.resize-options-section {

    width: 100%;

    max-width: 700px;

    margin: 30px auto 0;

    padding: 30px;

    background: white;

    border: 1px solid #d8dee8;

    border-radius: 12px;

    text-align: center;

}


.resize-options-section h2 {

    margin: 0 0 25px;

    color: #2d3e50;

    font-size: 26px;

    line-height: 1.3;

}


/* =========================================
   DIMENSION INPUTS
========================================= */

.dimension-inputs {

    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 20px;

    margin-bottom: 20px;

}


.dimension-group {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

}


.dimension-group label {

    color: #2d3e50;

    font-weight: 600;

}


.dimension-group input {

    width: 110px;

    max-width: 100%;

    padding: 10px;

    border: 1px solid #c7d1dc;

    border-radius: 6px;

    font-size: 16px;

}


.dimension-group span {

    color: #5c6b7a;

}


/* =========================================
   ASPECT RATIO
========================================= */

.aspect-ratio-option {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    margin-bottom: 25px;

    color: #4d5b68;

    cursor: pointer;

    line-height: 1.5;

}


.aspect-ratio-option input {

    accent-color: #ff3131;

}


/* =========================================
   RESIZE BUTTON
========================================= */

.resize-button {

    max-width: 100%;

    border: none;

    border-radius: 10px;

    background: #ff3131;

    color: white;

    padding: 15px 40px;

    font-size: 17px;

    font-weight: 600;

    cursor: pointer;

}


.resize-button:hover {

    background: #e62828;

}


/* =========================================
   RESULT
========================================= */

.result-section {

    width: 100%;

    max-width: 700px;

    margin: 30px auto 0;

    padding: 30px;

    background: #f4fbf7;

    border: 1px solid #b8dcc7;

    border-radius: 12px;

    text-align: center;

}


.result-section h2 {

    margin: 0 0 10px;

    color: #2f6b4f;

    font-size: 24px;

    line-height: 1.3;

}


.result-section p {

    margin: 0 0 25px;

    color: #5c6b7a;

    line-height: 1.5;

}


.result-actions {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 15px;

}


.download-button {

    border: none;

    border-radius: 8px;

    background: #24476b;

    color: white;

    padding: 14px 24px;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

}


.start-over-button {

    border: 1px solid #c7d1dc;

    border-radius: 8px;

    background: white;

    color: #2d3e50;

    padding: 14px 24px;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

}


/* =========================================
   ERROR
========================================= */

.error-message {

    width: 100%;

    max-width: 700px;

    margin: 20px auto 0;

    padding: 14px;

    background: #fff1f1;

    border: 1px solid #ffb8b8;

    border-radius: 8px;

    color: #b42318;

    text-align: center;

    line-height: 1.5;

    overflow-wrap: anywhere;

}


/* =========================================
   BREADCRUMB
========================================= */

.breadcrumb {

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    padding: 18px 24px;

    font-size: 14px;

    color: #4b5563;

    overflow-wrap: anywhere;

}


.breadcrumb a {

    color: #24476b;

    text-decoration: none;

}


.breadcrumb span {

    margin: 0 6px;

}


/* =========================================
   TOP ADVERTISEMENT
========================================= */

.top-ad-placeholder {

    width: calc(100% - 48px);

    max-width: 1100px;

    height: 100px;

    margin: 0 auto 35px;

    border: 1px dashed #cbd5e1;

    border-radius: 8px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #64748b;

    background: #f8fafc;

}


/* =========================================
   PAGE LAYOUT WITH SIDEBAR ADS
========================================= */

/* =========================================
   ADVERTISEMENT SIDEBAR
========================================= */

.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;

    box-sizing: border-box;
}

/* =========================================
   HOW TO / INFORMATION SECTIONS
========================================= */

.tool-information {

    width: 100%;

    height: auto;

    min-height: 0;

    padding: 50px 24px;

    overflow: visible;

}


.info-container {

    width: 100%;

    max-width: 1100px;

    margin: 0 auto;

}


.tool-information h2 {

    margin: 0 0 28px;

    color: #2d3e50;

    font-size: 30px;

    line-height: 1.3;

}


.steps-grid {

    width: 100%;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

}


.step-card {

    width: 100%;

    padding: 24px;

    background: white;

    border: 1px solid #d8dee8;

    border-radius: 12px;

}


.step-number {

    width: 38px;

    height: 38px;

    margin-bottom: 14px;

    border-radius: 50%;

    background: #24476b;

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;

}


.step-card h3 {

    margin: 0 0 10px;

    color: #2d3e50;

    font-size: 18px;

    line-height: 1.4;

}


.step-card p {

    margin: 0;

    color: #4b5563;

    line-height: 1.7;

    overflow-wrap: anywhere;

}


/* =========================================
   ABOUT
========================================= */

.about-section {

    width: 100%;

    height: auto;

    min-height: 0;

    padding-top: 20px;

    overflow: visible;

}


.about-section p {

    margin: 0 0 14px;

    color: #4b5563;

    line-height: 1.8;

    overflow-wrap: anywhere;

}


/* =========================================
   FAQ
========================================= */

.faq-section {

    width: 100%;

    height: auto;

    min-height: 0;

    padding-top: 20px;

    overflow: visible;

}


.faq-item {

    width: 100%;

    padding: 20px 0;

    border-bottom: 1px solid #d8dee8;

}


.faq-item h3 {

    margin: 0 0 10px;

    color: #2d3e50;

    font-size: 18px;

    line-height: 1.4;

    overflow-wrap: anywhere;

}


.faq-item p {

    margin: 0;

    color: #4b5563;

    line-height: 1.7;

    overflow-wrap: anywhere;

}


/* =========================================
   DISCLAIMER
========================================= */

.disclaimer-section {

    width: 100%;

    height: auto;

    min-height: 0;

    overflow: visible;

}


.disclaimer-section p {

    overflow-wrap: anywhere;

    word-break: normal;

}


/* =========================================
   FOOTER
========================================= */

.site-footer {

    width: 100%;

    height: auto;

    min-height: 0;

    overflow: visible;

}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

.ad-placeholder {

        flex: 1;

        min-height: 180px;

    }

}


/* =========================================
   MOBILE - 768px
========================================= */

@media (max-width: 768px) {

    /* -------------------------------------
       HEADER
    ------------------------------------- */

    .main-header {

        width: 100%;

        min-height: auto;

    }


    .header-container {

        width: 100%;

        max-width: 100%;

        padding: 12px 16px;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        gap: 10px;

    }


    .logo {

        display: block;

        max-width: 100%;

    }


    .logo img {

        display: block;

        width: 170px;

        max-width: 100%;

        height: auto;

    }


    .main-navigation {

        width: 100%;

        display: flex;

        flex-wrap: wrap;

        justify-content: center;

        align-items: center;

        gap: 8px 16px;

    }


    .main-navigation a {

        font-size: 14px;

        line-height: 1.4;

        white-space: nowrap;

    }


    /* -------------------------------------
       IMAGE TOOLS NAVIGATION
    ------------------------------------- */

    .tools-navigation {

        width: 100%;

        overflow: visible;

    }


    .tools-nav-container {

        width: 100%;

        max-width: 100%;

        min-height: auto;

        padding: 12px 16px;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        gap: 10px;

    }


    .tools-nav-container h2 {

        font-size: 19px;

        white-space: nowrap;

        text-align: center;

    }


    .tools-nav-container nav {

        width: 100%;

        display: flex;

        flex-wrap: wrap;

        justify-content: center;

        align-items: center;

        gap: 8px 18px;

    }


    .tools-nav-container nav a {

        padding: 5px 0;

        font-size: 14px;

        line-height: 1.4;

        white-space: nowrap;

    }


    /* -------------------------------------
       BREADCRUMB
    ------------------------------------- */

    .breadcrumb {

        width: 100%;

        max-width: 100%;

        padding: 14px 16px;

        font-size: 13px;

        line-height: 1.6;

        overflow-wrap: anywhere;

    }


    .breadcrumb span {

        margin: 0 4px;

    }


    /* -------------------------------------
       TOP AD
    ------------------------------------- */

    .top-ad-placeholder {

        width: calc(100% - 32px);

        max-width: none;

        height: 90px;

        margin: 0 16px 25px;

    }


    /* -------------------------------------
       PAGE LAYOUT
    ------------------------------------- */

/* -------------------------------------
       RESIZE PAGE
    ------------------------------------- */

    .resize-page {

        width: 100%;

        max-width: 100%;

        margin: 0;

        padding: 25px 0 40px;

    }


    .resize-hero {

        width: 100%;

        max-width: 100%;

        margin-bottom: 25px;

        text-align: center;

    }


    .resize-hero h1 {

        font-size: 32px;

        line-height: 1.2;

        margin: 0 0 10px;

        overflow-wrap: anywhere;

    }


    .resize-hero p {

        width: 100%;

        max-width: 100%;

        padding: 0 5px;

        font-size: 15px;

        line-height: 1.5;

        overflow-wrap: anywhere;

    }


    /* -------------------------------------
       UPLOAD
    ------------------------------------- */

    .upload-section {

        width: 100%;

        max-width: 100%;

        margin: 0;

    }


    .upload-box {

        width: 100%;

        min-height: 220px;

        padding: 25px 15px;

    }


    .select-file-button {

        width: auto;

        max-width: 100%;

        padding: 15px 30px;

        font-size: 16px;

    }


    .upload-box p {

        max-width: 100%;

        font-size: 15px;

        overflow-wrap: anywhere;

    }


    .upload-box span {

        max-width: 100%;

        font-size: 13px;

        overflow-wrap: anywhere;

    }


    /* -------------------------------------
       RESIZE OPTIONS
    ------------------------------------- */

    .resize-options-section {

        width: 100%;

        max-width: 100%;

        margin-top: 25px;

        padding: 22px 15px;

    }


    .resize-options-section h2 {

        font-size: 23px;

    }


    .dimension-inputs {

        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 15px;

    }


    .dimension-group {

        width: 100%;

        display: flex;

        justify-content: center;

        align-items: center;

    }


    .dimension-group label {

        min-width: 60px;

        text-align: left;

    }


    .dimension-group input {

        width: 120px;

        max-width: 120px;

    }


    .aspect-ratio-option {

        max-width: 100%;

        font-size: 14px;

        text-align: center;

        overflow-wrap: anywhere;

    }


    .resize-button {

        width: 100%;

        max-width: 100%;

    }


    /* -------------------------------------
       RESULT
    ------------------------------------- */

    .result-section {

        width: 100%;

        max-width: 100%;

        padding: 25px 15px;

    }


    .result-section h2 {

        font-size: 22px;

    }


    .result-actions {

        width: 100%;

        display: flex;

        flex-direction: column;

        gap: 12px;

    }


    .download-button,
    .start-over-button {

        width: 100%;

        max-width: 100%;

    }


    /* -------------------------------------
       SIDEBAR ADS
    ------------------------------------- */

.ad-placeholder {

        width: 100%;

        min-height: 150px;

        flex: none;

    }


    /* -------------------------------------
       INFORMATION SECTIONS
    ------------------------------------- */

    .tool-information {

        width: 100%;

        max-width: 100%;

        padding: 35px 16px;

        overflow: visible;

    }


    .info-container {

        width: 100%;

        max-width: 100%;

        margin: 0;

    }


    .tool-information h2 {

        font-size: 26px;

        line-height: 1.3;

    }


    .steps-grid {

        width: 100%;

        grid-template-columns: 1fr;

        gap: 18px;

    }


    .step-card {

        width: 100%;

        min-width: 0;

        padding: 22px;

    }


    .step-card h3 {

        font-size: 18px;

    }


    .step-card p {

        font-size: 15px;

    }


    .about-section,
    .faq-section,
    .disclaimer-section {

        width: 100%;

        max-width: 100%;

        overflow: visible;

    }


    .about-section p,
    .faq-section p,
    .disclaimer-section p {

        font-size: 15px;

        line-height: 1.7;

        overflow-wrap: anywhere;

    }


    .faq-item {

        width: 100%;

        min-width: 0;

    }


    .faq-item h3 {

        font-size: 17px;

    }


    /* -------------------------------------
       FOOTER
    ------------------------------------- */

    .site-footer {

        width: 100%;

        max-width: 100%;

        padding: 22px 16px;

    }


    .footer-links {

        width: 100%;

        display: flex;

        flex-wrap: wrap;

        justify-content: center;

        align-items: center;

        gap: 8px 12px;

    }


    .footer-links a {

        font-size: 13px;

        white-space: normal;

    }


    .site-footer p {

        font-size: 13px;

        line-height: 1.5;

    }

}


/* =========================================
   SMALL MOBILE - 480px
========================================= */

@media (max-width: 480px) {

    .header-container {

        padding: 10px 12px;

    }


    .logo img {

        width: 155px;

    }


    .main-navigation {

        gap: 7px 12px;

    }


    .main-navigation a {

        font-size: 13px;

    }


    .tools-nav-container {

        padding: 11px 12px;

    }


    .tools-nav-container nav {

        gap: 6px 14px;

    }


    .tools-nav-container nav a {

        font-size: 13px;

    }


    .breadcrumb {

        padding: 12px;

        font-size: 12px;

    }


    .top-ad-placeholder {

        width: calc(100% - 24px);

        margin-left: 12px;

        margin-right: 12px;

    }


.resize-hero h1 {

        font-size: 30px;

    }


    .resize-hero p {

        font-size: 15px;

    }


    .upload-box {

        min-height: 210px;

        padding: 20px 12px;

    }


    .select-file-button {

        padding: 14px 24px;

        font-size: 15px;

    }


    .dimension-group input {

        width: 115px;

    }


    .tool-information {

        padding-left: 12px;

        padding-right: 12px;

    }


    .tool-information h2 {

        font-size: 24px;

    }


    .step-card {

        padding: 20px;

    }

}


/* =========================================
   VERY SMALL MOBILE - 360px
========================================= */

@media (max-width: 360px) {

    .logo img {

        width: 145px;

    }


    .main-navigation {

        gap: 6px 10px;

    }


    .main-navigation a {

        font-size: 12px;

    }


    .tools-nav-container nav {

        gap: 5px 10px;

    }


    .tools-nav-container nav a {

        font-size: 12px;

    }


    .resize-hero h1 {

        font-size: 28px;

    }


    .dimension-group {

        justify-content: flex-start;

    }


    .dimension-group input {

        width: 110px;

    }

}
/* =========================================
   MOBILE AD COMPACTING
========================================= */

@media (max-width: 768px) {

    .top-ad-placeholder {
        height: 90px;
        margin-bottom: 20px;
    }

.ad-placeholder {
        min-height: 120px;
    }

}

/* =========================================
   MOBILE SIDEBAR ADS
========================================= */

@media (max-width: 600px) {

}

/* =========================================
   STICKY SIDEBAR AD
========================================= */

/* =========================================
   PAGE LAYOUT WITH SIDEBAR ADS
   MATCHES WORKING PNG TO WEBP STRUCTURE
========================================= */

.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-sidebar .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;
}


/* =========================================
   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: 600px) {

    .page-layout {
        padding: 0 16px 30px;
    }

    .ad-sidebar {
        display: none !important;
    }
}
