/* ==========================================
   1. RESET & GENERAL STYLES
   ================================          */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #333333;
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
}

/* ==========================================
   2. CONTAINERS & SITE LAYOUT
   ================================          */
.container, .site-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* Two-Column Grid Layout (Main Content + Sidebar) */
.site-wrapper {
  display: grid;
  grid-template-columns: 1fr 100px; /* Sidebar 300px'den 240px'e düşürüldü */
  grid-template-areas: "main sidebar";
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  align-items: start;
}

.content-area { 
  grid-area: main;
  flex: 1;
  min-width: 0;
  padding-right: 10px; /* Metinlerin sidebar'a çok yaklaşmasını önler */
}

.sidebar { 
  grid-area: sidebar;
  width: 150px;
  flex-shrink: 0;
}

/* ==========================================
   3. TOP BAR & HEADER BANNER
   ================================          */
.top-bar {
  background-color: #d92323;
  height: 35px;
  display: flex;
  align-items: center;
}

.top-bar-content {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.search-icon {
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
}

header.main-banner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 20px 0 20px;
  text-align: center;
  box-sizing: border-box;
}

header.main-banner img {
  max-width: 900px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ==========================================
   4. MAIN NAVIGATION & DROPDOWNS
   ================================          */
.main-nav {
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
  margin-bottom: 35px;
}

.main-nav ul, 
header nav, .nav-menu, .menu {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  height: auto;
  align-items: center;
  margin: 20px auto;
  padding: 0;
  max-width: 100%;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  text-decoration: none;
  color: #333333;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #d92323;
}

/* Navigation Hover Dropdown */
.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  flex-direction: column;
  padding: 10px 0;
  z-index: 100;
  height: auto;
}

.main-nav .has-dropdown:hover .dropdown-menu {
  display: flex;
}

.main-nav .dropdown-menu li {
  width: 100%;
}

.main-nav .dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: #333;
  white-space: nowrap;
}

.main-nav .dropdown-menu a:hover {
  background-color: #f5f5f5;
  color: #d92323;
}

/* ==========================================
   5. SIDEBAR WIDGETS & FORMS (Kompakt Ayar)
   ================================          */
.widget, .sidebar-widget {
  margin-bottom: 25px; /* Widget'lar arası dikey boşluk kısaltıldı */
}

.widget-title, .sidebar-widget h3 {
  font-size: 15px;
  font-weight: 600;
  color: #000000;
  /* Çizgiyi tüm genişlik yerine sadece başlığın altında veya daha kısa tutabiliriz, 
     ya da alt boşluğunu azaltabiliriz */
  border-bottom: 2px solid #000000;
  padding-bottom: 4px;
  margin-bottom: 10px;
  display: inline-block; /* Çizginin sadece başlık kadar (kısa) olmasını sağlar */
  width: 100%;           /* İsterseniz tam genişlik kalır, inline-block ile kısaltılabilir */
  letter-spacing: 0.3px;
}

.widget-list {
  list-style: none;
  line-height: 1.8;
}

.widget-list a {
  color: #6bb070;
  text-decoration: none;
  font-size: 14px;
}

.search-form input[type="search"],
.widget select,
.sidebar-widget select.archive-select {
  width: 100%;
  height: 36px; /* Arama ve arşiv kutuları biraz daha kompaktlaştırıldı */
  padding: 6px 10px;
  border: 1px solid #cccccc;
  font-size: 13px;
  background-color: #ffffff;
  border-radius: 0;
  color: #333333;
}

.sidebar-widget select.archive-select {
  cursor: pointer;
}

/* ==========================================
   6. POST CARDS & CONTENT TYPOGRAPHY
   ================================          */
.page-title, 
.content-area h1, 
.content-area h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #222222;
  letter-spacing: -0.3px;
}

.post-card {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid #eeeeee;
}

.post-thumb {
  width: 180px;
  flex-shrink: 0;
}

.post-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.post-content {
  flex: 1;
}

.post-meta-categories {
  font-size: 13px;
  color: #6bb070;
  margin-bottom: 5px;
  font-weight: 500;
}

.post-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.post-title a {
  color: #111111;
  text-decoration: none;
}

.post-title a:hover {
  color: #d92323;
}

.post-meta-info {
  font-size: 13px;
  color: #888888;
  margin-bottom: 12px;
  display: flex;
  gap: 15px;
}

.post-excerpt {
  font-size: 14px;
  color: #444444;
  line-height: 1.6;
  margin-bottom: 15px;
}

.btn-read-more {
  display: inline-block;
  background-color: #d92323;
  color: #ffffff;
  text-decoration: none;
  padding: 7px 18px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn-read-more:hover {
  background-color: #b81b1b;
}

/* ==========================================
   7. FOOTER & EMBEDS
   ================================          */
.site-footer {
  margin-top: 40px;
  padding-bottom: 40px;
}

.footer-divider {
  border: none;
  border-top: 1px solid #eeeeee;
  margin-bottom: 30px;
}

.grid {
  display: flex;
  gap: 30px;
  font-size: 14px;
  color: #555555;
}

.column h2 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #111111;
}

.column h2 a {
  color: inherit;
  text-decoration: none;
}

.column ul {
  list-style: none;
  line-height: 1.8;
}

.column a {
  color: #666666;
  text-decoration: none;
}

.column a:hover {
  color: #111111;
}

.map-container {
  margin-top: 30px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.map-container iframe {
  width: 100% !important;
  height: 400px;
  border: 0;
  border-radius: 8px;
}

/* ==========================================
   8. RESPONSIVE BREAKPOINTS (MOBILE COLLAPSE)
   ================================          */
@media (max-width: 768px) {
  .site-wrapper {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "sidebar";
  }
  
  .container, .site-container, header.main-banner {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Added mobile navigation wrapping and bottom buffer */
  .main-nav ul, 
  header nav, .nav-menu, .menu {
    display: flex;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center;
    gap: 10px 18px;
    height: auto !important;
    min-height: auto;
    padding: 10px 5px;
    margin: 10px auto 35px auto;
    max-width: 100%;
    box-sizing: border-box;
  }

  .main-nav {
    height: auto !important;
    margin-bottom: 25px;
  }
}

img, iframe, video, table {
  max-width: 100%;
  height: auto;
}

/* ==========================================
   FIXES FOR EMBEDDED FORMS, SPREADSHEETS & CALENDAR
   ================================          */

/* 1. Calendars, Spreadsheets & Forms get the tall viewing space */
.content-area iframe[src*="calendar.google.com"],
.content-area iframe[src*="docs.google.com"],
.content-area form {
  width: 100% !important;
  height: 75vh !important;
  min-height: 500px;
  max-height: 850px;
  border: 0;
}

/* 2. ALL other iframes (Videos, Vimeo, Custom Embeds) automatically lock to 16:9 widescreen */
.content-area iframe:not([src*="calendar.google.com"]):not([src*="docs.google.com"]) {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  max-height: none !important;
  border: 0;
}

/* Fix list item alignment and bullet clipping on mobile */
.content-area ul, 
.entry-content ul {
  padding-left: 20px; /* Brings bullet points safely inside the screen bounds */
  margin-left: 0;
}

.content-area li, 
.entry-content li {
  margin-bottom: 8px;
}

