/* ==========================================================================
   Export Process Premium Page
   ========================================================================== */

/* Inner Hero */
.inner-hero--export::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*
     * Background layers (listed front-to-back):
     * Layer 1: Dark navy-to-gold gradient overlay (slightly softened)
     * Layer 2: Your hero image — adjusted position to show more of the top
     */
    background:
        linear-gradient(135deg, rgba(11, 31, 58, 0.88) 0%, rgba(11, 31, 58, 0.5) 60%, rgba(201, 166, 70, 0.1) 100%),
        url('/wp-content/themes/aladin-theme/assets/images/page-export-bg.jpg') center 30% / cover no-repeat scroll;
    z-index: 1;
}

/* Hero Stats Strip */
.hero-stats-strip {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-6);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius-lg);
    padding: var(--space-4) var(--space-5);
    width: fit-content;
}

.hero-stat {
    text-align: center;
}

.hero-stat__number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.hero-stat__label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
}

/* =====================
   Process Section
   ===================== */
.process-section {
    padding: var(--space-4) 0 var(--space-12);
    /* Extremely tight top padding */
    background-color: var(--color-background);
}


/* Timeline */
.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    /* Changed from start to stretch for balanced heights */
    gap: var(--space-4);
    margin-bottom: var(--space-10);
    position: relative;
}

.timeline-item--reverse {
    direction: rtl;
}

.timeline-item--reverse>* {
    direction: ltr;
}

.timeline-item__image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    height: 100%;
    /* Force height to match grid row */
    min-height: 380px;
}

.timeline-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Removes baseline gap */
    flex: 1;
    /* Ensures it fills flex container */
    transition: transform 0.8s ease;
}

.timeline-item:hover .timeline-item__image img {
    transform: scale(1.05);
}

.timeline-item__connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    z-index: 2;
}

.timeline-item__number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--color-accent);
    box-shadow: 0 0 0 6px rgba(201, 166, 70, 0.12);
    flex-shrink: 0;
}

.timeline-item__line {
    width: 2px;
    flex-grow: 1;
    min-height: 220px;
    background: linear-gradient(to bottom, rgba(201, 166, 70, 0.5), transparent);
}

.timeline-item__line-end {
    width: 2px;
    height: 40px;
    background: rgba(201, 166, 70, 0.3);
}

.timeline-item__content {
    background: var(--color-surface);
    border-radius: var(--border-radius-lg);
    padding: var(--space-8);
    /* Increased padding for better internal spacing */
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Align to top to avoid bottom gaps */
}

.timeline-item__content:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(201, 166, 70, 0.3);
}

.timeline-item__icon {
    width: 48px;
    height: 48px;
    background: rgba(201, 166, 70, 0.1);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
    font-size: 1.5rem;
    color: var(--color-primary);
    border: 1px solid rgba(201, 166, 70, 0.2);
}

.timeline-item__icon.icon--accent {
    background: rgba(201, 166, 70, 0.2);
    color: var(--color-accent);
}

.timeline-item__content h3 {
    font-size: 1.4rem;
    margin-bottom: var(--space-2);
    color: var(--color-primary);
}

.timeline-item__content p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
    line-height: 1.7;
}

.process-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.process-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}

.process-checklist li i {
    color: var(--color-accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* =====================
   Documents Section
   ===================== */
.documents-section {
    padding: var(--space-16) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.documents-section .section-badge {
    background: rgba(201, 166, 70, 0.15);
}

.documents-section .section-title h2 {
    color: var(--color-surface);
}

.documents-section .section-title p {
    color: rgba(255, 255, 255, 0.7);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

.doc-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: var(--space-4);
    text-align: center;
    transition: var(--transition-smooth);
}

.doc-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(201, 166, 70, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.doc-card i {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: var(--space-2);
    display: block;
}

.doc-card h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-weight: 600;
}

.doc-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

/* =====================
   FAQ Section
   ===================== */
.faq-section {
    padding: var(--space-16) 0;
    background-color: var(--color-background);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-10);
    align-items: start;
}

.faq-intro {
    position: sticky;
    top: 120px;
}

.faq-intro h2 {
    font-size: 2.75rem;
    margin: var(--space-2) 0 var(--space-4);
}

.faq-intro p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-5);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background: var(--color-surface);
    transition: var(--transition-smooth);
}

.faq-item.is-open {
    border-color: rgba(201, 166, 70, 0.4);
    box-shadow: 0 4px 16px rgba(201, 166, 70, 0.1);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: var(--space-4) var(--space-5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    cursor: pointer;
    text-align: left;
}

.faq-question span {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-primary);
}

.faq-icon {
    font-size: 1.25rem;
    color: var(--color-accent);
    flex-shrink: 0;
    transition: transform 0.35s ease;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.is-open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 var(--space-5) var(--space-4);
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 1100px) {
    .documents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .timeline::before {
        left: 32px;
    }

    .timeline-item,
    .timeline-item--reverse {
        grid-template-columns: auto 1fr;
        direction: ltr;
    }

    .timeline-item__image {
        display: none;
    }

    .timeline-item__connector {
        align-items: center;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-intro {
        position: relative;
        top: 0;
    }

    .hero-stats-strip {
        flex-wrap: wrap;
    }
}

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

    .timeline-item__number {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
    
    .inner-hero__title {
        font-size: 3rem;
    }
}