/* Procedure Pages Styles */
.procedure-page { padding-top: 200px !important; }

/* ── Procedure Hero ────────────────────────────────────────────────────── */
.procedure-hero {
    text-align: center;
    padding: 56px 0 48px;
    background: linear-gradient(160deg, var(--ivory-color) 0%, var(--beige-color) 100%);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

.procedure-hero .container {
    max-width: 860px;
}

.procedure-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    color: var(--primary-color);
    line-height: 1.15;
    letter-spacing: -0.5px;
    font-weight: 600;
    margin: 0 auto 20px;
    max-width: 780px;
}

.procedure-subtitle {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0;
}

/* Decorative gold divider below title */
.procedure-hero::after {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: var(--secondary-color);
    margin: 28px auto 0;
    border-radius: 2px;
}
/* ─────────────────────────────────────────────────────────────────────── */

.procedure-header {
    text-align: center;
    margin-bottom: 48px;
}

.procedure-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.procedure-header .subtitle {
    font-size: 1.15rem;
    color: #666;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

.procedure-content {
    max-width: 780px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #333;
}

.procedure-content h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 56px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--secondary-color);
}

.procedure-content h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 36px 0 14px;
}

.procedure-content p {
    margin-bottom: 18px;
}

.procedure-content .lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
    border-left: 4px solid var(--secondary-color);
    padding-left: 24px;
    margin-bottom: 32px;
}

.procedure-content ul, .procedure-content ol {
    margin: 16px 0 24px 24px;
}

.procedure-content li {
    margin-bottom: 10px;
    line-height: 1.75;
}

.procedure-content strong {
    color: var(--primary-color);
}

/* Quick Facts Box */
.quick-facts {
    background: linear-gradient(135deg, rgba(25, 37, 61, 0.04), rgba(200, 168, 106, 0.06));
    border: 1px solid rgba(200, 168, 106, 0.25);
    border-radius: 12px;
    padding: 32px;
    margin: 40px 0;
}

.quick-facts h3 {
    margin-top: 0 !important;
    font-size: 1.15rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.quick-facts table {
    width: 100%;
    border-collapse: collapse;
}

.quick-facts td {
    padding: 10px 0;
    border-bottom: 1px solid rgba(25, 37, 61, 0.08);
    vertical-align: top;
}

.quick-facts td:first-child {
    font-weight: 600;
    color: var(--primary-color);
    width: 40%;
    padding-right: 20px;
}

/* ── FAQ Row Layout — Question pill + slide-right answer ──────────────── */
.faq-section,
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 36px 0 56px;
    overflow: visible;
}

.faq-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
    padding: 0;
    border-bottom: none;
}

/* Remove old hover bridge */
.faq-item::before {
    display: none;
}

