/* Nevşehir Milat — homepage polish (loads after style.css) */
.home-page {
  --home-gap: 1.25rem;
  --home-card-border: #e8ebe9;
  --home-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.home-page .home-section {
  margin-bottom: 1.5rem;
}

/* Hero: equal columns, matched height */
.home-hero-row {
  align-items: stretch;
}

/* Masaüstünde manşet asla tam genişlik olmasın — kutulu container */
@media (min-width: 992px) {
  .home-page .home-hero-fullbleed > .container-fluid {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

@media (min-width: 1200px) {
  .home-page .home-hero-fullbleed > .container-fluid {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .home-page .home-hero-fullbleed > .container-fluid {
    max-width: 1320px;
  }
}

.home-hero-main,
.home-hero-side {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #0b0b0b;
  overflow: hidden;
}

.home-hero-main .main-headline,
.home-hero-side .featured-news-slide {
  flex: 1 1 auto;
  min-height: 0;
  /* Swiper + flex: min-width:auto slaytların genişlemesine izin verip
     sonsuz büyüme döngüsü yaratıyor; genişliği kaba sabitle */
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.home-page .main-headline-3 .swiper-slide img {
  height: 460px;
}

.home-page .featured-news-slide .swiper-slide {
  height: 460px;
}

.home-page .main-headline-bottom,
.home-page #featured-pagination {
  flex-shrink: 0;
}

.home-page .mh-title {
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}

.home-page .mh-title--featured {
  font-size: 1.2rem;
}

.home-page .mh-cat {
  border-radius: 2px;
}

/* Top 5 equal columns */
.home-top5-grid > .col {
  min-width: 0;
}

.home-page .top-headline-3 .top-mask {
  height: 100%;
  min-height: 220px;
  background: #111;
}

.home-page .top-headline-3 .top-mask img {
  height: 240px;
  width: 100%;
  object-fit: cover;
}

.home-page .top-headline-3 .title-bg-area {
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 650;
  padding: 2.5rem 0.75rem 0.75rem;
}

/* Son dakika */
.home-page .sd-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.home-page .sd-all {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--te-color, #D10A11);
  white-space: nowrap;
}

.home-page .sd-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--home-card-border);
  box-shadow: var(--home-card-shadow);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-page .sd-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.home-page .sd-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0f0f0;
}

.home-page .sd-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-page .sd-body {
  padding: 0.65rem 0.75rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.home-page .sd-body h4 {
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Parite bar */
.home-parite {
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.home-page .parite-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: thin;
}

.home-page .parite-item {
  white-space: nowrap;
  padding: 0.15rem 0.65rem;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.8rem;
}

.home-page .parite-item:last-child {
  border-right: 0;
}

@media (max-width: 767.98px) {
  /* Mobil: hava durumu ayrı blok, kurlar alt alta (style.css ile uyumlu) */
  .home-page .parite-list {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    overflow-x: visible;
    gap: 0;
  }
  .home-page .parite-item {
    width: 100%;
    padding: 9px 14px;
    border-right: 0;
  }
}

/* Daily cards */
.home-daily-card {
  border: 1px solid var(--home-card-border) !important;
  box-shadow: var(--home-card-shadow);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.home-daily-card:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.home-daily-card .img-hover-zoom {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3f3f3;
}

.home-daily-card .img-hover-zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Category widgets & blocks */
.home-page .category-news-widget,
.home-page .b1-manset-widget,
.home-page .photo-gallery-widget,
.home-page .authors-light,
.home-page .home-unified-panel {
  border: 1px solid var(--home-card-border);
  box-shadow: var(--home-card-shadow);
}

.home-page .home-unified-panel {
  border-radius: 0;
}

.home-page .authors-swiper {
  padding: 0.15rem 0 0.25rem;
}

.home-page .author-card-item {
  min-height: 104px;
  padding: 0.9rem;
  gap: 0.8rem;
  background: #fff;
  border: 1px solid var(--home-card-border);
  box-shadow: none;
}

.home-page .author-card-item:hover {
  border-color: #cdded4;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

.home-page .author-card-avatar,
.home-page .author-card-avatar img,
.home-page .author-card-initials {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 50%;
}

.home-page .author-card-avatar {
  display: block;
}

.home-page .author-card-avatar img {
  display: block;
  object-fit: cover;
  border: 3px solid #edf5f0;
}

.home-page .author-card-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--te-color);
  border: 3px solid #edf5f0;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.home-page .author-card-info {
  min-width: 0;
}

.home-page .author-card-kicker,
.home-page .author-card-more {
  display: block;
  color: #7b8780;
  font-size: 0.68rem;
  line-height: 1.2;
}

.home-page .author-card-kicker {
  margin-bottom: 0.28rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.home-page .author-card-name {
  display: block;
  margin-bottom: 0.32rem;
  color: #1a1a1a;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.home-page .author-card-item:hover .author-card-name,
.home-page .author-card-item:hover .author-card-more {
  color: var(--te-color);
}

/* Modern medya bölümleri (spor-section tarzı): Foto Galeri, Video, Gazeteler, Son Haberler */
.home-page .mx-section {
  background: #1E1E1E;
  border-radius: 4px;
  overflow: hidden;
}

.home-page .mx-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(90deg, var(--green-dark) 0%, var(--green-darker) 100%);
  border-bottom: 2px solid var(--te-color);
}

.home-page .mx-title {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.home-page .mx-all {
  color: #fff;
  opacity: 0.85;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.home-page .mx-all:hover {
  opacity: 1;
}

.home-page .mx-body {
  padding: 10px;
}

.home-page .mx-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 204px);
  gap: 8px;
}

.home-page .mx-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 3px;
  background: #111;
}

.home-page .mx-card--big {
  grid-column: span 2;
  grid-row: span 2;
}

.home-page .mx-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.home-page .mx-card:hover .mx-img {
  transform: scale(1.05);
}

.home-page .mx-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  padding: 40px 10px 10px;
}

.home-page .mx-badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  background: var(--te-color);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 2px;
}

.home-page .mx-card-title {
  margin: 0 0 2px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-page .mx-card--big .mx-card-title {
  font-size: 16px;
  -webkit-line-clamp: 3;
}

.home-page .mx-time {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10.5px;
}

.home-page .mx-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(209, 10, 17, 0.9);
  color: #fff;
  font-size: 15px;
  padding-left: 3px;
  transition: background 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.home-page .mx-card--big .mx-play {
  width: 60px;
  height: 60px;
  font-size: 20px;
}

.home-page .mx-card--video:hover .mx-play {
  background: var(--te-color);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Servisler & Araçlar kart grid */
.home-page .servis-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.home-page .servis-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 8px;
  background: #fafbfa;
  border: 1px solid var(--home-card-border);
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.home-page .servis-card:hover {
  border-color: #cdded4;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.home-page .servis-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 17px;
}

.home-page .servis-card-label {
  color: #333;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.3;
}

.home-page .servis-card:hover .servis-card-label {
  color: var(--te-color);
}

/* Son Haberler kartları koyu panelde */
.home-page .mx-section .b9-card {
  border: none;
  border-radius: 3px;
}

.home-page .mx-section #loadmore-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.home-page .mx-section #loadmore-btn:hover {
  background: var(--te-color);
  border-color: var(--te-color);
}

.home-page .gazeteler-section .gz-home-card {
  border: none;
  border-radius: 3px;
  box-shadow: none;
}

.home-page .gazeteler-section .gz-home-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.home-page .gazeteler-section .gz-home-hover {
  background: rgba(30, 30, 30, 0.58);
}

.home-page .gazeteler-section .gz-home-name {
  min-height: 38px;
  padding: 0.55rem 0.6rem;
  color: #242424;
  font-size: 0.78rem;
}

.home-page .home-blok-row > [class*="col-"] {
  background: transparent;
}

.home-page .b1-manset-item {
  padding: 0.55rem 0.45rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.home-page .b1-manset-item:hover {
  background: #f6faf7;
  border-color: #dce8e1;
}

.home-page .b1-manset-img img {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

.home-page .b1-manset-title {
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.35;
  margin: 0.15rem 0 0.2rem;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-page .most-read-item .mthumb img {
  width: 80px;
  height: 56px;
  object-fit: cover;
  display: block;
}

/* Son haberler cards — vertical stack */
.home-page .b9-card {
  flex-direction: column !important;
  background: #fff;
  border: 1px solid var(--home-card-border);
  box-shadow: var(--home-card-shadow);
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-page .b9-card:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09);
  transform: translateY(-1px);
}

.home-page .b9-card-img {
  width: 100% !important;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f0f0f0;
}

.home-page .b9-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.home-page .b9-card:hover .b9-img {
  transform: scale(1.04);
}

@media (max-width: 575.98px) {
  /* style.css mobilde kartı yatay (küçük thumb + metin) yapar;
     buradaki width:100% + aspect-ratio kuralı onu bozuyordu */
  .home-page .b9-card-img {
    width: 110px !important;
    min-width: 110px;
    height: 78px;
    aspect-ratio: auto;
  }
  .home-page .b9-img {
    height: 78px;
  }
}

.home-page .b9-card-body {
  padding: 0.75rem 0.85rem 0.9rem !important;
}

.home-page .b9-title {
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.35;
  color: #1a1a1a;
  margin: 0 0 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-page #loadmore-btn {
  border-color: #cfd6d2;
  font-weight: 600;
}

.home-page #loadmore-btn:hover {
  background: var(--te-color);
  border-color: var(--te-color);
  color: #fff;
}

/* Section title rhythm */
.home-page .section-title .lead {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

@media (max-width: 991.98px) {
  /* Manşet: tam ekran genişliği */
  .home-page .home-hero-fullbleed {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
  }

  .home-page .home-hero-fullbleed > .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0;
    margin-right: 0;
    max-width: 100% !important;
    width: 100% !important;
  }

  .home-page .home-hero-fullbleed .home-hero-row {
    margin-left: 0;
    margin-right: 0;
    --bs-gutter-x: 0;
  }

  .home-page .home-hero-fullbleed .col-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .home-page .home-hero-main,
  .home-page .home-hero-side {
    border-radius: 0;
  }

  .home-page .main-headline-3 .swiper-slide,
  .home-page .main-headline-3 .swiper-slide a,
  .home-page .main-headline-3 .swiper-slide img,
  .home-page .featured-news-slide .swiper-slide,
  .home-page .featured-news-slide .swiper-slide a,
  .home-page .featured-news-slide .swiper-slide img {
    height: 420px !important;
    min-height: 420px !important;
    max-height: none !important;
  }

  .home-page .main-headline-bottom {
    height: auto !important;
    min-height: 0;
    align-items: stretch;
  }

  /* Üst manşet: 1-10 tek satır + T */
  #mh-pagination {
    display: grid !important;
    grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
    grid-template-rows: 42px !important;
    flex: 1 1 auto !important;
    width: auto !important;
    height: 42px !important;
    flex-wrap: unset !important;
    overflow: hidden !important;
    background: #fff !important;
    border-top: 1px solid #dde5df;
  }

  #mh-pagination .swiper-pagination-bullet,
  .main-headline-bottom .swiper-pagination-bullet {
    flex: unset !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    line-height: 1 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-right: 1px solid #e4ebe6 !important;
    background: #fff !important;
    color: #333 !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
  }

  #mh-pagination .swiper-pagination-bullet:last-child,
  .main-headline-bottom .swiper-pagination-bullet:last-child {
    border-right: none !important;
  }

  #mh-pagination .swiper-pagination-bullet-active,
  .main-headline-bottom .swiper-pagination-bullet-active {
    background: var(--te-color) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    box-shadow: none !important;
  }

  .main-headline-bottom .sw-pagination-all {
    width: 44px;
    min-width: 44px;
    height: 42px;
    min-height: 42px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
    background: var(--te-color) !important;
    color: #fff !important;
    border-top: 1px solid var(--green-dark);
  }

  /* Alt manşet: 1-10 tek satır */
  #featured-pagination {
    display: grid !important;
    grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
    grid-template-rows: 42px !important;
    height: 42px !important;
    flex-wrap: unset !important;
    overflow: hidden !important;
    background: #111 !important;
  }

  #featured-pagination .swiper-pagination-bullet {
    flex: unset !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    line-height: 1 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    border: none !important;
    border-right: 1px solid #2a2a2a !important;
    background: #111 !important;
    color: #fff !important;
    box-sizing: border-box !important;
  }

  #featured-pagination .swiper-pagination-bullet:last-child {
    border-right: none !important;
  }

  #featured-pagination .swiper-pagination-bullet-active {
    background: var(--te-color) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
  }

  .home-page .home-hero-side {
    margin-top: 0;
  }

  .home-page .mx-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    grid-auto-rows: 130px;
  }

  .home-page .mx-card--big {
    grid-column: span 2;
    grid-row: span 2;
  }

  .home-page .mx-card--big .mx-card-title {
    font-size: 14px;
  }

  .home-page .servis-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 575.98px) {
  #mh-pagination,
  #mh-pagination .swiper-pagination-bullet,
  .main-headline-bottom .swiper-pagination-bullet {
    height: 40px !important;
    font-size: 14px !important;
  }

  #mh-pagination {
    grid-template-rows: 40px !important;
    height: 40px !important;
  }

  #mh-pagination .swiper-pagination-bullet-active,
  .main-headline-bottom .swiper-pagination-bullet-active {
    font-size: 14px !important;
  }

  .main-headline-bottom .sw-pagination-all {
    height: 40px;
    min-height: 40px;
    width: 40px;
    min-width: 40px;
    font-size: 14px;
  }

  #featured-pagination {
    grid-template-rows: 40px !important;
    height: 40px !important;
  }

  #featured-pagination .swiper-pagination-bullet {
    height: 40px !important;
    font-size: 14px !important;
  }

  .home-page .main-headline-3 .swiper-slide,
  .home-page .main-headline-3 .swiper-slide a,
  .home-page .main-headline-3 .swiper-slide img,
  .home-page .featured-news-slide .swiper-slide,
  .home-page .featured-news-slide .swiper-slide a,
  .home-page .featured-news-slide .swiper-slide img {
    height: 400px !important;
    min-height: 400px !important;
  }

  #mh-pagination .swiper-pagination-bullet,
  .main-headline-bottom .swiper-pagination-bullet {
    font-size: 12px !important;
    font-weight: 700 !important;
  }

  #mh-pagination .swiper-pagination-bullet-active,
  .main-headline-bottom .swiper-pagination-bullet-active {
    font-size: 13px !important;
  }

  #featured-pagination .swiper-pagination-bullet {
    font-size: 12px !important;
  }

  .home-page .sd-body h4 {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }

  .home-page .home-unified-panel {
    padding: 0.75rem !important;
  }

  .home-page .author-card-item {
    min-height: 92px;
    padding: 0.7rem;
  }

  .home-page .author-card-avatar,
  .home-page .author-card-avatar img,
  .home-page .author-card-initials {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }

  .home-page .mx-grid {
    grid-auto-rows: 110px;
  }

  .home-page .mx-card-title {
    font-size: 11.5px;
  }

  .home-page .mx-play {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .home-page .servis-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .home-page .servis-card {
    padding: 12px 6px;
  }
}
