/* ==========================================================================
   IRMARINETECH - Haberler & Duyurular Sayfası CSS (TR)
   ========================================================================== */

:root {
  --news-navy: #373f50;
  --news-navy-dark: #282e3a;
  --news-blue: #0088cc;
  --news-blue-hover: #0073ad;
  --news-bg-light: #f8fafc;
  --news-card-bg: #ffffff;
  --news-border: #e2e8f0;
  --news-text-dark: #0f172a;
  --news-text-muted: #64748b;
  --news-radius: 12px;
  --news-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  --news-shadow-hover: 0 12px 28px rgba(15, 23, 42, 0.12);
  --news-trans: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Zero Top Space Reset */
html, body {
  margin: 0 !important;
  padding: 0 !important;
}

.page-wrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.page-wrapper > header,
header,
.topbar {
  margin-top: 0 !important;
}

/* 1. SLIM & COMPACT HERO HEADER */
.ir-news-hero-compact {
  background: var(--news-navy);
  color: #ffffff;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.ir-news-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ir-news-hero-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ir-news-breadcrumb-compact {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #94a3b8;
  flex-wrap: wrap;
}

.ir-news-breadcrumb-compact a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ir-news-breadcrumb-compact a:hover {
  color: #ffffff;
}

.ir-news-breadcrumb-compact svg {
  width: 13px;
  height: 13px;
}

.ir-news-breadcrumb-sep {
  opacity: 0.5;
}

.ir-news-breadcrumb-current {
  color: #ffffff;
  font-weight: 500;
}

.ir-news-title-compact {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

/* Live Search Box */
.ir-news-hero-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ir-news-search-box {
  position: relative;
  width: 290px;
  max-width: 100%;
}

.ir-news-search-box input {
  width: 100%;
  height: 38px;
  padding: 8px 36px 8px 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  outline: none;
  transition: var(--news-trans);
}

.ir-news-search-box input:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.25);
}

.ir-news-search-box input::placeholder {
  color: #94a3b8;
}

.ir-news-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #94a3b8;
  pointer-events: none;
}

.ir-news-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
}

/* 2. SUBBAR INFO */
.ir-news-subbar {
  background: var(--news-bg-light);
  border-bottom: 1px solid var(--news-border);
  padding: 10px 0;
  font-size: 13px;
  color: var(--news-text-muted);
}

.ir-news-subbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ir-news-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--news-text-dark);
}

.ir-news-count-badge strong {
  color: var(--news-blue);
}

/* 3. MAIN SECTION & GRID */
.ir-news-section {
  background: #f1f5f9;
  padding: 36px 0 60px;
  min-height: 480px;
}

.ir-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

/* News Card */
.ir-news-card {
  background: var(--news-card-bg);
  border: 1px solid var(--news-border);
  border-radius: var(--news-radius);
  overflow: hidden;
  box-shadow: var(--news-shadow);
  transition: var(--news-trans);
  display: flex;
  flex-direction: column;
}

.ir-news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--news-shadow-hover);
  border-color: #cbd5e1;
}

.ir-news-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #373f50;
  overflow: hidden;
  display: block;
}

.ir-news-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ir-news-card:hover .ir-news-thumb-wrap img {
  transform: scale(1.05);
}


.ir-news-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ir-news-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--news-text-dark);
  margin-bottom: 10px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ir-news-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.ir-news-title a:hover {
  color: var(--news-blue);
}

.ir-news-excerpt {
  font-size: 13.5px;
  color: var(--news-text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.ir-news-footer {
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ir-news-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--news-blue);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--news-trans);
}

.ir-news-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.ir-news-btn:hover {
  color: var(--news-blue-hover);
}

.ir-news-card:hover .ir-news-btn svg {
  transform: translateX(4px);
}

/* Empty State */
.ir-news-empty {
  display: none;
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: var(--news-radius);
  border: 1px dashed var(--news-border);
  grid-column: 1 / -1;
}

.ir-news-empty svg {
  width: 48px;
  height: 48px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.ir-news-empty h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--news-text-dark);
  margin-bottom: 6px;
}

.ir-news-empty p {
  font-size: 13px;
  color: var(--news-text-muted);
  margin: 0;
}

/* Detail Article Page */
.ir-article-wrap {
  background: #f1f5f9;
  padding: 40px 0 70px;
}

.ir-article-card {
  background: #ffffff;
  border-radius: var(--news-radius);
  border: 1px solid var(--news-border);
  box-shadow: var(--news-shadow);
  padding: 36px 40px;
  max-width: 960px;
  margin: 0 auto;
}

.ir-article-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  margin-bottom: 28px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.ir-article-media-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.ir-article-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--news-text-dark);
  margin-bottom: 20px;
  line-height: 1.3;
}

.ir-article-content {
  font-size: 15px;
  line-height: 1.75;
  color: #334155;
}

.ir-article-content p {
  margin-bottom: 18px;
}

.ir-article-content h6 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 28px;
  margin-bottom: 12px;
}

.ir-article-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--news-text-dark);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--news-trans);
  margin-top: 24px;
}

.ir-article-back-btn:hover {
  background: #e2e8f0;
  color: var(--news-blue);
}

@media (max-width: 768px) {
  .ir-news-hero-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .ir-news-search-box {
    width: 100%;
  }
  .ir-news-grid {
    grid-template-columns: 1fr;
  }
  .ir-article-card {
    padding: 24px 18px;
  }
  .ir-article-title {
    font-size: 21px;
  }
}

