/* =====================================================
   ESMEK CRM - Ana Stil Dosyası
   Eskişehir Meslek Edindirme Müdürlüğü
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* =====================================================
   CSS DEĞİŞKENLERİ
   ===================================================== */
:root {
    --primary: #002d62;
    --primary-light: #1a4f8a;
    --primary-dark: #001d42;
    --secondary: #00a0af;
    --secondary-light: #00c4d6;
    --accent: #009cde;
    --accent-light: #e8f6fd;
    --orange: #ff6900;
    --orange-light: #fff4ec;
    --red: #e0004d;
    --purple: #7d55c7;
    --green: #0a7c42;
    --green-light: #e6f9f0;

    --text-dark: #0f1e33;
    --text-body: #374151;
    --text-muted: #64748b;
    --text-light: #ffffff;

    --bg-body: #f4f7fb;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-secondary: #eef2f7;
    --bg-dark: #002d62;

    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border: #cbd5e1;

    --shadow-xs: 0 1px 2px rgba(15, 30, 51, 0.05);
    --shadow-sm: 0 1px 3px rgba(15, 30, 51, 0.06), 0 1px 2px rgba(15, 30, 51, 0.04);
    --shadow: 0 4px 10px rgba(15, 30, 51, 0.06), 0 2px 4px rgba(15, 30, 51, 0.03);
    --shadow-md: 0 12px 24px -6px rgba(15, 30, 51, 0.1), 0 4px 8px rgba(15, 30, 51, 0.04);
    --shadow-lg: 0 24px 48px -12px rgba(15, 30, 51, 0.16), 0 8px 16px rgba(15, 30, 51, 0.06);

    --focus-ring: 0 0 0 3px rgba(0, 156, 222, 0.35);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --font-family: 'Plus Jakarta Sans', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;

    --header-height: 72px;
    --sidebar-width: 260px;
    --container-max: 1400px;

    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text-body);
    background: var(--bg-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    max-width: 100%;
}

main {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    letter-spacing: -0.015em;
    line-height: 1.25;
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: var(--radius-sm);
}

::selection {
    background: var(--accent);
    color: #fff;
}

/* Skip link (klavye erişilebilirliği) */
.skip-link {
    position: absolute;
    top: -48px;
    left: 12px;
    z-index: 2000;
    background: var(--primary);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 10px 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
}

/* Scroll-reveal (JS ile .revealed eklenir) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================================================
   PAGE BANNERS (hero ile ortak görünüm)
   ===================================================== */
.page-header,
.courses-page-header {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(ellipse 900px 500px at 85% -10%, rgba(0, 196, 214, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 700px 450px at -5% 110%, rgba(0, 156, 222, 0.28) 0%, transparent 55%),
        linear-gradient(140deg, #001d42 0%, var(--primary) 45%, #00417e 100%);
    padding: 44px 0 40px;
}

.page-header {
    margin-bottom: 30px;
}

.page-header::before,
.courses-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.9), transparent 60%);
    -webkit-mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.9), transparent 60%);
    pointer-events: none;
}

.page-header::after,
.courses-page-header::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 196, 214, 0.14) 0%, transparent 65%);
    pointer-events: none;
}

.page-header .container,
.courses-page-header .section-container {
    position: relative;
    z-index: 1;
}

.page-header h1,
.courses-page-header h1 {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.page-header .breadcrumb,
.courses-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.85);
}

.page-header .breadcrumb a,
.courses-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumb a:hover,
.courses-breadcrumb a:hover {
    color: #fff;
}

.page-header .breadcrumb span,
.courses-breadcrumb span {
    color: rgba(255, 255, 255, 0.55);
}

.main-content {
    flex: 1;
    padding: 30px 0;
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */
.site-header {
    background: var(--bg-white);
    color: var(--text-dark);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
}

.header-top {
    background: var(--primary);
    padding: 6px 0;
    font-size: var(--font-size-xs);
    color: #fff;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-xs);
}
.header-top a:hover {
    color: #fff;
}

.header-main {
    padding: 0;
    border-bottom: 3px solid var(--accent);
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-logo img {
    height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.header-logo .logo-text {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.header-logo .logo-text small {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: 400;
    color: var(--text-muted);
}

/* Nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.main-nav a {
    color: var(--text-body);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}
.main-nav a:hover {
    background: var(--bg-light);
    color: var(--accent);
}
.main-nav a.active {
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
}
.mobile-toggle:hover {
    background: var(--bg-light);
}

/* =====================================================
   HERO SECTION (Ana Sayfa)
   ===================================================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 40%, var(--secondary) 100%);
    color: var(--text-light);
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,160,175,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    min-width: 80px;
}

.hero-stat .stat-number {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    display: block;
}

.hero-stat .stat-label {
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

.hero-image {
    flex: 1;
    max-width: 380px;
}

.hero-image img {
    max-height: 260px;
    margin: 0 auto;
    background: #fff;
    padding: 20px 28px;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* About Home Section */
.about-home {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.about-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-home-title {
    color: var(--primary);
    font-size: var(--font-size-2xl);
    margin-bottom: 16px;
}

.about-home-image {
    text-align: center;
}

/* =====================================================
   SEARCH BAR
   ===================================================== */
.search-section {
    background: var(--bg-white);
    padding: 28px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 680px;
    margin: 0 auto;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 6px 6px 6px 24px;
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 156, 222, 0.1);
    background: var(--bg-white);
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: var(--font-size-lg);
    outline: none;
    color: var(--text-dark);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-bar button {
    padding: 12px 28px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: var(--font-size-sm);
}

.search-bar button:hover {
    background: var(--primary);
    box-shadow: var(--shadow);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    line-height: 1.4;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #fff;
}

.btn-secondary {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}
.btn-secondary:hover {
    background: var(--secondary-light);
    border-color: var(--secondary-light);
    color: #fff;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-accent:hover {
    background: #0086c0;
    border-color: #0086c0;
    color: #fff;
}

.btn-orange {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
}
.btn-orange:hover {
    background: #e05e00;
    border-color: #e05e00;
    color: #fff;
}

.btn-danger {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}
.btn-danger:hover {
    background: #c0003e;
    border-color: #c0003e;
    color: #fff;
}

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text-body);
}
.btn-outline:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-outline-light {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}
.btn-outline-light:hover {
    background: #fff;
    border-color: #fff;
    color: var(--primary);
}

.btn-sm {
    padding: 7px 16px;
    font-size: var(--font-size-xs);
}

.btn-lg {
    padding: 14px 32px;
    font-size: var(--font-size-base);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-slow);
    border: 1px solid var(--border-color);
}

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

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-text {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin-bottom: 12px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-bottom: 12px;
}

.card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-light);
    padding: 3px 8px;
    border-radius: var(--radius-full);
}
.card-meta-item .icon-svg {
    flex-shrink: 0;
    opacity: 0.88;
}

.card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-light);
}

/* Course Card */
.course-card .card-image {
    position: relative;
}

