:root {
    --front-primary: #1e40af;
    --front-primary-dark: #16327f;
    --front-accent: #f59e0b;
    --front-dark: #0f172a;
    --front-muted: #64748b;
    --front-light: #f8fafc;
    --front-border: #e2e8f0;
    --front-surface: #ffffff;

    --front-radius-sm: 0.75rem;
    --front-radius: 1.125rem;
    --front-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --front-shadow-md: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.08);

    /* Bootstrap component tokens that DO read from :root at runtime (accordion
       active state, .alert-primary, .text-bg-primary) — everything else Bootstrap
       ships with literal per-component colors, so those are overridden explicitly
       further down instead of relying on cascade. */
    --bs-primary-text-emphasis: var(--front-primary-dark);
    --bs-primary-bg-subtle: color-mix(in srgb, var(--front-primary) 12%, white);
    --bs-primary-border-subtle: color-mix(in srgb, var(--front-primary) 35%, white);

    /* Bootstrap's own radius tokens — buttons/inputs/cards/dropdowns/alerts all
       read these directly, so bumping them here is enough (no per-component overrides needed). */
    --bs-border-radius-sm: 0.625rem;
    --bs-border-radius: 0.9rem;
    --bs-border-radius-lg: 1.25rem;
    --bs-border-radius-xl: 1.75rem;
}

html {
    font-size: 15px;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: #1e293b;
    background-color: #ffffff;
}

a {
    color: var(--front-primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
}

h1 { font-weight: 800; }

.section-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
}

.section-title-accent {
    display: inline-block;
    width: 3rem;
    height: 3px;
    background-color: var(--front-accent);
    border-radius: 2px;
    margin-bottom: 1rem;
}

.section-lead {
    color: var(--front-muted);
    max-width: 640px;
}

/* Rich text content coming from admin WYSIWYG fields (training/blog/page/legal content) */
.prose {
    max-width: 760px;
    line-height: 1.75;
}

.prose h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.prose p {
    margin-bottom: 1rem;
}

.prose ul, .prose ol {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--front-radius-sm);
}

.prose blockquote {
    border-left: 3px solid var(--front-accent);
    padding-left: 1rem;
    color: var(--front-muted);
    font-style: italic;
    margin: 1.25rem 0;
}

/* Section spacing helpers */
.section-sm { padding: 2.5rem 0; }
.section { padding: 4rem 0; }
.section-lg { padding: 5.5rem 0; }

@media (max-width: 767.98px) {
    .section-lg { padding: 3rem 0; }
    .section { padding: 2.75rem 0; }
    .section-sm { padding: 2rem 0; }
}

/* Buttons */
.btn-primary {
    background-color: var(--front-primary);
    border-color: var(--front-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--front-primary-dark);
    border-color: var(--front-primary-dark);
}

.btn-outline-primary {
    --bs-btn-color: var(--front-primary);
    --bs-btn-border-color: var(--front-primary);
    --bs-btn-hover-bg: var(--front-primary);
    --bs-btn-hover-border-color: var(--front-primary);
    --bs-btn-active-bg: var(--front-primary);
    --bs-btn-active-border-color: var(--front-primary);
}

.btn-accent {
    background-color: var(--front-accent);
    border-color: var(--front-accent);
    color: #1e293b;
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: color-mix(in srgb, var(--front-accent) 85%, black);
    border-color: color-mix(in srgb, var(--front-accent) 85%, black);
    color: #1e293b;
}

.btn-outline-accent {
    color: color-mix(in srgb, var(--front-accent) 70%, black);
    border-color: var(--front-accent);
}

.btn-outline-accent:hover,
.btn-outline-accent:focus {
    background-color: var(--front-accent);
    border-color: var(--front-accent);
    color: #1e293b;
}

.btn:focus-visible {
    box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--front-primary) 25%, transparent);
}

/* Form controls follow the panel's primary color (Bootstrap ships these hardcoded blue) */
.form-control:focus,
.form-select:focus {
    border-color: var(--front-primary);
    box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--front-primary) 25%, transparent);
}

.form-check-input:checked {
    background-color: var(--front-primary);
    border-color: var(--front-primary);
}

.form-check-input:focus {
    border-color: var(--front-primary);
    box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--front-primary) 25%, transparent);
}

/* Pagination */
.page-link {
    color: var(--front-primary);
}

.page-link:hover {
    color: var(--front-primary-dark);
    background-color: var(--front-light);
}

.page-item.active .page-link {
    background-color: var(--front-primary);
    border-color: var(--front-primary);
}

