/*
Theme Name: FactBase Consulting - V2 Executive Edition
Theme URI: https://factbase.ng/
Description: Version 2 of FactBase Consulting Limited theme with custom MySQL candidate database table architecture, Selection Intelligence scoring engine, and admin management desk.
Version: 2.0.0
Author: FactBase Engineering Team
Author URI: https://factbase.ng/
Text Domain: factbase-v2
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

/* CSS Reset & Design Tokens (FactBase Light Executive Palette) */
:root {
    --bg-dark: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #fdf4ff;
    --primary-blue: #0015ff;
    --accent-magenta: #c026d3;
    --accent-cyan: #0284c7;
    --text-main: #0f172a;
    --text-sub: #334155;
    --text-muted: #64748b;
    --border-line: #cbd5e1;
    --border-highlight: rgba(192, 38, 211, 0.45);
    --card-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
    --card-shadow-hover: 0 20px 45px -8px rgba(192, 38, 211, 0.22), 0 8px 20px -4px rgba(15, 23, 42, 0.1);
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-full: 9999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
    position: relative;
    border-bottom: 1px solid var(--border-line);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(135deg, var(--accent-magenta), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-main);
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3.5rem auto;
}

.section-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-magenta);
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-desc {
    color: var(--text-sub);
    font-size: 1.05rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #0015ff, #7000ff);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 21, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 21, 255, 0.45);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-line);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.btn-secondary:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    border-color: var(--accent-magenta);
}

.btn-accent {
    background: linear-gradient(135deg, #c026d3, #7e22ce);
    color: #fff;
    box-shadow: 0 4px 15px rgba(192, 38, 211, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192, 38, 211, 0.45);
}

/* Navigation Header */
header.site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-line);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    flex-shrink: 0 !important;
    margin-right: 2.2rem;
}

.custom-site-logo,
.custom-logo,
.nav-logo img {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    max-height: 65px !important;
    max-width: 280px !important;
    object-fit: contain !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    transition: var(--transition);
}

.nav-logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #0015ff, #c026d3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-sub);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-magenta);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Nav Toggle Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--accent-magenta);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--accent-magenta);
}

/* Hero Section */
.hero-section {
    padding-top: 10rem;
    padding-bottom: 7rem;
    background: radial-gradient(circle at 50% 20%, rgba(0, 21, 255, 0.06), transparent 65%), linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-sub);
    margin-bottom: 2rem;
}

.hero-search-box {
    background: #ffffff;
    border: 1px solid var(--border-line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    width: 100%;
    margin-top: 3.5rem;
}

.search-form-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr auto;
    gap: 1.5rem;
    align-items: flex-end;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-field label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-magenta);
    white-space: nowrap;
    letter-spacing: 0.06em;
}

.search-field input,
.search-field select {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: var(--text-main);
    padding: 0 1.2rem;
    height: 50px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: var(--transition);
}

.search-field input:focus,
.search-field select:focus {
    border-color: var(--accent-magenta);
    box-shadow: 0 0 15px rgba(192, 38, 211, 0.2);
    background: #ffffff;
}

.hero-visual {
    position: relative;
}

.hero-card-stack {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    border: 1px solid var(--border-line);
}

.hero-card-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-badge-floating {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: #ffffff;
    border: 1px solid var(--border-line);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
}

.hero-badge-floating h4 {
    color: var(--text-main) !important;
}

/* Consultants Team Section (Centered Flexbox Layout for 1, 2, or 3+ consultants) */
.consultants-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 2rem;
}

.consultant-card {
    background: var(--bg-card);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
    flex: 1 1 320px;
    max-width: 380px;
    width: 100%;
}

.consultant-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-highlight);
    box-shadow: var(--card-shadow-hover);
    background: var(--bg-card-hover);
}

.consultant-image {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.consultant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.consultant-card:hover .consultant-image img {
    transform: scale(1.08);
}

.consultant-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent-magenta);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-highlight);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.consultant-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.consultant-title {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.expertise-tag {
    background: rgba(192, 38, 211, 0.08);
    color: var(--accent-magenta);
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(192, 38, 211, 0.2);
}

/* Core Pillars Grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
}

.pillar-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
    box-shadow: var(--card-shadow-hover);
}

.pillar-icon {
    width: 60px;
    height: 60px;
    background: rgba(192, 38, 211, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-magenta);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(192, 38, 211, 0.2);
}

/* SKIPE Core Values Grid (5 columns on desktop) */
.skipe-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
}

.skipe-card {
    background: var(--bg-card);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-lg);
    padding: 2rem 1.2rem;
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--accent-magenta);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--card-shadow);
}

.skipe-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
    box-shadow: var(--card-shadow-hover);
}