.course-card .card-status {
    position: absolute;
    top: 12px;
    left: 12px;
}

.course-card .card-capacity {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 45, 98, 0.85);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* =====================================================
   GRID SYSTEM
   ===================================================== */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex {
    display: flex;
}

.flex-wrap { flex-wrap: wrap; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { align-items: center; justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.gap-30 { gap: 30px; }

/* =====================================================
   FORMS
   ===================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-size: var(--font-size-sm);
}

.form-label .required {
    color: var(--red);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    color: var(--text-dark);
    background: var(--bg-white);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 156, 222, 0.1);
}

.form-control:hover:not(:focus) {
    border-color: var(--border);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control-lg {
    padding: 16px 20px;
    font-size: var(--font-size-lg);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-top: 4px;
}

.form-error {
    font-size: var(--font-size-xs);
    color: var(--red);
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 8px;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* =====================================================
   TABLES
   ===================================================== */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
}

.table th {
    background: var(--bg-secondary);
    color: var(--text-dark);
    padding: 12px 16px;
    text-align: left;
    font-size: var(--font-size-xs);
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid var(--border-color);
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: var(--font-size-sm);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: var(--bg-light);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* =====================================================
   BADGES
   ===================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    white-space: nowrap;
}

.badge-success {
    background: #e6f9f0;
    color: #0a7c42;
}

.badge-danger {
    background: #fde8ef;
    color: #c0003e;
}

.badge-warning {
    background: #fff8e6;
    color: #b37a00;
}

.badge-info {
    background: #e6f4ff;
    color: #0068b3;
}

.badge-secondary {
    background: #eef2f7;
    color: #5a6678;
}

.badge-dark {
    background: #e8e8e8;
    color: #333;
}

.badge-purple {
    background: #f0ebfa;
    color: #5a3da0;
}

/* =====================================================
   ALERTS
   ===================================================== */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: var(--font-size-base);
    animation: slideDown 0.3s ease;
}

.alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}
.alert-icon svg,
.alert-icon-svg {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.alert-message {
    flex: 1;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.3em;
    cursor: pointer;
    opacity: 0.6;
    padding: 0 4px;
    line-height: 1;
}
.alert-close:hover {
    opacity: 1;
}

.alert-success {
    background: #e6f9f0;
    color: #0a7c42;
    border: 1px solid #b3e8ce;
}

.alert-error {
    background: #fde8ef;
    color: #c0003e;
    border: 1px solid #f5b3c8;
}

.alert-warning {
    background: #fff8e6;
    color: #b37a00;
    border: 1px solid #ffe0a3;
}

.alert-info {
    background: #e6f4ff;
    color: #0068b3;
    border: 1px solid #a3d4ff;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: 50px 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand img {
    height: 44px;
    width: auto;
}

.footer-brand p {
    font-size: var(--font-size-sm);
    line-height: 1.7;
    opacity: 0.8;
}

.footer-heading {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 0;
    font-size: var(--font-size-sm);
    transition: var(--transition);
}
.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: var(--font-size-sm);
    opacity: 0.7;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: var(--font-size-lg);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.footer-logos img {
    height: 42px;
    width: auto;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.78);
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

a.footer-contact-item:hover {
    color: #fff;
}

.footer-contact-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-light);
    flex-shrink: 0;
    margin-top: 1px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
}
.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
}
.footer-bottom-links a:hover {
    color: #fff;
}

/* =====================================================
   STAT CARDS
   ===================================================== */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent);
    transition: var(--transition);
}

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

.stat-card-value {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.stat-card-label {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: 6px;
}

.stat-card.primary { border-top-color: var(--primary); }
.stat-card.secondary { border-top-color: var(--secondary); }
.stat-card.orange { border-top-color: var(--orange); }
.stat-card.purple { border-top-color: var(--purple); }

/* =====================================================
   SECTION TITLES
   ===================================================== */
.section-title {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}

.section-subtitle {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: -18px;
    margin-bottom: 24px;
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination {
    display: flex;
    gap: 6px;
    align-items: center;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: var(--radius);
    background: var(--bg-white);
    color: var(--text-body);
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.pagination-link:hover,
.pagination-link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination-dots {
    padding: 0 8px;
    color: var(--text-muted);
}

/* =====================================================
   AUTH PAGES (split-screen)
   ===================================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary) 100%);
    padding: 20px;
}

.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1040px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-height: 620px;
}

.auth-brand {
    position: relative;
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 55%, #014a8f 100%);
    color: #fff;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.auth-brand::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -25%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(0, 196, 214, 0.25) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-brand::after {
    content: '';
    position: absolute;
    bottom: -35%;
    left: -20%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(0, 156, 222, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-brand > * {
    position: relative;
    z-index: 1;
}

.auth-brand-logos {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.auth-brand-logos img {
    height: 40px;
    width: auto;
}

.auth-brand-body h2 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
}

.auth-brand-body h2 span {
    color: var(--secondary-light);
}

.auth-brand-body p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-sm);
    line-height: 1.7;
    max-width: 360px;
}

.auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 26px;
}

.auth-brand-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.9);
}

.auth-brand-feature .icon-svg {
    color: var(--secondary-light);
    flex-shrink: 0;
}

.auth-brand-foot {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.55);
}

.auth-card {
    background: var(--bg-white);
    width: 100%;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-page > .auth-card {
    max-width: 460px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    text-align: left;
    margin-bottom: 28px;
}

.auth-logo img {
    height: 52px;
    margin-bottom: 12px;
}

.auth-logo h2 {
    font-size: var(--font-size-2xl);
    color: var(--primary);
    font-weight: 800;
}

.auth-logo p {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    margin-top: 4px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent);
    font-weight: 600;
}

@media (max-width: 900px) {
    .auth-split {
        grid-template-columns: 1fr;
        min-height: 0;
        max-width: 520px;
    }

    .auth-brand {
        display: none;
    }

    .auth-card {
        padding: 36px 28px;
    }

    .auth-logo {
        text-align: center;
    }

    .auth-logo img {
        margin-left: auto;
        margin-right: auto;
    }
}

/* =====================================================
   MODAL
   ===================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}
.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* =====================================================
   SIDEBAR (Admin Panel)
   ===================================================== */
.admin-layout {
    display: flex;
    min-height: calc(100vh - var(--header-height));
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-white);
    border-right: 1px solid var(--border-light);
    padding: 20px 0;
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-menu {
    padding: 0 12px;
}

.sidebar-heading {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 16px 12px 8px;
    font-weight: 700;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-body);
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
}

.sidebar-link:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.sidebar-link.active {
    background: rgba(0, 156, 222, 0.1);
    color: var(--accent);
    font-weight: 600;
}

.sidebar-link .sidebar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: inherit;
}
.sidebar-link .sidebar-icon .icon-svg {
    width: 20px;
    height: 20px;
}

.admin-content {
    flex: 1;
    padding: 24px 30px;
    overflow-x: hidden;
}

/* =====================================================
   TABS
   ===================================================== */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 24px;
    gap: 0;
}

