/* Base Reset */

/* CTA Section Styles */
.cta-section.branch {
    display: flex;
    justify-content: space-around;
    width: 100%;
    gap: 20px;
    flex-wrap: wrap;
}
@media (max-width: 900px) {
    .branch {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
}
.cta-card {
    background: linear-gradient(120deg, #e0f7fa 60%, #e6ffe6 100%);
    border-radius: 16px;
    box-shadow: 0 2px 14px rgba(44,62,80,0.11);
    padding: 36px 32px;
    text-align: center;
    max-width: 500px;
    width: 100%;
}
.cta-card h2 {
    font-size: 2em;
    color: #1a3c4c;
    margin-bottom: 0.7em;
}
.cta-card p {
    font-size: 1.2em;
    margin-bottom: 1.2em;
}
.cta-btn {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 0.8em 2.2em;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s;
    box-shadow: 0 1px 4px rgba(44,62,80,0.08);
}
.cta-btn:hover, .cta-btn:focus {
    background: #217dbb;
    outline: none;
}

/* Responsive and Collapsible Navigation */
.navigation {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 20px 10px 20px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.13);
    z-index: 1000;
    min-width: 180px;
    max-width: 210px;
    transition: box-shadow 0.2s, right 0.2s;
}

#nav-toggle {
    display: none;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.6em;
    padding: 0.3em 0.7em;
    margin-bottom: 1em;
    cursor: pointer;
}

@media (max-width: 1000px) {
    .navigation {
        position: static;
        top: unset;
        right: unset;
        transform: none;
        margin: 0 auto 1.5rem auto;
        max-width: 100%;
        min-width: unset;
        width: 100%;
        box-shadow: 0 1px 6px rgba(0,0,0,0.07);
        padding: 12px 8px 12px 8px;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    #nav-toggle {
        display: block;
    }
    .nav-list {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-list a {
        width: 100%;
        padding: 0.5em 0;
        border-bottom: 1px solid #eaeaea;
    }
}

@media (max-width: 768px) {
    .navigation {
        box-shadow: none;
        background: #f7fafd;
        padding: 10px 4px;
        border-radius: 8px;
    }
    #nav-toggle {
        display: block;
    }
}

.nav-list {
    display: block;
}

.nav-item {
    display: block;
    color: #3498db;
    text-decoration: none;
    padding: 6px 0;
    font-size: 1em;
    border-bottom: 1px solid #eee;
    transition: color 0.15s;
}

.nav-item:hover, .nav-item:focus {
    color: #2980b9;
    background: #f0f6fa;
    outline: none;
}

