* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #222;
    line-height: 1.5;
}

.site-header {
    background: #ffffff;
    min-height: 72px;
    padding: 12px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e3e6ed;
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #4f46e5;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

.brand h1 {
    font-size: 20px;
    color: #20263a;
}

.brand p {
    font-size: 13px;
    color: #6b7280;
}

.menu-button {
    border: 0;
    background: #eef0ff;
    color: #4f46e5;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 22px;
    cursor: pointer;
}

.container {
    width: min(1150px, 94%);
    margin: 30px auto 60px;
}

.hero {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.hero h2 {
    font-size: 30px;
    margin-bottom: 8px;
    color: #20263a;
}

.hero p {
    color: #667085;
    max-width: 720px;
}

.search-section {
    margin-bottom: 30px;
}

#toolSearch {
    width: 100%;
    height: 54px;
    border: 1px solid #d9deea;
    border-radius: 12px;
    padding: 0 18px;
    font-size: 16px;
    outline: none;
    background: #ffffff;
}

#toolSearch:focus {
    border-color: #4f46e5;
}

.tool-section {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 22px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.04);
}

.tool-section h3 {
    font-size: 20px;
    margin-bottom: 18px;
    color: #20263a;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.tool-card {
    min-height: 68px;
    border: 1px solid #d8ddef;
    background: #ffffff;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    color: #3846a8;
    cursor: pointer;
    transition: 0.2s ease;
}

.tool-card:hover {
    background: #f1f3ff;
    border-color: #4f46e5;
    transform: translateY(-2px);
}

.tool-card span {
    display: block;
    font-size: 20px;
    margin-bottom: 3px;
}

.site-footer {
    background: #20263a;
    color: #ffffff;
    text-align: center;
    padding: 30px 20px;
}

.site-footer p {
    color: #c8ccda;
    margin-top: 5px;
}

@media (max-width: 900px) {
    .tool-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 650px) {
    .container {
        width: 94%;
        margin-top: 18px;
    }

    .hero {
        padding: 22px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .tool-section {
        padding: 18px;
    }

    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 420px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }

    .brand h1 {
        font-size: 17px;
    }
}

/* =========================================================
   IMAGE TOOLS TOP NAVIGATION
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #dfe3eb;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
    width: min(1450px, 96%);
    min-height: 76px;
    margin: auto;

    display: flex;
    align-items: center;
    gap: 25px;
}


/* BRAND */

.brand {
    display: flex;
    align-items: center;
    gap: 10px;

    text-decoration: none;
    color: inherit;

    flex-shrink: 0;
}

.brand-mark {
    width: 48px;
    height: 48px;

    border-radius: 10px;

    background: #4f46e5;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;
    font-weight: 800;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 17px;
    color: #20263a;
    letter-spacing: 0.3px;
}

.brand-text span {
    margin-top: 4px;
    font-size: 11px;
    color: #667085;
    letter-spacing: 1px;
}


/* NAVIGATION */

.top-navigation {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-item {
    position: relative;
}

.nav-button {
    border: 0;
    background: transparent;

    padding: 27px 13px;

    color: #303b91;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
    white-space: nowrap;
}

.nav-button:hover {
    color: #4f46e5;
    background: #f5f6ff;
}

.nav-button.active {
    color: #4f46e5;
    background: #f5f6ff;
}

.arrow {
    margin-left: 5px;
    font-size: 16px;
}


/* DROPDOWN */

.dropdown-menu {
    position: absolute;

    top: calc(100% + 1px);
    left: 0;

    min-width: 230px;

    background: #ffffff;

    border: 1px solid #e0e4ed;

    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.13);

    display: none;

    padding: 7px 0;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu button {
    display: block;

    width: 100%;

    border: 0;
    background: #ffffff;

    padding: 11px 17px;

    text-align: left;

    font-size: 14px;

    color: #333333;

    cursor: pointer;
}

.dropdown-menu button:hover {
    background: #f1f3ff;
    color: #4f46e5;
}

.dropdown-more {
    right: 0;
    left: auto;
}


/* MOBILE */

.mobile-menu-button {
    display: none;

    width: 44px;
    height: 44px;

    border: 0;
    border-radius: 9px;

    background: #eef0ff;
    color: #4f46e5;

    font-size: 23px;

    cursor: pointer;
}


/* TABLET */

@media (max-width: 1100px) {

    .header-inner {
        gap: 12px;
    }

    .brand-text strong {
        font-size: 15px;
    }

    .nav-button {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 13px;
    }

}


/* MOBILE */

@media (max-width: 800px) {

    .header-inner {
        min-height: 68px;
    }

    .top-navigation {
        display: none;
    }

    .mobile-menu-button {
        display: block;
        margin-left: auto;
    }

    .brand-text strong {
        font-size: 15px;
    }

}


/* SMALL MOBILE */

@media (max-width: 450px) {

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .brand-text strong {
        font-size: 13px;
    }

    .brand-text span {
        font-size: 9px;
    }

}
/* =========================================================
   IMAGE TOOLS - CONTENT + AD LAYOUT
========================================================= */

.studio-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
    gap: 24px;
    align-items: start;
}

.tools-content {
    min-width: 0;
}

.ad-column {
    min-width: 0;
}

.ad-placeholder {
    width: 100%;
    min-height: 280px;

    background: #ffffff;
    border: 1px solid #e3e6ed;
    border-radius: 10px;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    padding-top: 12px;

    color: #999999;
    font-size: 12px;
}