.tab-link {
    padding: 12px 24px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: var(--font-size-sm);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
}

.tab-link:hover {
    color: var(--primary);
}

.tab-link.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* =====================================================
   PROGRESS BAR
   ===================================================== */
.progress-bar {
    height: 8px;
    background: var(--bg-light);
    border-radius: 50px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    transition: width 0.5s ease;
}

.progress-fill.danger { background: var(--red); }
.progress-fill.warning { background: var(--orange); }
.progress-fill.success { background: #28a745; }

/* =====================================================
   UTILITIES
   ===================================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-success { color: #0a7c42; }
.text-danger { color: var(--red); }
.text-warning { color: var(--orange); }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.p-20 { padding: 20px; }
.p-30 { padding: 30px; }

.hidden { display: none !important; }
.block { display: block; }

.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =====================================================
   EMPTY STATE
   ===================================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}
.empty-state-icon .icon-svg {
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: var(--font-size-xl);
    color: var(--text-dark);
    margin-bottom: 8px;
}

.empty-state p {
    max-width: 400px;
    margin: 0 auto 20px;
    font-size: var(--font-size-sm);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }

    .hero-content { max-width: 520px; }
    .hero-image { max-width: 320px; }

    .sidebar {
        position: fixed;
        left: calc(-1 * var(--sidebar-width));
        top: var(--header-height);
        z-index: 999;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .sidebar.open {
        left: 0;
    }

    .admin-content {
        padding: 20px 16px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.25rem;
    }

    /* Header mobile */
    .header-top {
        display: none;
    }

    .header-logo img {
        height: 36px;
        max-width: 160px;
    }

    .header-actions .btn {
        padding: 6px 12px;
        font-size: var(--font-size-xs);
    }

    /* Hero mobile */
    .hero {
        padding: 40px 0;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: var(--font-size-4xl);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-content p {
        font-size: var(--font-size-base);
    }

    .hero-stats {
        justify-content: center;
        gap: 16px;
    }

    .hero-stat .stat-number {
        font-size: var(--font-size-2xl);
    }

    .hero-stat .stat-label {
        font-size: var(--font-size-xs);
    }

    .hero-image {
        display: none;
    }

    .btn-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-group .btn {
        width: 100%;
    }

    /* Grid mobile */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card-value {
        font-size: var(--font-size-2xl);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Nav mobile */
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 12px;
        box-shadow: var(--shadow-lg);
        z-index: 999;
        border-top: 1px solid var(--border-color);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 14px 16px;
        border-radius: var(--radius-sm);
        width: 100%;
        font-size: var(--font-size-base);
        color: var(--text-body);
    }

    .main-nav a.active {
        background: var(--accent-light);
        color: var(--accent);
    }

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Section title mobile */
    .section-title {
        font-size: var(--font-size-xl);
    }

    .flex.flex-between {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* About home mobile */
    .about-home {
        padding: 24px;
    }

    .about-home-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-home-image {
        display: none;
    }

    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand > div:first-child {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    /* Page elements */
    .page-header,
    .courses-page-header {
        padding: 28px 0 26px;
    }

    .page-header h1,
    .courses-page-header h1 {
        font-size: var(--font-size-2xl);
    }

    .page-header::after,
    .courses-page-header::after {
        width: 220px;
        height: 220px;
        top: -60px;
        right: -40px;
    }

    .auth-card {
        padding: 32px 24px;
    }

    .table th, .table td {
        padding: 10px 12px;
        font-size: var(--font-size-xs);
    }

    .modal {
        margin: 12px;
        max-height: calc(100vh - 24px);
    }

    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-link {
        padding: 10px 16px;
        font-size: var(--font-size-xs);
    }

    /* Card meta mobile */
    .card-meta {
        gap: 8px;
    }

    .card-meta-item {
        font-size: var(--font-size-xs);
    }

    .card-footer {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Search mobile */
    .search-section {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-4xl: 1.5rem;
        --font-size-3xl: 1.25rem;
        --font-size-2xl: 1.125rem;
    }

    .hero {
        padding: 32px 0;
    }

    .hero-content p {
        font-size: var(--font-size-sm);
        margin-bottom: 20px;
    }

    .hero-stats {
        gap: 12px;
        margin-top: 20px;
    }

    .hero-stat .stat-number {
        font-size: var(--font-size-xl);
    }

    .container {
        padding: 0 12px;
    }

    .main-content {
        padding: 20px 0;
    }

    .card-body {
        padding: 14px;
    }

    .card-title {
        font-size: var(--font-size-base);
    }

    .search-bar {
        flex-direction: column;
        padding: 12px;
        gap: 8px;
    }

    .search-bar input {
        font-size: var(--font-size-base);
        padding: 10px 0;
    }

    .search-bar button {
        width: 100%;
    }

    .stat-cards {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-card-value {
        font-size: var(--font-size-xl);
    }

    .stat-card-label {
        font-size: var(--font-size-xs);
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: var(--font-size-base);
    }

    .about-home {
        padding: 20px 16px;
    }

    .about-home-title {
        font-size: var(--font-size-xl);
    }

    /* Header ultra-small */
    .header-logo img {
        height: 32px;
        max-width: 140px;
    }

    .header-actions {
        gap: 6px;
    }

    .header-actions .btn {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
}

/* =====================================================
   HEADER - KURUMSAL TEMA
   ===================================================== */
.site-header {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 18px rgba(0, 26, 66, 0.18);
}

.header-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 30px;
}

/* --- Üst bilgi şeridi --- */
.header-top {
    background: var(--primary-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: var(--font-size-xs);
}

.header-top .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 38px;
}

.header-top-left,
.header-top-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-contact {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.78);
    font-size: var(--font-size-xs);
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

.header-contact svg {
    flex-shrink: 0;
    color: var(--secondary-light);
    opacity: 0.9;
}

a.header-contact:hover {
    color: #fff;
}

.header-contact-loc {
    cursor: default;
}

.header-welcome {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--font-size-xs);
}

.header-welcome svg {
    color: var(--secondary-light);
}

.header-welcome strong {
    color: #fff;
    font-weight: 600;
}

.header-social {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-social a {
    color: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.header-social a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.header-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
}

/* --- Ana şerit (logo + menü) — yapışkan; üst bar doğal olarak kayar --- */
.header-main {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent);
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    transition: box-shadow 0.25s ease;
}

.header-main .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: var(--header-height);
}

.header-logos {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.header-logos:hover {
    opacity: 0.92;
}

.header-logos img {
    height: 46px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
}

.logo-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}

/* --- Navigasyon --- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.main-nav a {
    position: relative;
    color: rgba(255, 255, 255, 0.82);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--secondary-light);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.main-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
}

.main-nav a.active::after {
    transform: scaleX(1);
    background: var(--accent);
    height: 3px;
}

/* --- Aksiyon butonları --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-main .header-actions .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.header-main .header-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.7);
}

.mobile-toggle {
    color: #fff;
    border-radius: var(--radius-sm);
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobil menü içindeki giriş/kayıt aksiyonları (yalnızca mobilde görünür) */
.nav-mobile-actions {
    display: none;
}

@media (max-width: 1100px) {
    .header-contact-loc,
    .header-divider-loc {
        display: none;
    }
}

@media (max-width: 960px) {
    .header-welcome,
    .header-divider-welcome {
        display: none;
    }
}

/* =====================================================
   HOMEPAGE HERO
   ===================================================== */
.homepage-hero {
    color: #fff;
    padding: 56px 0 60px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 900px 500px at 85% -10%, rgba(0, 196, 214, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 700px 450px at -5% 110%, rgba(0, 156, 222, 0.28) 0%, transparent 55%),
        linear-gradient(140deg, #001d42 0%, var(--primary) 45%, #00417e 100%);
}

/* Noktalı doku */
.homepage-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(120deg, rgba(0,0,0,0.9), transparent 60%);
    -webkit-mask-image: linear-gradient(120deg, rgba(0,0,0,0.9), transparent 60%);
    pointer-events: none;
}

/* Işık halkası */
.homepage-hero::after {
    content: '';
    position: absolute;
    top: -180px;
    right: -120px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 196, 214, 0.14) 0%, transparent 65%);
    pointer-events: none;
}

.hero-container,
.section-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0, 196, 214, 0.14);
    border: 1px solid rgba(0, 196, 214, 0.35);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    margin-bottom: 18px;
}
.hero-eyebrow .icon-svg { color: var(--secondary-light); }

