/* ============================================================
   Solution Home - Ana Stil Dosyası
   Renk paleti: Koyu Kırmızı #8B1A1A, Koyu Gri #404040, Açık Gri #F5F5F5
   ============================================================ */

:root {
    --red:       #8B1A1A;
    --red-dark:  #6a1313;
    --red-light: #b02222;
    --grey:      #404040;
    --grey-mid:  #666666;
    --grey-light:#999999;
    --bg-light:  #F7F7F7;
    --bg-white:  #FFFFFF;
    --border:    #E0E0E0;
    --text:      #2C2C2C;
    --text-muted:#666666;
    --shadow:    0 2px 12px rgba(0,0,0,0.09);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.13);
    --radius:    6px;
    --radius-lg: 12px;
    --transition:0.22s ease;
    --font-main: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
    --font-head: 'Playfair Display', Georgia, serif;
    /* Navbar height scales fluidly: 84px on phones → 108px on desktop.
       Used by .navbar-inner AND .navbar-menu (mobile drawer top), so the
       drawer stays glued to the bar regardless of viewport. */
    --nav-h: clamp(84px, 8.5vw, 108px);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: rgba(139,26,26,0.15); }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-main);
    color: var(--text);
    background: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }
ul { list-style: none; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-head);
    color: var(--grey);
    line-height: 1.3;
    font-weight: 700;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p  { margin-bottom: 1rem; }

/* ── Container ── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Section ── */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-title {
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--grey);
    margin-bottom: 0.5rem;
}
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2.5rem; }
.section-divider {
    width: 52px; height: 3px;
    background: var(--red);
    margin-bottom: 2rem;
    border-radius: 2px;
}

/* ── Navbar ── */
.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    gap: 1rem;
}
.navbar-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.navbar-logo img { height: clamp(60px, 6.5vw, 80px); width: auto; display: block; }
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.navbar-nav a {
    color: var(--grey);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
    letter-spacing: 0.01em;
}
.navbar-nav a:hover,
.navbar-nav a.active { color: var(--red); background: #f5eaea; }
.navbar-nav a.btn-nav {
    background: var(--red);
    color: #fff;
    padding: 0.45rem 1.1rem;
}
.navbar-nav a.btn-nav:hover { background: var(--red-dark); color: #fff; }

/* Dil switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 0.75rem;
    padding-left: 0.75rem;
    border-left: 1px solid var(--border);
}
.lang-switch a {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--grey-light);
    padding: 2px 6px;
    border-radius: 4px;
}
.lang-switch a.active { color: var(--red); background: #f5eaea; }

/* Hamburger */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--radius);
    transition: background var(--transition);
}
.navbar-toggle:hover,
.navbar-toggle[aria-expanded="true"] { background: #f5eaea; }
.navbar-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--grey);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.navbar-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, #2C2C2C 0%, #404040 50%, #1a1a1a 100%);
    color: #fff;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="%238B1A1A" opacity="0.12"/><circle cx="10" cy="80" r="30" fill="%238B1A1A" opacity="0.08"/></svg>') no-repeat center/cover;
}
.hero-inner { position: relative; z-index: 1; max-width: 700px; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero h1 span { color: #e87878; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.82); margin-bottom: 2rem; max-width: 560px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.hero-badge {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    letter-spacing: 0.01em;
}
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(139,26,26,0.3); }
.btn-outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.88rem; }
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1.05rem; }

/* ── Cards ── */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: 1.5rem; }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-category {
    display: inline-block;
    background: #f5eaea;
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.card-title { font-size: 1.05rem; margin-bottom: 0.6rem; color: var(--grey); }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--red); }
.card-text { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 1rem; }
.card-meta { font-size: 0.82rem; color: var(--grey-light); display: flex; align-items: center; gap: 1rem; }
.card-meta svg { width: 14px; height: 14px; vertical-align: middle; }

/* ── Service Cards ── */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--red);
    transform: scaleY(0);
    transition: transform var(--transition);
    transform-origin: bottom;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.service-card:hover::before { transform: scaleY(1); }
