/* ============================================
    PRIMEBAHIS - Main Stylesheet
    Performance Optimized & E-E-A-T Ready
    ============================================ */

:root {
    --bg: #ffffff;
    --fg: #222222;
    --muted: #666666;
    --brand: #0077b6;
    --baseColor: #0a0a0a;
    --themeColor: #3f96f1;
    --brand-hover: #005f8a;
    --card: #f8f8f8;
    --line: #e5e7eb;
    --blue-light: #48cae4;
    --blue-medium: #0096c7;
    --blue-dark: #0077b6;
    --blue-darker: #005f8a;
    --blue-darkest: #0a1a2e;
    --cta-gradient-start: #48cae4;
    --cta-gradient-end: #0077b6;
    --cta-gradient-hover-start: #00b4d8;
    --cta-gradient-hover-end: #005f8a;
    --sidebar-bg: #f0f7fa;
    --author-bg: #f8fafc;
    --author-border: #e2e8f0;
    --author-accent: #0077b6;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font: 18px/1.7 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Poppins", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #333333;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   CTA BANNER - Sticky, Above Header
   ============================================ */

.cta-banner {
    min-height: 100px;
    background: linear-gradient(135deg, #0a1a2e 0%, #1a2a3e 50%, #0d1b2a 100%);
    border-bottom: 3px solid var(--blue-medium);
    box-shadow: 0 4px 16px rgba(0, 150, 199, 0.25), 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 20px rgba(72, 202, 228, 0.15);
    position: sticky;
    top: 0;
    z-index: 60;
    margin-bottom: 0;
    padding: 0;
    width: 100%;
}

.cta-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.cta-banner-text {
    flex: 1;
    min-width: 280px;
}

.cta-banner-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    color: var(--blue-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    background: rgba(72, 202, 228, 0.2);
    padding: 4px 10px;
    border-radius: 4px;
    text-shadow: 0 0 10px rgba(72, 202, 228, 0.5);
}

.cta-banner-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cta-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-cta-primary,
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 150, 199, 0.3), 0 0 15px rgba(72, 202, 228, 0.2);
}

.btn-cta-primary {
    background: var(--themeColor);
    color: #ffffff;
    background-image: none;
}

.btn-cta-primary:hover {
    filter: brightness(0.92);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 25px rgba(63, 150, 241, 0.2);
    text-decoration: none;
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--blue-dark);
    border-color: var(--blue-light);
}

.btn-cta-secondary:hover {
    background: var(--blue-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 150, 199, 0.4), 0 0 20px rgba(72, 202, 228, 0.3);
    text-decoration: none;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: var(--baseColor);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 50px;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: .2px;
    color: #ffffff;
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
}

.brand-logo {
    height: 40px;
    width: auto;
    display: block;
}

.brand-text {
    display: flex;
    align-items: center;
}

.brand .dot {
    color: var(--brand);
}

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

.nav-list {
    display: flex;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-list a {
    font-weight: 600;
    color: #ffffff;
    transition: color 0.2s ease;
}

.nav-list a:hover {
    color: var(--blue-light);
    text-decoration: none;
    text-shadow: 0 0 8px rgba(72, 202, 228, 0.6);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 10px;
    z-index: 100;
    position: relative;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
}

.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: #ffffff;
    display: block;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span {
    background: var(--blue-dark);
}

.nav-toggle:hover span {
    background: var(--blue-light);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
    width: 24px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
    width: 24px;
}

/* ============================================
   MAIN LAYOUT
   ============================================ */

main {
    display: flex;
    margin: 48px 0;
    gap: 48px;
    align-items: flex-start;
}

article {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

aside {
    width: 320px;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--blue-medium);
    margin-top: 0;
}

/* ============================================
   WIDGET CARDS
   ============================================ */

.widget-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.widget-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 24px 0;
    color: #111827;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--blue-medium);
    letter-spacing: -0.01em;
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-item {
    margin: 0;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.widget-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-item:first-child {
    padding-top: 0;
}

.widget-link {
    color: #111827;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    transition: color 0.2s ease;
    display: block;
}

.widget-link:hover {
    color: var(--brand);
    text-decoration: none;
}

.widget-meta {
    font-size: 13px;
    color: #6b7280;
    font-weight: 400;
    display: block;
    margin-top: 4px;
}

/* ============================================
   AUTHOR BOX - E-E-A-T (Post Header)
   ============================================ */

.author-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--author-bg);
    border: 1px solid var(--author-border);
    border-radius: 12px;
    margin: 20px 0;
    transition: box-shadow 0.2s ease;
}