/* Genel h1 kuralı (--text-dark) başlığı koyulaştırıyordu; hero'da beyaz zorunlu */
.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
    color: #fff;
    text-wrap: balance;
}

.hero-title span {
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, var(--secondary-light) 0%, #7fdcff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--secondary-light);
}

.hero-title span::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 8px;
    background: linear-gradient(90deg, rgba(0, 196, 214, 0.45), rgba(0, 156, 222, 0.2));
    border-radius: 4px;
    z-index: -1;
}

.hero-subtitle {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 22px;
    max-width: 520px;
}

.hero-quick-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.hero-quick-label {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
}

.hero-quick-links a {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-xs);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: all 0.2s;
}

.hero-quick-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.hero-search-box {
    margin-bottom: 20px;
    position: relative;
    z-index: 50;
    max-width: 640px;
}

.hero-search-form {
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: var(--radius-full);
    background: #fff;
    position: relative;
    padding: 6px 6px 6px 18px;
    box-shadow: 0 16px 44px -10px rgba(0, 15, 40, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.hero-search-form:focus-within {
    box-shadow: 0 20px 50px -8px rgba(0, 15, 40, 0.55), 0 0 0 3px rgba(0, 196, 214, 0.45);
    transform: translateY(-1px);
}

.hero-search-ic {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    flex-shrink: 0;
    margin-right: 10px;
}

.hero-search-divider {
    width: 1px;
    height: 26px;
    background: var(--border-color);
    flex-shrink: 0;
    margin: 0 4px;
}

.hero-select {
    padding: 10px 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    font-weight: 600;
    max-width: 150px;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 26px;
    flex-shrink: 0;
}

.hero-input {
    flex: 1;
    padding: 12px 4px;
    border: none;
    background: transparent;
    font-size: var(--font-size-sm);
    color: var(--text-dark);
    outline: none;
    min-width: 0;
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.autocomplete-dropdown.active {
    display: block;
}

.ac-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.15s;
    border-bottom: 1px solid var(--border-light);
}

.ac-item:last-child {
    border-bottom: none;
}

.ac-item:hover,
.ac-item.ac-active {
    background: var(--accent-light);
    color: var(--text-dark);
}

.ac-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.ac-thumb-placeholder {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ac-info {
    flex: 1;
    min-width: 0;
}

.ac-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ac-meta {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ac-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ac-meta .ac-ic {
    flex-shrink: 0;
    opacity: 0.88;
}

.ac-badges {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.ac-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.ac-badge-online { background: var(--purple); }
.ac-badge-yuzyuze { background: var(--red); }
.ac-badge-open { background: var(--green); }

.ac-empty {
    padding: 20px 14px;
    text-align: center;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.ac-footer {
    padding: 10px 14px;
    text-align: center;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius) var(--radius);
}

.ac-footer a {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--accent);
}

.hero-input::placeholder {
    color: var(--text-muted);
}

.hero-search-btn {
    padding: 12px 22px;
    background: linear-gradient(120deg, var(--accent) 0%, #007ab3 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: filter 0.2s, transform 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    margin-left: 6px;
}

.hero-search-btn:hover {
    filter: brightness(1.12);
    transform: translateX(1px);
}

.hero-centers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-centers a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-xs);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s;
}

.hero-centers a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.center-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
}
.center-icon .icon-svg {
    flex-shrink: 0;
}
.course-meta-ic {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-right: 4px;
    opacity: 0.85;
}
.course-meta-ic .icon-svg {
    position: relative;
    top: 1px;
}
.course-card-placeholder-icon {
    opacity: 0.28;
}
.empty-state-svg {
    opacity: 0.45;
}

/* Hero Slider */
.hero-slider-wrap {
    position: relative;
}

/* Arkadaki dekoratif katmanlar */
.hero-slider-wrap::before {
    content: '';
    position: absolute;
    inset: 14px -14px -14px 14px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(0, 196, 214, 0.35), rgba(0, 156, 222, 0.12));
    z-index: 0;
    pointer-events: none;
}

.hero-slider-wrap::after {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    width: 110px;
    height: 110px;
    border-radius: var(--radius-lg);
    background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    z-index: 0;
    pointer-events: none;
}

.hero-slider {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 28px 70px -12px rgba(0, 10, 30, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    z-index: 1;
}

.slider-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

.slider-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slider-slide.active {
    opacity: 1;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 44px 24px 22px;
    background: linear-gradient(transparent, rgba(0, 13, 31, 0.85));
}

.slider-caption h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.slider-caption p {
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

.slider-default {
    background:
        radial-gradient(ellipse 400px 300px at 80% 15%, rgba(255, 255, 255, 0.14) 0%, transparent 60%),
        linear-gradient(135deg, var(--secondary) 0%, var(--accent) 50%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.slider-default-content {
    text-align: center;
    padding: 40px;
}

.slider-default-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--font-size-sm);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.slider-default-content h2 {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
    color: #fff;
}

.slider-default-content p {
    font-size: var(--font-size-base);
    opacity: 0.9;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-prev { left: 12px; }
.slider-next { right: 12px; }

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.slider-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* =====================================================
   HOMEPAGE SECTIONS
   ===================================================== */
.homepage-section {
    padding: 40px 0;
    background: var(--bg-body);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-all-link {
    color: var(--accent);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.scroll-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--text-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}

.scroll-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Course Cards Scroll */
.course-cards-wrapper {
    overflow: hidden;
    position: relative;
}

.course-cards-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.course-cards-track::-webkit-scrollbar {
    display: none;
}

.course-card-item {
    min-width: calc(25% - 15px);
    max-width: calc(25% - 15px);
    flex-shrink: 0;
}

.course-card-link {
    display: block;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.course-card-link:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--accent);
    color: inherit;
}

.course-card-image {
    position: relative;
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--branch-color, var(--primary)) 0%, var(--branch-color, var(--secondary)) 100%);
    overflow: hidden;
}

.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 3rem;
}

.course-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
}

.course-card-info {
    padding: 16px;
}

.course-card-info h3 {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card-center,
.course-card-branch,
.course-card-date {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* =====================================================
   HERO MİNİ İSTATİSTİKLER
   ===================================================== */
.hero-mini-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.hero-mini-stat strong {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.hero-mini-stat span {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.65);
}

.hero-mini-divider {
    width: 1px;
    height: 34px;
    background: rgba(255, 255, 255, 0.18);
}

/* =====================================================
   MERKEZLER (Ana Sayfa)
   ===================================================== */
.centers-home-section {
    background: var(--bg-white);
}

.centers-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.center-home-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: inherit;
    transition: all 0.25s;
}

.center-home-card:hover {
    background: var(--bg-white);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    color: inherit;
}

.center-home-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--accent-light);
    color: var(--accent);
    flex-shrink: 0;
    transition: all 0.25s;
}