.service-icon {
    width: 56px; height: 56px;
    background: #f5eaea;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--red);
    font-size: 1.6rem;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.service-card .badge-soon {
    display: inline-block;
    background: #f0f0f0;
    color: var(--grey-mid);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    letter-spacing: 0.05em;
}

/* ── Stats ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.stat-number {
    font-family: var(--font-head);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
}
.stat-label { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.5rem; }

/* ── Article Grid ── */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.75rem; }

/* ── Article Detail ── */
.article-content { line-height: 1.85; }
.article-content h2 { margin: 2rem 0 1rem; font-size: 1.4rem; color: var(--grey); border-left: 4px solid var(--red); padding-left: 1rem; }
.article-content h3 { margin: 1.5rem 0 0.75rem; font-size: 1.15rem; }
.article-content p  { margin-bottom: 1.2rem; }
.article-content ul, .article-content ol { margin: 1rem 0 1.2rem 1.5rem; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 0.4rem; }
.article-content blockquote {
    border-left: 4px solid var(--red);
    background: #fdf5f5;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--grey);
}
.article-header {
    background: var(--bg-light);
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--border);
}
.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.88rem;
    color: var(--grey-light);
}

/* ── Breadcrumb ── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--grey-light);
    margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--grey-mid); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--grey-light); }

/* ── Pagination ── */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; flex-wrap: wrap; }
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
}
.pagination a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.pagination span.current { background: var(--red); color: #fff; border-color: var(--red); }

/* ── References ── */
.ref-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.ref-table th {
    background: var(--grey);
    color: #fff;
    padding: 0.9rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ref-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.ref-table tr:last-child td { border-bottom: none; }
.ref-table tr:hover td { background: #fafafa; }
.ref-year {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
}
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow); }

/* ── Contact Form ── */
.contact-form { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow); }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 700; font-size: 0.9rem; color: var(--grey); margin-bottom: 0.4rem; }
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    /* 16px prevents iOS Safari's input-focus auto-zoom (anything below triggers it). */
    font-size: 1rem;
    line-height: 1.4;
    font-family: var(--font-main);
    color: var(--text);
    background: var(--bg-white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    min-height: 44px;
    -webkit-appearance: none;
    appearance: none;
}
.form-control:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(139,26,26,0.1); }
.form-control.error { border-color: #dc3545; }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
    width: 44px; height: 44px; min-width: 44px;
    background: #f5eaea;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--red); font-size: 1.2rem;
}
.contact-info-text strong { display: block; font-size: 0.85rem; color: var(--grey-light); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }

