/* === SĀKUMLAPA (home.html) === */

/* ── MAIN CONTENT AREA ───────────────────────────── */

.page-wrap {
  max-width: 1365px;
  margin: 0 auto;
  padding: 28px 24px;
}

/* Hero + "Šodien ZRKAC" rinda */

.hero-row {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}



/* Hero carousel */

.hero-slider {
  height: 430px;
  border-radius: 8px;
  position: relative;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.hero-slide {
  min-width: 100%;
  flex-shrink: 0;
  height: 100%;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Carousel dots */

.hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  border: 2px solid rgba(255, 255, 255, .7);
  cursor: pointer;
  transition: background .25s, transform .25s;
  padding: 0;
}

.hero-dot.active {
  background: var(--white);
  transform: scale(1.25);
}

/* Prev / Next arrows */

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  z-index: 10;
  transition: background .18s, box-shadow .18s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.hero-arrow:hover {
  background: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
}

.hero-prev {
  left: 12px;
}

.hero-next {
  right: 12px;
}

/* ── ŠODIEN ZRKAC (bloks blakus karuselim) ──────── */
.today-box {
  height: 430px;                 /* tikpat augsts kā karuselis */
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
}

.today-head {
  background: linear-gradient(135deg, #1565c0 0%, #0d3b8c 60%, var(--navy) 100%);
  color: #fff;
  padding: 14px 20px 12px;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: center;
}

.today-clock {
  grid-row: span 2;
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}

.today-date {
  font-size: 12.5px;
  line-height: 1.3;
  color: rgba(255, 255, 255, .85);
}

.today-count {
  display: inline-block;
  justify-self: start;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  background: rgba(255, 255, 255, .15);
  border-radius: 20px;
  padding: 3px 10px;
}

.today-list {
  flex: 1;
  overflow: hidden;
  padding: 6px 16px 0;
}

.today-group {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 10px 0 4px 6px;
}

.today-item {
  display: flex;
  gap: 12px;
  padding: 7px 6px;
  border-radius: 8px;
  transition: background .15s;
}

.today-item:hover { background: var(--light-bg); }

.today-time {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  min-width: 44px;
  font-variant-numeric: tabular-nums;
}

.today-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.today-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.today-item:hover .today-title { color: var(--blue); }

.today-loc {
  font-size: 11px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.today-loc::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tag);
}

.today-loc.online::before { background: var(--blue); }

.today-empty {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 30px 0;
}

.today-foot {
  padding: 12px 16px 16px;
  flex-shrink: 0;
}

.today-foot .btn-primary { width: 100%; justify-content: center; }

/* ── NEWS SECTION ────────────────────────────────── */

.section-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
}

.section-title {
  text-align: center;
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--red);
  margin: 8px auto 0;
}

.news-section {
  margin-top: 40px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.news-tabs {
  display: flex;
  justify-content: center;
  margin: 20px 0 32px;
  gap: 0;
  border-bottom: none;
}

.news-tabs-inner {
  display: flex;
  border-bottom: 2px solid var(--border);
}

.news-tab {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  color: var(--muted);
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}

.news-tab.active {
  color: var(--navy);
  border-bottom-color: var(--red);
}

.news-tab:hover {
  color: var(--navy);
}

/* Featured article */

.featured-article {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  margin-bottom: 48px;
  align-items: start;
}

.article-img-placeholder {
  background: #c8cdd8;
  border-radius: 8px;
  aspect-ratio: 4/3;
  width: 100%;
}

.article-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tag);
  margin-bottom: 8px;
}

.article-title {

  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 14px;
}

.article-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 18px;
}

.read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}

.read-more:hover {
  gap: 10px;
}

.read-more::after {
  content: '↗';
}

/* News grid */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-card .card-img {
  background: #c8cdd8;
  border-radius: 8px;
  aspect-ratio: 16/9;
  width: 100%;
  margin-bottom: 4px;
}

.news-card .article-title {
  font-size: 16px;
}

.news-card .article-excerpt {
  font-size: 13px;
}

.news-card .date {
  font-size: 12px;
  color: var(--muted);
}

/* ── QUICK LINKS BAR ─────────────────────────────── */

/* ── QUICK LINKS BAR ────────────────────────────── */

.quick-links-bar {
  background: transparent;
  margin: 40px 0 0;
}

.quick-links-inner {
  max-width: 1365px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pill — arrows sit INSIDE it */

.ql-track-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #d8d8d8;
  border-radius: 50px;
  background: #f2f2f2;
  padding: 0 10px;
  width: 100%;
  max-width: 960px;
  position: relative;
}

/* Fade masks — left and right */

.ql-track-wrap::before,
.ql-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 2;
  transition: opacity .25s;
}

.ql-track-wrap::before {
  left: 34px;
  background: linear-gradient(to right, #f2f2f2, transparent);
  opacity: 0;
}

.ql-track-wrap::after {
  right: 34px;
  background: linear-gradient(to left, #f2f2f2, transparent);
  opacity: 1;
}

.ql-track-wrap.fade-left::before {
  opacity: 1;
}

.ql-track-wrap.fade-right::after {
  opacity: 1;
}

.ql-track-wrap.no-fade-right::after {
  opacity: 0;
}

.ql-arrow {
  flex-shrink: 0;
  background: none;
  border: none;
  width: 24px;
  height: 24px;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  transition: color .15s;
  line-height: 1;
  padding: 0;
}

.ql-arrow:hover {
  color: var(--navy);
}

.ql-track {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.ql-track::-webkit-scrollbar {
  display: none;
}

.ql-item {
  flex-shrink: 0;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}

.ql-item:hover {
  color: var(--blue);
}

@media (max-width: 900px) {
  .hero-row { grid-template-columns: 1fr; }
  .today-box { height: auto; }
  .featured-article { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ── Ziņu kartītes kā saites + datums ───────────── */
.article-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.article-meta .article-tag { margin-bottom: 0; }
.article-meta .date { font-size: 10.5px; font-weight: 600; letter-spacing: .5px; color: var(--muted); }
.article-meta .date::before { content: '·'; margin-right: 8px; opacity: .5; }
a.news-card .article-title { transition: color .15s; }
a.news-card:hover .article-title { color: var(--blue); }
.news-card .read-more { margin-top: auto; }


.ql-item.ql-all { color: var(--blue); }

/* ── PHP versija: īstās bildes vietturos ── */
.article-img-placeholder, .news-card .card-img { display: block; overflow: hidden; }
.article-img-placeholder img, .news-card .card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.featured-article:hover .article-img-placeholder img, .news-card:hover .card-img img { transform: scale(1.03); }
.featured-article .article-title a { color: inherit; }
.featured-article .article-title a:hover { color: var(--blue); }
.hero-slide.img-slot { position: relative; background: #e9edf4; }
.hero-slide a { display: block; height: 100%; }
.article-meta .date:first-child::before { display: none; }