.center-home-card:hover .center-home-icon {
    background: var(--accent);
    color: #fff;
}

.center-home-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.center-home-info strong {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.center-home-meta {
    display: flex;
    gap: 10px;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.center-home-arrow {
    display: inline-flex;
    color: var(--border);
    flex-shrink: 0;
    transition: color 0.25s, transform 0.25s;
}

.center-home-card:hover .center-home-arrow {
    color: var(--accent);
    transform: translateX(3px);
}

@media (max-width: 1024px) {
    .centers-home-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .centers-home-grid {
        grid-template-columns: 1fr;
    }

    .hero-mini-stats {
        gap: 14px;
    }
}

/* =====================================================
   HOMEPAGE STATS
   ===================================================== */
.homepage-stats {
    background: var(--bg-secondary);
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stats-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stats-item {
    padding: 20px;
}

.stats-icon {
    color: var(--accent);
    margin-bottom: 12px;
}

.stats-icon svg {
    margin: 0 auto;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stats-label {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: 1.5;
}

/* =====================================================
   HOMEPAGE RESPONSIVE
   ===================================================== */
@media (max-width: 1200px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .course-card-item {
        min-width: calc(33.333% - 14px);
        max-width: calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }

    .header-logos img {
        height: 32px;
        max-width: 100px;
    }

    .logo-divider {
        height: 24px;
    }

    .header-social {
        display: none;
    }

    .header-divider {
        display: none;
    }

    .header-top-left span {
        font-size: 0.7rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: var(--font-size-sm);
    }

    .hero-search-form {
        flex-wrap: wrap;
        border-radius: var(--radius-lg);
        padding: 10px 12px;
        row-gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .hero-search-form > .hero-input {
        width: calc(100% - 34px);
        flex: 1 1 auto;
        padding: 8px 0;
    }

    .hero-search-divider {
        display: none;
    }

    .hero-search-form > .hero-select {
        flex: 1 1 auto;
        max-width: none;
        min-width: 0;
        background-color: var(--bg-light);
        border-radius: var(--radius-full);
        padding: 10px 30px 10px 14px;
    }

    .hero-search-form > .hero-search-btn {
        justify-content: center;
        padding: 11px 18px;
        margin-left: 0;
    }

    .hero-right {
        order: 1;
    }

    .hero-left {
        order: 0;
        position: relative;
        z-index: 10;
    }

    .hero-search-box {
        z-index: 20;
        margin-bottom: 28px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .homepage-hero {
        overflow: hidden;
        padding: 30px 0 48px;
    }

    .homepage-hero::after {
        width: 280px;
        height: 280px;
        right: -30%;
    }

    .hero-slider-wrap::before,
    .hero-slider-wrap::after {
        display: none;
    }

    .hero-grid {
        min-width: 0;
    }

    .hero-left,
    .hero-right {
        min-width: 0;
        max-width: 100%;
    }

    .hero-eyebrow {
        max-width: 100%;
        white-space: normal;
        text-align: left;
    }

    .hero-quick-links {
        max-width: 100%;
    }

    .hero-container,
    .section-container {
        padding: 0 16px;
    }

    .course-card-item {
        min-width: calc(50% - 10px);
        max-width: calc(50% - 10px);
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }

    .home-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .home-cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .home-cta-actions .btn {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Mobil menü - kayan panel */
    .main-nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px;
        background: var(--primary);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        z-index: 999;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        color: rgba(255, 255, 255, 0.9);
        padding: 14px 16px;
        border-radius: var(--radius-sm);
        font-size: var(--font-size-base);
        font-weight: 500;
        white-space: normal;
        max-width: 100%;
    }

    .main-nav a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .main-nav a.active {
        background: rgba(255, 255, 255, 0.15);
        color: #fff;
    }

    .nav-mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: auto;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    /* Mobilde header'daki giriş/kayıt butonlarını gizle, menüde göster */
    .header-actions .btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-logos img {
        height: 28px;
        max-width: 80px;
    }

    .header-logos {
        gap: 6px;
    }

    .logo-divider {
        height: 20px;
    }

    .hero-title {
        font-size: 1.45rem;
    }

    .course-card-item {
        min-width: 82%;
        max-width: 82%;
    }

    .stats-number {
        font-size: 2rem;
    }

    .homepage-hero {
        padding: 24px 0;
    }

    .slider-track {
        aspect-ratio: 4/3;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .category-card {
        padding: 18px 10px;
    }

    .category-card-icon {
        width: 50px;
        height: 50px;
    }

    .home-cta-text h2 {
        font-size: var(--font-size-xl);
    }
}

/* =====================================================
   SECTION HEADINGS (shared)
   ===================================================== */
.section-header-center {
    flex-direction: column;
    text-align: center;
    gap: 4px;
}

.section-header-center .section-title {
    justify-content: center;
    margin-bottom: 8px;
}

.section-header-center .section-subtitle {
    margin-top: 0;
}

.section-all-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* =====================================================
   HIZLI ERİŞİM
   ===================================================== */
.quick-access {
    background: var(--bg-body);
    padding: 32px 0 8px;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
}

.quick-access-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.25s;
    color: inherit;
    min-width: 0;
    max-width: 100%;
}

.quick-access-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    color: inherit;
}

.quick-access-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.qa-blue   { background: linear-gradient(135deg, #009cde, #007ab3); }
.qa-orange { background: linear-gradient(135deg, #ff8a3d, #ff6900); }
.qa-teal   { background: linear-gradient(135deg, #00c4d6, #00a0af); }
.qa-red    { background: linear-gradient(135deg, #ff4d7e, #e0004d); }

.quick-access-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.quick-access-text strong {
    font-size: var(--font-size-base);
    color: var(--text-dark);
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
}
.quick-access-text small {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    overflow-wrap: break-word;
    word-break: break-word;
}

/* =====================================================
   KATEGORİLER
   ===================================================== */
.categories-section { padding-top: 36px; }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 24px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.25s;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--cat-color, var(--accent));
    color: inherit;
}

.category-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cat-color, var(--accent));
    background: var(--accent-light);
    background: color-mix(in srgb, var(--cat-color, var(--accent)) 12%, #fff);
    transition: all 0.25s;
}

.category-card:hover .category-card-icon {
    background: var(--cat-color, var(--accent));
    color: #fff;
}

.category-card-name {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.category-card-count {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* =====================================================
   NASIL KAYIT OLUNUR (STEPS)
   ===================================================== */
.steps-section { background: var(--bg-white); }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.step-card {
    position: relative;
    text-align: center;
    padding: 32px 24px 24px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 156, 222, 0.35);
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    margin-bottom: 14px;
}

.step-card h3 {
    font-size: var(--font-size-lg);
    color: var(--text-dark);
    margin-bottom: 6px;
}

.step-card p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: 1.5;
}

/* Hızlı erişim + adımlar — mobil (temel stillerden sonra gelmeli) */
@media (max-width: 768px) {
    .quick-access {
        padding: 16px 0 8px;
    }

    .quick-access-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .quick-access-card {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
        border-radius: var(--radius);
        box-shadow: var(--shadow-sm);
    }

    .quick-access-card:hover {
        transform: none;
    }

    .quick-access-icon {
        width: 40px;
        height: 40px;
        border-radius: var(--radius-sm);
    }

    .quick-access-text strong {
        font-size: 0.875rem;
    }

    .quick-access-text small {
        font-size: 0.75rem;
    }

    .steps-section.homepage-section {
        padding: 28px 0;
    }

    .steps-section .section-title {
        font-size: 1.25rem;
    }

    .steps-section .section-subtitle {
        font-size: var(--font-size-xs);
        margin-top: -10px;
        margin-bottom: 14px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .step-card {
        display: grid;
        grid-template-columns: 40px 1fr;
        grid-template-rows: auto auto;
        column-gap: 12px;
        row-gap: 2px;
        align-items: center;
        text-align: left;
        padding: 12px 14px 12px 44px;
        border-radius: var(--radius);
    }

    .step-number {
        top: 50%;
        left: 12px;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        font-size: 0.6875rem;
        box-shadow: var(--shadow-sm);
    }

    .step-icon {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 40px;
        height: 40px;
        margin-bottom: 0;
        align-self: center;
        justify-self: center;
    }

    .step-card h3 {
        grid-column: 2;
        grid-row: 1;
        font-size: 0.875rem;
        margin-bottom: 0;
    }

    .step-card p {
        grid-column: 2;
        grid-row: 2;
        font-size: 0.75rem;
        line-height: 1.35;
    }
}

/* =====================================================
   HOME CTA
   ===================================================== */
.home-cta {
    padding: 48px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, var(--secondary) 100%);
    color: #fff;
}

.home-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.home-cta-text h2 {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    margin-bottom: 6px;
}
.home-cta-text p {
    font-size: var(--font-size-base);
    opacity: 0.9;
}

.home-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* =====================================================
   COURSES PAGE
   ===================================================== */
.courses-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.courses-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-sm);
}

.courses-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.courses-breadcrumb a:hover {
    color: #fff;
}

.courses-header-icon {
    opacity: 0.6;
    position: relative;
    z-index: 1;
}
.courses-header-deco {
    color: rgba(255, 255, 255, 0.15);
}
.breadcrumb-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.courses-info-check {
    color: var(--green);
    flex-shrink: 0;
}

.courses-section {
    padding: 30px 0 50px;
    background: var(--bg-body);
}

.courses-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* Filter Sidebar */
.filter-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 30px + 20px);
}

.filter-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 24px;
}

.filter-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.filter-group {
    margin-bottom: 16px;
}

.filter-label {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    color: var(--text-dark);
    background: var(--bg-white);
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

input.filter-select {
    background-image: none;
    padding-right: 12px;
}

.filter-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 156, 222, 0.1);
}

.filter-radios {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--text-body);
}

.filter-radio input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

.filter-clear-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: var(--font-size-xs);
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 500;
}
.filter-clear-link .icon-svg {
    flex-shrink: 0;
}

.filter-clear-link:hover {
    color: var(--primary);
}

.filter-submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 1px;
}

.filter-submit-btn:hover {
    background: var(--primary);
}

/* Courses Content */
.courses-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background: var(--green-light);
    border: 1px solid #b3e8ce;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: var(--font-size-sm);
    color: var(--green);
    font-weight: 500;
}

