/* =========================================
   SMARTMYTOOLS - IMAGE TOOLS SHARED CSS
========================================= */


/* =========================================
   IMAGE TOOLS NAVIGATION
========================================= */

.tools-navigation {

    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid #d9e0e7;
}


.tools-nav-container {

    width: 100%;

    max-width: 1200px;

    min-height: 58px;

    margin: 0 auto;

    padding: 0 24px;

    display: flex;

    align-items: center;

    gap: 40px;
}


.tools-nav-container h2 {

    margin: 0;

    color: #0f3b66;

    font-size: 19px;

    font-weight: 700;

    white-space: nowrap;
}


.tools-nav-container nav {

    display: flex;

    align-items: center;

    gap: 30px;
}


.tools-nav-container nav a {

    color: #222222;

    text-decoration: none;

    font-size: 16px;

    font-weight: 600;

    white-space: nowrap;
}


.tools-nav-container nav a.active {

    color: #24476b;

}


/* =========================================
   FONT CONSISTENCY
========================================= */

.tools-navigation,
.tools-nav-container,
.tools-nav-container h2,
.tools-nav-container nav,
.tools-nav-container nav a {

    font-family: Arial, sans-serif;
}


/* =========================================
   HOW TO USE
========================================= */

.how-to-section {

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    padding: 50px 24px 20px;
}


.how-to-section h2 {

    margin: 0 0 28px;

    color: #2d3e50;

    font-size: 30px;
}


.steps-container {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 20px;
}


.step-card {

    min-width: 0;

    padding: 24px;

    border: 1px solid #cfd8e3;

    border-radius: 12px;

    background: #ffffff;
}


.step-number {

    width: 38px;

    height: 38px;

    margin-bottom: 14px;

    border-radius: 50%;

    background: #24476b;

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;
}


.step-card h3 {

    margin: 0 0 10px;

    color: #2d3e50;

    font-size: 18px;
}


.step-card p {

    margin: 0;

    color: #566573;

    line-height: 1.7;
}


/* =========================================
   ABOUT
========================================= */

.about-section {

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    padding: 40px 24px;
}


.about-section h2 {

    margin: 0 0 22px;

    color: #2d3e50;

    font-size: 30px;
}


.about-section p {

    margin: 0 0 16px;

    color: #566573;

    line-height: 1.7;
}


/* =========================================
   FAQ
========================================= */

.faq-section {

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    padding: 35px 24px 50px;
}


.faq-section h2 {

    margin: 0 0 25px;

    color: #2d3e50;

    font-size: 30px;
}


.faq-item {

    padding: 18px 0;

    border-bottom: 1px solid #d9e0e7;
}


.faq-item h3 {

    margin: 0 0 10px;

    color: #2d3e50;

    font-size: 18px;
}


.faq-item p {

    margin: 0;

    color: #566573;

    line-height: 1.7;
}


/* =========================================
   FOOTER
========================================= */

.site-footer {

    width: 100%;

    padding: 22px 24px;

    border-top: 1px solid #d9e0e7;

    background: #eef1f5;

    text-align: center;
}


.footer-links {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;
}


.footer-links a {

    color: #394b59;

    text-decoration: none;

    font-size: 14px;
}


.footer-links a:hover {

    text-decoration: underline;
}


