/*
Theme Name: WP Theme Dev - m06
Author: Kayden Konshak
Description: Assignment 06 – Dark Glass UI
Version: 1.0
Text Domain: wptd-m06
License: GPLv3
*/

/* =========================
   Design Tokens — Dark Neon Glass
   ========================= */
:root {
  /* Palette */
  --bg: #020617;                               /* main app background */
  --bg-gradient-start: #1f2937;
  --bg-gradient-end: #020617;

  --surface: rgba(15, 23, 42, 0.96);           /* main cards / surfaces */
  --elev: rgba(15, 23, 42, 0.92);              /* slightly elevated bg */
  --chip: rgba(15, 23, 42, 0.85);

  --text: #e5e7eb;                             /* primary text */
  --muted: #9ca3af;                            /* secondary text */
  --muted-soft: #6b7280;

  --line: rgba(148, 163, 184, 0.40);           /* subtle borders */
  --line-soft: rgba(148, 163, 184, 0.25);

  --ring: rgba(56, 189, 248, 0.85);            /* focus ring */
  --blue: #38bdf8;                             /* accent */
  --blue-ink: #38bdf8;
  --danger: #f97373;

  /* Rounding & shadow */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-1: 0 14px 28px rgba(15, 23, 42, 0.6);
  --shadow-2: 0 24px 55px rgba(15, 23, 42, 0.85);

  /* Type & sizing */
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --container: 1100px;
  --gap: 2.2rem;
}

/* =========================
   Base / Reset
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, var(--bg-gradient-start) 0, var(--bg-gradient-end) 55%);
  color: var(--text);
  font: 400 16px/1.7 var(--font-body);
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
  border-radius: 0;
}

a {
  color: var(--blue-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  background: #f9fafb;
  color: #111827;
  padding: .5rem .75rem;
  border-radius: .5rem;
  z-index: 10000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .35);
}

/* =========================
   Wrapper
   ========================= */
.wrapper {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* =========================
   Header — dark glass
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(14px);
  background: linear-gradient(90deg, #020617 0%, #0b1120 20%, #020617 60%, #020617 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .6);
}

.header__top.container,
.header__bottom.container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: .85rem;
}

/* Branding */
.branding {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.branding__text {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--text);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
}

.site-title:hover {
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.6);
}

.site-description {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

/* =========================
   Navigation
   ========================= */
.nav {
  width: 100%;
}

.nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: .25rem .5rem;
  flex-wrap: wrap;
}

.nav .menu a {
  position: relative;
  display: inline-block;
  padding: .42rem .7rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.75);
  transition:
    background .18s ease,
    border-color .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    transform .12s ease;
}

.nav--main .menu a:hover,
.nav--main .current-menu-item > a,
.nav--main .current_page_item > a {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.25), rgba(15, 23, 42, 0.98));
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.nav--main .current-menu-item > a::after,
.nav--main .current_page_item > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
}

.nav--sub .menu a {
  color: var(--muted);
}

.nav--sub .menu a:hover,
.nav--sub .current-menu-item > a,
.nav--sub .current_page_item > a {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  border-color: rgba(148, 163, 184, .6);
}

/* Drawer toggle (mobile) */
#nav-toggle-icon {
  position: absolute;
  left: -9999px;
}

.nav-toggle__label,
label[for="nav-toggle-icon"] {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .6);
}

label[for="nav-toggle-icon"] span,
label[for="nav-toggle-icon"] span::before,
label[for="nav-toggle-icon"] span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #e5e7eb;
  content: "";
  position: relative;
  transition: .2s ease;
}

label[for="nav-toggle-icon"] span::before {
  position: absolute;
  top: -6px;
}

label[for="nav-toggle-icon"] span::after {
  position: absolute;
  top: 6px;
}

.nav-main-drawer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

