/* =====================================================
   MƏQALƏLƏR — SİYAHI SƏHİFƏSİ
   ===================================================== */

/* Page Header */
.mq-page-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 28px 0 20px;
}
.mq-page-title {
  font-size: 26px;
  font-weight: 700;
  color: #001f3f;
  margin: 0;
}

/* Main wrapper */
.mq-main {
  padding: 40px 0 60px;
  background: #fff;
}

/* Grid — 2 sütun */
.mq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* Card */
.mq-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.mq-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}

/* Card image */
.mq-card-img-link {
  display: block;
  overflow: hidden;
}
.mq-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.mq-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}
.mq-card:hover .mq-card-img img {
  transform: scale(1.04);
}

/* Card body */
.mq-card-body {
  padding: 20px 22px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mq-card-subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 8px;
  font-weight: 500;
  line-height: 1.5;
}
.mq-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #001f3f;
  line-height: 1.35;
  margin: 0 0 10px;
}
.mq-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.mq-card-title a:hover {
  color: #2563eb;
}
.mq-card-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.65;
  margin: 0 0 14px;
  flex: 1;
}
.mq-read-more {
  font-size: 12.5px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-top: auto;
  transition: color 0.2s;
}
.mq-read-more:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Empty state */
.mq-empty {
  text-align: center;
  padding: 80px 20px;
  color: #94a3b8;
}
.mq-empty i {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  opacity: 0.4;
}
.mq-empty p {
  font-size: 16px;
}


/* =====================================================
   MƏQALƏ DETAL SƏHİFƏSİ
   ===================================================== */

.mq-detail-main {
  padding: 40px 0 60px;
  background: #fff;
}

/* Layout: content + sidebar */
.mq-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* ---- Content ---- */
.mq-detail-content {
  min-width: 0;
}

/* Header */
.mq-detail-header {
  margin-bottom: 24px;
}
.mq-detail-title {
  font-size: 28px;
  font-weight: 800;
  color: #001f3f;
  line-height: 1.3;
  margin: 0 0 10px;
}
.mq-detail-subtitle {
  font-size: 15px;
  color: #64748b;
  margin: 0 0 12px;
  line-height: 1.5;
}
.mq-detail-meta {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.mq-detail-meta i {
  margin-right: 5px;
}

/* Social share */
.mq-share {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.mq-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.mq-share-btn:hover {
  opacity: 0.85;
  transform: scale(1.1);
}
.mq-share-fb { background: #1877f2; }
.mq-share-tw { background: #000; }
.mq-share-li { background: #0a66c2; }

/* Main image */
.mq-detail-img {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.mq-detail-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Body content */
.mq-detail-body {
  font-size: 15px;
  color: #334155;
  line-height: 1.8;
}
.mq-detail-body h1,
.mq-detail-body h2,
.mq-detail-body h3 {
  color: #001f3f;
  font-weight: 700;
  margin: 24px 0 12px;
  line-height: 1.35;
}
.mq-detail-body h2 { font-size: 20px; }
.mq-detail-body h3 { font-size: 17px; }
.mq-detail-body p  { margin: 0 0 14px; }
.mq-detail-body ul,
.mq-detail-body ol {
  padding-left: 22px;
  margin: 0 0 14px;
}
.mq-detail-body li {
  margin-bottom: 6px;
}
.mq-detail-body b,
.mq-detail-body strong {
  color: #1e293b;
  font-weight: 700;
}
.mq-detail-body a {
  color: #2563eb;
  text-decoration: underline;
}
.mq-detail-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 12px 0;
}

/* Back link */
.mq-back {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid #e2e8f0;
}
.mq-back a {
  font-size: 14px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.2s;
}
.mq-back a:hover { color: #1d4ed8; }

/* ---- Sidebar ---- */
.mq-sidebar {
  position: sticky;
  top: 88px;
}
.mq-sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: #001f3f;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #2563eb;
}
.mq-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mq-sidebar-card {
  display: flex;
  gap: 12px;
  text-decoration: none;
  align-items: flex-start;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
  background: #f8fafc;
  transition: background 0.2s, box-shadow 0.2s;
}
.mq-sidebar-card:hover {
  background: #e0f2fe;
  box-shadow: 0 2px 8px rgba(37,99,235,0.09);
}
.mq-sidebar-img {
  width: 72px;
  min-width: 72px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
}
.mq-sidebar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mq-sidebar-info {
  flex: 1;
  min-width: 0;
}
.mq-sidebar-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  margin: 0 0 5px;
}
.mq-sidebar-date {
  font-size: 11.5px;
  color: #94a3b8;
}
.mq-sidebar-date i {
  margin-right: 3px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .mq-detail-layout {
    grid-template-columns: 1fr;
  }
  .mq-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .mq-grid {
    grid-template-columns: 1fr;
  }
  .mq-detail-title {
    font-size: 22px;
  }
  .mq-page-title {
    font-size: 21px;
  }
}