/* ── Footer ── */
.footer {
    background: #1e1e1e;
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-logo { margin-bottom: 1.25rem; filter: brightness(0) invert(1); opacity: 0.9; height: 64px; width: auto; }
.footer-desc { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.55); }
.footer-title { color: #fff; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-links a:hover { color: #e87878; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #e87878; }

/* ── Alert / Notice ── */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 0.93rem;
    font-weight: 500;
}
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.alert-danger  { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.alert-info    { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }

/* ── Under Construction ── */
.undercons-wrap { text-align: center; padding: 6rem 1rem; }
.undercons-icon { font-size: 4rem; margin-bottom: 1.5rem; opacity: 0.4; }
.undercons-wrap h2 { font-size: 1.8rem; color: var(--grey); margin-bottom: 1rem; }
.undercons-wrap p { color: var(--text-muted); max-width: 420px; margin: 0 auto 2rem; }

/* ── Admin Panel ── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 250px; min-width: 250px;
    background: #1e1e1e;
    color: #fff;
    padding: 1.5rem 0;
    display: flex; flex-direction: column;
}
.admin-sidebar-logo { padding: 0 1.5rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 1rem; }
.admin-sidebar-logo img { height: 36px; filter: brightness(0) invert(1); opacity: 0.8; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition);
}
.admin-nav a:hover, .admin-nav a.active { color: #fff; background: rgba(255,255,255,0.08); border-left: 3px solid var(--red); padding-left: calc(1.5rem - 3px); }
.admin-main { flex: 1; background: #f4f4f4; padding: 2rem; overflow-y: auto; }
.admin-topbar { background: #fff; border-radius: var(--radius); padding: 1rem 1.5rem; margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow); }
.admin-topbar h1 { font-size: 1.3rem; color: var(--grey); }
.admin-card { background: #fff; border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.admin-card h2 { font-size: 1rem; color: var(--grey); margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th { background: #f9f9f9; padding: 0.75rem 1rem; text-align: left; font-weight: 700; color: var(--grey); border-bottom: 2px solid var(--border); }
.admin-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:hover td { background: #fafafa; }
.badge-pub { background: #e8f5e9; color: #2e7d32; padding: 2px 8px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.badge-draft { background: #fff8e1; color: #f57f17; padding: 2px 8px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }

/* ── Utility ── */
.text-red     { color: var(--red); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.d-flex { display: flex; } .flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.bg-light { background: var(--bg-light); }
.bg-dark  { background: var(--grey); }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .section { padding: 4rem 0; }
}

@media (max-width: 768px) {
    .container, .container-sm { padding: 0 1rem; }
    .section { padding: 3rem 0; }
    .section-sm { padding: 2rem 0; }
    .section-subtitle { margin-bottom: 1.75rem; font-size: 1rem; }

    /* ── Mobile drawer ── */
    .navbar-toggle { display: flex; }
    .navbar-menu {
        display: none;
        position: absolute;
        top: var(--nav-h); left: 0; right: 0;
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border);
        padding: 0.75rem 1rem 1rem;
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        gap: 0.25rem;
    }
    .navbar-menu.open { display: flex; }
    .navbar-nav { flex-direction: column; width: 100%; gap: 0.1rem; }
    .navbar-nav a {
        width: 100%;
        padding: 0.85rem 1rem;   /* ≥44px touch target */
        font-size: 1rem;
        border-radius: var(--radius);
    }
    .navbar-nav a.btn-nav { margin-top: 0.5rem; justify-content: center; }
    .lang-switch {
        margin: 0.75rem 0 0;
        padding: 0.75rem 0 0;
        border-left: none;
        border-top: 1px solid var(--border);
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }
    .lang-switch a {
        font-size: 0.95rem;
        padding: 0.55rem 0.9rem;  /* enlarged for touch */
        min-width: 44px;
        text-align: center;
    }

    .hero { padding: 3.5rem 0; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; padding: 1rem 0 1.25rem; }
    .article-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .service-grid { grid-template-columns: 1fr; }
    .ref-table { font-size: 0.85rem; }
    .ref-table th, .ref-table td { padding: 0.6rem 0.75rem; }
    .ref-table th { font-size: 0.78rem; }
    .pagination a, .pagination span { width: 44px; height: 44px; }

    /* Article meta-bar wraps tighter on mobile */
    .article-meta-bar { gap: 0.75rem 1rem; font-size: 0.82rem; }

    /* Hizmetler / hakkimizda two-column rows: text first, image second on mobile.
       Reduces gap so 2-block stacks don't waste a full screen of whitespace. */
    .grid-2col, .grid-2col-lg, .grid-contact { gap: 2rem !important; }
    .grid-3col { gap: 1rem !important; }
}

