/*
Theme Name: GeneratePress Smality
Template: generatepress
Description: Custom child theme recreating tugbaustundag.com editorial homepage, single post, Crayon Classic code blocks, and warm 4-column footer.
Version: 1.4.0
Text Domain: generatepress-smality
*/

:root {
  --sm-bg: #ffffff;
  --sm-text: #181818;
  --sm-muted: #767676;
  --sm-accent: #d74100;
  --sm-accent-hover: #b33600;
  --sm-border: #181818;
  --sm-card-bg: #f3f4f6;
  --sm-container: 1170px;
  --sm-font-heading: 'Mukta', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sm-font-ui: 'Overpass', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sm-font-sans: 'Mukta', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sm-font-serif: 'Amiri', Georgia, serif;
}

html, body {
  overflow-x: clip;
}

body {
  background: var(--sm-bg) !important;
  color: var(--sm-text);
  font-family: var(--sm-font-ui);
  -webkit-font-smoothing: antialiased;
}

.sm-container {
  max-width: var(--sm-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== HEADER ==================== */
.sm-header {
  background: #fff;
  padding: 26px 0 0;
}

.sm-header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1.5px solid var(--sm-border);
}

.sm-logo-link {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.sm-logo-img {
  max-height: 60px;
  width: auto;
  display: block;
}

.sm-header-actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.sm-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #181818;
  background: transparent;
  border: 0;
  padding: 4px;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

.sm-icon-btn:hover {
  color: var(--sm-accent);
  transform: translateY(-1px);
}

.sm-icon-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.sm-mobile-toggle {
  display: none;
  grid-column: 1;
  justify-self: start;
}

/* Primary Nav */
.sm-nav {
  padding: 15px 0;
  border-bottom: 1px solid #efefef;
}

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

.sm-nav-list > li {
  position: relative;
}

.sm-nav-list a {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #222;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.sm-nav-list a:hover,
.sm-nav-list .current-menu-item > a,
.sm-nav-list .current-category-ancestor > a {
  color: var(--sm-accent);
}

.sm-nav-list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -12px;
  min-width: 180px;
  background: #fff;
  border: 1px solid #eaeaea;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  z-index: 50;
  border-radius: 6px;
}

.sm-nav-list li:hover > .sub-menu,
.sm-nav-list li:focus-within > .sub-menu {
  display: block;
}

.sm-nav-list .sub-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 11.5px;
}

/* Search Overlay */
.sm-search-bar {
  display: none;
  background: #fafafa;
  border-bottom: 1px solid #eaeaea;
  padding: 16px 0;
}

.sm-search-bar.is-open {
  display: block;
}

.sm-search-form {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  gap: 10px;
}

.sm-search-form input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #d4d4d8;
  border-radius: 999px;
  font-size: 14px;
  background: #fff;
}

.sm-search-form button {
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--sm-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ==================== CATEGORY PILL BADGES ==================== */
.sm-badges {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 3;
}

.sm-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff !important;
  text-decoration: none !important;
  line-height: 1.25;
  background: #2b241d;
}

