/* ============================================================
   Guide / Documentation Pages
   ============================================================ */

/* --- Hero (Index) --- */
.guide-hero {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.guide-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.guide-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200,169,81,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.guide-hero-content { position: relative; z-index: 1; }
.guide-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
}
.guide-hero-subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.75);
    max-width: 600px;
    line-height: 1.8;
}
.guide-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(200,169,81,0.15);
    color: #c8a951;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(200,169,81,0.25);
}

/* --- Hero Dual (Split Index) --- */
.guide-hero-dual {
    display: flex;
    gap: 0;
    position: relative;
    z-index: 1;
}
.guide-hero-half {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 40px;
    position: relative;
}
.guide-hero-half--candidate { border-left: 1px solid rgba(255,255,255,0.12); }
html[dir="ltr"] .guide-hero-half--candidate { border-left: none; border-right: 1px solid rgba(255,255,255,0.12); }
.guide-hero-half-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
}
.guide-hero-half--employer .guide-hero-half-badge { background: rgba(20,184,166,0.2); }
.guide-hero-half-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
}
.guide-hero-half-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    max-width: 380px;
    margin-bottom: 24px;
}
.guide-hero-half-btn {
    padding: 12px 32px !important;
    font-size: 15px !important;
}
.guide-hero-half--employer .guide-hero-half-btn {
    background: #14b8a6;
    color: #fff;
}
.guide-hero-half--employer .guide-hero-half-btn:hover {
    background: #0d9488;
    color: #fff;
}

/* --- Cards Section --- */
.guide-cards-section {
    padding: 60px 0 80px;
    background: var(--bg-body, #f8fafc);
}
.guide-cards-section .section-title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-primary, #1e293b);
}
.guide-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    padding: 36px 24px 28px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}
.guide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}
.guide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-color: transparent;
    text-decoration: none;
    color: inherit;
}
.guide-card:hover::before { opacity: 1; }
.guide-card-icon {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 30px;
    color: #fff;
    flex-shrink: 0;
    position: relative;
}
.guide-card-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 60%);
}
.guide-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary, #1e293b);
}
.guide-card-desc {
    font-size: 13px;
    color: var(--text-secondary, #64748b);
    margin-bottom: 20px;
    line-height: 1.8;
    flex: 1;
}
.guide-card-link {
    color: var(--primary, #1a237e);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}
.guide-card:hover .guide-card-link { gap: 12px; }

/* --- Feature Hero (Show) --- */
.guide-feature-hero {
    padding: 0;
    position: relative;
    overflow: hidden;
    color: #fff;
}
.guide-feature-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}
/* Split hero layout */
.guide-hero-split {
    display: flex;
    min-height: 420px;
    position: relative;
    z-index: 1;
}
.guide-hero-img-side {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 40px;
}
.guide-hero-character {
    max-width: 100%;
    max-height: 450px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    margin: -50px;
}
.guide-hero-content-side {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 50px;
}
html[dir="rtl"] .guide-hero-split { flex-direction: row-reverse; }
html[dir="ltr"] .guide-hero-split { flex-direction: row; }

.guide-feature-icon {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.15);
}
.guide-feature-hero h1 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
}
.guide-feature-hero .tagline {
    font-size: 17px;
    opacity: 0.8;
    max-width: 600px;
    line-height: 1.7;
}

/* --- Breadcrumb --- */
.guide-breadcrumb {
    padding: 16px 0;
    background: rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}
