/* Civak Media / Kurdish Europe News conversion for SellAuth */
:root {
  --news-blue: #0b4dad;
  --news-blue-dark: #083b85;
  --news-red: #d93025;
  --news-green: #159447;
  --news-yellow: #f4b400;
  --news-ink: #172033;
  --news-muted: #667085;
  --news-bg: #f5f7fa;
  --news-surface: #ffffff;
  --news-soft: #eef2f7;
  --news-border: #dfe5ec;
  --news-shadow: 0 12px 32px rgba(15, 23, 42, .07);
  --news-radius: 12px;
}

html { scroll-behavior: smooth; }
body {
  direction: rtl;
  text-align: right;
  color: var(--news-ink);
  background: var(--news-bg) !important;
  font-family: "Noto Sans Arabic", Tahoma, Arial, sans-serif !important;
  line-height: 1.75;
  overflow-x: hidden;
}

/* Remove store-only UI defensively even if a component is re-enabled later. */
.cart,
.currency-selector,
.nav-item.user,
#customer-login-modal,
.product-form,
.stock-indicator,
.notification-container,
.products .price,
.products .stock,
.news-card .price,
.news-card .stock,
[data-component-id="product-page"] form[action*="cart"],
[data-component-id="product-page"] [x-data*="product"] .btn-buy,
[data-component-id="product-page"] .payment-methods { display: none !important; }

.bg-image { opacity: .025 !important; filter: grayscale(1); }
.flex-wrapper { min-height: 100vh; }
header.sticky-top { z-index: 1035; box-shadow: 0 1px 0 var(--news-border); }
.component { color: var(--news-ink); }
.text-muted { color: var(--news-muted) !important; }
a { color: inherit; }

/* Header */
.news-navbar {
  min-height: 84px;
  padding: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--news-border);
}
.news-navbar > .container { min-height: 84px; gap: 24px; }
.news-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--news-ink) !important;
  text-decoration: none;
  flex-shrink: 0;
}
.news-logo { width: 58px; height: 58px; object-fit: contain; }
.news-brand-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  white-space: nowrap;
  line-height: 1.15;
  letter-spacing: 0;
}
.news-brand-text strong {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: .045em;
  line-height: 1.05;
  direction: ltr;
}
.news-brand-text small {
  margin-top: 4px;
  font-size: .68rem;
  font-weight: 700;
  color: var(--news-muted);
  line-height: 1.25;
  direction: rtl;
}
.news-navbar .navbar-collapse { align-items: center; gap: 20px; }
.news-nav-links { gap: 2px; margin-inline: auto !important; }
.news-nav-links .nav-link {
  position: relative;
  padding: 29px 10px 25px !important;
  color: #344054 !important;
  font-weight: 700;
  font-size: .92rem;
  white-space: nowrap;
}
.news-nav-links .nav-link::after {
  content: "";
  position: absolute;
  right: 10px;
  left: 10px;
  bottom: 17px;
  height: 2px;
  background: var(--news-blue);
  transform: scaleX(0);
  transition: transform .18s ease;
}
.news-nav-links .nav-link:hover { color: var(--news-blue) !important; }
.news-nav-links .nav-link:hover::after { transform: scaleX(1); }
.news-search-form {
  width: 218px;
  height: 42px;
  border: 1px solid var(--news-border);
  border-radius: 999px;
  background: #f8fafc;
  overflow: hidden;
  align-items: center;
  flex-shrink: 0;
}
.news-search-form input {
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 14px;
  color: var(--news-ink);
  font-size: .82rem;
}
.news-search-form button,
.news-search-button {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--news-blue);
  display: inline-grid;
  place-items: center;
}
.news-navbar .navbar-toggler { border: 1px solid var(--news-border); border-radius: 9px; padding: 8px 10px; }
.news-navbar .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(11,77,173,.12); }

/* Reusable headings */
.news-kicker {
  color: var(--news-blue);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.news-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--news-border);
}
.news-section-heading h2 { position: relative; margin: 0; font-size: 1.45rem; font-weight: 900; }
.news-section-heading h2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -13px;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--news-red), var(--news-blue));
}
.news-section-heading > a { color: var(--news-blue); text-decoration: none; font-size: .88rem; font-weight: 800; white-space: nowrap; }
.news-section-heading > a:hover { color: var(--news-blue-dark); }