.ad-placeholder span {
    color: #888888;
}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 900px) {

    .studio-layout {
        grid-template-columns: 1fr;
    }

    .ad-column {
        order: 2;
    }

    .ad-placeholder {
        min-height: 180px;
    }

}
/* =========================================================
   IMAGE TOOLS TOP HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: #ffffff;
    border-bottom: 1px solid #dfe3eb;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
    width: min(1450px, 96%);
    min-height: 76px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    gap: 25px;
}


/* BRAND */

.brand {
    display: flex;
    align-items: center;
    gap: 10px;

    text-decoration: none;
    color: inherit;

    flex-shrink: 0;
}

.brand-mark {
    width: 48px;
    height: 48px;

    border-radius: 10px;

    background: #4f46e5;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;
    font-weight: 800;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 17px;
    color: #20263a;
}

.brand-text span {
    margin-top: 4px;
    font-size: 11px;
    color: #667085;
    letter-spacing: 1px;
}


/* TOP NAVIGATION */

.top-navigation {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-item {
    position: relative;
}

.nav-button {
    border: 0;
    background: transparent;

    padding: 27px 13px;

    color: #303b91;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
    white-space: nowrap;
}

.nav-button:hover,
.nav-button.active {
    color: #4f46e5;
    background: #f5f6ff;
}

.arrow {
    margin-left: 5px;
}


/* DROPDOWN */

.dropdown-menu {
    position: absolute;

    top: calc(100% + 1px);
    left: 0;

    min-width: 230px;

    background: #ffffff;

    border: 1px solid #e0e4ed;

    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.13);

    display: none;

    padding: 7px 0;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu button {
    display: block;

    width: 100%;

    border: 0;
    background: #ffffff;

    padding: 11px 17px;

    text-align: left;

    font-size: 14px;

    color: #333333;

    cursor: pointer;
}

.dropdown-menu button:hover {
    background: #f1f3ff;
    color: #4f46e5;
}

.dropdown-more {
    left: auto;
    right: 0;
}


/* MOBILE BUTTON */

.mobile-menu-button {
    display: none;

    width: 44px;
    height: 44px;

    border: 0;
    border-radius: 9px;

    background: #eef0ff;
    color: #4f46e5;

    font-size: 23px;

    cursor: pointer;
}


/* TABLET */

@media (max-width: 1100px) {

    .header-inner {
        gap: 12px;
    }

    .nav-button {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 13px;
    }

}


/* MOBILE */

@media (max-width: 800px) {

    .top-navigation {
        display: none;
    }

    .mobile-menu-button {
        display: block;
        margin-left: auto;
    }

}


/* SMALL MOBILE */

@media (max-width: 450px) {

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .brand-text strong {
        font-size: 13px;
    }

    .brand-text span {
        font-size: 9px;
    }

}
/* =========================================================
   SEARCH BOX
========================================================= */

.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);

    font-size: 20px;
    color: #667085;

    pointer-events: none;
}

#toolSearch {
    padding-left: 48px;
}
/* =========================================================
   FOOTER LAYOUT
========================================================= */

.footer-inner {
    width: min(1150px, 94%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;

    text-align: left;
}

.footer-brand {
    text-align: left;
}

.footer-logo {
    width: 42px;
    height: 42px;
    margin-bottom: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;
    background: #4f46e5;
    color: #ffffff;

    font-weight: 800;
}

.footer-brand h3 {
    margin-bottom: 4px;
}

.footer-column h4 {
    margin-bottom: 12px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 7px;
    color: #c8ccda;
    font-size: 14px;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.footer-bottom p {
    margin: 0;
}


/* TABLET */

@media (max-width: 800px) {

    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

}


/* MOBILE */

@media (max-width: 500px) {

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

}
/* =========================================================
   COMPACT IMAGE TOOL CARDS
========================================================= */

.tool-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.tool-card {
    min-height: 52px;
    padding: 8px 10px;
    font-size: 14px;
}

.tool-card span {
    font-size: 18px;
    margin-bottom: 2px;
}


/* Keep compact layout on medium screens */

@media (max-width: 1100px) {

    .tool-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


/* Two columns on smaller screens */

@media (max-width: 700px) {

    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* One column on phones */

@media (max-width: 450px) {

    .tool-grid {
        grid-template-columns: 1fr;
    }

}
/* =========================================================
   COMMON IMAGE UPLOAD WORKSPACE
========================================================= */

.image-workspace {
    background: #ffffff;
    border: 1px solid #e1e5ee;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.04);
}

.workspace-header {
    margin-bottom: 18px;
}

.workspace-header h3 {
    margin: 0 0 5px;
    font-size: 20px;
    color: #20263a;
}

.workspace-header p {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.upload-area {
    border: 2px dashed #cbd2e3;
    border-radius: 14px;
    min-height: 220px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 25px;

    background: #fafbff;

    transition: 0.2s ease;
}

.upload-area:hover {
    border-color: #4f46e5;
    background: #f7f7ff;
}

.upload-area.drag-over {
    border-color: #4f46e5;
    background: #eef0ff;
}

.upload-icon {
    font-size: 42px;
    margin-bottom: 8px;
}

.upload-area h4 {
    margin: 0 0 6px;
    font-size: 20px;
    color: #20263a;
}

.upload-area p {
    margin: 0 0 16px;
    color: #667085;
    font-size: 14px;
}

.upload-button {
    border: 0;
    border-radius: 9px;

    background: #4f46e5;
    color: #ffffff;

    padding: 11px 22px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.upload-button:hover {
    background: #4338ca;
}

.upload-area small {
    margin-top: 12px;
    color: #8a92a3;
    font-size: 12px;
}


/* MOBILE */

@media (max-width: 600px) {

    .image-workspace {
        padding: 18px;
    }

    .upload-area {
        min-height: 200px;
        padding: 18px;
    }

}