/* =========================================================
   Careers & Agents pages — shared modern styling
   Used by: resources/views/website/careers.blade.php
            resources/views/website/Agents.blade.php

   Builds on top of the site's existing structural classes
   (.investigtion, .chosing, .choosing_title, .benefits,
   .benefits_info, .adventure, .adventure_info, .obj_title —
   already used on the About page) instead of inventing a
   parallel layout system, so both pages stay visually
   consistent with the rest of safer.travel. Brand tokens
   match the custom properties already defined in style.css
   (--main-color:#1c4482, --arrow-color:#210d3a, --icon-color:#ffe600).
   ========================================================= */

:root {
    --cta-primary: #1c4482;
    --cta-primary-dark: #123058;
    --cta-accent: #ffe600;
}

/* ---- intro / hero copy block ---- */
.page-intro {
    max-width: 820px;
    margin: 0 auto 32px;
    text-align: center;
}

.page-intro h5 {
    font-size: 28px;
    font-weight: 700;
    color: #210d3a;
    margin-bottom: 16px;
}

.page-intro>p {
    font-size: 16px;
    line-height: 1.9;
    color: #5a5a5a;
}

.section-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--cta-primary);
    margin: 12px 0 16px;
    position: relative;
    padding-inline-start: 14px;
}

.section-heading::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 4px;
    background: var(--cta-accent);
}

.section-text {
    font-size: 16px;
    line-height: 1.9;
    color: #5a5a5a;
}

/* ---- perk / benefit cards (enhances the existing .benefits / .benefits_info grid) ---- */
.benefits_info {
    position: relative;
    height: 100%;
    padding: 32px 24px 26px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eef1f6;
    box-shadow: 0 6px 20px rgba(28, 68, 130, .06);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* thin accent bar along the top edge, revealed on hover */
.benefits_info::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cta-primary), var(--cta-accent));
    transform: scaleX(0);
    transform-origin: 0 0;
    transition: transform .3s ease;
}

.benefits_info:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(28, 68, 130, .16);
    border-color: #dbe6f5;
}

.benefits_info:hover::before {
    transform: scaleX(1);
}

.benefits .row>div {
    margin-bottom: 24px;
    display: flex;
}

.perk-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    margin-bottom: 18px;
    background: linear-gradient(145deg, var(--cta-primary), var(--cta-primary-dark));
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
    transition: transform .3s ease, box-shadow .3s ease;
    box-shadow: 0 8px 18px rgba(28, 68, 130, .28);
}

.benefits_info:hover .perk-icon {
    transform: scale(1.08) rotate(-6deg);
}

.benefits_info h6 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #210d3a;
}

.benefits_info p {
    font-size: 14.5px;
    line-height: 1.8;
    color: #6b6b6b;
    margin: 0;
}

/* ---- Agents page: warm gold/partner accent, distinct from Careers' blue ---- */
.agents-page .benefits_info::before {
    background: linear-gradient(90deg, #b98600, var(--cta-accent));
}

.agents-page .benefits_info:hover {
    box-shadow: 0 18px 36px rgba(185, 134, 0, .18);
    border-color: #f6e6b8;
}

.agents-page .perk-icon {
    background: linear-gradient(145deg, #d9a406, #8a6300);
    box-shadow: 0 8px 18px rgba(185, 134, 0, .32);
}

/* ---- CTA banner (Apply / Join button — shared by both pages) ---- */
.cta-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0;
    padding: 34px 36px;
    border-radius: 20px;
    background: linear-gradient(120deg, var(--cta-primary) 0%, var(--cta-primary-dark) 100%);
    color: #fff;
}

.cta-banner__text h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
}

.cta-banner__text p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 14.5px;
    max-width: 520px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 14px 28px;
    border-radius: 999px;
    background: var(--cta-accent);
    color: #1f1e1c;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(255, 230, 0, .25);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.cta-btn:hover,
.cta-btn:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(255, 230, 0, .35);
    background: #ffd400;
    color: #1f1e1c;
}

/* closing note under the last section */
.closing-note {
    text-align: center;
    max-width: 720px;
    margin: 8px auto 0;
    font-size: 16px;
    color: #5a5a5a;
    line-height: 1.9;
}

@media (max-width: 768px) {
    .page-intro h5 {
        font-size: 22px;
    }

    .section-heading {
        font-size: 19px;
        margin: 8px 0 12px;
    }

    .cta-banner {
        padding: 26px 22px;
        text-align: center;
        justify-content: center;
    }

    .cta-banner__text {
        text-align: center;
    }

    .cta-banner__text p {
        margin: 0 auto;
    }
}

@media (prefers-reduced-motion: reduce) {

    .benefits_info,
    .cta-btn {
        transition: none;
    }
}