/* Homepage */
.news-home { padding-bottom: 72px; }
.news-home-intro { padding-top: 48px; padding-bottom: 30px; }
.news-home-intro h1 { max-width: 880px; margin: 0 0 6px; font-size: clamp(1.8rem, 3.1vw, 3rem); font-weight: 950; letter-spacing: -.035em; line-height: 1.35; }
.news-home-intro p { margin: 0; color: var(--news-muted); font-size: 1rem; }
.news-featured-section { margin-top: 8px; }
.news-featured-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr); gap: 24px; }
.news-lead-story {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--news-radius);
  background: #0f172a;
  box-shadow: var(--news-shadow);
  text-decoration: none;
  color: white !important;
  min-height: 500px;
}
.news-lead-image-wrap { position: absolute; inset: 0; }
.news-lead-image-wrap::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(15,23,42,.05) 25%, rgba(15,23,42,.88) 100%); }
.news-lead-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.news-lead-content { position: absolute; right: 0; left: 0; bottom: 0; z-index: 2; padding: clamp(24px, 4vw, 42px); }
.news-lead-content h2 { margin: 10px 0 12px; font-size: clamp(1.7rem, 3vw, 2.65rem); line-height: 1.35; font-weight: 950; }
.news-lead-story .news-card-meta time { color: rgba(255,255,255,.78); }
.news-lead-story .news-read-more { color: white; }
.news-secondary-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; align-content: start; }
.news-secondary-item .news-card-title { font-size: 1rem; }
.news-category-sections { margin-top: 56px; }
.news-category-section { margin-top: 52px; }
.news-category-section .news-grid-item:nth-child(n+5) { display: none; }

/* Cards */
.news-grid,
.news-archive-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.news-grid-item { min-width: 0; }
.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--news-surface);
  border: 1px solid var(--news-border);
  border-radius: var(--news-radius);
  overflow: hidden;
  color: var(--news-ink) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--news-shadow); border-color: #cbd5e1; }