.author-box:hover {
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.1);
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 119, 182, 0.3);
}

.author-initials {
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--fg);
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-name:hover {
    color: var(--brand);
    text-decoration: none;
}

.author-title {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

/* ============================================
   AUTHOR DETAIL BOX - E-E-A-T (Post Footer)
   ============================================ */

.author-detail-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid var(--author-border);
    border-radius: 16px;
    padding: 28px;
    margin: 40px 0 30px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.author-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.author-detail-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.35);
}

.author-detail-initials {
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
}

.author-detail-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-detail-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-detail-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--fg);
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-detail-name:hover {
    color: var(--brand);
    text-decoration: none;
}

.author-detail-title {
    font-size: 14px;
    color: var(--brand);
    font-weight: 600;
}

.author-detail-bio {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
    margin: 0 0 20px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--author-border);
}

.author-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    transition: all 0.2s ease;
}

.author-detail-link:hover {
    color: var(--brand-hover);
    text-decoration: none;
    transform: translateX(4px);
}

/* ============================================
   AUTHOR PAGE - E-E-A-T
   ============================================ */

.author-page {
    max-width: 900px;
}

.author-header {
    margin-bottom: 40px;
}

.author-profile {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    border: 2px solid var(--line);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.author-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 119, 182, 0.4);
}

.author-initials-large {
    color: #ffffff;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 2px;
}

.author-details h1 {
    font-size: 36px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.author-job-title {
    font-size: 18px;
    color: var(--brand);
    font-weight: 600;
}

.author-bio-section,
.author-expertise-section,
.author-experience-section,
.author-articles-section {
    margin-bottom: 40px;
}

.author-bio-section h2,
.author-expertise-section h2,
.author-experience-section h2,
.author-articles-section h2 {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--blue-medium);
}

.author-bio {
    font-size: 17px;
    line-height: 1.8;
    color: #374151;
    margin: 0 0 16px 0;
}

.author-social-proof {
    font-size: 16px;
    line-height: 1.7;
    color: #6b7280;
    font-style: italic;
    padding-left: 20px;
    border-left: 4px solid var(--blue-light);
    margin: 0;
}

.expertise-list,
.experience-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.expertise-list li,
.experience-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
}

.expertise-list li:hover,
.experience-list li:hover {
    border-color: var(--blue-medium);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.1);
    transform: translateY(-2px);
}

.expertise-icon,
.experience-icon {
    font-size: 18px;
    color: var(--brand);
}

/* ============================================
   POST CARDS
   ============================================ */

.hero {
    display: none;
}

.home-grid {
    display: flex;
    gap: 20px;
    padding: 20px 0;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
}

