/* =========================================================
   TOOLISTAN — SHARED COMPONENTS + CONTENT SECTIONS
   Recovered compatibility layer for Newsletter, Footer,
   Blog, FAQ and Related Tools.
   ========================================================= */
:root {
    --tc-green: #18c964;
    --tc-green-dark: #07563f;
    --tc-green-deep: #064e3b;
    --tc-green-soft: #ecfdf5;
    --tc-text: #102a43;
    --tc-body: #52637a;
    --tc-muted: #8291a7;
    --tc-border: #dce8e3;
    --tc-white: #ffffff;
}
.shared-newsletter,
.shared-footer,
.shared-newsletter *,
.shared-footer * { box-sizing: border-box; }

/* ------------------------- Newsletter ------------------------- */
.shared-newsletter {
    margin: 0;
    padding: 78px 20px;
    border-top: 1px solid #dce8e3;
    background: linear-gradient(180deg, #f4fbf7 0%, #eaf8f1 100%);
    color: var(--tc-text);
    text-align: center;
}
.shared-newsletter-content { width: min(760px, 100%); margin: 0 auto; }
.newsletter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 7px 14px;
    border: 1px solid rgba(24,201,100,.25);
    border-radius: 999px;
    background: #fff;
    color: var(--tc-green-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}
.shared-newsletter h2 {
    margin: 0 0 10px;
    color: var(--tc-green-deep);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.2;
}
.shared-newsletter p {
    max-width: 660px;
    margin: 0 auto 26px;
    color: var(--tc-body);
    font-size: 16px;
    line-height: 1.8;
}
.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: min(620px, 100%);
    margin: 0 auto;
}
.newsletter-form input {
    flex: 1 1 360px;
    min-width: 0;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid #bfd5cb;
    border-radius: 12px;
    background: #fff;
    color: var(--tc-text);
    outline: none;
}
.newsletter-form input:focus {
    border-color: var(--tc-green);
    box-shadow: 0 0 0 3px rgba(24,201,100,.12);
}
.newsletter-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 23px;
    border: 1px solid var(--tc-green-dark);
    border-radius: 12px;
    background: var(--tc-green-dark);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}
.newsletter-form button:hover { background: var(--tc-green); border-color: var(--tc-green); transform: translateY(-1px); }

/* --------------------------- Footer --------------------------- */
.shared-footer {
    margin: 0;
    padding: 0;
    border-top: 4px solid var(--tc-green);
    background: var(--tc-green-deep);
    color: #e8f4ef;
}
.footer-container {
    display: grid;
    grid-template-columns: 1.45fr repeat(3, minmax(150px, 1fr));
    gap: 42px;
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 58px 0 48px;
}
.footer-column { min-width: 0; }
.footer-column h3 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}
.footer-column ul { margin: 0; padding: 0; list-style: none; }
.footer-column li { margin: 0 0 10px; }
.footer-column a { color: #d7e7df; text-decoration: none; transition: .2s ease; }
.footer-column a:hover { color: #fff; }
.footer-brand p { max-width: 360px; margin: 16px 0 0; color: #c9ded6; line-height: 1.75; }
.footer-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff !important; }
.footer-logo-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--tc-green);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}
.footer-logo h2 { margin: 0; color: #fff; font-size: 24px; line-height: 1.1; }
.footer-logo small { color: #bdd5cb; font-size: 10px; font-weight: 700; }
.social-icons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.09);
    color: #fff;
}
.social-icons a:hover { background: var(--tc-green); transform: translateY(-2px); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 20px 0 24px;
    border-top: 1px solid rgba(255,255,255,.12);
    color: #bcd2ca;
    font-size: 13px;
}
.footer-bottom p { margin: 0; }