@media (max-width: 900px) {
  label[for="nav-toggle-icon"] {
    display: flex;
  }

  .nav-main-drawer {
    position: fixed;
    inset: 60px 0 auto 0;
    background: radial-gradient(circle at top, #020617, #020617 60%);
    padding: 1rem 1.25rem 1.5rem;
    border-top: 1px solid var(--line);
    transform: translateY(-120%);
    transition: .25s ease;
    flex-direction: column;
    align-items: stretch;
    z-index: 999;
    box-shadow: var(--shadow-2);
  }

  #nav-toggle-icon:checked ~ label[for="nav-toggle-icon"] span {
    background: transparent;
  }

  #nav-toggle-icon:checked ~ label[for="nav-toggle-icon"] span::before {
    top: 0;
    transform: rotate(45deg);
  }

  #nav-toggle-icon:checked ~ label[for="nav-toggle-icon"] span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  #nav-toggle-icon:checked ~ .nav-main-drawer {
    transform: translateY(0);
  }

  .nav .menu {
    flex-direction: column;
    gap: .25rem;
  }
}

/* Search in header */
.search-form input[type="search"] {
  background: var(--chip);
  border: 1px solid var(--line);
  color: var(--text);
  padding: .5rem .75rem;
  border-radius: 999px;
  width: min(260px, 60vw);
}

.search-form input[type="submit"] {
  margin-left: .5rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--text);
  cursor: pointer;
}

.search-form input[type="submit"]:hover {
  border-color: var(--blue);
  background: rgba(15, 23, 42, 0.95);
}

/* =========================
   Layout
   ========================= */
.layout {
  display: grid;
  gap: var(--gap);
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.layout--with-sidebar {
  grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr);
}

.layout--full-width {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 1024px) {
  .layout--with-sidebar {
    grid-template-columns: 1fr;
  }
}

.content-area {
  display: grid;
  gap: calc(var(--gap) * .9);
  padding-block: 1.5rem 2.75rem;
  min-width: 0;
}

.site-sidebar {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 92px;
  align-self: start;
}

/* Archive header */
.archive-header {
  display: grid;
  gap: .35rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
}

.page-title,
.archive-title {
  margin: 0;
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--text);
}

.archive-description {
  color: var(--muted);
}

/* =========================
   Cards (index/archive/search)
   ========================= */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.card {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: none;
}

.card-figure {
  border-bottom: 1px solid var(--line-soft);
}

.card-figure img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform-origin: 50% 55%;
  transition: transform .8s ease-out, filter .4s ease-out;
  filter: saturate(1.05);
}

.card-section {
  padding: 1.05rem 1.2rem 1.1rem;
  display: grid;
  gap: .55rem;
  align-content: start;
  position: relative;
}

.card-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 55%);
  transition: opacity .25s ease;
}

.card-section-title {
  margin: .1rem 0 .2rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e5f3ff;
}

.card-section-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  align-items: center;
  font-size: .85rem;
  color: var(--muted);
}

.card-section-meta-date,
.card-section-meta-author,
.card-section-meta-comments {
  white-space: nowrap;
}

.card-section-excerpt {
  color: var(--text);
}

.card-section-taxonomy {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
}

.card-section-taxonomy strong {
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.card-section-button {
  align-self: flex-start;
  margin-top: .2rem;
  display: inline-block;
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.8);
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  font-size: .9rem;
  color: #020617;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(56, 189, 248, 0.55);
}

.card-section-button:hover {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.75);
}

/* Hover lift */
.cards .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.95);
  border-color: rgba(56, 189, 248, 0.85);
}

.cards .card:hover .card-figure img {
  transform: scale(1.06);
  filter: saturate(1.2);
}

.cards .card:hover .card-section::before {
  opacity: 1;
}

/* =========================
   Entries (single/page)
   ========================= */
.entry {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1.25rem;
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.entry__title {
  margin: .25rem 0 .6rem;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -.01em;
  color: #f9fafb;
}

.entry__meta {
  color: var(--muted);
  font-size: .96rem;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.entry__media img {
  border-radius: 16px;
  margin-bottom: 1rem;
}

.entry__content {
  margin-top: 1.75rem;
  line-height: 1.8;
  font-size: .98rem;
}

.entry__content p {
  margin-bottom: 1rem;
}

.entry__footer {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  padding-top: .9rem;
}

/* =========================
   Sidebar & Widgets
   ========================= */
.sidebar-widgets .widget,
.site-sidebar .widget {
  background: var(--elev);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-1);
  color: var(--text);
}

.widget-title,
.widget__title {
  margin: 0 0 .6rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f9fafb;
}

/* Header widget area */
.header-widgets {
  padding-block: .4rem;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

/* Upper footer widget area */
.footer-upper-widgets .widget {
  background: var(--elev);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow-1);
}

.footer-upper-widgets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .footer-upper-widgets {
    grid-template-columns: 1fr;
  }
}