/* Dropdowns / list groups */
.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--front-primary);
}

.list-group-item.active {
    background-color: var(--front-primary);
    border-color: var(--front-primary);
}

.text-front-primary {
    color: var(--front-primary) !important;
}

.text-accent {
    color: color-mix(in srgb, var(--front-accent) 80%, black) !important;
}

.bg-accent-subtle {
    background-color: color-mix(in srgb, var(--front-accent) 15%, white) !important;
}

.border-accent-subtle {
    border-color: color-mix(in srgb, var(--front-accent) 45%, white) !important;
}

.bg-front-dark {
    background-color: var(--front-dark) !important;
}

/* Brand identity stripe — thin, runs the same primary→accent thread used
   by the brand divider and nav ticks below, tying the header together. */
.front-topline {
    height: 4px;
    background: linear-gradient(90deg, var(--front-primary) 0%, var(--front-primary) 65%, var(--front-accent) 100%);
}

/* Top bar */
.front-topbar {
    background-color: var(--front-dark);
    color: #cbd5e1;
    font-size: 0.85rem;
}

.front-topbar a {
    color: #cbd5e1;
    text-decoration: none;
}

.front-topbar a:hover {
    color: #ffffff;
}

.front-topbar-divider {
    width: 3px;
    height: 3px;
    border-radius: 1px;
    background-color: var(--front-accent);
    display: inline-block;
}

/* Header / nav */
.front-header {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

/* This <nav> combines Bootstrap's .navbar and .container classes on one
   element (instead of nesting .container inside .navbar). Bootstrap's own
   .navbar rule sets `padding` as a shorthand, which — loading after
   .container's padding-left/right in bootstrap.min.css — wins and zeroes
   out the container gutter entirely, pinning the brand/toggler flush
   against the viewport edges on mobile. Restore the gutter explicitly. */
.front-navbar {
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5);
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5);
}

@media (max-width: 575.98px) {
    .front-navbar {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.front-header.is-scrolled {
    box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.1);
}

.front-brand img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.front-brand-divider {
    width: 3px;
    height: 22px;
    border-radius: 1px;
    background: linear-gradient(180deg, var(--front-primary) 0%, var(--front-accent) 100%);
}

.front-nav .nav-link {
    color: #1e293b;
    font-weight: 400;
    padding: 0.5rem 1rem;
    position: relative;
}

.front-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 0.15rem;
    height: 2px;
    border-radius: 2px;
    background-color: var(--front-accent);
    transition: left 0.2s ease, right 0.2s ease;
}

.front-nav .nav-link:hover,
.front-nav .nav-link.active {
    color: var(--front-primary);
}

.front-nav .nav-link:hover::after,
.front-nav .nav-link.active::after {
    left: 0.85rem;
    right: 0.85rem;
}

.front-nav-cta {
    margin-left: 0.5rem;
}

.front-nav-cta .btn {
    border-bottom-right-radius: 0;
}

/* Hero */
.front-hero {
    background: linear-gradient(135deg, var(--front-primary) 0%, var(--front-primary-dark) 100%);
    color: #ffffff;
    padding: 4rem 0;
}

.front-hero h1 {
    font-weight: 700;
}

.front-hero-swiper {
    --swiper-theme-color: var(--front-accent);
    --swiper-navigation-size: 22px;
    position: relative;
    color: #ffffff;
    /* Explicit height, and the slide rule below is scoped through this
       ancestor so it always wins over Swiper's own bundled `.swiper-slide`
       rule regardless of which stylesheet happens to load last. Matches the
       recommended slider image size (2048x600) at native height on wide screens. */
    height: 600px;
}

.front-hero-swiper .swiper-slide {
    position: relative;
    height: 600px;
    background-color: var(--front-primary);
    background-image: linear-gradient(135deg, var(--front-primary) 0%, var(--front-primary-dark) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.front-hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.15) 55%, rgba(15, 23, 42, 0.35) 100%);
}

.front-hero-caption {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 640px;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .front-hero-swiper,
    .front-hero-swiper .swiper-slide {
        height: 480px;
    }
}

@media (max-width: 767.98px) {
    .front-hero-swiper,
    .front-hero-swiper .swiper-slide {
        height: 340px;
    }
    .front-hero-caption h1 { font-size: 1.35rem; }
    .front-hero-swiper .swiper-button-next,
    .front-hero-swiper .swiper-button-prev {
        display: none;
    }
}