.sm-badge--android-performans { background: #b42f8e; }
.sm-badge--android-animasyon { background: #8a000e; }
.sm-badge--ui-ux { background: #321d12; }
.sm-badge--compose { background: #000000; }
.sm-badge--api-library { background: #1e73be; }
.sm-badge--android-guvenlik { background: #148a00; }
.sm-badge--veritabani-web-servis { background: #7e4f7d; }
.sm-badge--diger { background: #4b5563; }
.sm-badge--genel,
.sm-badge--makalelerim { background: #4b5563; }

/* Date Meta */
.sm-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--sm-muted);
  margin-bottom: 8px;
}

.sm-date svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

/* ==================== HERO SPLIT SLIDER ==================== */
.sm-hero {
  padding: 42px 0 46px;
}

.sm-slide {
  display: none;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 48px;
  align-items: center;
}

.sm-slide.is-active {
  display: grid;
  animation: smFadeIn 0.35s ease;
}

@keyframes smFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.sm-hero-left {
  padding-right: 12px;
}

.sm-hero-title {
  font-size: 32px;
  line-height: 1.26;
  font-weight: 800;
  color: #111;
  margin: 4px 0 26px;
  letter-spacing: -0.015em;
}

.sm-hero-title a {
  color: inherit;
  text-decoration: none;
}

.sm-hero-title a:hover {
  color: var(--sm-accent);
}

.sm-cta-btn {
  display: inline-block;
  padding: 11px 28px;
  border-radius: 999px;
  background: var(--sm-accent);
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.15s ease;
}

.sm-cta-btn:hover {
  background: var(--sm-accent-hover);
  transform: translateY(-1px);
}

.sm-slider-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
}

.sm-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid #d4d4d8;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sm-dot.is-active {
  border-color: #b5b5be;
  background: #b5b5be;
  transform: scale(1.1);
}

/* Stacked Right Preview Card */
.sm-hero-right {
  position: relative;
  padding: 0 42px;
}

.sm-hero-backdrop {
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  bottom: 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e9e5ff 0%, #f3e8ff 50%, #e6e9ff 100%);
  z-index: 1;
}

.sm-hero-card {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(24, 24, 36, 0.09);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.sm-hero-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #f1f2f6;
  overflow: hidden;
}

.sm-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sm-hero-card-body {
  padding: 24px 26px 28px;
}

.sm-hero-card-title {
  font-size: 20px;
  line-height: 1.32;
  font-weight: 800;
  margin: 2px 0 12px;
  color: #111;
}

.sm-hero-card-title a {
  color: inherit;
  text-decoration: none;
}

.sm-hero-card-excerpt {
  font-family: var(--sm-font-serif);
  font-size: 14px;
  line-height: 1.65;
  color: #666;
  margin: 0;
}

/* ==================== 4-COLUMN CARD GRID ==================== */
.sm-grid-section {
  padding: 18px 0 46px;
}

.sm-section-heading {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555;
  margin: 0 0 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ececec;
}

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

.sm-card {
  display: flex;
  flex-direction: column;
}

.sm-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}

.sm-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: var(--sm-card-bg);
  margin-bottom: 12px;
  display: block;
}

.sm-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.sm-card:hover .sm-card-thumb img {
  transform: scale(1.03);
}

.sm-card-title {
  font-size: 15.5px;
  line-height: 1.38;
  font-weight: 700;
  color: #111;
  margin: 0;
}

.sm-card-title a {
  color: inherit;
  text-decoration: none;
}

.sm-card-title a:hover {
  color: var(--sm-accent);
}

/* ==================== HAKKIMDA BAND ==================== */
.sm-about-section {
  padding: 28px 0 56px;
}

.sm-about-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 44px;
  align-items: start;
}

.sm-about-photo {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #e5e7eb;
}

.sm-about-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.sm-about-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  margin: 4px 0 18px;
}

.sm-about-content p {
  font-family: var(--sm-font-serif);
  font-size: 15px;
  line-height: 1.78;
  color: #555;
  margin: 0 0 16px;
}

.sm-about-content a {
  color: var(--sm-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sm-about-more {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--sm-font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: #111 !important;
  border-bottom: 1.5px solid var(--sm-accent);
  padding-bottom: 3px;
}

/* Pagination */
.sm-pagination {
  margin-top: 38px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sm-pagination a,
.sm-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #333;
  border: 1px solid #e4e4e7;
  background: #fff;
}

.sm-pagination span.current,
.sm-pagination a:hover {
  background: var(--sm-accent);
  border-color: var(--sm-accent);
  color: #fff;
}

/* ==================== SINGLE POST EDITORIAL LAYOUT ==================== */
.sm-single-main {
  padding: 38px 0 48px;
}

.sm-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 48px;
  align-items: start;
}

.sm-single-article,
.sm-single-content {
  min-width: 0;
  max-width: 100%;
}

.sm-single-header {
  margin-bottom: 24px;
}

.sm-single-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.sm-single-title {
  font-family: var(--sm-font-sans);
  font-size: 33px;
  line-height: 1.24;
  font-weight: 800;
  color: #111;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}

.sm-single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--sm-muted);
  padding-bottom: 18px;
  border-bottom: 1px solid #ececec;
}

.sm-single-meta .sm-date {
  margin-bottom: 0;
}

.sm-meta-sep {
  color: #ccc;
}

.sm-meta-author {
  font-weight: 600;
  color: #333;
}

.sm-single-featured {
  margin: 0 0 28px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f7;
}

.sm-single-featured img {
  width: 100%;
  height: auto;
  display: block;
}

/* Single Post Typography + Davenport Dropcap */
.sm-single-content {
  font-family: var(--sm-font-serif);
  font-size: 16.5px;
  line-height: 1.85;
  color: #2a2a2a;
}

.sm-single-content > p:first-of-type::first-letter {
  float: left;
  font-family: var(--sm-font-sans);
  font-size: 52px;
  line-height: 0.86;
  font-weight: 800;
  color: #111;
  padding: 4px 10px 0 0;
}

.sm-single-content h2,
.sm-single-content h3,
.sm-single-content h4 {
  font-family: var(--sm-font-sans);
  color: #111;
  font-weight: 800;
  margin: 30px 0 12px;
  line-height: 1.32;
}

.sm-single-content h2 { font-size: 23px; }
.sm-single-content h3 { font-size: 19px; }

.sm-single-content a {
  color: var(--sm-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sm-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 14px 0;
}

.sm-single-content blockquote {
  margin: 22px 0;
  padding: 16px 22px;
  border-left: 3px solid var(--sm-accent);
  background: #faf8f6;
  color: #444;
  font-style: italic;
}

.sm-single-content details {
  margin: 18px 0;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fafafa;
}

.sm-single-content details summary {
  font-family: var(--sm-font-sans);
  font-weight: 700;
  cursor: pointer;
  color: #111;
}

/* ==================== CRAYON CLASSIC CODE SNIPPET TEMPLATE ==================== */
.sm-crayon {
  margin: 24px 0;
  border: 1px solid #999999;
  border-radius: 4px;
  overflow: hidden;
  background: #fdfdfd;
  font-family: 'Monaco', 'Menlo', 'Consolas', 'Liberation Mono', monospace;
  max-width: 100%;
}

.sm-crayon-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 12px;
  background: #dddddd;
  border-bottom: 1px solid #bbbbbb;
  font-family: var(--sm-font-ui);
}

.sm-crayon-lang {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #333333;
  text-transform: uppercase;
}

.sm-crayon-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sm-crayon-btn {
  padding: 3px 9px;
  border: 1px solid #bbbbbb;
  border-radius: 3px;
  background: #eeeeee;
  color: #333333;
  font-family: var(--sm-font-ui);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sm-crayon-btn:hover,
.sm-crayon-btn.is-active {
  background: #bcbcbc;
  border-color: #999999;
  color: #ffffff;
}

.sm-crayon-btn--copy.is-copied {
  background: #148a00;
  border-color: #148a00;
  color: #ffffff;
}

.sm-crayon-body {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  scrollbar-width: thin;
  scrollbar-color: #b8c4d0 #f1f5f9;
  font-size: 13px;
  line-height: 1.65;
  background: #fdfdfd;
}

.sm-crayon-body::-webkit-scrollbar {
  height: 7px;
  width: 7px;
}

.sm-crayon-body::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.sm-crayon-body::-webkit-scrollbar-thumb {
  background: #b8c4d0;
  border-radius: 999px;
}

.sm-crayon-body.is-clamped {
  max-height: 430px;
  overflow-y: auto;
}

.sm-crayon-nums {
  position: sticky;
  left: 0;
  z-index: 2;
  flex: 0 0 auto;
  min-width: 42px;
  padding: 10px 0;
  background: #dfefff;
  border-right: 1px solid #c2dcf7;
  color: #5499de;
  text-align: right;
  user-select: none;
}

.sm-crayon-num {
  padding: 0 10px 0 8px;
}

.sm-crayon-num.is-striped {
  background: #c8e1fa;
  color: #317cc5;
}

.sm-crayon-code {
  flex: 1 0 auto;
  width: max-content;
  min-width: calc(100% - 42px);
  padding: 10px 0;
  color: #1f2328;
}

.sm-crayon-line {
  padding: 0 14px;
  white-space: pre;
}

.sm-crayon-line.is-striped {
  background: #f7f7f7;
}

.sm-crayon.hide-nums .sm-crayon-nums {
  display: none;
}

.sm-crayon.hide-nums .sm-crayon-code {
  min-width: 100%;
}

.sm-crayon.is-wrapped .sm-crayon-code {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
}

.sm-crayon.is-wrapped .sm-crayon-line {
  white-space: pre-wrap;
  word-break: break-word;
}

/* Crayon Classic Syntax Palette */
.smc-k { color: #800080; font-weight: 700; }  /* Keywords */
.smc-s { color: #008000; }                    /* Strings */
.smc-c { color: #ff8000; font-style: italic; }/* Comments */
.smc-a { color: #808000; font-weight: 600; }  /* Annotations / XML attrs */
.smc-t { color: #0066cc; }                    /* Types / Classes */
.smc-n { color: #0000cc; }                    /* Numbers */

/* Tags, Share, Post Nav, Related */
.sm-single-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #ececec;
}

.sm-tags-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #555;
}

.sm-tag-pill {
  padding: 4px 11px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #333;
  font-size: 12px;
  text-decoration: none;
}

.sm-tag-pill:hover {
  background: var(--sm-accent);
  color: #fff;
}

.sm-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding: 16px 20px;
  background: #faf8f6;
  border-radius: 8px;
  border: 1px solid #efeae4;
}

.sm-share-label {
  font-size: 13px;
  font-weight: 700;
  color: #333;
}

.sm-share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sm-copy-link-btn {
  padding: 7px 14px;
  border: 1px solid #d4d4d8;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.sm-copy-link-btn:hover {
  border-color: var(--sm-accent);
  color: var(--sm-accent);
}

.sm-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #ececec;
}

.sm-post-nav-next {
  text-align: right;
}

.sm-nav-dir {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sm-muted);
  margin-bottom: 6px;
}

.sm-post-nav-item a {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  line-height: 1.35;
}

.sm-post-nav-item a:hover {
  color: var(--sm-accent);
}

.sm-related-section {
  margin-top: 44px;
}

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

/* ==================== RIGHT SIDEBAR WIDGETS ==================== */
.sm-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sm-widget {
  padding: 24px;
  background: #fafafa;
  border: 1px solid #efefef;
  border-radius: 8px;
}

.sm-widget-title {
  font-family: var(--sm-font-sans);
  font-size: 15px;
  font-weight: 800;
  color: #111;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid #181818;
}

.sm-widget-author {
  text-align: center;
}

.sm-widget-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  display: block;
}

.sm-widget-author-name {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #111;
}

.sm-widget-author-bio {
  font-family: var(--sm-font-serif);
  font-size: 13.5px;
  line-height: 1.7;
  color: #666;
  margin: 0 0 14px;
}

.sm-sidebar-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.sm-sidebar-cats {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sm-sidebar-cats li {
  border-bottom: 1px solid #ececec;
}

.sm-sidebar-cats li:last-child {
  border-bottom: 0;
}

.sm-sidebar-cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 14px;
  color: #222;
  text-decoration: none;
}

.sm-sidebar-cats a:hover {
  color: var(--sm-accent);
}

.sm-cat-count {
  font-size: 11.5px;
  font-weight: 700;
  color: #666;
  background: #eee;
  padding: 2px 8px;
  border-radius: 999px;
}

.sm-sidebar-posts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sm-sidebar-post {
  padding-bottom: 12px;
  border-bottom: 1px solid #ececec;
}

.sm-sidebar-post:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.sm-sidebar-post-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.38;
  color: #111;
  text-decoration: none;
  margin-bottom: 5px;
}

.sm-sidebar-post-title:hover {
  color: var(--sm-accent);
}

.sm-sidebar-post .sm-date {
  margin-bottom: 0;
}

/* ==================== WARM 4-COLUMN EDITORIAL FOOTER ==================== */
.sm-footer {
  background: #e6ddd5;
  color: #222;
  padding: 64px 0 42px;
  margin-top: 32px;
}

.sm-footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr 1.15fr 0.95fr;
  gap: 38px;
  padding-bottom: 48px;
}

