/**
 * PBA Immigration Resources - Frontend Styles
 * Green theme as requested
 */

/* ============ VARIABLES ============ */
:root {
    --pba-immig-primary: #047857;
    --pba-immig-primary-dark: #065f46;
    --pba-immig-primary-light: #10b981;
    --pba-immig-gold: #c9a227;
    --pba-immig-text: #1f2937;
    --pba-immig-text-light: #64748b;
    --pba-immig-bg: #f8fafc;
    --pba-immig-white: #ffffff;
    --pba-immig-border: #e2e8f0;
}

/* ============ HERO SECTION (GREEN) ============ */
.pba-immig-hero {
    background: linear-gradient(135deg, var(--pba-immig-primary) 0%, var(--pba-immig-primary-dark) 100%);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.pba-immig-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.pba-immig-hero h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    margin: 0 0 16px 0;
    color: #fff;
    line-height: 1.2;
}

.pba-immig-hero p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
    line-height: 1.6;
}

.pba-immig-hero .back-link {
    display: inline-block;
    color: #a7f3d0;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 20px;
    text-decoration: none;
    transition: color 0.2s;
}

.pba-immig-hero .back-link:hover {
    color: #fff;
}

/* ============ CONTAINER ============ */
.pba-immig-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ============ HUB GRID ============ */
.pba-immig-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.pba-immig-card {
    background: var(--pba-immig-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--pba-immig-border);
    border-top: 4px solid;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.pba-immig-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.pba-immig-card .card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.pba-immig-card .card-icon svg {
    width: 32px;
    height: 32px;
}

.pba-immig-card h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pba-immig-text);
    margin: 0 0 10px 0;
}

.pba-immig-card p {
    font-size: 0.95rem;
    color: var(--pba-immig-text-light);
    margin: 0;
    line-height: 1.6;
    flex: 1;
}

.pba-immig-card .card-link {
    margin-top: 16px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============ OFFICIAL RESOURCES ============ */
.pba-immig-official-resources {
    background: var(--pba-immig-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--pba-immig-border);
    padding: 32px;
    text-align: center;
}

.pba-immig-official-resources h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: var(--pba-immig-text);
}

.resources-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.resources-buttons a {
    background: #f1f5f9;
    color: #334155;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.resources-buttons a:hover {
    background: #e2e8f0;
}

/* ============ GUIDE PAGE STYLES ============ */
.pba-immig-guide-page {
    min-height: 100vh;
    background: var(--pba-immig-bg);
}

.pba-immig-intro {
    background: var(--pba-immig-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--pba-immig-border);
    padding: 32px;
    margin-bottom: 32px;
}

.pba-immig-intro p {
    font-size: 1.1rem;
    color: var(--pba-immig-text-light);
    line-height: 1.8;
    margin: 0;
}

/* ============ INFO BOXES ============ */
.pba-immig-info-box {
    padding: 24px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 32px;
    border-left: 4px solid;
}

.pba-immig-info-box h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.pba-immig-info-box p {
    margin: 0;
    line-height: 1.7;
}

.pba-immig-info-box ul {
    margin: 12px 0 0 0;
    padding-left: 20px;
}

.pba-immig-info-box li {
    margin-bottom: 6px;
}

.pba-immig-info-box .box-link {
    display: inline-block;
    margin-top: 12px;
    font-weight: 700;
    text-decoration: none;
}