/* 404 widget container */
.widget--404 {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  border: 1px dashed var(--line);
  margin-top: 1rem;
}

/* =========================
   Post Navigation
   ========================= */
.post-nav,
.nav-posts {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}

.post-nav__prev a,
.post-nav__next a,
.nav-posts__prev a,
.nav-posts__next a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.post-nav__prev a:hover,
.post-nav__next a:hover,
.nav-posts__prev a:hover,
.nav-posts__next a:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.75);
  border-color: var(--blue);
}

/* =========================
   Pagination (Assignment 06)
   ========================= */
.page-numbers {
  list-style: none;
  padding-left: 0;
  display: flex;
  margin: 1.8rem 0 0;
  justify-content: center;
  gap: .4rem;
}

.page-numbers .page-numbers {
  line-height: 2.5em;
  padding: 0 .9em;
  border-radius: 999px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--line-soft);
  text-decoration: none;
  font-size: .92rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: all .2s ease-in;
}

.page-numbers .page-numbers:not(span):hover {
  color: #e0f2fe;
  background: rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.7);
}

.page-numbers .page-numbers.current {
  color: #0f172a;
  background: #38bdf8;
  border-color: #38bdf8;
  box-shadow: 0 16px 36px rgba(56, 189, 248, 0.7);
}

/* =========================
   Footer — dark split
   ========================= */
.site-footer {
  background: rgba(15, 23, 42, 0.98);
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.footer-main.container {
  padding-block: 1.4rem 1.75rem;
}

.footer-upper {
  margin-bottom: 1rem;
}

.footer-lower {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding-top: .75rem;
  border-top: 1px solid var(--line-soft);
}

.nav--footer .menu {
  gap: .35rem;
}

.nav--footer .menu a {
  color: var(--muted);
}

.nav--footer .menu a:hover {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  border: 1px solid var(--line-soft);
}

.menu--footer-utilities {
  list-style: none;
  display: flex;
  gap: .5rem;
  margin: 0;
  padding: 0;
}

.menu--footer-utilities a {
  color: var(--muted);
}

.menu--footer-utilities a:hover {
  color: #e5e7eb;
}

.site-info {
  color: var(--muted-soft);
  font-size: .92rem;
  margin-top: .75rem;
}

@media (max-width: 900px) {
  .footer-lower {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }
}

/* =========================
   Buttons, Forms, Tables
   ========================= */
.button,
.button--text,
.wp-block-button__link {
  display: inline-block;
  padding: .55rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  color: var(--text);
  text-decoration: none;
  background: var(--chip);
}

.button:hover,
.wp-block-button__link:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--blue);
}