.site-footer p {

    margin: 12px 0 0;

    color: #566573;

    font-size: 14px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .tools-nav-container {

        gap: 25px;

    }


    .tools-nav-container nav {

        gap: 20px;

    }


    .steps-container {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .tools-nav-container {

        flex-direction: column;

        align-items: center;

        justify-content: center;

        gap: 8px;

        padding: 12px 16px;

    }


    .tools-nav-container h2 {

        font-size: 19px;

    }


    .tools-nav-container nav {

        width: 100%;

        display: flex;

        justify-content: center;

        flex-wrap: wrap;

        gap: 12px 18px;

    }


    .tools-nav-container nav a {

        font-size: 14px;

    }


    .how-to-section {

        padding: 40px 20px 20px;

    }


    .how-to-section h2 {

        font-size: 28px;

    }


    .steps-container {

        grid-template-columns: 1fr;

        gap: 16px;

    }


    .step-card {

        padding: 20px;

    }


    .about-section {

        padding: 35px 20px;

    }


    .about-section h2 {

        font-size: 28px;

    }


    .faq-section {

        padding: 30px 20px 40px;

    }


    .faq-section h2 {

        font-size: 28px;

    }


    .site-footer {

        padding: 22px 16px;

    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .tools-nav-container {

        padding: 12px 10px;

    }


    .tools-nav-container nav {

        gap: 10px 14px;

    }


    .tools-nav-container nav a {

        font-size: 13px;

    }


    .how-to-section {

        padding: 35px 16px 15px;

    }


    .how-to-section h2 {

        font-size: 25px;

    }


    .about-section {

        padding: 30px 16px;

    }


    .about-section h2 {

        font-size: 25px;

    }


    .faq-section {

        padding: 25px 16px 35px;

    }


    .faq-section h2 {

        font-size: 25px;

    }


    .faq-item h3 {

        font-size: 17px;

    }


    .footer-links {

        gap: 10px;

    }

}

/* ==========================================
   BOTTOM STICKY AD
   DESKTOP + MOBILE
========================================== */

.bottom-sticky-ad {
    display: flex;

    position: fixed;

    left: 50%;
    bottom: 0;

    transform: translateX(-50%);

    width: min(970px, calc(100% - 40px));

    min-height: 90px;

    z-index: 9998;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border: 1px solid #d9e0e7;
    border-bottom: none;

    border-radius: 8px 8px 0 0;

    background: #eef1f5;

    color: #94a3b8;

    font-size: 14px;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

    .bottom-sticky-ad {
        left: 0;
        right: 0;

        bottom: 0;

        transform: none;

        width: 100%;

        min-height: 60px;

        border-radius: 0;

        border-left: none;
        border-right: none;
        border-bottom: none;

        border-top: 1px solid #d9e0e7;

        z-index: 9999;
    }

}
/* ==========================================
   FOOTER SPACE FOR BOTTOM STICKY AD
========================================== */

.site-footer {
    padding-bottom: 120px;
}


/* ==========================================
   MOBILE FOOTER SPACE
========================================== */

@media (max-width: 768px) {

    .site-footer {
        padding-bottom: 80px;
    }

}

/* =========================================
   IMAGE TOOLS HERO
   ========================================= */

.image-tools-hero {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 55px 24px 35px;
    text-align: center;
}

.image-tools-hero h1 {
    margin: 0 0 12px;
    color: #2d3e50;
    font-size: 36px;
}

.image-tools-hero p {
    margin: 0;
    color: #566573;
    line-height: 1.7;
}


/* =========================================
   IMAGE TOOLS GRID
   ========================================= */

.image-tools-grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px 40px;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.image-tool-card {
    display: block;
    padding: 24px;

    border: 1px solid #cfd8e3;
    border-radius: 12px;

    background: #ffffff;

    text-decoration: none;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.image-tool-icon {
    width: 42px;
    height: 42px;

    margin-bottom: 16px;

    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    font-weight: 700;
}

.image-tool-icon.icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.image-tool-icon.icon-green {
    background: #dcfce7;
    color: #15803d;
}

.image-tool-icon.icon-purple {
    background: #f3e8ff;
    color: #7e22ce;
}

.image-tool-card h2 {
    margin: 0 0 10px;

    color: #2d3e50;
    font-size: 20px;
}

.image-tool-card p {
    margin: 0;

    color: #566573;
    line-height: 1.6;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 900px) {

    .image-tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 768px) {

    .image-tools-hero {
        padding: 40px 20px 25px;
    }

    .image-tools-hero h1 {
        font-size: 30px;
    }

    .image-tools-grid {
        grid-template-columns: 1fr;
        padding: 20px 20px 35px;
    }

}


@media (max-width: 480px) {

    .image-tools-hero {
        padding: 35px 16px 20px;
    }

    .image-tools-hero h1 {
        font-size: 26px;
    }

    .image-tools-grid {
        padding: 16px 16px 30px;
    }

    .image-tool-card {
        padding: 20px;
    }

}