.skipe-icon-box {
    width: 52px;
    height: 52px;
    background: rgba(192, 38, 211, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    border: 1px solid rgba(192, 38, 211, 0.2);
}

.skipe-letter-title {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.4rem;
}

/* Vacancies Portal Grid */
#vacancies {
    padding: 6rem 0 6.5rem 0 !important;
}

.vacancies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 1rem;
}

.vacancy-card {
    background: var(--bg-card);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
}

.vacancy-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
    box-shadow: var(--card-shadow-hover);
}

/* Packages & Corporate Training Cards Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
}

.package-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-highlight);
    box-shadow: var(--card-shadow-hover);
    background: var(--bg-card-hover);
}

.package-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.package-card:hover .package-image img {
    transform: scale(1.08);
}

.package-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-blue);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: var(--radius-full);
}

.package-price-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: #ffffff;
    color: var(--accent-magenta);
    font-weight: 800;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-highlight);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.package-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.package-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.package-highlights {
    list-style: none;
    margin: 1.2rem 0 2rem 0;
    padding: 0;
}

.package-highlights li {
    font-size: 0.9rem;
    color: var(--text-sub);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.package-highlights li::before {
    content: '✓';
    color: var(--accent-magenta);
    font-weight: bold;
}

/* Card Button Margins & Spacing */
.package-body .btn,
.pillar-card .btn,
.vacancy-card .btn,
.consultant-card .btn {
    margin-top: 1.8rem;
    padding: 0.9rem 1.8rem;
    width: 100%;
}

/* 4-Picture Gallery Cards (Past Trainings & Engagements) */
.past-engagements-wrapper {
    position: relative;
    width: 100%;
}

.past-engagements-slider {
    display: flex;
    gap: 1.8rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 1.2rem;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.past-engagements-slider::-webkit-scrollbar {
    height: 8px;
}

.past-engagements-slider::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 99px;
}

.past-engagements-slider::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 99px;
}

.past-engagements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.engagement-card {
    flex: 0 0 calc(50% - 0.9rem);
    min-width: 440px;
    scroll-snap-align: start;
    background: var(--bg-card);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
    box-sizing: border-box;
}

.slider-arrow-btn:hover {
    transform: scale(1.08);
    opacity: 0.92;
}

.engagement-card:hover {
    border-color: var(--border-highlight);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

@media (max-width: 992px) {
    .engagement-card {
        flex: 0 0 calc(85vw - 1rem);
        min-width: 290px;
        padding: 1.4rem;
    }
}

.gallery-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin: 1.2rem 0;
}

.gallery-thumb {
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-line);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-thumb:hover img {
    transform: scale(1.15);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
}

.testimonial-card:hover {
    border-color: var(--border-highlight);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

/* Ticker / Marquee Banner Containers */
.past-trainings-scroll-container,
.client-logos-scroll-container {
    margin-top: 3.5rem;
    padding: 2.5rem 0 1rem 0;
    border-top: 1px dashed var(--border-line);
    overflow: hidden;
    position: relative;
}

.scroll-header-label {
    text-align: center;
    margin-bottom: 1.8rem;
}

.scroll-header-label span {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-magenta);
    background: rgba(192, 38, 211, 0.08);
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid rgba(192, 38, 211, 0.2);
    display: inline-block;
}

.past-trainings-ticker,
.client-logos-ticker {
    display: flex;
    overflow: hidden;
    user-select: none;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    animation: scrollTicker 35s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.ticker-track-trainings {
    animation-duration: 50s;
    align-items: center;
}

/* Past Training Course Cards (Full Graphic Flyer Posters) */
.past-training-card {
    display: flex;
    background: #ffffff;
    border: 1px solid var(--border-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 280px;
    height: 340px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
    transition: var(--transition);
    flex-shrink: 0;
}

.past-training-card:hover {
    border-color: var(--accent-magenta);
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(192, 38, 211, 0.25);
}

.past-training-img-wrap {
    width: 100%;
    height: 100%;
    background: #ffffff;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.past-training-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    background: #ffffff;
    border-radius: calc(var(--radius-lg) - 4px);
}

.past-training-card:hover .past-training-img-wrap img {
    transform: scale(1.05);
}

/* Client Logo Items */
.client-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--border-line);
    padding: 0.8rem 1.8rem;
    border-radius: 14px;
    height: 70px;
    min-width: 150px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
    transition: var(--transition);
    flex-shrink: 0;
}

.client-logo-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent-magenta);
    box-shadow: 0 10px 30px rgba(192, 38, 211, 0.18);
}

.client-logo-item img {
    max-height: 48px;
    max-width: 135px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(25%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.client-logo-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.06);
}

.vacancy-meta-tags {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.v-tag {
    font-size: 0.8rem;
    background: #f1f5f9;
    color: var(--text-sub);
    padding: 4px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-line);
}