.courses-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.courses-result-title {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.courses-result-title::before {
    content: '';
    width: 4px;
    height: 22px;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}

.courses-result-count {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: 500;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Course Card V2 */
.course-card-v2 {
    display: block;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.course-card-v2:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--accent);
    color: inherit;
}

.course-card-v2-image {
    position: relative;
    width: 100%;
    height: 170px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    overflow: hidden;
}

.course-card-v2-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-card-v2-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 3rem;
}

.course-card-v2-badges {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.course-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-yuzyuze {
    background: var(--red);
}

.badge-online {
    background: var(--purple);
}

.badge-open {
    background: var(--green);
}

.course-card-v2-body {
    padding: 16px;
}

.course-card-v2-title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card-v2-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.course-card-v2-meta span {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.course-v2-meta-line .icon-svg {
    flex-shrink: 0;
    opacity: 0.88;
}

.card-text-with-icon {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.card-text-with-icon .icon-svg {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.85;
}
.btn-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-with-icon .icon-svg {
    flex-shrink: 0;
}

/* Courses Responsive */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .courses-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: static;
    }

    .courses-header-icon {
        display: none;
    }

    .courses-result-header {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .courses-info-bar {
        font-size: var(--font-size-xs);
    }
}

/* =====================================================
   BRANŞ RENK ŞERIDI & TEMALI KARTLAR
   ===================================================== */
.course-card-branch-strip {
    height: 4px;
    border-radius: 2px;
    margin-bottom: 10px;
    width: 40px;
    transition: width 0.3s ease;
}

.course-card-link:hover .course-card-branch-strip,
.course-card-v2:hover .course-card-branch-strip {
    width: 100%;
}

.course-card-v2 {
    border-top: 3px solid var(--branch-color, var(--accent));
}

.course-card-v2:hover {
    border-top-color: var(--branch-color, var(--accent));
    box-shadow: 0 8px 30px color-mix(in srgb, var(--branch-color, var(--accent)) 20%, transparent);
}

.course-card-link {
    border-top: 3px solid var(--branch-color, var(--accent));
}

.course-card-link:hover {
    box-shadow: 0 8px 30px color-mix(in srgb, var(--branch-color, var(--accent)) 20%, transparent);
}

/* =====================================================
   MERKEZ KARTLARI (centers.php)
   ===================================================== */
.center-card {
    display: flex;
    flex-direction: column;
}

.center-card-media {
    position: relative;
    height: 170px;
    overflow: hidden;
}

.center-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.center-card-media-fallback {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-card-fallback-icon {
    color: rgba(255, 255, 255, 0.25);
}

.center-card-media-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0, 29, 66, 0.85));
    color: #fff;
}