/* Cards */
.front-card {
    border: 1px solid var(--front-border);
    border-radius: var(--front-radius);
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
    height: 100%;
    background-color: var(--front-surface);
}

.front-card:hover {
    box-shadow: var(--front-shadow-md);
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--front-primary) 30%, var(--front-border));
}

.front-card:has(.stretched-link) {
    cursor: pointer;
}

.training-sidebar {
    height: auto;
}

@media (min-width: 992px) {
    .training-sidebar {
        position: sticky;
        top: 96px;
    }
}

.front-card img {
    border-radius: var(--front-radius) var(--front-radius) 0 0;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Testimonial quote block — distinct from partner logo tiles.
   Shares the site's cut-corner + gradient-thread signature (see .benefit-card,
   .front-nav-cta) instead of the generic bordered box this replaced. */
.card-quote {
    border-radius: var(--front-radius);
    border-top-right-radius: 0;
    padding: 1.75rem 1.5rem 1.5rem;
    background-color: var(--front-surface);
    box-shadow: var(--front-shadow-sm);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card-quote::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--front-primary), var(--front-accent));
}

.card-quote::after {
    content: "\201C";
    position: absolute;
    top: -0.5rem;
    right: 0.75rem;
    font-size: 4.5rem;
    line-height: 1;
    font-family: Georgia, serif;
    font-weight: 700;
    color: var(--front-accent);
    opacity: 0.12;
}

.card-quote:hover {
    box-shadow: var(--front-shadow-md);
    transform: translateY(-3px);
}

.card-quote p {
    position: relative;
    z-index: 1;
}

.card-quote-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--front-border);
    position: relative;
    z-index: 1;
}

.card-quote-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--front-primary), var(--front-accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.card-partner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    padding: 0.5rem;
    filter: grayscale(1);
    opacity: 0.75;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.card-partner:hover {
    filter: none;
    opacity: 1;
}

.card-partner img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

/* Referanslar / İş Ortakları carousels */
.testimonials-swiper,
.partners-swiper {
    --swiper-theme-color: var(--front-accent);
    --swiper-navigation-size: 20px;
    position: relative;
    padding: 0 2.75rem;
}

.testimonials-swiper {
    padding-bottom: 2.75rem;
}

.testimonials-swiper .swiper-pagination {
    bottom: 0;
}

.testimonials-swiper .swiper-slide,
.partners-swiper .swiper-slide {
    display: flex;
}

@media (max-width: 575.98px) {
    .testimonials-swiper,
    .partners-swiper {
        padding: 0 2rem;
    }
}

/* "Bizimle kazanacaksınız" benefit cards flanking the centre logo.
   The icon badge floats half above the card edge; the card's own top-right
   corner stays sharp (same asymmetric-cut signature as the header CTA button)
   instead of the borrowed corner-triangle flag this replaced. */
.benefit-card {
    position: relative;
    height: 100%;
    margin-top: 24px;
    background-color: var(--front-surface);
    border-top-right-radius: 0;
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
    box-shadow: var(--front-shadow-sm);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.benefit-card:hover {
    box-shadow: var(--front-shadow-md);
    transform: translateY(-2px);
}

.benefit-icon {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--front-radius-sm);
    border-top-right-radius: 0;
    background-color: var(--front-accent);
    color: var(--front-dark);
    font-size: 1.4rem;
}

.benefit-card p {
    margin-bottom: 0;
}

.benefit-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid var(--front-border);
    border-radius: var(--front-radius);
    padding: 2.5rem;
}

.benefit-logo-box img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Announcement strip */
.announcement-strip {
    border-left: 3px solid var(--front-accent);
    background-color: color-mix(in srgb, var(--front-accent) 8%, white);
    border-radius: var(--front-radius-sm);
    padding: 0.9rem 1.1rem;
}

/* Breadcrumb / page header */
.front-breadcrumb-bar {
    background-color: var(--front-light);
    border-bottom: 1px solid var(--front-border);
}

.front-breadcrumb-bar .breadcrumb {
    font-size: 0.8rem;
}

/* FAQ accordion */
.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--front-primary) 25%, transparent);
}

/* Footer */
.front-footer {
    background-color: var(--front-dark);
    color: #cbd5e1;
    padding: 3rem 0 1.5rem;
}

.front-footer h5 {
    color: #ffffff;
    font-weight: 600;
}

.front-footer-logo {
    max-height: 48px;
    width: auto;
    display: block;
}

.front-footer a {
    color: #cbd5e1;
    text-decoration: none;
}

.front-footer a:hover {
    color: var(--front-accent);
}

.front-footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