.pba-immig-box-warning {
    background: #fefce8;
    border-color: #eab308;
}
.pba-immig-box-warning h3 { color: #854d0e; }
.pba-immig-box-warning p, .pba-immig-box-warning li { color: #a16207; }
.pba-immig-box-warning .box-link { color: #854d0e; }

.pba-immig-box-danger {
    background: #fef2f2;
    border-color: #dc2626;
}
.pba-immig-box-danger h3 { color: #991b1b; }
.pba-immig-box-danger p, .pba-immig-box-danger li { color: #b91c1c; }

.pba-immig-box-info {
    background: #eff6ff;
    border-color: #2563eb;
}
.pba-immig-box-info h3 { color: #1e40af; }
.pba-immig-box-info p, .pba-immig-box-info li { color: #1d4ed8; }

.pba-immig-box-primary {
    background: #ecfdf5;
    border-color: #10b981;
}
.pba-immig-box-primary h3 { color: #065f46; }
.pba-immig-box-primary p, .pba-immig-box-primary li { color: #047857; }

/* ============ SECTIONS ============ */
.pba-immig-section {
    margin-bottom: 40px;
}

.pba-immig-section h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pba-immig-text);
    margin: 0 0 20px 0;
}

.section-intro {
    color: var(--pba-immig-text-light);
    margin-bottom: 20px;
}

/* ============ WHITE CARD ============ */
.pba-immig-white-card {
    background: var(--pba-immig-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--pba-immig-border);
    padding: 32px;
    margin-bottom: 32px;
}

.pba-immig-white-card h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 24px 0;
}

/* ============ TWO COLUMN ============ */
.pba-immig-two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.pba-immig-two-col .col-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.pba-immig-two-col .col-title.color-blue { color: #1e40af; }
.pba-immig-two-col .col-title.color-green { color: #166534; }

.pba-immig-two-col ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.pba-immig-two-col li {
    color: var(--pba-immig-text-light);
    margin-bottom: 8px;
}

/* ============ SIMPLE CARDS ============ */
.pba-immig-simple-cards {
    display: grid;
    gap: 16px;
}

.simple-card {
    background: var(--pba-immig-white);
    border: 1px solid var(--pba-immig-border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.simple-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pba-immig-text);
    margin: 0 0 8px 0;
}

.simple-card p {
    font-size: 0.9rem;
    color: var(--pba-immig-text-light);
    margin: 0;
}

/* ============ TWO CARDS ============ */
.pba-immig-two-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.feature-card {
    background: var(--pba-immig-white);
    border-radius: 12px;
    border: 1px solid var(--pba-immig-border);
    padding: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.feature-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.feature-card .card-icon {
    width: 24px;
    height: 24px;
}

.feature-card .card-icon.color-blue { color: #2563eb; }
.feature-card .card-icon.color-green { color: #16a34a; }
.feature-card .card-icon.color-red { color: #dc2626; }

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--pba-immig-text);
}

.feature-card p {
    color: var(--pba-immig-text-light);
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.feature-card .card-link {
    font-weight: 700;
    text-decoration: none;
}

.feature-card .card-link.color-blue { color: #2563eb; }
.feature-card .card-link.color-green { color: #16a34a; }

/* ============ CATEGORY CARDS ============ */
.pba-immig-category-cards {
    display: grid;
    gap: 24px;
}

.category-card {
    background: var(--pba-immig-white);
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.category-card.border-blue { border-color: #2563eb; }
.category-card.border-green { border-color: #16a34a; }
.category-card.border-purple { border-color: #9333ea; }

.category-card h4 {
    font-weight: 700;
    color: var(--pba-immig-text);
    margin: 0 0 8px 0;
}

.category-card p {
    font-size: 0.9rem;
    color: var(--pba-immig-text-light);
    margin: 0;
}

/* ============ PROCESS STEPS ============ */
.pba-immig-process-steps {
    display: grid;
    gap: 24px;
}

.process-step {
    background: var(--pba-immig-white);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--pba-immig-border);
}

.process-step h4 {
    font-weight: 700;
    color: var(--pba-immig-text);
    margin: 0 0 8px 0;
}

.process-step p {
    color: var(--pba-immig-text-light);
    margin: 0 0 12px 0;
    font-size: 0.95rem;
}

.form-tag {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: monospace;
}

/* ============ FORMS GRID ============ */
.pba-immig-forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.form-link {
    display: block;
    padding: 16px;
    border: 1px solid var(--pba-immig-border);
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}

.form-link:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.form-link .form-number {
    display: block;
    font-weight: 700;
    color: #1e40af;
    font-size: 1rem;
}

.form-link .form-name {
    display: block;
    font-size: 0.75rem;
    color: var(--pba-immig-text-light);
    margin-top: 4px;
}

/* ============ RESOURCES ============ */
.pba-immig-resources {
    display: grid;
    gap: 16px;
}

.resource-card {
    display: block;
    background: var(--pba-immig-white);
    border: 1px solid var(--pba-immig-border);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.resource-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--pba-immig-primary);
}

.resource-card h4 {
    font-weight: 700;
    color: var(--pba-immig-text);
    margin: 0 0 8px 0;
    transition: color 0.2s;
}

.resource-card:hover h4 {
    color: var(--pba-immig-primary);
}

.resource-card p {
    color: var(--pba-immig-text-light);
    margin: 0;
    font-size: 0.9rem;
}

/* ============ TWO COLUMN CONTENT ============ */
.pba-immig-two-col-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.content-column h2.with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.content-column .col-icon {
    width: 24px;
    height: 24px;
    color: var(--pba-immig-gold);
}

.content-column p {
    color: var(--pba-immig-text-light);
    margin-bottom: 16px;
}

.content-column ul, .content-column ol {
    padding-left: 20px;
    margin: 0;
}

.content-column li {
    color: var(--pba-immig-text-light);
    margin-bottom: 12px;
    line-height: 1.6;
}

/* ============ ELIGIBILITY ============ */
.pba-immig-eligibility {
    background: #f8fafc;
    border: 1px solid var(--pba-immig-border);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 40px;
}

.pba-immig-eligibility h2 {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0 0 16px 0;
}

.pba-immig-eligibility p {
    color: var(--pba-immig-text-light);
    margin-bottom: 20px;
}

.grounds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.ground-item {
    background: var(--pba-immig-white);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    color: var(--pba-immig-text-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* ============ RIGHTS SECTION ============ */
.pba-immig-rights-section {
    background: var(--pba-immig-white);
    border-radius: 12px;
    border: 1px solid var(--pba-immig-border);
    padding: 32px;
    margin-bottom: 32px;
}

.pba-immig-rights-section h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--pba-immig-gold);
}

.pba-immig-rights-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pba-immig-rights-section li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.pba-immig-rights-section .check-icon {
    width: 24px;
    height: 24px;
    color: var(--pba-immig-gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.pba-immig-rights-section li span:last-child {
    color: var(--pba-immig-text-light);
    line-height: 1.6;
}

/* ============ LOCATIONS GRID ============ */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--pba-immig-text-light);
    font-size: 0.9rem;
}

.location-item .loc-icon {
    width: 16px;
    height: 16px;
    color: #2563eb;
}

/* ============ SAFETY PLAN ============ */
.pba-immig-safety-plan {
    background: #f8fafc;
    border: 1px solid var(--pba-immig-border);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
}

.pba-immig-safety-plan h2 {
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px 0;
}

.safety-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.safety-step h4 {
    font-weight: 700;
    color: var(--pba-immig-text);
    margin: 0 0 8px 0;
}

.safety-step p {
    font-size: 0.9rem;
    color: var(--pba-immig-text-light);
    margin: 0;
}

/* ============ TOOL CARDS ============ */
.pba-immig-tool-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tool-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-radius: 12px;
    gap: 20px;
    flex-wrap: wrap;
}

.tool-card.bg-teal { background: #f0fdfa; border: 1px solid #99f6e4; }
.tool-card.bg-blue { background: #eff6ff; border: 1px solid #bfdbfe; }
.tool-card.bg-purple { background: #faf5ff; border: 1px solid #e9d5ff; }

.tool-card .tool-info h3 {
    font-weight: 700;
    margin: 0 0 4px 0;
}

.tool-card.bg-teal .tool-info h3 { color: #134e4a; }
.tool-card.bg-blue .tool-info h3 { color: #1e40af; }
.tool-card.bg-purple .tool-info h3 { color: #581c87; }

.tool-card .tool-info p {
    margin: 0;
    font-size: 0.9rem;
}

.tool-card.bg-teal .tool-info p { color: #0d9488; }
.tool-card.bg-blue .tool-info p { color: #2563eb; }
.tool-card.bg-purple .tool-info p { color: #7c3aed; }

.tool-button {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    white-space: nowrap;
}

.tool-button.color-teal { background: #0d9488; }
.tool-button.color-teal:hover { background: #0f766e; }
.tool-button.color-blue { background: #2563eb; }
.tool-button.color-blue:hover { background: #1d4ed8; }
.tool-button.color-purple { background: #7c3aed; }
.tool-button.color-purple:hover { background: #6d28d9; }

/* ============ CTA BUTTON ============ */
.pba-immig-cta {
    text-align: center;
    margin: 40px 0;
}

.cta-button {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s;
}

.cta-button.style-blue {
    background: #2563eb;
}

.cta-button.style-blue:hover {
    background: #1d4ed8;
}

/* ============ LINKS GRID ============ */
.pba-immig-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.link-button {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.link-button:hover {
    background: #e2e8f0;
}

/* ============ QUESTIONS ============ */
.pba-immig-questions {
    display: grid;
    gap: 16px;
}

.question-card {
    background: var(--pba-immig-white);
    border: 1px solid var(--pba-immig-border);
    border-radius: 8px;
    padding: 20px;
}

.question-card h4 {
    font-weight: 600;
    color: var(--pba-immig-text);
    margin: 0 0 8px 0;
}

.question-card .answer {
    color: var(--pba-immig-gold);
    margin: 0;
    padding-left: 16px;
    border-left: 2px solid #fcd34d;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .pba-immig-hero {
        padding: 60px 20px;
    }
    
    .pba-immig-hero h1 {
        font-size: 2rem;
    }
    
    .pba-immig-container {
        padding: 30px 16px;
    }
    
    .pba-immig-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .tool-button {
        width: 100%;
        text-align: center;
    }
}
