/* Tile home page — mobile first. Tile = 16:9 thumbnail left, heading right. */
.wlp-home-primary { width: 100% !important; float: none !important; }
.wlp-home {
  --wlp-blue: #1f5fbf;
  --wlp-blue-dark: #163f7d;
  --wlp-ink: #1d2433;
  --wlp-muted: #6b7280;
  --wlp-line: #e6e9ef;
  --wlp-card: #fff;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 0 32px;
  color: var(--wlp-ink);
}
.wlp-home *, .wlp-home *::before, .wlp-home *::after { box-sizing: border-box; }

.wlp-preview-note {
  margin: 0 0 14px;
  padding: 8px 12px;
  font-size: 13px;
  background: #fff8e1;
  border: 1px solid #f3d27a;
  border-radius: 8px;
}

/* Search */
.wlp-search {
  display: flex;
  margin: 4px 0 22px;
  border: 1.5px solid var(--wlp-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.06);
}
.wlp-search:focus-within { border-color: var(--wlp-blue); }
.wlp-search input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  font-size: 16px;
  border: 0 !important;
  outline: none;
  background: transparent;
  box-shadow: none !important;
}
.wlp-search button {
  flex: 0 0 56px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  color: #fff !important;
  background: var(--wlp-blue) !important;
  border: 0 !important;
  border-radius: 0 !important;
  cursor: pointer;
}
.wlp-search button:hover { background: var(--wlp-blue-dark) !important; }

/* Sections */
.wlp-section {
  margin: 0 0 22px;
  padding: 14px;
  background: var(--wlp-card);
  border: 1px solid var(--wlp-line);
  border-radius: 14px;
}
.wlp-section-title {
  margin: 0 0 12px !important;
  padding-left: 10px;
  font-size: 18px !important;
  line-height: 1.3 !important;
  border-left: 4px solid var(--wlp-blue);
}
.wlp-section-title a { color: var(--wlp-ink); text-decoration: none; }
.wlp-section-title a:hover { color: var(--wlp-blue); }

.wlp-tiles { display: grid; gap: 12px; }

/* Tile: one row, thumbnail + heading */
.wlp-tile {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--wlp-ink) !important;
  text-decoration: none !important;
}
.wlp-tile-thumb {
  position: relative;
  flex: 0 0 40%;
  max-width: 200px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #e9eef7;
}
.wlp-tile-thumb > .wlp-tile-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.wlp-tile:hover .wlp-tile-img { transform: scale(1.04); }
.wlp-tile-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-align: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  background: linear-gradient(135deg, var(--wlp-blue), var(--wlp-blue-dark));
}
.wlp-tile-ph {
  flex-direction: column;
  gap: 4px;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.18) 0 18%, transparent 19%),
    linear-gradient(135deg, var(--wlp-blue), var(--wlp-blue-dark));
}
.wlp-ph-icon { width: 26px; height: 26px; opacity: 0.9; }
.wlp-ph-label {
  max-width: 100%;
  font-size: 11px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  opacity: 0.95;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wlp-tile-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wlp-tile-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  padding-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wlp-tile:hover .wlp-tile-title { color: var(--wlp-blue); }
.wlp-tile-date { font-size: 12px; color: var(--wlp-muted); }

.wlp-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--wlp-blue) !important;
  text-decoration: none !important;
}
.wlp-older { text-align: center; font-weight: 700; }

/* Tablet: latest posts in two columns, categories two per row */
@media (min-width: 700px) {
  .wlp-latest .wlp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wlp-cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .wlp-tile-title { font-size: 16px; }
}

/* Laptop/desktop: categories three per row */
@media (min-width: 1100px) {
  .wlp-latest .wlp-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wlp-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wlp-section-title { font-size: 20px !important; }
}

/* Section head (title + "view all"); the head link and chips are used by the modern look */
.wlp-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.wlp-section-head .wlp-section-title { margin: 0 !important; }
.wlp-head-more { display: none; }
.wlp-tile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wlp-tile-chip { display: none; }
