/**
 * PBA Educational Resources - Styles
 */

/* ============ BASE STYLES ============ */
.pba-edu-hero {
    padding: 80px 20px;
    text-align: center;
    color: #fff;
    margin-bottom: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
}
.pba-edu-hero-content {
    max-width: 900px;
    margin: 0 auto;
}
.pba-edu-hero h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    color: #fff;
}
.pba-edu-hero p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
    line-height: 1.6;
}

.pba-edu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============ TABS ============ */
.pba-edu-tabs-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}
.pba-edu-tabs {
    display: inline-flex;
    background: #fff;
    padding: 6px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}
.pba-edu-tab {
    padding: 14px 32px;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pba-edu-tab:hover {
    color: #1e3a5f;
    background: #f1f5f9;
}
.pba-edu-tab.active {
    background: #1e3a5f;
    color: #fff;
    box-shadow: 0 4px 12px rgba(30,58,95,0.3);
}
.pba-edu-tab.active[data-tab="trials"] {
    background: #c9a227;
    box-shadow: 0 4px 12px rgba(201,162,39,0.3);
}
.tab-icon {
    font-size: 1.1rem;
}

/* ============ TAB CONTENT ============ */
.pba-edu-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}
.pba-edu-tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ GRADE SECTIONS ============ */
.pba-edu-grade-section {
    margin-bottom: 48px;
}
.pba-edu-grade-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 12px;
}
.grade-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

/* ============ GRIDS ============ */
.pba-edu-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}
.pba-edu-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ============ CARDS ============ */
.pba-edu-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
}
.pba-edu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    border-color: var(--accent-color, #1e3a5f);
}
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.card-subject {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 8px;
}
.pba-edu-card h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px 0;
    line-height: 1.4;
}
.pba-edu-card p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.6;
    flex-grow: 1;
}
.card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.meta-item {
    font-size: 0.85rem;
    color: #94a3b8;
}
.card-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-color, #2563eb);
}

/* ============ DISCLAIMER ============ */
.pba-edu-disclaimer {
    background: #fff;
    border-radius: 12px;
    padding: 24px 32px;
    border: 1px solid #e5e7eb;
    margin-top: 40px;
}
.pba-edu-disclaimer h3 {
    font-size: 1.1rem;
    color: #1f2937;
    margin: 0 0 8px 0;
}
.pba-edu-disclaimer p {
    color: #64748b;
    margin: 0;
}

/* ============ LESSON PAGE ============ */
.pba-edu-lesson-page .lesson-hero,
.pba-edu-trial-page .trial-hero {
    padding: 60px 20px 80px;
    text-align: left;
}
.back-link {
    display: inline-block;
    color: #c9a227;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-decoration: none;
    transition: color 0.2s;
}
.back-link:hover {
    color: #fff;
}
.lesson-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}
.badge-dark {
    background: rgba(255,255,255,0.15);
}
.badge-gold {
    background: #c9a227;
}
.lesson-overview {
    font-size: 1.15rem;
    max-width: 700px;
    margin-bottom: 24px;
}
.print-btn {
    background: #fff;
    color: #1e3a5f;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.print-btn:hover {
    background: #f1f5f9;
}

/* ============ IMPORTANCE CARD ============ */
.pba-edu-importance-card {
    background: linear-gradient(135deg, rgba(201,162,39,0.1) 0%, rgba(201,162,39,0.05) 100%);
    border: 1px solid rgba(201,162,39,0.3);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 32px;
}
.pba-edu-importance-card h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.25rem;
    color: #92722a;
    margin: 0 0 12px 0;
}
.pba-edu-importance-card p {
    color: #78600d;
    line-height: 1.7;
    margin: 0;
}

/* ============ TWO COLUMN LAYOUT ============ */
.pba-edu-two-col {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 968px) {
    .pba-edu-two-col {
        grid-template-columns: 1fr;
    }
}

/* ============ SECTION CARDS ============ */
.pba-edu-section-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
}
.pba-edu-section-card h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.4rem;
    color: #1f2937;
    margin: 0 0 20px 0;
}
.pba-edu-section-card h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin: 20px 0 12px 0;
}

