
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.tools-page-body{
    font-family: 'Poppins', sans-serif;
    background: #f8fafc;
    color: #1e293b;
    overflow-x: hidden;
    background-image: url("coding-toolBg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

}

/* HEADER */

.tools-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 15px 5%;
    background: #0c1e38;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
}

.brand > i {
    color: #3b82f6;
    font-size: 38px;
}

.brand h2 {
    font-size: 21px;
}

.brand span {
    display: block;
    color: #cbd5e1;
    font-size: 9px;
}

.tools-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.tools-nav a {
    color: #e2e8f0;
    font-size: 13px;
    text-decoration: none;
    transition: .3s;
}

.tools-nav a:hover,
.tools-nav a.active {
    color: #60a5fa;
}

.back-home {
    color: white;
    background: #2563eb;
    padding: 11px 18px;
    border-radius: 25px;
    font-size: 12px;
    text-decoration: none;
}

.mobile-menu {
    display: none;
    background: transparent;
    color: white;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

/* HERO */

.tools-hero {
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
    padding: 75px 20px 45px;
}

.hero-label {
    display: inline-block;
    color: #2563eb;
    background: #dbeafe;
    padding: 8px 17px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.tools-hero h1 {
    font-size: clamp(30px, 5vw, 45px);
    color: white;
    line-height: 1.3;
    margin-bottom: 15px;
}

.tools-hero h1 span {
    color: #2563eb;
}

.tools-hero p {
    color: white;
    font-size: 14px;
    line-height: 1.8;
}

/* EDITOR CARDS */

.editor-section {
    width: 100%;
    padding: 20px 20px 70px;
}

.editor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    max-width: 1050px;
    margin: 0 auto;
}

.editor-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    background: white;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 17px;

    box-shadow: 0 5px 20px rgba(15, 23, 42, .04);
    transition: .3s;
}

.editor-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, .10);
}

/* IMAGES */

.editor-image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 190px;
    border-radius: 13px;
    margin-bottom: 20px;
}

.editor-image img {
    width: 140px;
    height: 140px;
    max-width: 90%;
    object-fit: contain;
}

.vscode-bg {
    background: #eff6ff;
}

.acode-bg {
    background: #f0fdf4;
}

.html-bg {
    background: #fff7ed;
}

/* TEXT */

.device-label {
    align-self: flex-start;
    color: #2563eb;
    background: #eff6ff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.editor-card h2 {
    font-size: 19px;
    margin-bottom: 10px;
}

.editor-card > p {
    color: #64748b;
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.editor-benefits {
    list-style: none;
    margin-bottom: 22px;
}

.editor-benefits li {
    display: flex;
    gap: 9px;
    align-items: center;
    color: #475569;
    font-size: 11px;
    margin-bottom: 10px;
}

.editor-benefits i {
    color: #16a34a;
}

/* BUTTONS */

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    width: 100%;
    margin-top: auto;
    padding: 12px 10px;

    border-radius: 25px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: .3s;
}

.download-btn:hover {
    opacity: .85;
    transform: translateY(-2px);
}

.vscode-btn {
    background: #2563eb;
}

.acode-btn {
    background: #059669;
}

.html-btn {
    background: #ea580c;
}

/* LEARNING TIP */

.learning-tip {
    display: flex;
    align-items: center;
    gap: 20px;

    max-width: 1050px;
    margin: 0 auto 70px;
    padding: 25px;

    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 15px;
}

.tip-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 55px;
    height: 55px;
    flex: 0 0 55px;

    color: #2563eb;
    background: white;
    border-radius: 13px;
    font-size: 23px;
}

.tip-content h2 {
    font-size: 17px;
    margin-bottom: 7px;
}

.tip-content p {
    color: #64748b;
    font-size: 12px;
    line-height: 1.8;
}

/* FOOTER */

.tools-footer {
    text-align: center;
    padding: 30px 15px;
    background: #0c1e38;
    color: #cbd5e1;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.footer-brand i {
    color: #3b82f6;
}

.tools-footer p {
    font-size: 11px;
    margin: 8px 0;
}

.tools-footer > span {
    font-size: 10px;
}
/* EDITOR TUTORIAL LINK */

.tutorial-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    margin-top: 12px;
    padding: 11px 10px;

    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 25px;

    font-size: 12px;
    font-weight: 600;
    text-decoration: none;

    transition: 0.3s ease;
}

.tutorial-link:hover {
    background: #dbeafe;
    transform: translateY(-2px);
}

/* TABLET */

@media (max-width: 850px) {
    .editor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .editor-card:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 13px);
        justify-self: center;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .tools-header {
        position: relative;
        padding: 13px 16px;
        gap: 10px;
    }

    .brand {
        min-width: 0;
    }

    .brand h2 {
        font-size: 17px;
    }

    .brand > i {
        font-size: 30px;
    }

    .tools-nav,
    .back-home {
        display: none;
    }

    .mobile-menu {
        display: block;
        flex-shrink: 0;
    }

    .tools-nav.mobile-active {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        position: absolute;
        top: 100%;
        left: 0;
        z-index: 10;

        width: 100%;
        padding: 10px 20px;
        background: #0c1e38;
    }

    .tools-nav.mobile-active a {
        padding: 13px 5px;
    }

    .tools-hero {
        padding: 55px 18px 35px;
    }

    .tools-hero h1 {
        font-size: 30px;
    }

    .tools-hero p {
        font-size: 13px;
    }

    .editor-section {
        padding: 15px 16px 45px;
    }

    .editor-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 380px;
        gap: 20px;
    }

    .editor-card,
    .editor-card:last-child {
        width: 100%;
        grid-column: auto;
        padding: 20px;
    }

    .editor-image {
        height: 170px;
    }

    .editor-image img {
        width: 130px;
        height: 130px;
    }

    .learning-tip {
        flex-direction: column;
        align-items: flex-start;
        margin: 0 16px 45px;
        padding: 20px;
    }
}
