/* ========================================
   FAQ — Frogg Recruitment
   ======================================== */

:root {
    --primary-500: #1662ed;
    --primary-600: #1451c7;
    --primary-700: #1e3a8a;
    --primary-900: #0f1e52;
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --ink-900: #0b1534;
    --ink-800: #101d42;
    --ink-700: #162350;
    --gray-50: #f8fafc;
    --gray-100: #eef2f7;
    --gray-200: #dce5f3;
    --gray-300: #c4d1e5;
    --gray-500: #64748b;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --gray-900: #0f172a;
    --white: #ffffff;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06);
    --shadow-md: 0 4px 14px rgba(15, 23, 42, .08);
    --shadow-lg: 0 12px 36px rgba(15, 23, 42, .12);
    --shadow-blue: 0 12px 28px rgba(22, 98, 237, .22);
    --gradient-primary: linear-gradient(135deg, #1662ed 0%, #1e3a8a 100%);
    --gradient-dark: linear-gradient(160deg, #0b1534 0%, #101d42 40%, #162350 100%);
    --max-width: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    font-family: "Inter", sans-serif;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.main { padding-top: 0; }

.container {
    width: min(var(--max-width), calc(100% - 2rem));
    margin-inline: auto;
}

/* ================================================================
   KEYFRAME ANIMATIONS
   ================================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10px, -15px) scale(1.1); }
}

/* ================================================================
   PAGE HERO — GLOBAL PATTERN
   ================================================================ */
.page-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    padding: 180px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0.35;
    transform: scale(1.08);
    filter: saturate(0.5);
}
.hero-bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,20,50,.9) 0%, rgba(20,40,100,.82) 50%, rgba(10,25,60,.9) 100%);
    pointer-events: none;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
    pointer-events: none;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.hero-shape {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(22,98,237,.12);
}
.hero-shape--1 {
    width: 500px; height: 500px;
    top: -180px; left: -100px;
    animation: heroFloat 18s ease-in-out infinite;
}
.hero-shape--2 {
    width: 350px; height: 350px;
    bottom: -100px; right: -80px;
    animation: heroFloat 22s ease-in-out infinite reverse;
}
.hero-shape--3 {
    width: 200px; height: 200px;
    top: 40%; right: 15%;
    animation: heroFloat 15s ease-in-out infinite 3s;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(22,98,237,.06) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(30,58,138,.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.page-hero-content {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: .8rem;
    color: rgba(255,255,255,.55);
    animation: fadeInUp .7s ease both;
}
.breadcrumb a {
    color: rgba(255,255,255,.55);
    text-decoration: none;
    transition: color .25s;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { opacity: .3; }

.page-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 24px;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-shadow: 0 4px 30px rgba(0,0,0,.4);
    animation: fadeInUp .7s ease .1s both;
}

.gradient-text {
    color: var(--wdtPrimaryColor, #1268fb);
}

.page-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255,255,255,.85);
    font-style: italic;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
    text-shadow: 0 1px 6px rgba(0,0,0,.2);
    animation: fadeInUp .7s ease .15s both;
}

/* ================================================================
   FAQ SECTION
   ================================================================ */
.faq-section {
    padding: 50px 0;
    background: var(--gray-50);
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}
.section-header h2 {
    margin: 0 0 20px;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.15;
}
.section-header p {
    margin: 0 auto;
    max-width: 700px;
    color: var(--gray-500);
    font-size: 1.1rem;
    line-height: 1.75;
}
.title-accent { color: var(--primary-500); }
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    border: none;
    box-shadow: var(--shadow-blue);
}

/* Search Bar */
.faq-search-wrap {
    max-width: 520px;
    margin: 0 auto 20px;
}
.faq-search-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    padding: 4px 18px 4px 16px;
    transition: border-color .3s, box-shadow .3s;
}
.faq-search-inner:focus-within {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(22, 98, 237, .1);
}
.faq-search-inner svg {
    flex-shrink: 0;
    color: var(--gray-300);
}
.faq-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--gray-800);
    font-family: inherit;
    font-size: .95rem;
    padding: 12px 0;
}
.faq-search-input::placeholder { color: var(--gray-300); }

/* Category Tabs */
.faq-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.faq-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    font-family: inherit;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s;
}
.faq-tab svg { transition: color .25s; }
.faq-tab:hover {
    border-color: var(--primary-100);
    color: var(--primary-600);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}
.faq-tab.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-blue);
}
.faq-tab.active svg { color: var(--white); }