.v-tag.type {
    color: var(--accent-magenta);
    border-color: rgba(192, 38, 211, 0.3);
}

/* Packages & Corporate Training Cards Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
}

.package-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-highlight);
    box-shadow: var(--card-shadow-hover);
    background: var(--bg-card-hover);
}

.package-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.package-card:hover .package-image img {
    transform: scale(1.08);
}

.package-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-blue);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: var(--radius-full);
}

.package-price-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: #ffffff;
    color: var(--accent-magenta);
    font-weight: 800;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-highlight);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.package-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.package-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.package-highlights {
    list-style: none;
    margin: 1.2rem 0 2rem 0;
    padding: 0;
}

.package-highlights li {
    font-size: 0.9rem;
    color: var(--text-sub);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.package-highlights li::before {
    content: '✓';
    color: var(--accent-magenta);
    font-weight: bold;
}

/* Card Button Margins & Spacing */
.package-body .btn,
.pillar-card .btn,
.vacancy-card .btn,
.consultant-card .btn {
    margin-top: 1.8rem;
    padding: 0.9rem 1.8rem;
    width: 100%;
}

/* 4-Picture Gallery Cards (Past Trainings & Engagements) */
.past-engagements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.engagement-card {
    background: var(--bg-card);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

.engagement-card:hover {
    border-color: var(--border-highlight);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

.gallery-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin: 1.2rem 0;
}

.gallery-thumb {
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-line);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-thumb:hover img {
    transform: scale(1.15);
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-highlight);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
}

.testimonial-card:hover {
    border-color: var(--border-highlight);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

/* Footer (Dark Contrast Base) */
footer.site-footer {
    background: #0f172a;
    color: #f8fafc;
    padding-top: 5rem;
    padding-bottom: 3rem;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #f0abfc;
}

.footer-bottom {
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal Popup Form */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #ffffff;
    border: 1px solid var(--border-line);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 650px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    color: #0f172a;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: #e2e8f0;
}

.modal-header {
    margin-bottom: 1.8rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
    width: 100%;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-magenta);
    letter-spacing: 0.05em;
    display: block;
}

.form-group input,
.form-group select,
.form-group textarea {
    display: block;
    width: 100%;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: var(--text-main);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    box-sizing: border-box;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-magenta);
    box-shadow: 0 0 12px rgba(192, 38, 211, 0.2);
    background: #ffffff;
}

.form-group select option {
    background: #ffffff;
    color: var(--text-main);
}

/* Floating Chat & Toast Notifications */
.chat-widget-trigger {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    background: linear-gradient(135deg, #0015ff, #c026d3);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(0, 21, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.chat-widget-trigger:hover {
    transform: scale(1.1);
}

.chat-window {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 360px;
    background: #ffffff;
    border: 1px solid var(--border-line);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
    z-index: 9999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background: linear-gradient(135deg, #0015ff, #c026d3);
    padding: 1.2rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-messages {
    padding: 1.2rem;
    height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-bubble {
    padding: 0.8rem 1rem;
    border-radius: 14px;
    font-size: 0.9rem;
    max-width: 85%;
}

.chat-bubble.bot {
    background: #f1f5f9;
    color: var(--text-main);
    border: 1px solid #e2e8f0;
    align-self: flex-start;
}

.chat-bubble.user {
    background: linear-gradient(135deg, #0015ff, #c026d3);
    color: #fff;
    align-self: flex-end;
}

.toast-notification {
    position: fixed;
    top: 25px;
    right: 25px;
    background: linear-gradient(135deg, #0015ff, #c026d3);
    color: #fff;
    padding: 1rem 1.8rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    font-weight: 600;
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.active {
    transform: translateX(0);
}

/* Responsive Navigation Rules */
@media (min-width: 1151px) and (max-width: 1280px) {
    .nav-links {
        gap: 1.2rem;
    }
    .nav-logo {
        margin-right: 1.2rem;
    }
    .nav-actions {
        gap: 0.6rem;
    }
}

@media (max-width: 1150px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border-line);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 2rem;
        gap: 1.2rem;
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
        padding: 0.4rem 0;
    }

    .nav-actions .btn-secondary {
        display: none;
    }
}

@media (max-width: 1024px) {
    .skipe-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .hero-grid, .pillars-grid, .vacancies-grid, .packages-grid, .past-engagements-grid, .testimonials-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .search-form-grid, .form-grid-2 {
        grid-template-columns: 1fr;
    }
    .packages-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .skipe-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .package-body {
        padding: 1.5rem 1.25rem;
    }
    .package-body h3 {
        font-size: 1.15rem;
    }
    .package-tag {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    .package-price-badge {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}

@media (max-width: 576px) {
    .nav-actions .btn-primary {
        padding: 0.6rem 1rem;
        font-size: 0.82rem;
    }
}

/* Candidate Application Desk Responsive Styles */
.candidate-apply-section {
    padding: 2rem 0 6rem 0;
    background-color: var(--bg-dark);
}

.candidate-apply-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
    width: 100%;
}

.candidate-apply-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-line);
    box-shadow: var(--card-shadow);
    padding: 3rem;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.candidate-header-banner {
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    box-sizing: border-box;
    width: 100%;
}

.candidate-step-card {
    margin-bottom: 2.5rem;
    background: #ffffff;
    padding: 1.8rem;
    border-radius: 12px;
    border: 1px solid var(--border-line);
    box-sizing: border-box;
    width: 100%;
}

.candidate-step-card.step-card-highlight {
    background: rgba(0, 21, 255, 0.03);
    border: 1px solid rgba(0, 21, 255, 0.15);
}

.candidate-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    width: 100%;
    box-sizing: border-box;
}

.candidate-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    width: 100%;
    box-sizing: border-box;
}

.candidate-grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1.2rem;
    width: 100%;
    box-sizing: border-box;
}

.candidate-span-2 {
    grid-column: span 2;
}

.candidate-cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    background: #f8fafc;
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--border-line);
    box-sizing: border-box;
    width: 100%;
}