@media (max-width: 560px) {
    .container, .container-sm { padding: 0 0.9rem; }
    .section { padding: 2.5rem 0; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
    .stat-card { padding: 1.25rem 0.75rem; }
    .stat-number { font-size: 2.1rem; }
    .stat-label { font-size: 0.82rem; }
    .contact-form { padding: 1.5rem 1.25rem; }
    .contact-info-item { padding: 0.85rem 0; }
    .breadcrumb { font-size: 0.78rem; gap: 0.35rem; flex-wrap: wrap; }
    /* Cards and badges scale down for narrow screens */
    .hero-badge { font-size: 0.78rem; padding: 0.3rem 0.8rem; }
    .hero-badges { gap: 0.5rem; margin-bottom: 1.75rem; }
    .btn { padding: 0.65rem 1.4rem; }
    .btn-lg { padding: 0.8rem 1.6rem; font-size: 1rem; }
    .card-body { padding: 1.15rem; }
    .service-card-visual .svc-body { padding: 1.15rem; }
}

@media (max-width: 380px) {
    /* iPhone SE / very narrow Androids — keep hero readable, avoid h1 squeeze */
    .container, .container-sm { padding: 0 0.85rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { padding: 1rem; }
}

/* ── Hero Slider ── */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
    min-height: 520px;
    display: flex;
    align-items: center;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(10,10,10,0.82) 0%,
        rgba(10,10,10,0.55) 55%,
        rgba(139,26,26,0.25) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 5rem 0;
}
.hero-content h1 { color: #fff; margin-bottom: 1.25rem; }
.hero-content h1 em { color: #e87878; font-style: normal; }
.hero-content p  { color: rgba(255,255,255,0.78); font-size: 1.12rem; margin-bottom: 2rem; max-width: 540px; }
.hero-dots {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}
.hero-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}
.hero-dot.active { background: #fff; width: 24px; border-radius: 4px; }
.hero-prev, .hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.hero-prev:hover, .hero-next:hover { background: rgba(139,26,26,0.6); }
.hero-prev { left: 1.5rem; }
.hero-next { right: 1.5rem; }

/* ── Page Banner ── */
.page-banner {
    position: relative;
    min-height: 280px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.page-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10,10,10,0.88) 0%,
        rgba(10,10,10,0.45) 60%,
        rgba(10,10,10,0.15) 100%
    );
}
.page-banner-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 2.5rem 0;
}
.page-banner-content .breadcrumb a,
.page-banner-content .breadcrumb span { color: rgba(255,255,255,0.6); }
.page-banner-content .breadcrumb a:hover { color: #e87878; }
.page-banner-content h1 { color: #fff; }
.page-banner-content .section-subtitle { color: rgba(255,255,255,0.65); }

/* ── Service card with visual ── */
.service-card-visual {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.service-card-visual:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card-visual .svc-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    background: #111;
}
.service-card-visual .svc-body { padding: 1.5rem; }
.service-card-visual h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.service-card-visual p  { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.service-card-visual .svc-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}
.svc-tag-active { background: #f5eaea; color: var(--red); }
.svc-tag-soon   { background: #f0f0f0; color: var(--grey-mid); }

/* ── About banner ── */
.about-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 380px;
    object-fit: cover;
    width: 100%;
}

/* ── PDF article embed (makale.aspx) ── */
.pdf-attachment {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 2.5rem;
    background: var(--bg-white);
}
.pdf-attachment-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.pdf-attachment-info { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.pdf-attachment-icon { font-size: 1.7rem; line-height: 1; }
.pdf-attachment-title { font-weight: 700; color: var(--grey); font-size: 0.98rem; }
.pdf-attachment-sub { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }
.pdf-attachment-embed {
    display: block;
    width: 100%;
    height: clamp(420px, 75vh, 780px);
    border: none;
    background: #2c2c2c;
}
@media (max-width: 560px) {
    .pdf-attachment-bar { padding: 0.85rem 1rem; }
    .pdf-attachment-embed { height: 60vh; min-height: 320px; }
}

/* ── Article card with photo ── */
.article-card-img {
    width: 100%;
    height: 195px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #1a1a2e, #2d2d4e);
}
.article-card-img.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

/* ── Feature / CTA banner classes (replace inline padding so they breathe on mobile) ── */
.banner-feature {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: clamp(2.75rem, 7vw, 5rem) 0;
}
.banner-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,0.80);
}
.banner-feature > .container { position: relative; z-index: 1; }

.banner-cta {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: clamp(3rem, 8vw, 6rem) 0;
}
.banner-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139,26,26,0.90), rgba(40,10,10,0.85));
}
.banner-cta > .container { position: relative; z-index: 1; }