/* Prevent Sidebar Overlap with Main Content */
main {
    max-width: 720px;
    margin: 2rem auto;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Card/Colored Backgrounds and Spacing for Framework/Decision-Tree Sections */
.framework-section {
    background: linear-gradient(120deg, #f6fafd 70%, #e8f0fc 100%);
    margin: 36px 0;
    padding: 32px 18px 32px 18px;
    border-radius: 14px;
    box-shadow: 0 3px 14px rgba(44,62,80,0.11);
    transition: box-shadow 0.18s;
    position: relative;
}

.framework-section:not(:last-child) {
    margin-bottom: 48px;
}

.decision-tree {
    margin: 36px 0;
    padding: 28px 14px 28px 14px;
    background: linear-gradient(120deg, #fdf6fa 70%, #fce8fc 100%);
    border-radius: 14px;
    box-shadow: 0 3px 14px rgba(44,62,80,0.10);
    transition: box-shadow 0.18s;
    position: relative;
}

.decision-tree:not(:last-child) {
    margin-bottom: 44px;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 36px;
    right: 24px;
    z-index: 2000;
    display: none;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 2em;
    box-shadow: 0 2px 8px rgba(44,62,80,0.12);
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s;
}

#backToTop:hover, #backToTop:focus {
    background: #217dbb;
    outline: none;
}

/* Accessibility Improvements */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f9f9f9;
    color: #222;
    line-height: 1.7;
    font-size: 1.08rem;
    padding: 1rem;
}

/* Ensure all Sections are Visually Distinct and Mobile Friendly */
@media (max-width: 768px) {
    .container {
        padding: 6px;
    }
    .framework-section, .decision-tree {
        padding: 18px 4px 18px 4px;
        border-radius: 8px;
    }
    .header {
        padding: 18px 0 18px 0;
        border-radius: 8px;
    }
    .cta-card {
        padding: 18px 8px;
    }
}

/* Other Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header,
footer {
    background-color: #222;
    color: #fff;
    padding: 1.2rem 1rem 1.5rem 1rem;
    text-align: center;
    margin-top: 3rem;
    border-top: 2px solid #bee3e9;
    font-size: 1.05em;
    box-shadow: 0 -2px 12px #e0f7fa33;
    letter-spacing: 0.01em;
    z-index: 2;
    position: relative;
}

header h1,
header p,
footer p {
    margin-bottom: 0.5rem;
}

nav {
    margin-top: 0.5rem;
}

nav a {
    color: #fff;
    margin: 0 0.5rem;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    font-weight: bold;
}

input,
textarea,
select,
button {
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 100%;
}

button {
    background-color: #333;
    color: #fff;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

.result,
#results,
#output {
    margin-top: 2rem;
    background-color: #eef;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #ccd;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    margin-bottom: 2.5rem;
    padding: 1.25rem 1rem 1rem 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}

.blog-links a {
    font-size: 1.15rem;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    display: inline-block;
}

.blog-links a:hover {
    background: #eef;
    color: #333;
}

.blog-meta {
    font-size: 0.95rem;
    color: #888;
    margin-top: 0.25rem;
}

.blog-excerpt {
    font-size: 1rem;
    color: #444;
    margin-top: 0.5rem;
    line-height: 1.5;
}

@media (max-width: 600px) {
    body {
        padding: 0.5rem;
    }

    main {
        margin: 1rem auto;
        padding: 1rem;
    }

    nav a {
        display: block;
        margin: 0.25rem 0;
    }
}

/* Prominent Explore Tools Button */
.explore-tools-btn {
  display: inline-block;
  margin: 2.2em auto 0 auto;
  background: linear-gradient(90deg, #3498db 80%, #217dbb 100%);
  color: #fff;
  font-size: 1.22em;
  font-weight: 700;
  padding: 0.85em 2.2em;
  border-radius: 8px;
  box-shadow: 0 4px 16px #3498db22;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.16s, box-shadow 0.16s, transform 0.13s;
  text-align: center;
}
.explore-tools-btn:hover, .explore-tools-btn:focus {
  background: linear-gradient(90deg, #217dbb 80%, #3498db 100%);
  color: #fff;
  box-shadow: 0 8px 28px #3498db33;
  transform: translateY(-2px) scale(1.025);
  outline: none;
}
@media (max-width: 600px) {
  .explore-tools-btn {
    font-size: 1.07em;
    padding: 0.7em 1.2em;
    width: 90%;
    min-width: 0;
  }
}

/* Tools Page Styles (migrated from tools/index.html) */
.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  margin: 2.5rem 0;
}
.tool-card {
  background: linear-gradient(120deg, #f8fafc 70%, #e3f6fc 100%);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.09);
  padding: 2.2em 1.5em 1.5em 1.5em;
  max-width: 340px;
  width: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-top: 5px solid #3498db;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  outline: none;
}
.tool-card:hover, .tool-card:focus {
  box-shadow: 0 10px 30px rgba(44,62,80,0.16);
  transform: translateY(-3px) scale(1.012);
  z-index: 2;
}
.tool-horizon { border-top: 5px solid #3498db; }
.tool-relevance { border-top: 5px solid #27ae60; }
.tool-legacy { border-top: 5px solid #8e44ad; }
.tool-horizon .tool-icon { background: #e3f0fa; color: #3498db; }
.tool-relevance .tool-icon { background: #eafaf2; color: #27ae60; }
.tool-legacy .tool-icon { background: #f3eafc; color: #8e44ad; }
.tool-icon {
  font-size: 2.3em;
  margin-bottom: 0.5em;
  display: block;
  border-radius: 50%;
  padding: 0.18em 0.38em;
  box-shadow: 0 1px 6px #e0e0e033;
  margin-right: 0.2em;
  margin-top: -0.6em;
}
.badge-recommended {
  display: inline-block;
  background: #ffd700;
  color: #856404;
  font-size: 0.92em;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.18em 0.7em;
  margin-left: 0.35em;
  margin-bottom: 0.5em;
  box-shadow: 0 1px 4px #ffd70033;
  letter-spacing: 0.01em;
  vertical-align: middle;
  position: absolute;
  top: 1.1em;
  right: 1.2em;
  z-index: 10;
}
.tool-card h2 {
  font-size: 1.45em;
  margin-bottom: 0.28em;
  color: #2c3e50;
  margin-top: 0.1em;
}
.tool-tagline {
  font-size: 1em;
  color: #888;
  margin-bottom: 0.6em;
  font-style: italic;
}
.tool-card p {
  color: #456;
  font-size: 1.08em;
  margin-bottom: 1.2em;
  flex: 1 1 auto;
}
.tool-card a {
  display: inline-block;
  background: #3498db;
  color: #fff;
  padding: 0.6em 1.4em;
  border-radius: 6px;
  font-size: 1em;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 8px #3498db22;
  margin-right: 0.7em;
  margin-bottom: 0.3em;
  transition: background 0.18s;
}
.tool-relevance a:not(.learn-more) {
  background: #27ae60;
  box-shadow: 0 2px 8px #27ae6022;
}
.tool-legacy a:not(.learn-more) {
  background: #8e44ad;
  box-shadow: 0 2px 8px #8e44ad22;
}
.tool-card a:hover, .tool-card a:focus {
  background: #217dbb;
  outline: none;
}
.tool-relevance a:hover, .tool-relevance a:focus {
  background: #219150;
}
.tool-legacy a:hover, .tool-legacy a:focus {
  background: #6c3483;
}
.learn-more {
  background: #fff;
  color: #3498db;
  border: 1.5px solid #3498db;
  font-weight: 500;
  margin-top: 0.2em;
  box-shadow: none;
  transition: background 0.18s, color 0.18s;
}
.learn-more:hover, .learn-more:focus {
  background: #eaf6fd;
  color: #217dbb;
  outline: none;
}
.tool-relevance .learn-more { color: #27ae60; border-color: #27ae60; }
.tool-relevance .learn-more:hover, .tool-relevance .learn-more:focus { background: #eafaf2; color: #219150; }
.tool-legacy .learn-more { color: #8e44ad; border-color: #8e44ad; }
.tool-legacy .learn-more:hover, .tool-legacy .learn-more:focus { background: #f3eafc; color: #6c3483; }
@media (max-width: 700px) {
  .tools-list { flex-direction: column; gap: 1.5rem; }
  .tool-card { max-width: 100%; }
  .badge-recommended { right: 1em; top: 0.9em; }
}

/* Utilities and Tool-Specific Helpers */
.tool-instructions {
  font-size: 0.95em;
  color: #666;
  margin-top: 0.2em;
  margin-bottom: 1.2em;
}
.hidden { display: none !important; }
.note-italic { font-style: italic; }
.legacy-list { list-style-type: none; padding: 0; }
.legacy-item { margin-bottom: 1rem; }
.legacy-text { margin-left: 0.5rem; }