/* --------------- Shared Blog / FAQ / Related ---------------- */
.tool-blog,
.tool-faq,
.related-tools {
    box-sizing: border-box;
}
.tool-blog > .container,
.tool-faq > .container,
.related-tools > .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}
.tool-blog .section-heading,
.tool-faq .section-heading,
.related-tools .section-heading {
    display: block;
    width: 100%;
    margin: 0 0 34px;
    text-align: center;
}
.tool-blog .section-heading h2,
.tool-faq .section-heading h2,
.related-tools .section-heading h2 {
    margin: 0 0 10px;
    color: var(--tc-green-dark);
    font-size: clamp(28px, 3.6vw, 38px);
    line-height: 1.3;
}
.tool-blog .section-heading p,
.tool-faq .section-heading p,
.related-tools .section-heading p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--tc-body);
    line-height: 1.8;
}
.tool-blog .section-badge,
.tool-faq .section-badge,
.related-tools .section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 13px;
    padding: 7px 14px;
    border: 1px solid #cce6da;
    border-radius: 999px;
    background: #eff9f4;
    color: #12815e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
}
.blog-content { color: #445c54; line-height: 1.9; }
.blog-content p { margin: 0 0 18px; }
.blog-content h2,
.blog-content h3,
.blog-content h4 { color: var(--tc-green-dark); line-height: 1.4; }
.blog-content h3 { margin: 34px 0 12px; font-size: 24px; }
.blog-content ul,
.blog-content ol { padding-inline-start: 25px; }
.blog-content li { margin-bottom: 9px; }
.blog-content a { color: #0d8063; text-underline-offset: 3px; }
.blog-table-of-contents {
    margin: 0 0 34px;
    padding: 24px 26px;
    border: 1px solid #d9e9e2;
    border-radius: 16px;
    background: #f7fcf9;
}
.blog-table-of-contents h3 { margin: 0 0 12px; font-size: 18px; }
.blog-table-of-contents ul { display: grid; gap: 7px; margin: 0; padding-inline-start: 22px; }
.blog-table-of-contents li { margin: 0; }

.faq-list, .faq-container { width: min(850px, 100%); margin: 0 auto; }
.faq-item {
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid var(--tc-border);
    border-radius: 15px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item.active, .faq-item[open] { border-color: rgba(24,201,100,.55); box-shadow: 0 10px 28px rgba(7,86,63,.08); }
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    padding: 20px 22px;
    border: 0;
    background: #fff;
    color: var(--tc-text);
    text-align: start;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}
.faq-question:hover { background: var(--tc-green-soft); }
.faq-icon { flex: 0 0 auto; color: var(--tc-green); transition: transform .2s ease; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; background: #fbfefc; transition: max-height .3s ease; }
.faq-answer p { margin: 0; padding: 0 22px 20px; color: var(--tc-body); line-height: 1.8; }
.faq-item.active .faq-answer { max-height: 1000px; }

.related-grid,
.related-tools-grid,
#relatedToolsGrid,
#relatedToolsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}
.related-card,
.related-tool-card,
.toolistan-tool-card {
    display: block;
    padding: 28px 24px;
    border: 1px solid var(--tc-border);
    border-radius: 18px;
    background: #fff;
    color: var(--tc-text);
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 26px rgba(7,86,63,.06);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.related-card:hover,
.related-tool-card:hover,
.toolistan-tool-card:hover {
    transform: translateY(-5px);
    border-color: rgba(24,201,100,.45);
    box-shadow: 0 16px 36px rgba(7,86,63,.11);
}
.related-tool-icon { display: grid; place-items: center; min-height: 46px; margin-bottom: 12px; color: var(--tc-green-dark); font-size: 36px; }
.related-card h3,
.related-tool-card h3,
.toolistan-tool-card h3 { margin: 0 0 10px; color: var(--tc-green-dark); font-size: 20px; }
.related-tool-card p,
.toolistan-tool-card p { margin: 0 0 14px; color: var(--tc-body); line-height: 1.65; }
.related-tool-action { color: #0d8063; font-weight: 800; }

.top-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1500;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: #0b7566;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(7,86,63,.2);
}

@media (max-width: 900px) {
    .footer-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .newsletter-form { flex-direction: column; }
    .newsletter-form input, .newsletter-form button { width: 100%; }
    .footer-container { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .tool-blog, .tool-faq, .related-tools { padding-inline: 20px; }
}