.button--text {
  border-color: transparent;
  background: transparent;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th,
td {
  padding: .65rem .75rem;
  border-bottom: 1px solid var(--line-soft);
}

thead th {
  text-align: left;
  color: var(--muted);
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea,
select {
  width: 100%;
  background: var(--chip);
  color: var(--text);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: .6rem .8rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Primary CTA */
input[type="submit"],
button[type="submit"],
.button-primary {
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  border-color: transparent;
  color: #020617;
  font-weight: 600;
  border-radius: 999px;
  padding-inline: 1.1rem;
  box-shadow: 0 14px 32px rgba(56, 189, 248, 0.7);
}

input[type="submit"]:hover,
button[type="submit"]:hover,
.button-primary:hover {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  box-shadow: 0 18px 42px rgba(56, 189, 248, 0.85);
}

.wp-block-code,
pre {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 1rem;
  font-family: var(--font-mono);
  overflow: auto;
}

/* Figures & captions */
figure {
  margin: 0;
}

figcaption,
.wp-block-image figcaption {
  color: var(--muted);
  font-size: .9rem;
}

/* =========================
   Accessibility / screen reader
   ========================= */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #eee;
  clip: auto !important;
  clip-path: none;
  color: #444;
  display: block;
  font-size: 1em;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* =========================
   Gutenberg niceties
   ========================= */
.wp-block-quote {
  border-left: 3px solid var(--line-soft);
  padding-left: 1rem;
  color: var(--muted);
}

.wp-block-separator {
  border: none;
  border-top: 1px solid var(--line-soft);
  margin-block: 1.5rem;
}

/* =========================
   Tag Cloud + Categories as Cloud
   ========================= */
.widget .wp-block-tag-cloud,
.widget .wp-block-categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding-left: 0;
}

.widget .wp-block-categories-list li {
  display: flex;
}

.widget .wp-block-tag-cloud a,
.widget .wp-block-categories-list a {
  position: relative;
  font-size: 14px;
  line-height: 2;
  padding: 0 .75em;
  margin: 0;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.65);
  border-radius: 999px;
  background: oklch(0.22 0.06 250);
  color: oklch(0.88 0.04 250);
  transition: all .25s ease-in-out;
}

.widget .wp-block-tag-cloud a:hover,
.widget .wp-block-categories-list a:hover {
  background: oklch(0.7 0.06 250);
  color: #020617;
  border-color: rgba(96, 165, 250, 0.9);
}

.widget .tag-link-count,
.widget .cat-link-count {
  position: absolute;
  line-height: 1.1;
  border-radius: 999px;
  translate: -40% -60%;
  font-family: var(--font-mono);
  margin: 0;
  z-index: 10;
  background: #0f172a;
  color: #f9fafb;
  text-align: center;
  padding: .15em .45em;
  scale: 1;
  transition: all .2s ease-in-out;
  font-size: 0.7rem;
}

.widget .wp-block-tag-cloud a:hover .tag-link-count,
.widget .wp-block-categories-list a:hover .cat-link-count {
  background: #38bdf8;
  color: #0f172a;
  scale: 1.2;
}

/* =========================
   Search-specific tweaks
   ========================= */
.search .size-thumbnail {
  float: left;
  padding: 0.5rem;
  border: 1px solid var(--line-soft);
  margin: 0 0.75rem 0.75rem 0;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.9);
}

/* =========================
   SPLIDE SLIDER — HERO-LEVEL
   ========================= */
.splide {
  margin-bottom: 2rem;
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 1));
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.45);
  position: relative;
}

.splide__track,
.splide__list,
.splide__slide {
  border-radius: inherit;
}

.splide__slide img {
  width: 100%;
  height: 400px;
  max-height: 55vh;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.02);
}

.splide__slide a {
  display: block;
  position: relative;
  color: #f9fafb;
}

/* Dark gradient overlay on slides */
.splide__slide a::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.98), transparent);
}

/* Slider title as hero heading */
.splide__slide-title {
  position: absolute;
  left: 1.6rem;
  right: 1.6rem;
  bottom: 1.4rem;
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f9fafb;
  z-index: 2;
}

/* Splide arrows & pagination */
.splide__arrow {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

.splide__arrow svg {
  fill: #e5e7eb;
}

.splide__arrow:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(56, 189, 248, 0.9);
}

.splide__pagination__page {
  background: rgba(148, 163, 184, 0.7);
  opacity: 1;
}

.splide__pagination__page.is-active {
  background: #38bdf8;
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.9);
}

/* Play / Pause toggle */
.splide__toggle {
  position: absolute;
  right: 1.25rem;
  top: 1.15rem;
  z-index: 5;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  font-size: 0.78rem;
  padding: .25rem .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .8);
}

.splide__toggle__play,
.splide__toggle__pause {
  display: inline-block;
}

.splide__toggle.is-paused {
  border-color: #f97373;
  color: #fecaca;
}

/* =========================
   SMALL MOTION TOUCHES
   ========================= */
a,
button,
input[type="submit"],
.card,
.nav .menu a,
.page-numbers .page-numbers {
  transition:
    background .18s ease,
    border-color .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    transform .12s ease;
}