/* No Results */
.faq-no-results {
    text-align: center;
    padding: 64px 24px;
    color: var(--gray-500);
}
.faq-no-results svg { color: var(--gray-300); margin-bottom: 16px; }
.faq-no-results h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--ink-900); }
.faq-no-results p { margin: 0; font-size: .95rem; }
.faq-clear-search {
    background: none; border: none; color: var(--primary-500);
    font-weight: 600; cursor: pointer; text-decoration: underline;
    font-family: inherit; font-size: inherit; padding: 0;
}

/* FAQ Layout */
.faq-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}
.faq-list { min-width: 0; }

/* Category Header */
.faq-category { margin-bottom: 40px; }
.faq-category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.faq-category-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    background: var(--primary-50);
    color: var(--primary-500);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.faq-category-title {
    margin: 0; font-size: 1.1rem; font-weight: 700;
    color: var(--ink-900); line-height: 1.3;
}
.faq-category-desc { margin: 2px 0 0; font-size: .8rem; color: var(--gray-500); }
.faq-category-count {
    margin-left: auto; flex-shrink: 0;
    font-size: .75rem; font-weight: 700;
    color: var(--primary-500); background: var(--primary-50);
    border-radius: var(--radius-full); padding: 4px 12px;
}

/* FAQ Items (accordion) */
.faq-item {
    position: relative;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    overflow: hidden;
    background: var(--white);
    transition: box-shadow .3s, border-color .3s, transform .3s;
}
.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-100);
    transform: translateY(-2px);
}
.faq-item.active {
    border-color: transparent;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-blue);
}
.faq-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity .3s;
}
.faq-item.active::before { opacity: 0; }

.faq-question {
    width: 100%; padding: 14px 18px;
    background: transparent; border: none; cursor: pointer;
    display: flex; align-items: center; gap: 12px;
    font-family: inherit; font-size: .92rem; font-weight: 600;
    color: var(--ink-900); text-align: left;
    transition: background .2s, color .2s;
}
.faq-item:not(.active) .faq-question:hover { background: var(--gray-50); }
.faq-item.active .faq-question { color: var(--white); background: transparent; }

.faq-q-icon {
    width: 30px; height: 30px;
    border-radius: var(--radius-sm);
    background: var(--gray-50); color: var(--gray-500);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background .3s, color .3s;
}
.faq-q-icon svg { width: 15px; height: 15px; }
.faq-item:hover .faq-q-icon {
    background: var(--primary-50);
    color: var(--primary-500);
}
.faq-item.active .faq-q-icon {
    background: rgba(255,255,255,.15);
    color: var(--white);
}
.faq-q-text { flex: 1; }

.faq-chevron-wrap {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--gray-50);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background .3s, transform .3s;
}
.faq-chevron-wrap svg { width: 15px; height: 15px; }
.faq-item.active .faq-chevron-wrap {
    background: rgba(255,255,255,.15);
    transform: rotate(180deg);
}
.faq-chevron { color: var(--gray-500); transition: color .3s; }
.faq-item.active .faq-chevron { color: var(--white); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.16, 1, .3, 1);
}
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer-inner {
    padding: 0 18px 16px 54px;
    font-size: .9rem; color: rgba(255,255,255,.85); line-height: 1.7;
}
.faq-item:not(.active) .faq-answer-inner { color: var(--gray-600); }
.faq-answer-inner p { margin: 0; }
.faq-answer-inner a {
    color: rgba(255,255,255,.95); text-decoration: underline; font-weight: 600;
}
.faq-item:not(.active) .faq-answer-inner a { color: var(--primary-500); text-decoration: none; }
.faq-answer-inner a:hover { text-decoration: underline; }

/* Sidebar */
.faq-sidebar {
    position: sticky; top: 160px;
    display: flex; flex-direction: column; gap: 16px;
}
.sidebar-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .3s, transform .3s;
}
.sidebar-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.sidebar-card--highlight h3 { color: var(--ink-900); }
.sidebar-card--highlight p { color: var(--gray-500); }
.sidebar-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.sidebar-card-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: var(--primary-50);
    color: var(--primary-500);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.sidebar-card--highlight .sidebar-card-icon {    background: var(--primary-50);    color: var(--primary-500);}