.center-card-media-overlay h3 {
    color: #fff;
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: 2px;
}

.center-card-media-overlay span {
    font-size: var(--font-size-xs);
    opacity: 0.85;
}

.center-card-contact {
    margin-bottom: 4px;
}

.center-hours {
    margin-top: 12px;
    padding: 10px 12px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.center-hours-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.center-hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 12px;
}

.center-hours-day {
    font-size: var(--font-size-xs);
    padding: 2px 0;
    color: var(--text-muted);
}

.center-hours-day.is-today {
    font-weight: 700;
    color: var(--green);
}

.center-hours-closed {
    color: var(--red);
}

.center-hours-status {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: var(--font-size-xs);
    font-weight: 700;
}

.center-hours-status.is-open { color: var(--green); }
.center-hours-status.is-closed { color: var(--red); }

.center-card-badges {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.center-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.center-card-btn {
    flex: 1;
    text-align: center;
}

.center-card-map {
    margin-top: 12px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* =====================================================
   TAKVİM (calendar.php)
   ===================================================== */
.calendar-card-body {
    padding: 24px;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.calendar-nav-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-title {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--primary);
}

.calendar-nav-spacer {
    min-width: 110px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.calendar-head-cell {
    background: var(--primary);
    color: #fff;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.calendar-cell {
    background: var(--bg-white);
    padding: 8px;
    min-height: 100px;
}

.calendar-cell-empty {
    background: var(--bg-light);
}

.calendar-cell.is-today {
    background: rgba(0, 156, 222, 0.07);
    box-shadow: inset 0 0 0 2px var(--accent);
}

.calendar-day-number {
    font-weight: 600;
    font-size: var(--font-size-sm);
    margin-bottom: 4px;
    color: var(--text-dark);
}

.calendar-cell.is-today .calendar-day-number {
    font-weight: 800;
    color: var(--accent);
}

.calendar-event {
    display: block;
    padding: 3px 7px;
    margin-bottom: 3px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: opacity 0.15s, transform 0.15s;
}

.calendar-event:hover {
    color: #fff;
    opacity: 0.85;
    transform: translateX(2px);
}

.calendar-more {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Mobil liste görünümü */
.calendar-list {
    display: none;
}

.calendar-list-day {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.calendar-list-day:last-child {
    border-bottom: none;
}

.calendar-list-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.calendar-list-day.is-today .calendar-list-date {
    background: var(--accent);
    border-color: var(--accent);
}

.calendar-list-date strong {
    font-size: var(--font-size-lg);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
}

.calendar-list-date span {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.calendar-list-day.is-today .calendar-list-date strong,
.calendar-list-day.is-today .calendar-list-date span {
    color: #fff;
}

.calendar-list-events {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.calendar-list-event {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: var(--font-size-sm);
    transition: background 0.15s;
}

.calendar-list-event:hover {
    background: var(--accent-light);
    color: var(--text-dark);
}

.calendar-list-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.calendar-list-event-title {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-list-event small {
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    margin-left: auto;
    flex-shrink: 0;
}

@media (max-width: 700px) {
    .calendar-grid {
        display: none;
    }

    .calendar-list {
        display: block;
    }

    .calendar-nav {
        flex-wrap: wrap;
    }

    .calendar-nav-spacer {
        display: none;
    }

    .calendar-card-body {
        padding: 16px;
    }
}

/* =====================================================
   SAYFA BÖLÜM KARTLARI (about, contact)
   ===================================================== */
.content-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 36px;
    margin-bottom: 24px;
}

.content-card h2 {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-card h2 .content-card-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    background: var(--accent-light);
    color: var(--accent);
    flex-shrink: 0;
}

.content-card p {
    line-height: 1.8;
    color: var(--text-body);
}

.content-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.feature-tile {
    padding: 18px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--tile-color, var(--accent));
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.feature-tile h4 {
    margin-bottom: 4px;
    font-size: var(--font-size-base);
}

.feature-tile p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin-bottom: 14px;
}

.contact-info-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--accent-light);
    color: var(--accent);
    flex-shrink: 0;
}

.contact-info-item h4 {
    margin-bottom: 2px;
    font-size: var(--font-size-base);
}

.contact-info-item p {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .content-grid-2 {
        grid-template-columns: 1fr;
    }

    .content-card {
        padding: 24px 20px;
    }
}

/* =====================================================
   KURS DETAY DÜZENİ
   ===================================================== */
.course-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.course-detail-sidebar-card {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.course-detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.course-detail-info-grid strong {
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .course-detail-layout {
        grid-template-columns: 1fr;
    }

    .course-detail-sidebar-card {
        position: static;
    }
}

/* =====================================================
   HATA SAYFALARI
   ===================================================== */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-page-box {
    text-align: center;
    max-width: 520px;
    padding: 40px 20px;
}

.error-page-code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    opacity: 0.12;
}

.error-page-box h1 {
    font-size: var(--font-size-2xl);
    color: var(--text-dark);
    margin-bottom: 12px;
    margin-top: -20px;
}

.error-page-box p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.error-page-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================================================
   MEGA MENÜ
   ===================================================== */
.nav-mega {
    display: flex;
    align-items: center;
}

.nav-mega-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.82);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-mega-trigger:hover,
.nav-mega.open .nav-mega-trigger {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-mega-trigger.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
}

.nav-mega-caret {
    transition: transform 0.25s ease;
}

.nav-mega.open .nav-mega-caret {
    transform: rotate(180deg);
}

.mega-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 3px solid var(--accent);
    box-shadow: 0 30px 60px -12px rgba(0, 29, 66, 0.35);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 998;
}

.nav-mega.open .mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-panel-inner {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 32px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 28px 30px 32px;
}

.mega-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px 28px;
}

/* main-nav a { color: #fff } mega panelde metni gizliyordu */
.mega-panel a::after {
    display: none;
}

.mega-panel .mega-col-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--text-dark);
    padding-bottom: 9px;
    margin-bottom: 9px;
    border-bottom: 2px solid color-mix(in srgb, var(--cat-color, var(--accent)) 30%, transparent);
    transition: color 0.2s;
    white-space: normal;
}

.mega-panel .mega-col-title:hover {
    color: var(--cat-color, var(--accent));
    background: transparent;
}

.mega-col-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    color: var(--cat-color, var(--accent));
    background: color-mix(in srgb, var(--cat-color, var(--accent)) 12%, #fff);
}

