/* ============================================================
   CCI tool-specific styles.
   ------------------------------------------------------------
   Shared SBCSS theme (colors, header, footer, container, typography,
   buttons) lives in /css/sbcss-tool.css. This file only covers what's
   unique to the CCI Guide tool: intro card, pathway cards, quiz CTA,
   FAQ section, etc.
   ============================================================ */

:root {
    /* Aliases so local rules that reference --blue / --yellow / etc.
       resolve to the shared --sbcss-* palette. If this file is ever
       rewritten to use --sbcss-* directly, these aliases can be dropped. */
    --blue:        var(--sbcss-blue);
    --blue-dark:   var(--sbcss-blue-dark);
    --yellow:      var(--sbcss-yellow);
    --yellow-soft: #FFE9B5;
    --light-bg:    var(--sbcss-bg);
    --white:       var(--sbcss-white);
    --text-dark:   var(--sbcss-text);
    --text-muted:  var(--sbcss-muted);
    --border:      #d9e2ec;
}

/* CCI widens the header-text max-width so the long guide title fits without
   wrapping where possible. */
.header-text {
    max-width: 760px;
}

/* Hide the header spacer — CCI's original layout relies on the title being
   centered against the viewport only (not balanced against a right spacer). */
.header-spacer {
    display: none;
}

/* Main content padding (tool-specific spacing) */
main {
    flex: 1;
    padding: 32px 0 48px;
}

/* CCI prefers a larger h2 than the shared default (1.3rem). */
h2 {
    font-size: 1.5rem;
    margin-top: 2.25rem;
}

.intro {
    background: var(--white);
    padding: 1.75rem;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 1rem;
}

.intro h2 {
    margin-top: 0;
}

.intro p {
    font-size: 1rem;
    margin-top: 0.75rem;
}

.callout {
    background-color: #fff8e1;
    border-left: 4px solid var(--yellow);
    padding: 0.9rem 1rem;
    margin-top: 1rem;
    border-radius: 4px;
    color: var(--text-dark);
}

.section-intro {
    color: var(--text-muted);
    margin-top: 0.25rem;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.pathways {
    margin-top: 2rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.pathway-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.pathway-card:hover {
    box-shadow: 0 6px 18px rgba(2, 106, 176, 0.15);
    transform: translateY(-2px);
}

.college-card {
    border-top: 5px solid var(--blue);
}

.career-card {
    border-top: 5px solid var(--yellow);
}

.card-header {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem 0.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font: inherit;
    color: inherit;
}

.card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-dark);
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--blue);
    transition: transform 0.2s ease;
    margin-left: 0.5rem;
}

.card-header[aria-expanded="true"] .toggle-icon {
    transform: rotate(45deg);
}

.card-summary {
    padding: 0 1.25rem 1rem;
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

.card-details {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px dashed var(--border);
    margin-top: 0.5rem;
}

.card-details h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    color: var(--blue-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-details ul {
    padding-left: 1.2rem;
    margin: 0.5rem 0;
}

.card-details li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.card-note {
    background-color: var(--light-bg);
    padding: 0.6rem 0.85rem;
    border-radius: 4px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    border-left: 3px solid var(--blue);
}

.expand-all-section {
    text-align: center;
    margin: 2rem 0 1rem;
}

.expand-all-section button {
    background-color: var(--blue);
    color: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin: 0 0.25rem;
    transition: background-color 0.2s ease, transform 0.15s ease;
    font-family: inherit;
}

.expand-all-section button:hover {
    background-color: var(--blue-dark);
    transform: translateY(-1px);
}

.expand-all-section #collapse-all {
    background-color: var(--text-muted);
}

.expand-all-section #collapse-all:hover {
    background-color: #333;
}

.quiz-cta {
    margin-top: 2.5rem;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: white;
    padding: 1.75rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(2, 106, 176, 0.2);
}

.quiz-cta h2 {
    color: white;
    border-bottom-color: var(--yellow);
    margin-top: 0;
}

.quiz-cta p {
    margin: 0.5rem 0;
}

.cta-button {
    display: inline-block;
    background-color: var(--yellow);
    color: var(--text-dark);
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 0.75rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.3);
}

.faq {
    margin-top: 2.5rem;
    background-color: var(--white);
    padding: 1.5rem 1.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.faq h2 {
    margin-top: 0;
}

.faq dt {
    font-weight: 600;
    margin-top: 1rem;
    color: var(--blue-dark);
}

.faq dt:first-of-type {
    margin-top: 0.75rem;
}

.faq dd {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
}

/* Footer and responsive header come from shared /css/sbcss-tool.css.
   Only tool-specific responsive overrides remain here. */
@media (max-width: 900px) {
    h2 {
        font-size: 1.25rem;
    }
}
