/* ============================================
   Investment Banking Page - Styles
   ============================================ */

/* ============================================
   Icon Color Variants
   ============================================ */
.ib-icon-blue {
    background: var(--blue-bg);
    color: var(--blue);
}

.ib-icon-green {
    background: var(--green-bg);
    color: var(--green);
}

.ib-icon-orange {
    background: var(--orange-bg);
    color: var(--orange);
}

/* ============================================
   Two-Column Layout
   ============================================ */
.ib-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.ib-col-card {
    padding: 20px 22px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.ib-col-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.ib-col-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.ib-col-card ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.ib-col-card ul li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ib-col-card ul li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--accent-light);
}

.ib-col-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.ib-col-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--accent-glow);
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

.ib-col-header h4 {
    margin-bottom: 0;
}

/* M&A and ECM column accents */
.ib-col-ma {
    border-color: rgba(77, 171, 247, 0.2);
}

.ib-col-ecm {
    border-color: rgba(0, 210, 160, 0.2);
}

/* Example Deal Callout */
.ib-example-deal {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(108, 92, 231, 0.06);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ib-example-deal strong {
    color: var(--accent-light);
}

/* ============================================
   Tag List
   ============================================ */
.ib-tag-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ib-tag-list li {
    padding: 4px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.ib-tag-list li::before {
    display: none;
}

/* ============================================
   Bank Tiers
   ============================================ */
.ib-bank-tiers {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.ib-tier {
    padding: 20px 22px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.ib-tier p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 10px;
}

.ib-tier-label {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.ib-tier-bb {
    background: rgba(77, 171, 247, 0.12);
    color: var(--blue);
    border: 1px solid rgba(77, 171, 247, 0.25);
}

.ib-tier-eb {
    background: rgba(0, 210, 160, 0.12);
    color: var(--green);
    border: 1px solid rgba(0, 210, 160, 0.25);
}

.ib-tier-mm {
    background: rgba(255, 169, 77, 0.12);
    color: var(--orange);
    border: 1px solid rgba(255, 169, 77, 0.25);
}

.ib-bank-names {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    padding-top: 6px;
    border-top: 1px solid var(--border);
}

/* Green number variant */
.ib-num-green {
    background: var(--green-bg);
    color: var(--green);
}

/* ============================================
   Exit Opportunities Grid
   ============================================ */
.ib-exit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.ib-exit-card {
    padding: 18px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.ib-exit-card:hover {
    border-color: var(--border-light);
}

.ib-exit-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.ib-exit-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   Hierarchy / Role Cards
   ============================================ */
.ib-hierarchy {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ib-role-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
}

.ib-role-card-md {
    border-color: rgba(255, 212, 59, 0.3);
    background: linear-gradient(135deg, var(--bg-card), rgba(255, 212, 59, 0.03));
}

.ib-role-level {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ib-role-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ib-badge-analyst {
    background: rgba(77, 171, 247, 0.12);
    color: var(--blue);
    border: 1px solid rgba(77, 171, 247, 0.25);
}

.ib-badge-associate {
    background: rgba(0, 210, 160, 0.12);
    color: var(--green);
    border: 1px solid rgba(0, 210, 160, 0.25);
}

.ib-badge-vp {
    background: rgba(255, 169, 77, 0.12);
    color: var(--orange);
    border: 1px solid rgba(255, 169, 77, 0.25);
}

.ib-badge-dir {
    background: rgba(162, 155, 254, 0.12);
    color: var(--accent-light);
    border: 1px solid rgba(162, 155, 254, 0.25);
}

.ib-badge-md {
    background: rgba(255, 212, 59, 0.12);
    color: var(--yellow);
    border: 1px solid rgba(255, 212, 59, 0.25);
}

.ib-role-years {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.ib-role-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.ib-role-card > p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.ib-role-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ib-role-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.ib-role-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ib-role-section ul li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.ib-role-section ul li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--accent-light);
}

.ib-role-section p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Compensation Range */
.ib-comp-range {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ib-comp-item {
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 140px;
}

.ib-comp-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ib-comp-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--green);
}

.ib-comp-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.5;
}

/* ============================================
   Timeline
   ============================================ */
.ib-timeline {
    position: relative;
    padding-left: 28px;
    margin-top: 20px;
}

.ib-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--border);
}

.ib-timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.ib-timeline-item:last-child {
    padding-bottom: 0;
}

.ib-timeline-marker {
    position: absolute;
    left: -22px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    z-index: 1;
}

.ib-marker-active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.ib-timeline-content {
    padding-left: 8px;
}

.ib-timeline-when {
    display: inline-block;
    padding: 3px 10px;
    background: var(--accent-glow);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 8px;
}

.ib-timeline-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.ib-timeline-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ib-timeline-content ul li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.ib-timeline-content ul li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--accent-light);
}