.mega-col-count {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--cat-color, var(--accent));
    background: color-mix(in srgb, var(--cat-color, var(--accent)) 10%, #fff);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.mega-panel .mega-col-links li a {
    color: var(--text-body);
    white-space: normal;
}

.mega-panel .mega-col-links li a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.mega-panel .mega-col-links .mega-more {
    color: var(--accent);
}

.mega-panel .mega-col-links .mega-more:hover {
    color: var(--primary);
    background: var(--accent-light);
}

.mega-panel .mega-side-link {
    color: var(--text-body);
}

.mega-panel .mega-side-link:hover {
    background: var(--accent-light);
    color: var(--primary);
}

.mega-col-links li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 8px;
    margin: 0 -8px;
    border-radius: var(--radius-sm);
    color: var(--text-body);
    font-size: var(--font-size-xs);
    line-height: 1.4;
    transition: background 0.15s, color 0.15s;
}

.mega-col-links li a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.mega-col-links li a small {
    color: var(--text-muted);
    font-size: 0.68rem;
    background: var(--bg-secondary);
    padding: 1px 7px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.mega-col-links .mega-more {
    color: var(--accent);
    font-weight: 600;
    justify-content: flex-start;
    gap: 4px;
}

.mega-col-links .mega-more:hover {
    color: var(--primary);
    background: var(--accent-light);
}

.mega-empty {
    padding: 20px;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.mega-side {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 18px;
    align-self: start;
}

.mega-side-heading {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.mega-side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin: 0 -10px;
    border-radius: var(--radius-sm);
    color: var(--text-body);
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.mega-side-link:hover {
    background: var(--accent-light);
    color: var(--primary);
}

.mega-side-link .icon-svg {
    color: var(--accent);
    flex-shrink: 0;
}

.mega-side-btn {
    margin-top: 12px;
}

/* =====================================================
   HEADER ARAMA
   ===================================================== */
.header-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.header-search-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.header-search-bar {
    display: none;
    background: var(--primary-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 0;
}

.header-search-bar.open {
    display: block;
    animation: slideDown 0.25s ease;
}

.header-search-bar .header-container {
    position: relative;
}

.header-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: var(--radius-full);
    padding: 6px 8px 6px 18px;
}

.header-search-ic {
    color: var(--text-muted);
    flex-shrink: 0;
}

.header-search-form input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: var(--font-size-sm);
    color: var(--text-dark);
    padding: 8px 0;
    min-width: 0;
}

.header-search-form input:focus-visible {
    box-shadow: none;
}

.header-search-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--bg-light);
    color: var(--text-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.header-search-close:hover {
    background: var(--bg-secondary);
    color: var(--text-dark);
}

.header-search-dropdown {
    top: calc(100% + 6px);
    left: 30px;
    right: 30px;
}

/* =====================================================
   YAPIŞKAN HEADER (scroll gölgesi — yükseklik sabit, titreşim yok)
   ===================================================== */
.header-main.scrolled {
    box-shadow: 0 8px 28px rgba(0, 26, 66, 0.3);
}

/* =====================================================
   FOOTER CTA ŞERİDİ
   ===================================================== */
.footer-cta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 22px 28px;
    margin-bottom: 40px;
}

.footer-cta-text {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-cta-ic {
    color: var(--secondary-light);
    flex-shrink: 0;
}

.footer-cta-text strong {
    display: block;
    color: #fff;
    font-size: var(--font-size-lg);
    margin-bottom: 2px;
}

.footer-cta-text span {
    font-size: var(--font-size-sm);
    opacity: 0.75;
}

.footer-heading-gap {
    margin-top: 22px;
}

/* Mega menü + header arama responsive */
@media (max-width: 768px) {
    .header-search-toggle {
        width: 34px;
        height: 34px;
    }

    .header-search-dropdown {
        left: 16px;
        right: 16px;
    }

    /* Mega menü mobilde akordiyon */
    .main-nav .mega-panel a {
        white-space: normal;
        word-break: break-word;
    }

    .nav-mega {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }

    .nav-mega-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        color: rgba(255, 255, 255, 0.9);
        padding: 14px 16px;
        font-size: var(--font-size-base);
        font-weight: 500;
        white-space: normal;
    }

    .mega-panel {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255, 255, 255, 0.05);
        border-top: none;
        border-radius: var(--radius-sm);
        box-shadow: none;
        margin: 4px 0 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        left: auto;
        right: auto;
    }

    .nav-mega.open .mega-panel {
        display: block;
    }

    .mega-panel-inner {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 12px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .mega-categories {
        grid-template-columns: 1fr;
        gap: 14px;
        min-width: 0;
    }

    .mega-col {
        min-width: 0;
        max-width: 100%;
    }

    .mega-panel .mega-col-title {
        flex-wrap: wrap;
        gap: 8px;
        margin-right: 0;
    }

    .mega-panel .mega-col-title > span:not(.mega-col-icon):not(.mega-col-count) {
        flex: 1;
        min-width: 0;
    }

    .mega-panel .mega-col-links li a,
    .mega-panel .mega-side-link {
        margin-left: 0;
        margin-right: 0;
    }

    .mega-side {
        min-width: 0;
        max-width: 100%;
    }

    .mega-col-title,
    .mega-panel .mega-col-title {
        color: #fff;
        border-bottom-color: rgba(255, 255, 255, 0.15);
    }

    .mega-col-title:hover,
    .mega-panel .mega-col-title:hover {
        color: var(--secondary-light);
        background: transparent;
    }

    .mega-col-icon {
        background: rgba(255, 255, 255, 0.1);
        color: var(--secondary-light);
    }

    .mega-col-count {
        background: rgba(255, 255, 255, 0.12);
        color: rgba(255, 255, 255, 0.85);
    }

    .mega-col-links li a,
    .mega-panel .mega-col-links li a {
        color: rgba(255, 255, 255, 0.8);
        padding: 8px;
    }

    .mega-col-links li a:hover,
    .mega-panel .mega-col-links li a:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }

    .mega-col-links li a small {
        background: rgba(255, 255, 255, 0.12);
        color: rgba(255, 255, 255, 0.7);
    }

    .mega-col-links .mega-more {
        color: var(--secondary-light);
    }

    .mega-col-links .mega-more:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }

    .mega-side {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .mega-side-heading {
        color: rgba(255, 255, 255, 0.6);
    }

    .mega-side-link,
    .mega-panel .mega-side-link {
        color: rgba(255, 255, 255, 0.85);
    }

    .mega-side-link:hover,
    .mega-panel .mega-side-link:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }

    .mega-side-link .icon-svg {
        color: var(--secondary-light);
    }

    .footer-cta-strip {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 18px;
    }

    .footer-cta-text {
        flex-direction: column;
        gap: 8px;
    }
}

/* =====================================================
   PRINT
   ===================================================== */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .btn,
    .main-nav,
    .search-section,
    .pagination-nav {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .admin-content {
        padding: 0;
    }
}