.candidate-submit-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-line);
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

.candidate-submit-btn {
    padding: 1rem 3.5rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #0015ff, #c026d3);
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

#standaloneApplicationForm input,
#standaloneApplicationForm select,
#standaloneApplicationForm textarea,
#standaloneApplicationForm button {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Responsive Overrides for Candidate Desk Form */
@media (max-width: 768px) {
    .candidate-apply-container {
        padding: 0 0.75rem !important;
    }

    .candidate-apply-card {
        padding: 1.25rem 1rem !important;
        border-radius: 16px !important;
    }

    .candidate-header-banner {
        padding: 1rem 1.25rem !important;
        margin-bottom: 1.5rem !important;
    }

    .candidate-step-card {
        padding: 1.25rem 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .candidate-grid-2,
    .candidate-grid-3,
    .candidate-grid-auto {
        grid-template-columns: 1fr !important;
        gap: 0.9rem !important;
    }

    .candidate-span-2 {
        grid-column: span 1 !important;
    }

    .candidate-cert-grid {
        padding: 0.85rem 0.75rem !important;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)) !important;
    }
}

@media (max-width: 480px) {
    .candidate-apply-card {
        padding: 1rem 0.6rem !important;
        border-radius: 12px !important;
    }

    .candidate-step-card {
        padding: 1rem 0.65rem !important;
    }

    .candidate-header-banner {
        padding: 0.85rem 0.85rem !important;
    }

    .candidate-cert-grid {
        grid-template-columns: 1fr !important;
        padding: 0.75rem 0.5rem !important;
    }

    .candidate-submit-btn {
        width: 100% !important;
        padding: 0.85rem 0.75rem !important;
        font-size: 0.95rem !important;
    }
/* Request Service Modal Category Selector & Form Styles */
.category-pill-option {
    cursor: pointer;
    display: block;
    user-select: none;
}

.category-pill-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.category-pill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 0.5rem;
    border: 2px solid var(--border-line);
    border-radius: 12px;
    background: #f8fafc;
    text-align: center;
    transition: var(--transition);
}

.category-pill-card .category-icon {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}

.category-pill-card strong {
    font-size: 0.88rem;
    color: var(--text-main);
    display: block;
}

.category-pill-card small {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.1rem;
}

.category-pill-option input[type="radio"]:checked + .category-pill-card {
    border-color: var(--primary-blue);
    background: rgba(0, 21, 255, 0.05);
    box-shadow: 0 4px 14px rgba(0, 21, 255, 0.15);
}

.category-pill-option input[type="radio"]:checked + .category-pill-card strong {
    color: var(--primary-blue);
}

.category-pill-option input[type="radio"]:focus + .category-pill-card {
    outline: 2px solid var(--accent-magenta);
}

@media (max-width: 600px) {
    .service-category-selector {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }

    .category-pill-card {
        flex-direction: row !important;
        justify-content: flex-start !important;
        gap: 0.8rem !important;
        padding: 0.6rem 1rem !important;
        text-align: left !important;
    }

    .category-pill-card .category-icon {
        margin-bottom: 0 !important;
    }
}

/* Print PDF Stylesheet for Vacancy Job Advert Notices */
@media print {
    header.site-navbar,
    footer.site-footer,
    .vacancy-action-bar,
    .chat-widget-trigger,
    .chat-window,
    .modal-overlay,
    .btn {
        display: none !important;
    }
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
    .hero-section {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
        background: none !important;
    }
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
}
