.content-with-ads {
    max-width: 1320px;
    margin: 28px auto 40px;
    padding: 0 20px;
  }

  .content-with-ads.no-aside {
    max-width: 1200px;
  }

  .slider-container {
    position: relative;
    width: 100%;
    padding: 30px;
    border-radius: 24px;
    background: #141414;
    border: 1px solid #333;
    box-shadow: 0 0 40px rgba(227, 10, 23, 0.05);
    overflow: hidden;
  }

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

  .empty-grid {
    grid-column: 1 / -1;
    color: #e5e7eb;
    text-align: center;
    padding: 20px;
  }

  .card {
  position: relative;
  display: flex;
  flex-direction: row;
  border-radius: 16px;
  background-color: #1a1a1a;
  border: 1px solid #333;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 240px;
}

.card:hover {
  transform: translateY(-7px);
  border-color: #E30A17;
  box-shadow: 0 10px 30px rgba(227, 10, 23, 0.15);
}

.card__image {
  flex: 0 0 40%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #2a4a7a;
  border-right: 1px solid #333;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.card__image img,
.card__image video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

/* Metin bloğunu büyüt, footer'ı sabit bırak */
.card__content > div:not(.card-footer) {
    flex-grow: 1;
    min-height: 0;
}

.card-footer {
    flex-grow: 0;
    flex-shrink: 0;
    margin-top: auto;
}

.card .news-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px 0;
  line-height: 1.4;
  /* Başlığı 2 satırla sınırla */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card .news-summary {
  font-size: 0.9rem;
  color: #b0b0b0;
  line-height: 1.6;
  margin: 0;
  /* ÖZETİ 3 SATIRLA SINIRLA VE BUTONU HİZALA */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card .read-more-link {
  background: #E30A17;
  color: #ffffff;
  border: none;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
  padding: 10px 15px;
  border-radius: 8px;
  margin-top: 15px; /* Üstten boşluk bırak */
  display: inline-block;
  align-self: flex-start;
}

.card .read-more-link:hover {
  background: #ff1c2a;
}

  .ad-panel {
    position: sticky;
    top: 100px;
    padding: 20px;
    border-radius: 20px;
    background: #141414;
    border: 1px solid #333;
    color: #e5e7eb;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }

  .ad-panel__list li {
    border-bottom: 1px dashed #444;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .custom-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 10000; /* Yükseltildi */
    pointer-events: auto;
    touch-action: manipulation;
  }

  .custom-modal.is-open {
    display: flex;
  }

  .custom-modal__dialog {
    width: min(900px, 90vw);
    max-height: 85vh;
    background: #141414;
    color: #e5e7eb;
    border: 1px solid #333;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,1);
    padding: 30px;
    overflow-y: auto;
    position: relative;
    pointer-events: auto; /* Etkileşimi garantile */
    touch-action: manipulation;
  }

  /* MODAL MODERN SCROLLBAR */
  .custom-modal__dialog::-webkit-scrollbar {
      width: 6px;
  }
  .custom-modal__dialog::-webkit-scrollbar-track {
      background: #0a0a0a;
      border-radius: 0 16px 16px 0;
  }
  .custom-modal__dialog::-webkit-scrollbar-thumb {
      background: #333;
      border-radius: 10px;
  }
  .custom-modal__dialog::-webkit-scrollbar-thumb:hover {
      background: var(--accent-red, #E30A17);
  }

  .custom-modal__close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    transition: 0.3s;
  }

  .custom-modal__close:hover {
    color: #E30A17;
  }

  .custom-modal__title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
  }

  .custom-modal__body {
    font-size: 15px;
    line-height: 1.7;
    color: #ccc;
    text-align: justify;
  }

  .custom-modal__body p {
      margin-bottom: 1.2em;
      position: relative;
      z-index: 1;
  }

  /* MODAL İÇİ GÖRSEL TASARIMI (MODERN & KOMPAKT) */
  .modal-article-img {
      width: 240px; /* Sabit ideal genişlik */
      max-width: 40%; /* Mobilde taşmasın */
      height: auto;
      border-radius: 12px; /* Yumuşak köşeler */
      border: 1px solid #333;
      box-shadow: 0 8px 20px rgba(0,0,0,0.4);
      cursor: zoom-in;
      transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
      background: #000;
      object-fit: cover;
  }
  
  .modal-article-img:hover { 
      transform: scale(1.02); 
      border-color: var(--accent-red); 
      box-shadow: 0 12px 30px rgba(227, 10, 23, 0.15);
  }

  .modal-img-float-left {
      float: left;
      margin: 5px 25px 15px 0; /* Sağ ve alt boşluk artırıldı */
  }

  .modal-img-float-right {
      float: right;
      margin: 5px 0 15px 25px; /* Sol ve alt boşluk artırıldı */
  }

  /* Responsive: Mobilde zikzak yerine tam genişlik */
  @media (max-width: 650px) {
      .modal-article-img {
          float: none !important;
          width: 100% !important;
          max-width: 100% !important;
          margin: 15px 0 !important;
      }
  }

  .modal-footer {
      display: block;
      clear: both;
      width: 100%;
      text-align: right; 
      color: #888; 
      font-size: 13px;
      padding-top: 25px;
      margin-top: 30px;
      border-top: 1px solid #222;
  }

  /* LIGHTBOX MODAL (RESİM BÜYÜTME) */
  .lightbox-modal {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.95);
      z-index: 3000;
      display: none;
      align-items: center;
      justify-content: center;
      cursor: zoom-out;
      backdrop-filter: blur(10px);
      padding: 20px;
  }
  .lightbox-modal.is-open { display: flex; }
  
  .lightbox-content {
      max-width: 95%;
      max-height: 95%;
      border-radius: 8px;
      box-shadow: 0 0 50px rgba(0,0,0,0.8);
      transform: scale(0.9);
      transition: transform 0.3s ease;
      cursor: default;
  }
  .lightbox-modal.is-open .lightbox-content { transform: scale(1); }

  .lightbox-close {
      position: absolute;
      top: 20px;
      right: 30px;
      color: #fff;
      font-size: 40px;
      font-weight: bold;
      cursor: pointer;
      z-index: 3001;
  }
  .lightbox-close:hover { color: var(--accent-red); }

  /* RESPONSIVE AYARLAR (MODAL VE HABERLER) */
  @media (max-width: 900px) {
    .grid-layout {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
    }
    .slider-container { padding: 15px; }
    
    .custom-modal__dialog {
        padding: 20px;
        width: 95vw;
    }
    .custom-modal__title { font-size: 1.5rem; }
  }

  /* Tablet ve Altı İçin Görsel Düzenlemesi */
  @media (max-width: 768px) {
      .modal-article-img {
          width: 250px;
          max-width: 45%;
          margin-bottom: 15px;
      }
  }

  /* Günün En Çok Okunanları - Klasik Kare Tasarım */
  .popular-section .card {
      height: 400px; /* Dikey yükseklik */
      flex-direction: column; /* Üst üste diz */
  }
  
  .popular-section .card__image {
      flex: 0 0 220px; /* Resim alanı */
      width: 100%;
      border-right: none;
      border-bottom: 1px solid #333;
  }

  .popular-section .card__content {
      padding: 15px;
  }

  .popular-section .card .news-summary {
      display: -webkit-box; /* Özeti göster */
      -webkit-line-clamp: 3;
  }

  @media (max-width: 600px) {
      .popular-section .card {
          height: 380px; /* Mobilde biraz daha küçük */
      }
  }

  /* Mobil İçin Kare Kart Tasarımı (2 Sütunlu) */
  @media (max-width: 600px) {
      .grid-layout { 
          grid-template-columns: repeat(2, 1fr); 
          gap: 12px; 
          padding: 0 5px;
      }
      
      .card { 
          flex-direction: column; /* Dikey dizilim */
          height: auto; 
          min-height: 240px;
          border-radius: 12px;
          align-items: stretch;
      }

      .card__image { 
          width: 100%; 
          height: 120px; /* Karemsi görsel alanı */
          flex: none; 
          border-right: none; 
          border-bottom: 1px solid #333;
      }
      
      .card__content {
          padding: 10px;
          justify-content: flex-start;
          flex-grow: 1;
          display: flex;
          flex-direction: column;
      }

      .card .news-title {
          font-size: 0.85rem; 
          line-height: 1.3;
          margin-bottom: 8px;
          display: -webkit-box;
          -webkit-line-clamp: 3; /* Max 3 satır */
          -webkit-box-orient: vertical;
          overflow: hidden;
          height: 3.9em; /* Başlık alanı yüksekliğini sabitle */
      }

      .card .news-summary {
          display: none; /* Kare yapıda özet yer kaplamasın */
      }

      .card .read-more-link {
          font-size: 9px;
          padding: 6px 10px;
          margin-top: auto; /* En alta yasla */
          align-self: stretch;
          text-align: center;
      }
      
      .news-subcategory-badge {
          font-size: 8px;
          padding: 2px 6px;
          margin-bottom: 6px;
          align-self: flex-start;
      }

      .card-footer {
          margin-top: auto;
          padding-top: 8px;
          display: flex;
          justify-content: space-between;
          align-items: center;
      }

      .card .like-btn {
          margin-top: 0 !important;
          width: 28px;
          height: 28px;
          font-size: 12px;
      }
  }

