* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    margin: 0;
    background: #f5f8fc;
    color: #1f2937;
}

/* HEADER */
.top-bar {
    background: #ffffff;
    padding: 24px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.header-inner {
    max-width: 1000px;
    margin: auto;
    position: relative;
    text-align: center;
}

.brand-logo {
    height: 46px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.header-text h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #0B8EDB;
}

.header-text p {
    margin-top: 4px;
    font-size: 14px;
    color: #6b7280;
}

/* ===== DRAG DROP ANIMATION ===== */
#dropArea {
    transition: all 0.25s ease;
}

#dropArea.drag-active {
    border-color: #0f62fe;
    background: rgba(15, 98, 254, 0.06);
    transform: scale(1.02);
}

/* ===== ERROR MESSAGE ===== */
#errorBox {
    display: none;
    margin-top: 12px;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 6px;
    background: #fee2e2;
    color: #991b1b;
}

#errorBox.show {
    display: block;
}


/* TOOL */
.tool-wrapper {
    max-width: 600px;
    margin: 32px auto 0;
    padding: 16px;
}

.upload-box {
    background: #fff;
    border-radius: 18px;
    padding: 30px 22px;
    text-align: center;
    border: 2px dashed #cfe9f8;
    box-shadow: 0 12px 35px rgba(11, 142, 219, 0.15);
}

.upload-box button {
    margin-top: 12px;
    padding: 11px 26px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #F28C38, #f6a04d);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.preview-section img {
    width: 100%;
    border-radius: 16px;
    margin-top: 22px;
}

.controls {
    margin-top: 20px;
}

.controls input[type="range"] {
    width: 100%;
}

.controls button {
    margin-top: 18px;
    width: 100%;
    padding: 13px;
    background: #0B8EDB;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-weight: 600;
}

.download-section {
    margin-top: 24px;
    text-align: center;
}

.download-section a {
    padding: 13px 28px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

/* SEO CONTENT */
.seo-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 16px;
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
}

/* RELATED TOOLS */
.related-tools {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 16px;
}

.tool-cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.tool-card {
    display: block;
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    flex: 1 1 150px;
    text-align: center;
    text-decoration: none;
    color: #1f2937;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
}

.tool-card span {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.tool-card small {
    color: #6b7280;
}

/* ===============================
   RELATED BLOGS (PREMIUM)
================================ */

.related-blogs {
    background: #ffffff;
    margin-top: 60px;
    padding: 60px 16px;
    border-top: 1px solid #e5e7eb;
}

.related-blogs-inner {
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

.related-blogs h2 {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.related-subtitle {
    font-size: 15px;
    color: #6b7280;
    max-width: 620px;
    margin: 0 auto 40px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.blog-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: left;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.blog-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-content {
    padding: 18px 18px 22px;
}

.blog-date {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.blog-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 6px 0 10px;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 18px;
}

.blog-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #0B8EDB, #2563eb);
    color: #ffffff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-readmore:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
}

/* MOBILE */
@media (max-width: 640px) {
    .related-blogs {
        padding: 40px 14px;
    }

    .related-blogs h2 {
        font-size: 22px;
    }
}

/* FOOTER */
.footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 28px 12px;
    text-align: center;
}

.footer-links a {
    color: #0B8EDB;
    text-decoration: none;
    font-weight: 500;
}

.footer-copy {
    font-size: 12px;
    color: #6b7280;
}

.hidden {
    display: none;
}

/* MOBILE */
@media (max-width: 640px) {
    .brand-logo {
        position: static;
        transform: none;
        margin-bottom: 12px;
    }
}