.sidebar .widget {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sidebar h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #111827;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}

.cat-list,
.post-mini {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cat-list li,
.post-mini li {
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.post-mini li:last-child,
.cat-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-mini li:first-child,
.cat-list li:first-child {
    padding-top: 0;
}

.posts {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.card {
    display: block;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.card .pad {
    padding: 20px;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}

.card p {
    margin: 0 0 12px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

.meta {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 400;
}

/* ============================================
   POST CONTENT
   ============================================ */

.post .post-head {
    margin: 0 0 40px 0;
}

.post .post-head h1 {
    margin: 0 0 20px;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    color: #111827;
    letter-spacing: -0.02em;
}

.post .post-head .meta {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #6b7280;
}

.post .post-head .meta a {
    color: var(--brand);
    text-decoration: none;
}

.post .post-head .meta a:hover {
    text-decoration: underline;
}

.post .featured {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin: 0 0 32px 0;
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-body {
    line-height: 1.8;
    color: #222222;
}

.post-body p {
    margin: 28px 0;
    font-size: 18px;
    line-height: 1.75;
}

.post-body h2 {
    margin-top: 56px;
    margin-bottom: 24px;
    font-size: 30px;
    font-weight: 800;
    color: #111827;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.post-body h3 {
    margin-top: 44px;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
}

.post-body ul,
.post-body ol {
    margin: 28px 0;
    padding-left: 36px;
}

.post-body li {
    margin: 14px 0;
    line-height: 1.85;
    font-size: 18px;
}

.post-body a {
    color: var(--brand);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.post-body a:hover {
    color: var(--brand-hover);
    text-decoration: underline;
}

/* ============================================
   HOMEPAGE BANNER & CONTENT IMAGES
   ============================================ */

.homepage-banner {
    margin: 30px 0;
    text-align: center;
}

.banner-image {
    width: 100%;
    height: auto;
    max-width: 1200px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.intro-content {
    margin: 30px 0;
}

.intro-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 24px;
    color: #333;
}

.intro-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 20px;
    color: #333;
}

.intro-content p {
    margin: 14px 0;
    line-height: 1.8;
}

.intro-content ul,
.intro-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.intro-content li {
    margin: 8px 0;
    line-height: 1.7;
}

/* ============================================
   BUTTONS
   ============================================ */

.button-group {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--themeColor);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(63, 150, 241, 0.25), 0 0 15px rgba(63, 150, 241, 0.12);
}

.btn-primary:hover {
    filter: brightness(0.92);
    color: #ffffff;
    border-color: transparent;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(63, 150, 241, 0.35), 0 0 25px rgba(63, 150, 241, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--themeColor);
    border: 2px solid rgba(63, 150, 241, 0.15);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(63, 150, 241, 0.06);
    border-color: rgba(63, 150, 241, 0.25);
    color: var(--themeColor);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(63, 150, 241, 0.12);
}

.post-button-group {
    margin-top: 20px;
    margin-bottom: 30px;
    justify-content: flex-start;
}

/* ============================================
   CONTENT IMAGES
   ============================================ */

.content-image {
    margin: 30px 0;
    text-align: center;
}

.intro-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.content-image figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    font-style: italic;
    line-height: 1.5;
}

/* ============================================
   POST NAVIGATION
   ============================================ */

.post-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 40px 0 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.tags a {
    display: inline-block;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 6px 12px;
    border-radius: 6px;
    margin: 4px 6px 0 0;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tags a:hover {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
    text-decoration: none;
}

.nextprev {
    font-size: 14px;
    color: #6b7280;
}

.nextprev a {
    color: var(--brand);
    text-decoration: none;
}

.nextprev a:hover {
    text-decoration: underline;
}

.related .post-mini li a {
    color: #333;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--line);
    background: linear-gradient(135deg, #0a1a2e 0%, #1a2a3e 100%);
    color: #ffffff;
    padding: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding: 48px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-logo {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
}

.footer-logo:hover {
    color: var(--blue-light);
    text-decoration: none;
}

.footer-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

.footer-links h4,
.footer-author h4 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 8px 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--blue-light);
    text-decoration: none;
}

.footer-author-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background 0.2s ease;
}

.footer-author-link:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.footer-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
}

.footer-author-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.footer-author-title {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    padding: 24px 0;
    text-align: left;
}

.site-footer h4 {
    margin: 0 0 12px;
}

.chip-list,
.link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.chip-list li {
    display: inline-block;
    margin: 6px 6px 0 0;
}

.chip-list a {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--muted);
    font-size: 13px;
}

.link-list li {
    margin: 5px 0;
}

.footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

/* ============================================
   IMAGE OPTIMIZATION
   ============================================ */

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

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (max-width: 960px) {
    .home-grid {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin-left: 0;
    }

    .posts {
        grid-template-columns: 1fr;
    }

    .expertise-list,
    .experience-list {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

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

    .site-header {
        top: 0;
    }

    .brand-logo {
        height: 43px;
    }

    .brand-text {
        font-size: 14px;
    }

    .homepage-banner {
        margin: 20px 0;
    }

    .banner-image {
        border-radius: 8px;
    }

    main {
        flex-direction: column;
        gap: 36px;
        margin: 32px 0;
    }

    aside {
        width: 100%;
        margin-left: 0;
        margin-top: 0;
        background: var(--sidebar-bg);
        padding: 20px;
        border-left: 4px solid var(--blue-medium);
    }

    .widget-card {
        margin-bottom: 20px;
    }

    .post .post-head h1 {
        font-size: 28px;
    }

    .post-body p {
        font-size: 17px;
    }

    .post-body h2 {
        font-size: 24px;
        margin-top: 36px;
    }

    .post-body h3 {
        font-size: 20px;
        margin-top: 28px;
    }

    .button-group {
        flex-direction: column;
        gap: 12px;
        margin: 24px 0;
    }

    .btn {
        width: 100%;
        padding: 12px 24px;
    }

    .post-button-group {
        justify-content: center;
    }

    .intro-img {
        border-radius: 4px;
    }

    .content-image figcaption {
        font-size: 13px;
        padding: 0 10px;
    }

    /* Author Box Mobile */
    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .author-avatar {
        width: 64px;
        height: 64px;
    }

    .author-initials {
        font-size: 22px;
    }

    .author-info {
        align-items: center;
    }

    /* Author Detail Box Mobile */
    .author-detail-header {
        flex-direction: column;
        text-align: center;
    }

    .author-detail-info {
        align-items: center;
    }

    .author-detail-name {
        font-size: 20px;
    }

    /* Author Page Mobile */
    .author-profile {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .author-avatar-large {
        width: 100px;
        height: 100px;
    }

    .author-initials-large {
        font-size: 36px;
    }

    .author-details h1 {
        font-size: 28px;
    }

    .expertise-list,
    .experience-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .expertise-list li,
    .experience-list li {
        padding: 12px 14px;
        font-size: 14px;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 20px;
    }

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

    .footer-links,
    .footer-author {
        text-align: center;
    }

    .footer-author-link {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-inner {
        justify-content: space-between;
    }

    .nav-toggle {
        display: flex;
        order: 2;
    }

    .brand {
        order: 1;
        flex: 1;
    }

    .nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        transform: translateY(calc(-100% - 10px));
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.3s ease,
            visibility 0.3s ease;
        border-bottom: 2px solid var(--blue-medium);
        padding: 20px 0 30px 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        z-index: 55;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav[aria-expanded="true"] {
        margin-top: 32px;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    body.menu-open {
        position: fixed;
        width: 100%;
        overflow: hidden;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .nav-list li {
        width: 100%;
        padding: 0;
        margin: 0;
        border-bottom: 1px solid rgba(0, 150, 199, 0.1);
    }

    .nav-list li:first-child {
        border-top: 1px solid rgba(0, 150, 199, 0.1);
    }

    .nav-list li:last-child {
        border-bottom: none;
    }

    .nav-list a {
        color: var(--blue-dark);
        font-size: 16px;
        font-weight: 500;
        padding: 16px 20px;
        display: block;
        width: 100%;
        transition: all 0.2s ease;
        text-align: left;
        position: relative;
    }

    .nav-list a:hover,
    .nav-list a:focus {
        background: rgba(72, 202, 228, 0.1);
        color: var(--blue-dark);
        text-decoration: none;
        padding-left: 24px;
    }
}

/* ============================================
   RELATED POSTS SECTION (Ana Sayfa)
   ============================================ */

.related-posts-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--line);
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 20px;
    /* H2 gibi görünür ama makale hiyerarşisine karışmaz */
}

/* Card başlığı için stil (h3 yerine span) */
.card .card-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.card:hover .card-title {
    color: var(--brand);
    text-decoration: none;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {

    .cta-banner,
    .site-header,
    .site-footer,
    aside,
    .nav-toggle,
    .author-box,
    .author-detail-box {
        display: none;
    }

    main {
        display: block;
    }

    article {
        max-width: 100%;
    }
}