/* =========================================================
   Fon E-Ofis — Blog Stil Dosyası (senkronize)
   ========================================================= */

/* Tipografi & temel */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --brand: #0077cc;
  --brand-dark: #005fa3;
  --text: #333;
  --muted: #555;
  --bg: #fff;
  --card: #f8f8f8;
  --line: #eee;
}

* { box-sizing: border-box }
html, body { height: 100% }
html { scroll-behavior: smooth }
body {
  margin: 0; padding: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text); background: var(--bg);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block }
a { color: inherit; text-decoration: none }
ul { margin: 0; padding: 0; list-style: none }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6rem }
p { margin: .3rem 0 1rem }

/* =========================================================
   Header / Navigation + Hamburger
   ========================================================= */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 15px 30px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all .3s ease;
}
.logo img { height: 50px }

.main-menu { flex: 1 }
.main-menu ul {
  display: flex; justify-content: center; align-items: center; gap: 25px;
}
.main-menu a {
  text-decoration: none; color: var(--text);
  font-weight: 600; padding: .7rem .4rem; border-radius: 10px;
  transition: color .25s ease, background-color .25s ease;
}
.main-menu a:hover { color: var(--brand) }
.main-menu a.active { color: var(--brand-dark) }

.hamburger {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 8px; border-radius: 12px;
}
.hamburger:hover { background: #f5f5f5 }
.hamburger .bar {
  display: block; width: 100%; height: 2px; background: #222; margin: 6px 0; transition: .25s;
}
@media (max-width: 768px) {
  .hamburger { display: block }
  .main-menu { position: relative }
  .main-menu ul {
    flex-direction: column;
    gap: 0;
    position: absolute; left: 0; right: 0; top: 60px;
    background: #fff; border-bottom: 1px solid var(--line);
    overflow: hidden;
    max-height: 0;
    transition: max-height .35s ease, padding .25s ease;
    padding: 0;
  }
  .main-menu ul.show {
    max-height: 400px;
    padding: 8px 12px 12px;
  }
  .main-menu a { width: 100%; padding: .95rem 10px; color: #444 }
}

/* =========================================================
   Blog Hero
   ========================================================= */
.blog-hero {
  padding: 60px 10%;
  text-align: center;
  background: linear-gradient(180deg, #fff, #f6f9ff);
}
.blog-hero h1 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 12px }
.blog-hero p { color: var(--muted); font-size: 17px }

/* =========================================================
   Blog Grid & Kartlar
   ========================================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 24px;
  padding: 40px 10%;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.1);
}
.blog-card img {
  width: 100%;
  height: auto;          /* Oranı koru */
  max-height: 220px;     /* Kartı taşmasın */
  object-fit: contain;   /* Kırpma yok */
  background: #f8f8f8;   /* Boşluklara arka plan */
}
.blog-card-content { padding: 16px }
.blog-card h2 { font-size: 20px; margin: 0 0 8px; color: var(--brand-dark) }
.blog-card p { color: var(--muted); font-size: 15px }
.blog-card a {
  display: inline-block;
  margin-top: 10px;
  color: var(--brand);
  font-weight: 600;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: #0b1220; color: #cbd5e1; padding: 24px 0; margin-top: 40px }
.footer-inner {
  display: flex; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; align-items: flex-start;
}
.footer-brand { font-size: 18px; color: #fff; display: block; margin-bottom: 6px }
.footer-address { font-style: normal; line-height: 1.4; opacity: .9; margin-bottom: 10px }

.contact-list { margin: 0; padding: 0; list-style: none }
.contact-list li { margin-bottom: 6px }
.contact-list a { color: #cbd5e1; font-weight: 600; font-size: 15px }
.contact-list a:hover { color: #fff }

.socials { display: flex; gap: 8px; margin-top: 8px }
.socials a {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2); border-radius: 6px;
  transition: all .25s ease; font-size: 14px;
}
.socials a:hover { background: rgba(255,255,255,.1) }

.footer-bottom {
  margin-top: 16px; padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center; font-size: 13px; color: #aaa;
}
.footer-bottom a { color: #ddd }
.footer-bottom a:hover { color: #fff }

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; text-align: center; gap: 16px }
  .socials { justify-content: center }
}

/* =========================================================
   WhatsApp
   ========================================================= */
.wa-float {
  position: fixed; right: 16px; bottom: 16px;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  z-index: 9999;
}
.wa-bubble {
  position: fixed; right: 16px; bottom: 84px;
  max-width: 240px;
  background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 10px 12px;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 9999; font-size: 14px; color: #111
}
.wa-bubble.show { opacity: 1; transform: translateY(0); pointer-events: auto }
/* Blog yazısı içi görsel */
.article-img {
  display: block;
  max-width: 100%;
  width: 100%;
  max-height: 360px;      /* çok yüksek görünmesini engeller */
  object-fit: contain;    /* orijinal oranı korur, kırpmaz */
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  background: #f8f8f8;    /* kenarda boşluk kalırsa arka plan */
}
