/*
Theme Name: Smart Mag Child
Theme URI: https://siteadresin.com
Description: Smart Mag Child Theme
Author: Kemal Bahadır
Author URI: https://siteadresin.com
Template: smart-mag
Version: 1.0.5
Text Domain: smart-mag-child
*/

body {
    background: #f2f3f5;
}
.breadcrumbs-b.is-full-width {
  background: #f2f3f5;
}
.main-sidebar .widget-title {
  --space-below: 10px;
  margin-top: 20px;
}
.main  {
    max-width: 1300px;
    background: #ffffff;
	padding-bottom:50px;
}
body.tax-pvm_video_cat{
    background:#f2f3f5;
}

.tax-pvm_video_cat .pvm-wrap{
    background:#fff;
    padding:45px;
}
.breadcrumbs-b + .main {
  margin-top: -30px;
}

.content-wrap {
    padding: 20px;
}
.smart-head {
  --c-bg: #ffff;
}
.ndv-post-cats {
  margin-bottom: 20px;
  margin-top: 30px;
}
.kb-cpsb-box {
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  margin-top: 30px;
  border: 1px solid #e5e5e5;
}
.archive-heading {
  margin-top: 25px;
}
.main-heading {
  margin-top: 25px;
}
.content-spacious {
  --p-spacious-pad: 1%;
}
.list-post .media {
  display: block;
  max-width: var(--list-p-media-max-width, 45%);
  width: var(--list-p-media-width, 25%);
  margin-right: var(--list-p-media-margin, 25px);
  flex-shrink: 0;
}
.post-title a {
  --c-links: initial;
  --c-a: initial;
  --c-a-hover: var(--c-main);
  display: block;
  font-size: 15px;
}
.post-title:not(._) {
  font-size: 21px;
}
blockquote {
  padding: 1.2em 1.2em;
  color: #4f0a0a;
  font-family: var(--blockquote-font, inherit);
  font-size: 1.05em;
  font-weight: 400;
  background: #ffdede36;
}
.post-content > blockquote:not([class]) {
  border-left: 3px solid #fb6868;
}
.nur-hs-input {
  height: 34px;
  width: 258px;
  padding: 6px 12px;
  font-size: 14px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 999px;
  outline: 0;
}
.modern-quote {
  position: relative;
  padding: 0;
  padding-left: calc(12px + 1em);
  padding-right: 14px;
  padding-top: 17px;
  padding-bottom: 0;
  margin-top: 35px;
  margin-bottom: 35px;
  font-family: "Libre Franklin";
  font-weight: 300;
  font-size: 1.05em;
  font-style: normal;
  border: 0;
    border-top-width: 0px;
    border-top-style: none;
    border-top-color: currentcolor;
  border-top: 2px solid var(--c-main);
  background: transparent;
}
blockquote cite {
  font-family: var(--ui-font);
  color: #828282;
  font-size: 13px;
  font-size: max(14px, .7em);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.02em;
}
.mobile-menu li a {
  max-width: calc(100% - 45px);
  float: none;
  display: block;
  padding: 12px 0;
 
  padding-right: 0px;
  line-height: 1.3;
  color: inherit;
  
}
	@media (max-width: 768px){
  .pvm-wrap{
    margin: 10px auto;
    padding: 0 10px;
  }

  .pvm-main{
    width: 100%;
    min-width: 0;
  }

  .pvm-grid,
  .pvm-vlist{
    width: 100%;
  }
}
.post-content,
.entry-content,
.the-post{
  font-size:17px;
  line-height:1.9;
}
/* Birinci Söz kategori – 4'lü grid */
body.category-birinci-soz .loop.loop-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

/* Tablet */
@media (max-width: 1024px) {
  body.category-birinci-soz .loop.loop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Mobil */
@media (max-width: 640px) {
  body.category-birinci-soz .loop.loop-grid {
    grid-template-columns: 1fr !important;
  }
}


/* Liste görünümünü 2'li yap */
.loop.loop-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px;
}

/* Kartların tam oturması için */
.loop.loop-list article {
  margin: 0 !important;
}

/* Mobilde tek sütun */
@media (max-width: 768px) {
  .loop.loop-list {
    grid-template-columns: 1fr !important;
  }
}