.news-card-image-wrap { aspect-ratio: 16 / 9; overflow: hidden; background: var(--news-soft); }
.news-card-image { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.news-card:hover .news-card-image { transform: scale(1.025); }
.news-card-placeholder { width: 100%; height: 100%; min-height: 150px; display: grid; place-items: center; background: linear-gradient(135deg, #eaf0f8, #f8fafc); }
.news-card-placeholder img { width: 30%; max-width: 105px; height: auto; object-fit: contain; opacity: .82; }
.news-card-body { display: flex; flex: 1; flex-direction: column; padding: 17px 17px 16px; }
.news-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; min-height: 24px; font-size: .75rem; }
.news-card-meta time { color: var(--news-muted); }
.news-category-label {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--news-blue) !important;
  padding: 3px 9px;
  font-size: .73rem;
  font-weight: 900;
  text-decoration: none;
}
.news-card-title { margin: 11px 0 13px; font-size: 1.08rem; line-height: 1.55; font-weight: 900; letter-spacing: -.018em; }
.news-read-more { margin-top: auto; color: var(--news-blue); font-size: .8rem; font-weight: 800; }
.news-read-more i, .news-section-heading i, .news-aside-card i { margin-right: 5px; }

/* Category / archive page */
.py-5-nav { padding-top: 48px; padding-bottom: 70px; }
.news-archive-header { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 30px; }
.news-archive-header h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 950; }
.news-archive-header p { margin: 8px 0 0; color: var(--news-muted); max-width: 720px; }
.news-archive-search { display: flex; width: min(100%, 430px); height: 46px; border: 1px solid var(--news-border); background: white; border-radius: 10px; overflow: hidden; }
.news-archive-search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 14px; background: transparent; }
.news-archive-search button { display: flex; align-items: center; gap: 7px; border: 0; padding: 0 17px; background: var(--news-blue); color: white; font-weight: 800; }
.news-category-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 20px; margin-bottom: 28px; scrollbar-width: thin; }
.news-category-tabs a { flex: 0 0 auto; text-decoration: none; padding: 8px 15px; border: 1px solid var(--news-border); border-radius: 999px; background: white; color: #475467; font-size: .86rem; font-weight: 800; }
.news-category-tabs a:hover, .news-category-tabs a.active { color: white; border-color: var(--news-blue); background: var(--news-blue); }
.news-empty-state { max-width: 620px; margin: 44px auto; padding: 50px 24px; text-align: center; border: 1px dashed #cbd5e1; border-radius: 14px; background: white; }
.news-empty-state > i { font-size: 3rem; color: #98a2b3; margin-bottom: 15px; }
.news-empty-state h1, .news-empty-state h2 { font-weight: 900; }

/* Article page */
.news-article { padding: 52px 0 76px; }
.news-article-header { width: min(100%, 960px); margin: 0 auto 28px; }
.news-article-header h1 { margin: 15px 0 16px; font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.3; font-weight: 950; letter-spacing: -.04em; }
.news-article-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--news-muted); font-size: .84rem; }
.news-article-meta span, .news-article-meta time { display: inline-flex; align-items: center; gap: 7px; }
.news-article-hero { width: min(100%, 1120px); aspect-ratio: 16/9; margin: 0 auto 38px; overflow: hidden; border-radius: 14px; background: var(--news-soft); box-shadow: var(--news-shadow); }
.news-article-hero img { width: 100%; height: 100%; object-fit: cover; }
.news-article-layout { display: grid; grid-template-columns: minmax(0, 820px) 260px; justify-content: center; align-items: start; gap: 54px; }
.news-article-body { min-width: 0; font-size: 1.08rem; line-height: 2.05; color: #263244; }
.news-article-body > :first-child { margin-top: 0; }
.news-article-body p { margin: 0 0 1.55em; }
.news-article-body h2, .news-article-body h3, .news-article-body h4 { color: var(--news-ink); font-weight: 950; line-height: 1.5; margin: 1.7em 0 .75em; }
.news-article-body h2 { font-size: 1.65rem; }
.news-article-body h3 { font-size: 1.35rem; }
.news-article-body img { display: block; max-width: 100%; height: auto; margin: 28px auto; border-radius: 10px; }
.news-article-body a { color: var(--news-blue); text-decoration: underline; text-underline-offset: 3px; }
.news-article-body blockquote { border-right: 4px solid var(--news-blue); background: #f8fafc; margin: 28px 0; padding: 18px 22px; color: #344054; border-radius: 8px 0 0 8px; }
.news-article-body ul, .news-article-body ol { padding-right: 1.45rem; padding-left: 0; }
.news-article-body table { width: 100%; display: block; overflow-x: auto; }
.news-aside-card { position: sticky; top: 112px; padding: 24px; border: 1px solid var(--news-border); border-radius: 12px; background: white; text-align: center; }
.news-aside-card img { width: 92px; height: 92px; object-fit: contain; margin-bottom: 12px; }
.news-aside-card h2 { font-size: 1rem; font-weight: 950; }
.news-aside-card p { color: var(--news-muted); font-size: .82rem; }
.news-aside-card a { color: var(--news-blue); text-decoration: none; font-size: .8rem; font-weight: 900; }
.news-related { margin-top: 66px; }

/* Dynamic groups/categories */
.news-category-directory { padding-top: 40px; padding-bottom: 40px; }
.news-category-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.news-category-pills a { padding: 9px 16px; border: 1px solid var(--news-border); border-radius: 999px; background: white; color: var(--news-ink); font-weight: 800; text-decoration: none; }
.news-category-pills a:hover { border-color: var(--news-blue); color: var(--news-blue); }
.news-modal { background: var(--news-bg); color: var(--news-ink); }
.news-modal .modal-header { border-color: var(--news-border); }

/* Footer */
.news-footer { margin-top: auto; padding: 54px 0 22px; background: #111827; color: #e5e7eb; }
.news-footer .news-brand { color: white !important; }
.news-footer .news-logo { width: 64px; height: 64px; }
.news-footer .news-brand-text { white-space: normal; }
.news-footer .news-brand-text strong { color: white; }
.news-footer .news-brand-text small { color: #aab4c3; }
.news-footer-grid { display: grid; grid-template-columns: 1.35fr .8fr .8fr; gap: 58px; }
.news-footer-brand > p { max-width: 520px; margin: 18px 0 0; color: #aab4c3; font-size: .9rem; }
.news-footer h3 { margin: 8px 0 16px; color: white; font-size: .95rem; font-weight: 900; }
.news-footer-links { display: grid; gap: 9px; }
.news-footer-links a { color: #aab4c3; text-decoration: none; font-size: .86rem; }
.news-footer-links a:hover { color: white; }
.news-footer-bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 38px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); color: #7f8a9b; font-size: .77rem; }

/* Bootstrap / inherited theme light normalization */
.card, .modal-content, .bg-gray { background-color: var(--news-surface) !important; color: var(--news-ink) !important; border-color: var(--news-border) !important; }
.btn-primary { background: var(--news-blue) !important; border-color: var(--news-blue) !important; }
.btn-outline-primary { color: var(--news-blue) !important; border-color: var(--news-blue) !important; }
.btn-outline-primary:hover { color: white !important; background: var(--news-blue) !important; }
.form-control, .form-select { background-color: white !important; color: var(--news-ink) !important; border-color: var(--news-border) !important; }
.pagination .page-link { background: white; color: var(--news-blue); border-color: var(--news-border); }
.pagination .active .page-link { background: var(--news-blue); border-color: var(--news-blue); }

@media (max-width: 1199.98px) {
  .news-brand-text { display: none; }
  .news-grid, .news-archive-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .news-nav-links .nav-link { font-size: .84rem; padding-inline: 7px !important; }
  .news-search-form { width: 180px; }
  .news-article-layout { grid-template-columns: minmax(0, 780px) 230px; gap: 36px; }
}

@media (max-width: 991.98px) {
  .news-navbar { min-height: 74px; }
  .news-navbar > .container { min-height: 74px; }
  .news-logo { width: 50px; height: 50px; }
  .news-brand-text { display: inline-flex; }
  .news-brand-text strong { font-size: 1rem; }
  .news-brand-text small { font-size: .62rem; }
  .news-navbar .navbar-collapse { margin: 10px 0 18px; padding-top: 10px; border-top: 1px solid var(--news-border); }
  .news-nav-links { gap: 0; }
  .news-nav-links .nav-link { padding: 10px 4px !important; }
  .news-nav-links .nav-link::after { display: none; }
  .news-featured-grid { grid-template-columns: 1fr; }
  .news-lead-story { min-height: 460px; }
  .news-secondary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .news-grid, .news-archive-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .news-article-layout { display: block; max-width: 820px; margin: 0 auto; }
  .news-article-aside { display: none; }
  .news-footer-grid { grid-template-columns: 1fr 1fr; }
  .news-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 767.98px) {
  .news-home-intro { padding-top: 30px; }
  .news-home-intro p { font-size: .9rem; }
  .news-lead-story { min-height: 420px; }
  .news-lead-content h2 { font-size: 1.65rem; }
  .news-secondary-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .news-secondary-item .news-card-body { padding: 12px; }
  .news-secondary-item .news-card-meta time { display: none; }
  .news-secondary-item .news-read-more { display: none; }
  .news-category-sections { margin-top: 38px; }
  .news-category-section { margin-top: 38px; }
  .news-section-heading { margin-bottom: 18px; }
  .news-section-heading h2 { font-size: 1.2rem; }
  .news-section-heading h2::after { bottom: -12px; width: 54px; }
  .news-section-heading > a { font-size: .78rem; }
  .news-archive-header { display: block; }
  .news-archive-search { margin-top: 20px; width: 100%; }
  .news-article { padding-top: 34px; }
  .news-article-header h1 { font-size: 2rem; }
  .news-article-hero { margin-bottom: 28px; border-radius: 10px; }
  .news-article-body { font-size: 1rem; line-height: 1.95; }
  .news-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .news-footer-brand { grid-column: auto; }
  .news-footer-bottom { flex-direction: column; }
}

@media (max-width: 575.98px) {
  .news-navbar .container { padding-inline: 14px; }
  .news-brand-text { max-width: 175px; white-space: normal; line-height: 1.2; }
  .news-brand-text strong { font-size: .92rem; }
  .news-brand-text small { font-size: .56rem; }
  .news-featured-grid { gap: 16px; }
  .news-lead-story { min-height: 370px; }
  .news-lead-content { padding: 20px; }
  .news-lead-content h2 { font-size: 1.45rem; }
  .news-grid, .news-archive-grid { grid-template-columns: 1fr; gap: 16px; }
  .news-secondary-grid { grid-template-columns: 1fr; }
  .news-secondary-item:nth-child(n+3) { display: none; }
  .news-secondary-item .news-card { display: grid; grid-template-columns: 120px 1fr; }
  .news-secondary-item .news-card-image-wrap { aspect-ratio: 1 / 1; }
  .news-secondary-item .news-card-title { margin: 7px 0; font-size: .92rem; }
  .news-category-section .news-grid-item:nth-child(n+4) { display: none; }
  .news-card-title { font-size: 1.02rem; }
  .news-archive-search button span { display: none; }
  .news-archive-search button { width: 48px; justify-content: center; padding: 0; }
  .news-article-header, .news-article-layout { padding-inline: 2px; }
  .news-article-meta { gap: 10px; font-size: .76rem; }
}