/* ── Responsive overrides for banners ── */
@media (max-width: 768px) {
    .hero-slider { min-height: 420px; }
    .hero-content { padding: 3rem 0; max-width: 100%; }
    .hero-content p { font-size: 1rem; }
    .hero-prev, .hero-next { display: none; }
    /* !important defeats inline min-height set per-page in aspx (260–320px) */
    .page-banner { min-height: 200px !important; }
    .page-banner-content { padding: 2rem 0; }
}
@media (max-width: 560px) {
    .hero-slider { min-height: 380px; }
    .hero-content { padding: 2.5rem 0; }
    .page-banner { min-height: 170px !important; }
    .page-banner-content { padding: 1.5rem 0; }
}
@media (max-width: 380px) {
    .hero-slider { min-height: 360px; }
}

/* ── Responsive grid fixes (inline style overrides) ── */
@media(max-width:900px){
  .grid-2col-lg { grid-template-columns: 1fr !important; }
}
@media(max-width:768px){
  .grid-2col    { grid-template-columns: 1fr !important; }
  .grid-contact { grid-template-columns: 1fr !important; }
}
@media(max-width:560px){
  .grid-3col    { grid-template-columns: 1fr !important; }
}

/* ── Admin layout responsive ── */
@media (max-width: 900px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar {
        width: 100%;
        min-width: 0;
        flex-direction: row;
        align-items: center;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    .admin-sidebar-logo {
        padding: 0;
        margin: 0;
        border-bottom: none;
        border-right: 1px solid rgba(255,255,255,0.12);
        padding-right: 0.75rem;
        flex-shrink: 0;
    }
    .admin-sidebar-logo img { height: 32px; }
    .admin-nav {
        display: flex;
        flex-direction: row;
        flex: 1;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.15rem;
    }
    .admin-nav::-webkit-scrollbar { display: none; }
    .admin-nav a {
        flex-shrink: 0;
        padding: 0.55rem 0.75rem;
        white-space: nowrap;
        font-size: 0.85rem;
        border-radius: var(--radius);
    }
    .admin-nav a:hover,
    .admin-nav a.active {
        border-left: none;
        padding-left: 0.75rem;
        background: rgba(255,255,255,0.12);
    }
    .admin-sidebar > div:last-child {
        margin-top: 0 !important;
        padding: 0 !important;
        border-top: none !important;
        flex-shrink: 0;
    }
    .admin-sidebar > div:last-child .btn { padding: 0.45rem 0.85rem; font-size: 0.8rem; width: auto !important; }
    .admin-main { padding: 1.25rem 1rem; }
    .admin-topbar { padding: 0.85rem 1.1rem; flex-wrap: wrap; gap: 0.5rem; }
    .admin-topbar h1 { font-size: 1.1rem; }
    .admin-card { padding: 1.25rem; }
    .admin-table { font-size: 0.85rem; }
    .admin-table th, .admin-table td { padding: 0.6rem 0.75rem; }
}

/* ── Responsive grid classes ── */
.grid-2col, .grid-2col-lg, .grid-contact, .grid-3col {
    display: grid;
    gap: 3rem;
    align-items: start;
}
.grid-2col    { grid-template-columns: 1fr 1fr; }
.grid-2col-lg { grid-template-columns: 1.4fr 1fr; }
.grid-contact { grid-template-columns: 1fr 1.6fr; }
.grid-3col    { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

@media(max-width: 900px) {
    .grid-2col-lg { grid-template-columns: 1fr; }
    .grid-3col    { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 768px) {
    .grid-2col    { grid-template-columns: 1fr; }
    .grid-contact { grid-template-columns: 1fr; }
}
@media(max-width: 560px) {
    .grid-3col    { grid-template-columns: 1fr; }
}