/* ============================================
   Financial Statements Grid
   ============================================ */
.ib-statement-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.ib-statement-card {
    padding: 22px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
}

.ib-statement-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.ib-stmt-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 10px;
}

.ib-statement-card > p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.ib-stmt-income {
    border-left: 3px solid var(--blue);
}

.ib-stmt-balance {
    border-left: 3px solid var(--green);
}

.ib-stmt-cashflow {
    border-left: 3px solid var(--orange);
}

/* Statement Flow */
.ib-stmt-flow {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 12px 0;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.ib-stmt-item {
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.ib-stmt-arrow {
    font-size: 12px;
    color: var(--text-muted);
    padding-left: 8px;
    font-weight: 500;
}

.ib-stmt-highlight {
    background: var(--accent-glow);
    border-color: rgba(108, 92, 231, 0.3);
    color: var(--accent-light);
}

/* Key Terms */
.ib-key-terms {
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.ib-key-terms p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 6px;
}

.ib-key-terms p:last-child {
    margin-bottom: 0;
}

.ib-key-terms strong {
    color: var(--text-primary);
}

/* ============================================
   Valuation Grid
   ============================================ */
.ib-valuation-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.ib-val-card {
    padding: 22px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    position: relative;
}

.ib-val-num {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--accent-glow);
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
}

.ib-val-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    padding-right: 40px;
}

.ib-val-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.ib-val-card p:last-child {
    margin-bottom: 0;
}

.ib-val-card ol {
    padding-left: 18px;
    margin: 8px 0;
}

.ib-val-card ol li {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 4px;
}

/* ============================================
   Question List (Technical + Behavioral)
   ============================================ */
.ib-question-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.ib-question-item {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    align-items: flex-start;
}

.ib-q-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--accent-glow);
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.ib-q-content {
    flex: 1;
}

.ib-q-content strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.ib-q-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   IB Resume Examples
   ============================================ */
.ib-resume-examples {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
}

.ib-resume-example h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 8px;
}

/* ============================================
   Keywords Grid
   ============================================ */
.ib-keywords-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.ib-keyword-group {
    padding: 16px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.ib-keyword-group h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.ib-keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ib-keyword-tags span {
    padding: 3px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .ib-two-col {
        grid-template-columns: 1fr;
    }

    .ib-exit-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ib-keywords-grid {
        grid-template-columns: 1fr;
    }

    .ib-comp-range {
        flex-direction: column;
    }

    .ib-comp-item {
        min-width: auto;
    }
}

@media (max-width: 600px) {
    .ib-exit-grid {
        grid-template-columns: 1fr;
    }

    .ib-role-card {
        padding: 20px 18px;
    }

    .ib-statement-card {
        padding: 16px 18px;
    }

    .ib-val-card {
        padding: 16px 18px;
    }

    .ib-val-num {
        position: static;
        margin-bottom: 10px;
    }

    .ib-val-card h4 {
        padding-right: 0;
    }

    .ib-question-item {
        padding: 14px 16px;
    }

    .ib-timeline {
        padding-left: 24px;
    }
}