.sidebar-card h3 { margin: 0; font-size: .95rem; font-weight: 700; color: var(--ink-900); }
.sidebar-card p { margin: 0 0 14px; font-size: .85rem; line-height: 1.6; color: var(--gray-500); }
.sidebar-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--primary-500); text-decoration: none;
    font-weight: 700; font-size: .88rem; transition: gap .2s;
}
.sidebar-link:hover { gap: 10px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: var(--radius-md); border: 0;
    font-weight: 700; font-size: .95rem; text-decoration: none;
    padding: 14px 28px; cursor: pointer;
    transition: transform .25s, box-shadow .25s, background .25s;
}
.btn-primary {
    background: var(--gradient-primary); color: var(--white);
    box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(22, 98, 237, .32);
}
.btn-sm { padding: 10px 20px; font-size: .88rem; }
.btn .btn-arrow { transition: transform .25s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ================================================================
   TOPBAR & HEADER OVERRIDES
   ================================================================ */
.wdt-topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100000;
    background: #031543; border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.topbar-inner {
    width: min(var(--max-width), calc(100% - 2rem)); min-height: 42px;
    margin-inline: auto; display: flex; align-items: center;
}
.wdt-topbar-contact { width: 100%; justify-content: space-between; }
.wdt-topbar-contact-item { color: #d7e3ff; font-size: 13px; text-decoration: none; }
.header-inner {
    width: min(var(--max-width), calc(100% - 2rem)); margin-inline: auto; min-height: 84px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.frogg-header {
    top: 42px;
    background: rgba(255, 255, 255, .98) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08) !important;
}
.faq-page .wdt-nav-menu .elementor-nav-menu > li > a { color: var(--ink-900, #0b1534) !important; }
.faq-page .wdt-nav-menu .elementor-nav-menu > li.menu-item-has-children > a::after { color: var(--gray-500, #6b7280) !important; }
.faq-page .wdt-nav-menu .elementor-nav-menu > li:hover > a,
.faq-page .wdt-nav-menu .elementor-nav-menu > li.current-menu-item > a { color: #fff !important; }
.faq-page .wdt-nav-menu .elementor-nav-menu > li:hover > a::before,
.faq-page .wdt-nav-menu .elementor-nav-menu > li.current-menu-item > a::before { opacity: 1 !important; }
.faq-page .wdt-nav-menu .elementor-nav-menu > li.menu-item-has-children:hover > a::after,
.faq-page .wdt-nav-menu .elementor-nav-menu > li.current-menu-item.menu-item-has-children > a::after { color: #fff !important; }
.faq-page .wdt-nav-menu .elementor-nav-menu--dropdown { background: #ffffff !important; border: 1px solid rgba(18, 104, 251, .15) !important; box-shadow: 0 10px 40px rgba(0, 0, 0, .10), 0 0 0 1px rgba(18, 104, 251, .06) !important; }
.faq-page .wdt-nav-menu .elementor-nav-menu--dropdown a { color: var(--ink-900, #0b1534) !important; }
.faq-page .wdt-nav-menu .elementor-nav-menu--dropdown a:hover { color: #fff !important; }
.faq-page .frogg-btn-outline .elementor-button { border-color: var(--primary-500, #1662ed) !important; color: var(--primary-500, #1662ed) !important; }
.faq-page .frogg-btn-outline .elementor-button:hover { background: rgba(22, 98, 237, .08) !important; }
.faq-page .wdt-toggle-line { background: var(--ink-900, #0b1534) !important; }
.brand img { height: 44px; width: auto; }
.wdt-nav-menu .elementor-nav-menu { margin: 0; padding: 0; list-style: none; }
.wdt-nav-menu .elementor-nav-menu > li { position: relative; }
.wdt-nav-menu .elementor-nav-menu--dropdown {
    position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px;
    list-style: none; margin: 0; opacity: 0; visibility: hidden;
    transform: translateY(8px); transition: .25s ease;
}
.wdt-nav-menu .menu-item-has-children:hover .elementor-nav-menu--dropdown,
.wdt-nav-menu .menu-item-has-children:focus-within .elementor-nav-menu--dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .elementor-button { display: inline-flex; align-items: center; justify-content: center; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
    .wdt-topbar { display: none; }
    .frogg-header { top: 0; }
    .header-actions { display: none; }
    .wdt-nav-menu { display: none !important; }
    .wdt-mobile-toggle { display: flex !important; }

    .page-hero { padding: 140px 24px 60px; }
    .faq-section { padding: 72px 0; }

    .faq-layout { grid-template-columns: 1fr; }
    .faq-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .header-inner { min-height: 74px; }
    .brand img { height: 36px; }

    .page-hero { padding: 120px 20px 48px; }
    .page-hero h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
    .faq-section { padding: 56px 0; }

    .faq-search-wrap { margin-bottom: 28px; }
    .faq-tabs { gap: 6px; }
    .faq-tab { padding: 8px 14px; font-size: .82rem; }
    .faq-category-header { flex-wrap: wrap; gap: 10px; padding: 14px 16px; }
    .faq-category-count { margin-left: 0; }
    .faq-question { padding: 16px 16px; font-size: .92rem; gap: 10px; }
    .faq-answer-inner { padding: 0 16px 20px 16px; }
    .faq-q-icon { width: 30px; height: 30px; }

    .faq-sidebar { grid-template-columns: 1fr; }
    .hero-shapes { display: none; }
    .hero-grid-overlay { display: none; }
}