.guide-breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.guide-breadcrumb a:hover { color: #fff; }
.guide-breadcrumb .separator {
    margin: 0 8px;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
}
.guide-breadcrumb .current {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

/* --- Content Split Layout (Text right + SVG left in RTL) --- */
.guide-content-split {
    padding: 60px 0 80px;
    background: #fff;
}
.guide-text-col {
    order: 2;
}
.guide-svg-col {
    order: 1;
}
html[dir="ltr"] .guide-text-col { order: 1; }
html[dir="ltr"] .guide-svg-col { order: 2; }

/* --- Description Block --- */
.guide-description-block {
    margin-bottom: 40px;
}
.guide-desc-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary, #1e293b);
}
.desc-text {
    font-size: 16px;
    color: var(--text-secondary, #64748b);
    line-height: 1.9;
    margin-bottom: 0;
}

/* --- Benefits Block --- */
.guide-benefits-block {
    margin-bottom: 48px;
}
.guide-benefits-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary, #1e293b);
}
.guide-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.guide-benefit-card {
    background: var(--bg-body, #f8fafc);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 24px 20px;
    transition: all 0.3s;
    display: flex;
    gap: 14px;
    flex-wrap: nowrap;
    flex-direction: column;
    align-content: center;
    align-items: center;
}
.guide-benefit-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transform: translateY(-3px);
    border-color: transparent;
}
.benefit-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}
.benefit-card-text {
    font-size: 14px;
    color: var(--text-primary, #1e293b);
    line-height: 1.7;
    margin: 0;
    font-weight: 500;
    text-align: center;
}

/* --- Hero CTA Button (Show page) --- */
.btn-guide-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 44px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    background: #fff;
    color: #1a237e;
    text-decoration: none;
    border: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    transition: all 0.3s;
}
.btn-guide-hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.3);
    color: #1a237e;
    text-decoration: none;
}

/* (hero image is now background via .guide-hero-img-side) */

/* --- SVG Illustration (sticky sidebar) --- */
.guide-illustration-wrap {
    position: sticky;
    top: 100px;
}
.guide-illustration-wrap svg {
    width: 100%;
    height: auto;
    display: block;
}
.guide-feature-img {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* --- Steps Block --- */
.guide-steps-block {
    margin-bottom: 0;
}
.guide-steps-title {
    font-size: 28px;
    font-weight: 800;
    text-align: start;
    margin-bottom: 32px;
    color: var(--text-primary, #1e293b);
}
.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 36px;
    padding: 28px;
    border-radius: 16px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s;
}
.guide-step:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.guide-step-number {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.guide-step-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary, #1e293b);
}
.guide-step-content p {
    color: var(--text-secondary, #64748b);
    line-height: 1.7;
    margin: 0;
    font-size: 14px;
}

/* --- CTA --- */
.guide-cta {
    padding: 70px 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.guide-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 50%);
    border-radius: 50%;
}
.guide-cta .container { position: relative; z-index: 1; }
.guide-cta h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}
.guide-cta p {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.guide-cta .btn-guide-cta {
    padding: 18px 56px;
    font-size: 19px;
    font-weight: 800;
    border-radius: 50px;
    background: #fff;
    color: #1a237e;
    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2), 0 0 60px rgba(255,255,255,0.15);
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: ctaPulse 2.5s ease-in-out infinite;
}
.guide-cta .btn-guide-cta:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 50px rgba(0,0,0,0.3), 0 0 80px rgba(255,255,255,0.2);
    animation: none;
}
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(0,0,0,0.2), 0 0 60px rgba(255,255,255,0.15); }
    50% { box-shadow: 0 8px 30px rgba(0,0,0,0.2), 0 0 90px rgba(255,255,255,0.25); }
}