.excerpt p{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Başlık iki satır olsun */
.post-title,
.entry-title{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 768px){

  .post-title,
  .entry-title{
    -webkit-line-clamp: 3;
  }

}
/* ============================
   TERTEMİZ FINAL
   - Video sağda
   - Ders hemen solunda
   - İkisi içerikten önce
   - Yazı alanını değiştirmez
   ============================ */

/* Tema ders linkine verdiği dış kutuyu kaldır */
.post-content.cf.entry-content.content-spacious .dsc-toplink{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* İKİ BUTON: görünür + yan yana (sağda) */
.post-content.cf.entry-content.content-spacious .pvm-trigger{
  float: right !important;                 /* Video en sağda */
  margin: 0 0 14px 12px !important;
  display: block !important;
  width: auto !important;
}

.post-content.cf.entry-content.content-spacious .dsc-toplink{
  float: right !important;                 /* Ders video’nun soluna dizilir */
  margin: 0 0 18px 0 !important;
  display: block !important;
  width: auto !important;
}

/* Butonlardan sonra içerik BUTONLARIN ALTINDAN başlasın (yazı alanını daraltmaz) */
.post-content.cf.entry-content.content-spacious blockquote:first-of-type,
.post-content.cf.entry-content.content-spacious p:first-of-type,
.post-content.cf.entry-content.content-spacious div:first-of-type{
  clear: both !important;
}

/* Float temizleme (kapsayıcı çökmesin) */
.post-content.cf.entry-content.content-spacious::after{
  content: "";
  display: block;
  clear: both;
}

/* Ders butonu hover (kutu + yazı) */
.post-content.cf.entry-content.content-spacious .dsc-toplink a{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  background: #c62828;
  color: #fff !important;

  padding: 20px 10px;
  border-radius: 14px;

  font-size: 14px;
  font-weight: 600;
  line-height: 1;

  text-decoration: none !important;
  transition: background .2s ease, transform .2s ease;
}

.post-content.cf.entry-content.content-spacious .dsc-toplink a:hover{
  background: #161616;
  transform: translateY(-2px);
}

/* Mobilde alt alta gelsin */
@media (max-width: 768px){
  .post-content.cf.entry-content.content-spacious .pvm-trigger,
  .post-content.cf.entry-content.content-spacious .dsc-toplink{
    float: none !important;
    display: inline-block !important;
    margin: 10px 10px 10px 0 !important;
  }
}

/* Tabloyu sola yasla (genel) */
table {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* Eğer tema tabloyu ortalıyorsa (common) */
.wp-block-table,
.entry-content table,
.post-content table {
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left;
}

/* Tablo genişse taşmasın: yatay kaydırma */
.table-wrap,
.wp-block-table {
  overflow-x: auto;
}

/* Hücre içi hizalama (isteğe bağlı) */
table th,
table td {
  text-align: left;
  vertical-align: top;
}


@media (min-width: 1200px) {
  /* ana içerik 4 sütun */
  body.archive.category .block-wrap.block-grid .loop.loop-grid.grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  /* sidebar içindekileri eski haline çek */
  body.archive.category aside .block-wrap.block-grid .loop.loop-grid.grid,
  body.archive.category .sidebar .block-wrap.block-grid .loop.loop-grid.grid,
  body.archive.category .widget-area .block-wrap.block-grid .loop.loop-grid.grid {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
}
.category-count-badge{
  font-size:15px;
  margin-left:10px;
  padding:3px 8px;
  border-radius:6px;
  background:#f2f2f2;
  color:#444;
  font-weight:700;
}
.term-count-badge{
  font-size: 14px;
  margin-left: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f2f2f2;
  color: #444;
  font-weight: 600;
  display: inline-block;
}
.


.ndv-post-cats{
margin-bottom:20px;
}

.ndv-cat-badge{
display:inline-block;
background:#111827;
color:#fff;
font-size:13px;
padding:5px 10px;
border-radius:6px;
margin-right:6px;
font-weight:600;
text-decoration:none;
}

.ndv-cat-badge:hover{
background:#c50909c9;
  color:#fff;
}

.ndv-parent-back {
  margin: 30px 0 5px;
}

.ndv-parent-back-btn {
  display: inline-block;
  padding: 8px 14px;
  background: #f3f4f6;
  color: #111827;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all .2s ease;
}

.ndv-parent-back-btn:hover {
  background: #e5e7eb;
  color: #000;
}/* Ayet stili */

.breadcrumbs-b.is-full-width {
  background: #f2f3f5;
}

.ndv-bakiniz{
  margin:20px 0;
  display:flex;
  align-items:center;
  gap:8px;
}

a.ndv-link{
  display:inline-block !important;
  font-size:12px !important;
  line-height:1.2 !important;
  font-weight:500 !important;
  color:#c50909 !important;
  text-decoration:none !important;
  background:#f5f5f5 !important;
  padding:8px 12px !important;
  border-radius:6px !important;
}

a.ndv-link:hover{
  background:#c50909 !important;
  color:#fff !important;
}


.ndv-archive-head-row{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:20px;
	margin:18px 0 12px;
	flex-wrap:wrap;
}

.ndv-archive-head-left{
	flex:1 1 60%;
	min-width:0;
}

.ndv-archive-head-right{
	flex:0 1 auto;
	max-width:100%;
}

.ndv-cat-video-link-inline{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:8px;
	padding:12px 14px;

	background:linear-gradient(135deg,#f8fafc,#eef2f7);
	border:1px solid #e5e7eb;

	color:#111827;
	text-decoration:none;
	border-radius:12px;

	font-size:14px;
	font-weight:700;
	line-height:1.35;

	box-shadow:0 4px 14px rgba(0,0,0,0.06);
	transition:all .2s ease;
}

.ndv-cat-video-link-inline:hover{
	background:linear-gradient(135deg,#ffffff,#f1f5f9);
	border-color:#d1d5db;
	color:#c50909;
	transform:translateY(-1px);
}

.ndv-cat-video-icon{
	font-size:16px;
	line-height:1;
}

@media (max-width: 767px){
	.ndv-archive-head-row{
		display:block;
		margin:14px 0 10px;
	}

	.ndv-archive-head-left{
		width:100%;
		margin-bottom:10px;
	}

	.ndv-archive-head-right{
		width:100%;
	}

	.ndv-cat-video-link-inline{
		display:flex;
		width:100%;
		white-space:normal;
		padding:12px 14px;
		font-size:14px;
		border-radius:10px;
	}
}
@media (max-width: 767px){

  .archive-heading{
    font-size: 22px !important;
    line-height: 1.28 !important;
    margin: 0 !important;
  }

  .archive-heading .term-count-badge,
  .archive-heading .category-count-badge{
    display: inline-block !important;
    margin-left: 8px !important;
    margin-top: 6px !important;
    font-size: 12px !important;
    padding: 3px 7px !important;
    vertical-align: middle;
  }

  .ndv-archive-head-row{
    display: block !important;
    margin: 14px 0 20px !important;
  }

  .ndv-archive-head-left{
    width: 100% !important;
    margin-bottom: 18px !important;
  }

  .ndv-archive-head-right{
    width: 100% !important;
  }

  .ndv-cat-video-link-inline{
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 15px 12px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    border-radius: 12px !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .ndv-cat-video-icon{
    font-size: 15px !important;
  }

  .archive-description,
  .term-description,
  .taxonomy-description{
    font-size: 14px !important;
    line-height: 1.55 !important;
  }
}


.ndv-head-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:18px;
  flex-wrap:wrap;
}

.ndv-head-left{
  flex:1;
  min-width:250px;
}

.ndv-head-right{
  flex:0 0 auto;
}

/* BUTON (AÇIK RENK) */
.ndv-video-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;

  background:linear-gradient(135deg,#f8fafc,#eef2f7);
  border:1px solid #e5e7eb;

  color:#111827;
  padding:10px 14px;
  border-radius:10px;

  font-size:13px;
  font-weight:700;
  text-decoration:none;

  box-shadow:0 4px 14px rgba(0,0,0,0.06);
  transition:.2s;
}

.ndv-video-btn:hover{
  background:#ffffff;
  border-color:#d1d5db;
  color:#c50909;
}

.ndv-inline-label{
  display:inline-block;
  transform:translateX(-6px);
  font-size:18px;
  color:#616161;
  font-weight:600;

}

.ndv-pdf-wrap,
.ndv-pdf-button-wrap{
  display:flex;
  justify-content:flex-end;
  margin:6px 0 12px;
}

.ndv-pdf-btn{
  display:inline-block;
  padding:6px 16px;
  background:#111827;
  color:#fff;
  text-decoration:none;
  border-radius:8px;
  font-size:14px;
  font-weight:600;
}

.ndv-pdf-btn:hover{
  background:#c50909;
  color:#fff;
}
.single-pvm_video .ndv-pdf-button-wrap{
  margin-bottom:0;
}

.single-pvm_video .entry-content > *:last-child{
  margin-bottom:0;
}
.post-content, .textwidget, .wp-block-group__inner-container {
  --ul-style: disc;
  --post-content-gaps: 0.4em;
  --ul-margin: calc(var(--post-content-gaps) + 0.3em) auto;
}
.navigation .menu ul li {
  float: none;
  min-width: 280px;
  max-width: 350px;
  border-top: 0;
  padding: 0 0;
  position: relative;
}