/* ============ LISTS ============ */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: #4b5563;
    line-height: 1.6;
}
.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: bold;
}

.question-list {
    list-style: none;
    padding: 0 0 0 16px;
    margin: 0;
    border-left: 4px solid #2563eb;
}
.question-list li {
    padding: 8px 0 8px 16px;
    color: #4b5563;
    font-style: italic;
}

/* ============ PROCEDURE STEPS ============ */
.procedure-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.procedure-step {
    display: flex;
    gap: 16px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
}
.step-number {
    width: 36px;
    height: 36px;
    background: #1e3a5f;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.step-content {
    flex: 1;
}
.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}
.step-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
}
.step-time {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    background: #fff;
    padding: 4px 10px;
    border-radius: 4px;
}
.step-content p {
    color: #4b5563;
    margin: 0;
    line-height: 1.6;
}

/* ============ HIGHLIGHT CARDS ============ */
.pba-edu-highlight-card {
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}
.pba-edu-highlight-card.green {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}
.pba-edu-highlight-card.green h3 {
    color: #166534;
}
.pba-edu-highlight-card.green p {
    color: #15803d;
}
.pba-edu-highlight-card h3 {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
}
.pba-edu-highlight-card p {
    margin: 0;
    line-height: 1.6;
}

/* ============ SIDEBAR CARDS ============ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.pba-edu-sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}
.pba-edu-sidebar-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px 0;
}
.pba-edu-sidebar-card.muted {
    background: #f8fafc;
}
.pba-edu-sidebar-card.muted h3 {
    color: #64748b;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pba-edu-sidebar-card.purple {
    background: #faf5ff;
    border-color: #e9d5ff;
}
.pba-edu-sidebar-card.purple h3 {
    color: #7c3aed;
}
.pba-edu-sidebar-card.gold {
    background: #fffbeb;
    border-color: #fde68a;
}
.pba-edu-sidebar-card.gold h3 {
    color: #92400e;
}

/* ============ VOCABULARY ============ */
.vocab-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.vocab-item {
    border-left: 3px solid #c9a227;
    padding-left: 12px;
}
.vocab-term {
    display: block;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 4px;
}
.vocab-def {
    font-size: 0.9rem;
    color: #64748b;
}

/* ============ MATERIALS & STANDARDS ============ */
.materials-list,
.standards-list,
.extensions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.materials-list li,
.extensions-list li {
    padding: 8px 0 8px 20px;
    position: relative;
    color: #4b5563;
    font-size: 0.95rem;
}
.materials-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #c9a227;
    font-weight: bold;
}
.extensions-list li::before {
    content: '💡';
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}
.standards-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.85rem;
    color: #64748b;
}
.standards-list li:last-child {
    border-bottom: none;
}

/* ============ MOCK TRIAL STYLES ============ */
.pba-edu-case-connection {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 32px;
    align-items: flex-start;
}
.case-icon {
    width: 56px;
    height: 56px;
    background: #1e3a5f;
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.pba-edu-case-connection h3 {
    font-size: 1rem;
    color: #1e3a5f;
    margin: 0 0 8px 0;
}
.pba-edu-case-connection p {
    color: #4b5563;
    margin: 0;
    line-height: 1.6;
}

/* ============ LEGAL ISSUES ============ */
.legal-issues {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.legal-issue-badge {
    background: linear-gradient(135deg, #1e3a5f, #2d4a6f);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ============ FACTS LIST ============ */
.facts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.facts-list li {
    padding: 12px 0 12px 28px;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
    color: #4b5563;
}
.facts-list li::before {
    content: '📌';
    position: absolute;
    left: 0;
}
.facts-list li:last-child {
    border-bottom: none;
}

/* ============ WITNESSES ============ */
.witnesses-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.witness-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.witness-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #1e3a5f;
    color: #fff;
    flex-wrap: wrap;
    gap: 12px;
}
.witness-card.prosecution .witness-header {
    background: #991b1b;
}
.witness-card.defense .witness-header {
    background: #166534;
}
.witness-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.witness-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.witness-name {
    display: block;
    font-weight: 700;
}
.witness-role {
    font-size: 0.85rem;
    opacity: 0.8;
}
.witness-side-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255,255,255,0.2);
}
.witness-body {
    padding: 20px;
    background: #fff;
}
.witness-section {
    margin-bottom: 16px;
}
.witness-section:last-child {
    margin-bottom: 0;
}
.witness-section h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin: 0 0 8px 0;
}
.witness-section blockquote {
    font-style: italic;
    color: #374151;
    padding-left: 16px;
    border-left: 3px solid #c9a227;
    margin: 0;
    line-height: 1.6;
}
.key-facts,
.weaknesses {
    list-style: none;
    padding: 0;
    margin: 0;
}
.key-facts li {
    padding: 6px 0 6px 24px;
    position: relative;
    color: #374151;
}
.key-facts li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: bold;
}
.weaknesses li {
    padding: 6px 0 6px 24px;
    position: relative;
    color: #374151;
}
.weaknesses li::before {
    content: '⚠';
    position: absolute;
    left: 0;
    color: #d97706;
}