/* --- Nav (Prev/Next) --- */
.guide-nav {
    padding: 40px 0;
    background: var(--bg-body, #f8fafc);
    border-top: 1px solid rgba(0,0,0,0.06);
}
.guide-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-primary, #1e293b);
}
.guide-nav-link:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--primary, #1a237e);
    color: var(--primary, #1a237e);
    text-decoration: none;
    transform: translateY(-2px);
}
.guide-nav-link .nav-label {
    font-size: 12px;
    color: var(--text-secondary, #64748b);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.guide-nav-link .nav-title {
    font-size: 15px;
    font-weight: 700;
}
.guide-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary, #64748b);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}
.guide-nav-back:hover { color: var(--primary, #1a237e); text-decoration: none; }

/* --- RTL/LTR --- */
html[dir="ltr"] .guide-card-link .fa-arrow-left { transform: scaleX(-1); }
html[dir="ltr"] .guide-nav-link .fa-arrow-left { transform: scaleX(-1); }
html[dir="ltr"] .guide-nav-link .fa-arrow-right { transform: scaleX(-1); }

/* --- Bottom CTA Section (Index) --- */
.guide-bottom-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.guide-bottom-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(200,169,81,0.08) 0%, transparent 60%);
    border-radius: 50%;
}

/* --- Employer variant --- */
.guide-hero--employer {
    background: linear-gradient(135deg, #064e3b 0%, #0d9488 50%, #14b8a6 100%);
}
.guide-hero--employer .guide-hero-badge {
    background: rgba(20,184,166,0.2);
    color: #99f6e4;
    border-color: rgba(20,184,166,0.3);
}
.guide-bottom-cta--employer {
    background: linear-gradient(135deg, #064e3b 0%, #0d9488 50%, #14b8a6 100%);
}
.guide-bottom-cta--employer .btn-guide-hero-cta:hover {
    background: #0d9488 !important;
    color: #fff !important;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .guide-hero-title { font-size: 32px; }
    .guide-feature-hero h1 { font-size: 32px; }
    .guide-feature-icon { width: 80px; height: 80px; font-size: 34px; border-radius: 22px; }
    .guide-cards-section { padding: 40px 0 60px; }
    .guide-hero-split { flex-direction: column-reverse !important; min-height: auto; }
    .guide-hero-img-side { width: 100%; min-height: auto; padding: 30px 20px; }
    .guide-hero-content-side { width: 100%; padding: 40px 24px; text-align: center; align-items: center; }
    .btn-guide-hero-cta { margin-bottom: 30px; }
    .guide-illustration-wrap { position: static; margin-top: 30px; }
    .guide-text-col, .guide-svg-col { order: unset !important; }
    .guide-content-split { padding: 40px 0 60px; }
    .guide-benefits-grid { grid-template-columns: 1fr 1fr; }

    /* Hero dual stacked on tablet */
    .guide-hero-dual { flex-direction: column; }
    .guide-hero-half { padding: 40px 30px; }
    .guide-hero-half--candidate { border-left: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
    html[dir="ltr"] .guide-hero-half--candidate { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
}
@media (max-width: 575px) {
    .guide-hero { padding: 50px 0 40px; }
    .guide-hero-title { font-size: 26px; }
    .guide-hero-half { padding: 30px 20px; }
    .guide-hero-half-title { font-size: 22px; }
    .guide-hero-half-desc { font-size: 13px; }
    .guide-feature-hero h1 { font-size: 26px; }
    .guide-feature-icon { width: 64px; height: 64px; font-size: 28px; border-radius: 18px; }
    .guide-step { flex-direction: column; gap: 16px; padding: 20px; }
    .guide-benefits-grid { grid-template-columns: 1fr; }
    .guide-card { padding: 24px 16px 20px; }
    .guide-card-icon { width: 60px; height: 60px; font-size: 24px; }
    .guide-cta h2 { font-size: 24px; }
    .guide-hero-img-side { min-height: auto; padding: 20px 16px; }
    .guide-hero-character { max-height: 260px; }
    .guide-hero-content-side { padding: 30px 16px; }

    /* Nav: icons only on mobile */
    .guide-nav { padding: 20px 0; }
    .guide-nav-link { padding: 14px; border-radius: 50%; width: 50px; height: 50px; justify-content: center; gap: 0; }
    .guide-nav-link div { display: none; }
    .guide-nav-link i { margin: 0 !important; font-size: 16px !important; }
    .guide-nav-back { width: 50px; height: 50px; padding: 0; border-radius: 50%; background: #fff; border: 1px solid rgba(0,0,0,0.06); justify-content: center; font-size: 0; gap: 0; }
    .guide-nav-back i { font-size: 16px; }
}