.sm-footer-heading {
  font-family: var(--sm-font-sans);
  font-size: 17px;
  font-weight: 700;
  color: #111;
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sm-footer-bio {
  font-family: var(--sm-font-serif);
  font-size: 13.5px;
  line-height: 1.82;
  color: #6b655f;
  margin: 0;
}

.sm-footer-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sm-footer-cat-list li {
  margin-bottom: 14px;
}

.sm-footer-cat-list a {
  font-family: var(--sm-font-serif);
  font-size: 14px;
  color: #222;
  text-decoration: none;
  transition: color 0.15s ease;
}

.sm-footer-cat-list a:hover {
  color: var(--sm-accent);
}

.sm-footer-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sm-footer-post-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.sm-footer-post-title {
  font-family: var(--sm-font-sans);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.38;
  margin: 0 0 6px;
  color: #111;
}

.sm-footer-post-title a {
  color: inherit;
  text-decoration: none;
}

.sm-footer-post-title a:hover {
  color: var(--sm-accent);
}

.sm-footer-post .sm-date {
  margin-bottom: 0;
  color: #8c857d;
}

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

.sm-footer-links li {
  margin-bottom: 11px;
}

.sm-footer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--sm-font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.15s ease;
}

.sm-footer-links a:hover {
  color: var(--sm-accent);
}

