3html {
    scroll-behavior: smooth;
    scroll-padding-top: 65px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #222;
    line-height: 1.6;
}

/* TOP PARTNER BAR */
.top-partner-bar {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #111;
    color: #fff;
    text-align: center;
    padding: 8px 10px;
    font-size: 14px;
}

.top-partner-bar a {
    color: #fff;
    text-decoration: none;
    margin: 0 8px;
    font-weight: bold;
}

.top-partner-bar a:hover {
    text-decoration: underline;
}

.top-partner-bar span {
    opacity: 0.8;
    margin-right: 6px;
}

/* HEADER */
header {
    background: linear-gradient(135deg, #111827, #2563eb);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

header h1 {
    font-size: 44px;
    margin: 0 0 10px;
}

header p {
    font-size: 20px;
    max-width: 720px;
    margin: 0 auto;
}

/* NAV */
nav {
    background: white;
    padding: 14px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 38px;
    z-index: 9998;
}

nav a {
    color: #2563eb;
    text-decoration: none;
    margin: 0 12px;
    font-weight: bold;
}

/* MAIN */
main {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.intro {
    text-align: center;
    margin-bottom: 45px;
}

.intro h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.intro p {
    max-width: 760px;
    margin: 0 auto;
    color: #555;
}

.section-title {
    margin-top: 50px;
    margin-bottom: 20px;
    font-size: 28px;
    scroll-margin-top: 95px;
}

/* SEARCH */
.search-box {
    text-align: center;
    margin: 20px;
}

.search-box input {
    width: 90%;
    max-width: 500px;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 10px;
}

/* TOOL GRID */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.tool-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 260px;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.tool-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.tool-card p {
    color: #555;
    flex-grow: 1;
    margin-bottom: 20px;
}

.tool-card a,
.btn {
    display: inline-block;
    background: #2563eb;
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    margin-top: auto;
    align-self: flex-start;
}

.tool-card a:hover,
.btn:hover {
    background: #1d4ed8;
}

/* TOOL PAGES */
.tool-container {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    margin-top: 30px;
}

.result-box {
    margin-top: 20px;
    padding: 15px;
    background: #eef4ff;
    border-radius: 10px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* NOTE BOX */
.note-box {
    background: white;
    padding: 26px;
    border-radius: 16px;
    margin-top: 50px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 30px 20px;
    background: #111827;
    color: white;
    margin-top: 60px;
}

footer a {
    color: #93c5fd;
    text-decoration: none;
    margin: 0 8px;
}

/* MOBILE */
@media (max-width: 600px) {

    html {
        scroll-padding-top: 85px;
    }

    .top-partner-bar {
        font-size: 12px;
        line-height: 1.6;
        padding: 8px 6px;
    }

    nav {
        top: 34px;
        padding: 10px 12px;
    }

    nav a {
        display: inline-block;
        margin: 5px 7px;
        font-size: 13px;
    }

    header {
        padding: 45px 20px;
    }

    header h1 {
        font-size: 34px;
    }

    header p {
        font-size: 18px;
    }

    .intro h2,
    .section-title {
        font-size: 26px;
    }

    .section-title {
        scroll-margin-top: 40px;
    }

    .tool-card {
        min-height: 240px;
    }
}

/* SHARE BUTTON */
.share-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    z-index: 9999;
}

.share-button:hover {
    background: #1d4ed8;
}

/* SHARE MENU */
.share-menu {
    position: fixed;
    bottom: 75px;
    right: 20px;
    background: linear-gradient(135deg, #111827, #2563eb);
    padding: 12px;
    border-radius: 12px;
    display: none;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    z-index: 9999;
    min-width: 120px;
}

.share-menu.open {
    display: flex;
}

.share-menu a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    background: rgba(255,255,255,0.12);
    padding: 8px 10px;
    border-radius: 8px;
}

.share-menu a:hover {
    background: rgba(255,255,255,0.22);
}