/* ============ JURY INSTRUCTIONS ============ */
.pba-edu-jury-instructions {
    background: linear-gradient(135deg, rgba(201,162,39,0.1) 0%, rgba(201,162,39,0.05) 100%);
    border: 1px solid rgba(201,162,39,0.3);
    border-radius: 12px;
    padding: 24px;
}
.pba-edu-jury-instructions h3 {
    color: #92400e;
    margin: 0 0 12px 0;
}
.pba-edu-jury-instructions p {
    color: #78600d;
    margin: 0 0 12px 0;
}
.pba-edu-jury-instructions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pba-edu-jury-instructions li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: #78600d;
    font-weight: 500;
}
.pba-edu-jury-instructions li::before {
    content: '⚖️';
    position: absolute;
    left: 0;
}

/* ============ ROLES LIST ============ */
.roles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.role-item {
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}
.role-name {
    display: block;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 4px;
}
.role-desc {
    font-size: 0.85rem;
    color: #64748b;
}

/* ============ EXHIBITS LIST ============ */
.exhibits-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.exhibit-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.exhibit-icon {
    font-size: 1.5rem;
}
.exhibit-name {
    display: block;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 2px;
}
.exhibit-desc {
    font-size: 0.85rem;
    color: #64748b;
}

/* ============ QUICK FACTS ============ */
.quick-facts {
    list-style: none;
    padding: 0;
    margin: 0;
}
.quick-facts li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(146,64,14,0.2);
    color: #78600d;
}
.quick-facts li:last-child {
    border-bottom: none;
}
.quick-facts strong {
    color: #92400e;
}

/* ============ PRINT STYLES ============ */
@media print {
    .pba-edu-hero {
        padding: 40px 20px;
        width: 100%;
        left: 0;
        margin-left: 0;
        margin-right: 0;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .back-link,
    .print-btn {
        display: none !important;
    }
    .pba-edu-two-col {
        grid-template-columns: 1fr;
    }
    .pba-edu-section-card,
    .pba-edu-sidebar-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    .witness-card {
        break-inside: avoid;
    }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .pba-edu-hero {
        padding: 60px 16px;
    }
    .pba-edu-hero h1 {
        font-size: 2rem;
    }
    .pba-edu-hero p {
        font-size: 1rem;
    }
    .pba-edu-container {
        padding: 24px 16px;
    }
    .pba-edu-tabs {
        flex-direction: column;
        width: 100%;
    }
    .pba-edu-tab {
        justify-content: center;
    }
    .pba-edu-grid-2,
    .pba-edu-grid-3 {
        grid-template-columns: 1fr;
    }
    .lesson-badges {
        justify-content: center;
    }
    .pba-edu-lesson-page .lesson-hero,
    .pba-edu-trial-page .trial-hero {
        text-align: center;
    }
    .pba-edu-case-connection {
        flex-direction: column;
        text-align: center;
    }
    .case-icon {
        margin: 0 auto;
    }
    .witness-header {
        flex-direction: column;
        text-align: center;
    }
    .witness-info {
        flex-direction: column;
    }
}