.sm-footer-links .sm-arrow {
  font-size: 16px;
  line-height: 1;
  color: #555;
}

/* Footer Bottom Strip */
.sm-footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding-top: 22px;
}

.sm-footer-powered {
  font-family: var(--sm-font-serif);
  font-size: 13px;
  color: #8c857d;
}

.sm-footer-powered a {
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.sm-footer-powered a:hover {
  color: var(--sm-accent);
}

.sm-footer-newsletter {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.sm-footer-newsletter input[type="email"] {
  width: 245px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-size: 13px;
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.sm-footer-newsletter input[type="email"]::placeholder {
  color: #9a948e;
}

.sm-footer-newsletter button {
  padding: 11px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--sm-accent);
  color: #fff;
  font-family: var(--sm-font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.sm-footer-newsletter button:hover {
  background: var(--sm-accent-hover);
  transform: translateY(-1px);
}

.sm-sub-ok {
  font-size: 12.5px;
  font-weight: 600;
  color: #0f766e;
}

.sm-footer-socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.sm-soc {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.sm-soc:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.sm-soc svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.sm-soc--fb { background: #4267b2; }
.sm-soc--ig { background: #3f729b; }
.sm-soc--gh { background: #24292e; }
.sm-soc--li { background: #0077b5; }

/* Static Page Layout & Responsive Media Guards */
.sm-page-main {
  padding: 40px 0 60px;
}

.sm-page-article {
  max-width: 860px;
  margin: 0 auto;
}

.sm-page-article .sm-single-content > p:first-of-type::first-letter {
  float: none;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  padding: 0;
}

.sm-single-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.sm-single-content iframe {
  max-width: 100%;
}

.sm-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 24px 0;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.sm-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==================== CONTACT FORM 7 (BANA ULAŞIN) ==================== */
.sm-contact-intro {
  font-family: var(--sm-font-serif);
  font-size: 16.5px;
  line-height: 1.75;
  color: #555;
  margin-bottom: 26px;
}

.wpcf7-form {
  max-width: 680px;
}

.wpcf7-form p {
  margin: 0 0 18px;
}

.wpcf7-form label {
  display: block;
  font-family: var(--sm-font-ui);
  font-size: 13.5px;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 11px 14px;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  background: #fff;
  color: #181818;
  font-family: var(--sm-font-ui);
  font-size: 14.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--sm-accent);
  box-shadow: 0 0 0 3px rgba(215, 65, 0, 0.12);
}

.wpcf7-form textarea {
  min-height: 160px;
  resize: vertical;
}

.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
  display: inline-block;
  padding: 12px 34px;
  border: 0;
  border-radius: 999px;
  background: var(--sm-accent);
  color: #fff;
  font-family: var(--sm-font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
  background: var(--sm-accent-hover);
  transform: translateY(-1px);
}

.wpcf7 form .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: 6px;
  font-family: var(--sm-font-ui);
  font-size: 13.5px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .sm-single-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .sm-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sm-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .sm-footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .sm-footer-socials {
    justify-content: center;
  }
  .sm-slide {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .sm-hero-right {
    padding: 0 18px;
  }
  .sm-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sm-about-grid {
    grid-template-columns: 240px 1fr;
    gap: 28px;
  }
}

@media (max-width: 680px) {
  .sm-container {
    padding: 0 16px;
  }
  .sm-header {
    padding-top: 16px;
  }
  .sm-header-top {
    grid-template-columns: 44px 1fr 44px;
    gap: 8px;
    padding-bottom: 14px;
  }
  .sm-icon-btn {
    min-width: 40px;
    min-height: 40px;
  }
  .sm-mobile-toggle {
    display: inline-flex;
  }
  .sm-logo-img {
    max-height: 42px;
  }
  .sm-header-actions {
    gap: 4px;
  }
  .sm-header-actions .sm-social-link {
    display: none;
  }
  .sm-nav {
    display: none;
    padding: 12px 0;
  }
  .sm-nav.is-open {
    display: block;
  }
  .sm-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .sm-nav-list a {
    display: block;
    padding: 10px 4px;
    font-size: 13px;
    border-bottom: 1px solid #f3f3f3;
  }
  .sm-nav-list .sub-menu {
    display: block;
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 16px;
    background: transparent;
  }
  .sm-nav-list .sub-menu a {
    padding: 8px 4px;
    font-size: 12.5px;
    color: #555;
  }
  .sm-hero {
    padding: 22px 0 28px;
  }
  .sm-hero-left {
    padding-right: 0;
  }
  .sm-hero-title {
    font-size: 24px;
    margin-bottom: 18px;
  }
  .sm-slider-dots {
    margin-top: 22px;
    gap: 12px;
  }
  .sm-dot {
    width: 12px;
    height: 12px;
  }
  .sm-hero-right {
    padding: 0;
  }
  .sm-hero-backdrop {
    display: none;
  }
  .sm-hero-card-body {
    padding: 18px;
  }
  .sm-card-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .sm-about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sm-about-photo {
    max-width: 240px;
  }
  .sm-single-main,
  .sm-page-main {
    padding: 24px 0 36px;
  }
  .sm-single-title {
    font-size: 25px;
  }
  .sm-single-content {
    font-size: 16px;
    line-height: 1.78;
  }
  .sm-crayon-toolbar {
    padding: 6px 8px;
  }
  .sm-crayon-btn {
    padding: 4px 8px;
    font-size: 10.5px;
  }
  .sm-crayon-body {
    font-size: 12px;
  }
  .sm-crayon-nums {
    min-width: 34px;
  }
  .sm-post-nav,
  .sm-related-grid {
    grid-template-columns: 1fr;
  }
  .sm-post-nav-next {
    text-align: left;
  }
  .sm-footer {
    padding: 42px 0 32px;
  }
  .sm-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 32px;
  }
  .sm-footer-newsletter {
    width: 100%;
    flex-direction: column;
  }
  .sm-footer-newsletter input[type="email"] {
    width: 100%;
    max-width: 100%;
  }
  .sm-footer-newsletter button {
    width: 100%;
  }
}
