/* =============================================
   VoresKalundborg – Nyheder Side + Enkeltside
   Placering: /css/nyheder-side.css
   Tilføj 'nyheder-side' til $css_files i enqueue.php
   ============================================= */

/* =============================================
   NYHEDER SIDE (shortcode)
   ============================================= */

.vk-ny-side {
  font-family: 'Work Sans', sans-serif;
  color: #2C2C2C;
}

/* Søgefelt */
.vk-ny-search-wrap {
  margin-bottom: 28px;
}

.vk-ny-search-bar {
  background: #fff;
  border-radius: 14px;
  padding: 6px 6px 6px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.vk-ny-search-input {
  flex: 1;
  border: none !important;
  outline: none;
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  color: #2C2C2C;
  background: transparent;
  padding: 8px 0;
}

.vk-ny-search-input::placeholder {
  color: rgba(44, 44, 44, 0.75);
}

/* Results bar */
.vk-ny-results-bar {
  margin-bottom: 20px;
}

.vk-ny-results-count {
  font-size: 13px;
  color: rgba(44, 44, 44, 0.75);
}

.vk-ny-results-count strong {
  color: #2C2C2C;
}

/* Grid */
.vk-ny-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Nyhedskort */
.vk-ny-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(44, 44, 44, 0.07);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}

.vk-ny-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
}

.vk-ny-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #EBE4D1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vk-ny-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vk-ny-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2C2C2C;
  opacity: 0.2;
}

.vk-ny-card-body {
  padding: 16px 18px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vk-ny-card-dato {
  font-size: 11px;
  font-weight: 600;
  color: rgba(44, 44, 44, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vk-ny-card-titel {
  font-size: 16px;
  font-weight: 700;
  color: #1E2E1E;
  line-height: 1.3;
}

.vk-ny-card-uddrag {
  font-size: 13px;
  color: rgba(44, 44, 44, 0.75);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vk-ny-card-footer {
  padding: 12px 18px 14px;
  border-top: 1px solid rgba(44, 44, 44, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vk-ny-laes-mere {
  font-size: 13px;
  font-weight: 600;
  color: #468F9E;
}

.vk-ny-card-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #EBE4D1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2C2C2C;
  transition: background 0.15s;
}

.vk-ny-card:hover .vk-ny-card-arrow {
  background: #D98244;
  color: #fff;
}

/* Ingen resultater */
.vk-ny-no-results {
  text-align: center;
  padding: 60px 0;
  display: none;
  color: rgba(44, 44, 44, 0.75);
  grid-column: 1 / -1;
}

.vk-ny-no-results.show {
  display: block;
}

.vk-ny-no-results svg {
  margin: 0 auto 14px;
  display: block;
  opacity: 0.25;
}

.vk-ny-no-results h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1E2E1E;
  margin-bottom: 8px;
}

/* =============================================
   SINGLE NYHED
   ============================================= */

.vk-ny-page-wrap {
  background: #EBE4D1;
  min-height: 60vh;
}

.vk-ny-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}

.vk-ny-enkelt {
  font-family: 'Work Sans', sans-serif;
}

/* Hero */
.vk-ny-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 5.5;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 48px;
  background: #1E2E1E;
}

.vk-ny-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.55;
}

.vk-ny-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vk-ny-hero-dato {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.vk-ny-hero-titel {
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin: 0;
  max-width: 700px;
}

/* Layout */
.vk-ny-layout {
  display: flex;
  justify-content: center;
}

.vk-ny-indhold {
  max-width: 740px;
  width: 100%;
}

/* WordPress editor indhold */
.vk-ny-content {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(44, 44, 44, 0.85);
}

.vk-ny-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1E2E1E;
  margin: 32px 0 12px;
}

.vk-ny-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1E2E1E;
  margin: 24px 0 10px;
}

.vk-ny-content p {
  margin-bottom: 18px;
}

.vk-ny-content ul,
.vk-ny-content ol {
  margin: 0 0 18px 24px;
}

.vk-ny-content li {
  margin-bottom: 6px;
}

.vk-ny-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 8px 0;
}

.vk-ny-content a {
  color: #468F9E;
  text-decoration: underline;
}

.vk-ny-content a:hover {
  color: #1E2E1E;
}

/* Tilbage-knap */
.vk-ny-tilbage {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(44, 44, 44, 0.1);
}

.vk-ny-tilbage-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(44, 44, 44, 0.75);
  text-decoration: none;
  transition: color 0.15s;
}

.vk-ny-tilbage-btn:hover {
  color: #1E2E1E;
}

/* Responsiv */
@media (max-width: 860px) {
  .vk-ny-side {
    padding-left: 16px;
    padding-right: 16px;
  }
  .vk-ny-grid { grid-template-columns: 1fr 1fr; }
  .vk-ny-hero-titel { font-size: 28px; }
}

@media (max-width: 560px) {
  .vk-ny-grid { grid-template-columns: 1fr; }
  .vk-ny-hero { aspect-ratio: 4/3; border-radius: 14px; }
  .vk-ny-hero-overlay { padding: 20px 24px; }
  .vk-ny-container { padding: 24px 20px 60px; }
}