/* Question pill button */
.faq-question {
    background: var(--primary-color, #19253D);
    color: rgba(255, 255, 255, 0.85);
    border: 1.5px solid rgba(200, 168, 106, 0.35);
    border-radius: 999px;
    padding: 11px 24px 11px 16px;
    font-size: 13.5px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    line-height: 1.4;
    text-align: left;
    flex-shrink: 0;
    max-width: min(440px, 100%);
    white-space: normal;
}

.faq-question::before {
    content: 'Q';
    font-weight: 800;
    font-size: 10px;
    color: var(--secondary-color, #C8A86A);
    background: rgba(200, 168, 106, 0.15);
    padding: 3px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    line-height: 1;
    font-family: 'Outfit', sans-serif;
}

/* Hide chevron */
.faq-question .fa-chevron-down,
.faq-question .fa-solid.fa-chevron-down {
    display: none;
}

/* Active state — question pill */
.faq-item.faq-open .faq-question {
    background: var(--secondary-color, #C8A86A);
    color: var(--primary-color, #19253D);
    border-color: var(--secondary-color, #C8A86A);
}

.faq-item.faq-open .faq-question::before {
    color: var(--primary-color, #19253D);
    background: rgba(25, 37, 61, 0.15);
}

/* Answer bubble — slides in to the right */
.faq-answer {
    /* Override old absolute tooltip */
    position: static;
    bottom: auto;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    visibility: visible;
    z-index: auto;
    width: auto;

    /* Slide sizing */
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;

    /* Reversed colours: soft gold background + dark blue text */
    background: rgba(200, 168, 106, 0.92);
    color: var(--primary-color, #19253D);
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    line-height: 1.65;
    box-shadow: 0 6px 24px rgba(200, 168, 106, 0.28);
    border: none;
    pointer-events: none;

    transition:
        max-width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease,
        padding 0.25s ease;
}

.faq-item.faq-open .faq-answer {
    max-width: 540px;
    opacity: 1;
    padding: 12px 20px;
    pointer-events: auto;
    white-space: normal;
    transition:
        max-width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.2s ease 0.08s,
        padding 0.2s ease;
}

/* Remove old label and tail */
.faq-answer::before,
.faq-answer::after {
    display: none;
}

/* tooltip-below no longer applicable */
.faq-answer.tooltip-below {
    top: auto;
    bottom: auto;
    transform: none;
}

.faq-answer p {
    margin: 0;
    color: var(--primary-color, #19253D);
    font-size: 13.5px;
    line-height: 1.65;
    white-space: normal;
    min-width: 200px;
}

.faq-item h3 {
    margin: 0;
    font-size: 1rem;
}

@media (max-width: 700px) {
    .faq-item {
        flex-wrap: wrap;
    }
    .faq-item.faq-open .faq-answer {
        max-width: 100%;
        flex: 0 0 100%;
        margin-top: 4px;
    }
    .faq-question {
        font-size: 13px;
        padding: 9px 18px 9px 14px;
    }
}



/* Candidate Section */
.candidate-box {
    background: var(--primary-color);
    color: #fff;
    border-radius: 12px;
    padding: 36px;
    margin: 48px 0;
}

.candidate-box h2 {
    color: var(--secondary-color) !important;
    border-bottom-color: rgba(200, 168, 106, 0.3) !important;
    margin-top: 0 !important;
}

.candidate-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.candidate-box li {
    padding: 10px 0 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.candidate-box li:last-child {
    border-bottom: none;
}

.candidate-box li i.fa-check,
.candidate-box li .fa-solid.fa-check {
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* CTA Section */
.procedure-cta {
    text-align: center;
    padding: 60px 32px;
    background: linear-gradient(135deg, #FAF7F0, #f5f0e6);
    border-radius: 16px;
    margin: 56px 0 0;
}

.procedure-cta h2 {
    border: none !important;
    margin-top: 0 !important;
}

.procedure-cta .btn-cta {
    display: inline-block;
    margin-top: 20px;
    padding: 16px 40px;
    background: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.procedure-cta .btn-cta:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 32px;
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Related Procedures */
.related-procedures {
    margin: 56px 0;
}

.related-procedures h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--secondary-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.related-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 20px;
    background: rgba(25, 37, 61, 0.03);
    border: 1px solid rgba(25, 37, 61, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.related-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(200,168,106,0.06), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: 12px;
}

.related-card:hover {
    border-color: var(--secondary-color);
    background: rgba(200, 168, 106, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(25, 37, 61, 0.10);
}

.related-card:hover::before {
    opacity: 1;
}

.related-card i.fa-arrow-right {
    font-size: 0.75rem;
    color: var(--secondary-color);
    transition: transform 0.2s ease;
}

.related-card:hover i.fa-arrow-right {
    transform: translateX(4px);
}

.related-card h3 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.3;
}

.related-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* Legacy .related-links fallback */
.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.related-links a {
    display: inline-block;
    padding: 8px 18px;
    background: #fff;
    border: 1px solid rgba(25, 37, 61, 0.12);
    border-radius: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.related-links a:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .procedure-page { padding-top: 140px !important; }
    .quick-facts { padding: 20px; }
    .candidate-box { padding: 24px; }
    .procedure-cta { padding: 40px 20px; }
}
