/*
Theme Name: High Media Theme
Text Domain: high-media-theme
Version: 1.0.0
*/

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700&display=swap");

:root {
  /* Advanced Color Palette */
  --bg-deep: #050810;
  --bg-surface: #0a0f1d;
  --bg-card: rgba(16, 24, 48, 0.4);

  --text-pure: #ffffff;
  --text-dim: #94a3b8;
  --text-muted: #64748b;

  --accent-glow: #6366f1;
  --accent-neon: #06b6d4;
  --accent-secondary: #a855f7; /* Added missing variable */
  --accent-gradient: linear-gradient(
    135deg,
    #6366f1 0%,
    #a855f7 50%,
    #06b6d4 100%
  );

  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-reflection: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0) 100%
  );

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

a {
  text-decoration: none !important; /* すべてのリンクからデフォルトの下線を強制削除 */
  color: inherit;
  transition: all 0.3s ease;
}

ul,
li {
  list-style: none !important; /* すべてのリストからマーカーを強制削除 */
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-pure);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: "Outfit", sans-serif;
  letter-spacing: -0.02em;
}

/* Glassmorphism Upgrade */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  background-image: var(--glass-reflection);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.5s var(--ease-expo);
  padding: 24px 0;
}

header.scrolled {
  padding: 12px 0;
  background: rgba(5, 8, 16, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav {
  display: flex;
  justify-content: left;
  align-items: flex-start;
  flex-direction: column;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.1;
}

.logo .site-title {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.1em;
}

.logo .site-tagline {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  -webkit-text-fill-color: initial;
}

/* Main nav menu (wp_nav_menu) */
.nav-links,
#menu-main-menu {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
}

#menu-main-menu > li {
  margin: 0;
  padding: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-pure);
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-pure);
  border-radius: 2px;
}

.nav-links li a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim) !important;
}

.nav-links li a:hover {
  color: var(--text-pure) !important;
}

/* Hero Section Premium */
.hero-premium {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Media Hero */
.hero-premium.media-hero {
  height: auto;
  min-height: 100vh;
  align-items: stretch;
}

.media-hero-inner {
  width: 100%;
  padding-top: 140px; /* fixed header offset */
  padding-bottom: 80px;
}

.media-hero-heading {
  margin-bottom: 32px;
}

.media-hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.media-hero-subtitle {
  color: var(--text-dim);
  max-width: 720px;
}

.media-hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 24px;
}

.media-hero-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  min-height: 520px;
}

.media-hero-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  transform: scale(1.02);
}

.media-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 16, 0) 0%,
    rgba(5, 8, 16, 0.75) 70%,
    rgba(5, 8, 16, 0.95) 100%
  );
}

.media-hero-card-body {
  position: relative;
  z-index: 1;
  padding: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.media-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.media-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-pure);
  font-weight: 600;
}

.media-hero-card-title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.media-hero-excerpt {
  color: var(--text-dim);
  max-width: 56ch;
}

.media-hero-side {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 16px;
}

.media-hero-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 24px;
  align-items: center;
  transition: transform 0.3s var(--ease-expo);
}

.media-hero-item:hover {
  transform: translateY(-4px);
}

.media-hero-item-thumb {
  width: 110px;
  height: 86px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--glass-border);
}

.media-hero-item-title {
  font-size: 1rem;
  line-height: 1.3;
  margin-top: 8px;
}

.media-hero-empty {
  color: var(--text-dim);
}

/* Topics cards */
.topic-card {
  display: block;
  color: inherit;
}

.topic-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.topic-badge {
  font-size: 1.25rem;
  font-weight: 800;
}

.topic-count {
  color: var(--text-dim);
  font-size: 0.85rem;
  white-space: nowrap;
}

.topic-desc {
  color: var(--text-dim);
}

@media (max-width: 980px) {
  .media-hero-grid {
    grid-template-columns: 1fr;
  }

  .media-hero-card {
    min-height: 420px;
  }

  .media-hero-side {
    grid-template-rows: none;
  }
}

@media (max-width: 520px) {
  .media-hero-item {
    grid-template-columns: 96px 1fr;
  }

  .media-hero-item-thumb {
    width: 96px;
    height: 72px;
  }
}

.hero-bg-blur {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 80% 20%,
      rgba(99, 102, 241, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(6, 182, 212, 0.15) 0%,
      transparent 40%
    );
  z-index: -1;
}

.hero-content-premium {
  z-index: 2;
  max-width: 800px;
}

.hero-content-premium h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
  font-weight: 700;
}

.glitch-text {
  background: linear-gradient(to right, #fff 20%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 1.25rem;
  color: var(--text-dim);
  margin-bottom: 48px;
  max-width: 600px;
}

.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: var(--text-pure);
  color: var(--bg-deep);
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: all 0.4s var(--ease-expo);
}

.btn-modern:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
}

.hero-visual {
  position: absolute;
  right: -10%;
  width: 60%;
  height: 80%;
  background-size: cover;
  background-position: center;
  border-radius: 40px;
  mask-image: linear-gradient(to left, black 60%, transparent 100%);
  z-index: 1;
  opacity: 0.4;
}

/* Page Header Premium (for static pages) */
.page-header-premium {
  position: relative;
  padding: calc(var(--header-offset, 88px) + 56px) 0 64px;
  overflow: hidden;
}

.page-title-premium {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  background: linear-gradient(to right, #fff 20%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--text-dim);
  max-width: 600px;
}

.page-content-section {
  padding-top: 0;
}

/* Sections & Grids */
.section-premium {
  padding: 160px 0;
}

.section-title-premium {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 80px;
  font-weight: 700;
}

.grid-luxury {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 32px;
}

.card-luxury {
  padding: 60px;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-expo);
}

.card-luxury:hover {
  transform: translateY(-16px);
  border-color: var(--accent-glow);
  background: rgba(16, 24, 48, 0.6);
}

.card-icon {
  margin-bottom: 32px;
  color: var(--accent-neon);
}

.card-luxury h3 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.card-luxury p {
  color: var(--text-dim);
}

/* Blog Luxury */
.blog-luxury {
  border-radius: 32px;
  overflow: hidden;
  transition: all 0.5s var(--ease-expo);
}

.blog-visual {
  height: 280px;
  position: relative;
  overflow: hidden;
}

.blog-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-expo);
}

.blog-luxury:hover .blog-visual img {
  transform: scale(1.1);
}

.blog-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--bg-surface), var(--bg-card));
}

.blog-date {
  position: absolute;
  bottom: 20px;
  left: 20px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.blog-body {
  padding: 40px;
}

.blog-body h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.blog-body p {
  color: var(--text-dim);
  margin-bottom: 24px;
}

.link-more {
  font-weight: 700;
  color: var(--accent-glow);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s var(--ease-expo);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Single Post */
.single-post-section {
  padding-top: 140px;
}

.single-category {
  color: var(
    --accent-secondary
  ); /* accent-secondary might not be defined, check root */
  font-weight: 600;
}

.single-title {
  font-size: 3rem;
  margin: 20px 0;
}

.single-meta {
  margin-bottom: 40px;
  color: var(--text-muted);
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
}

.single-featured-image {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
}

.back-to-list a {
  color: var(--accent-secondary);
}

/* Archive Page */
.archive-main {
  padding-top: 180px;
}

.archive-title {
  text-align: left;
  margin-bottom: 60px;
}

.archive-category-label {
  font-size: 0.8rem;
  color: var(--accent-neon);
  font-weight: 700;
  text-transform: uppercase;
}

.archive-post-title {
  margin: 15px 0;
}

.archive-post-title a {
  text-decoration: none !important;
  color: inherit;
}

.pagination-premium {
  margin-top: 100px;
  text-align: center;
}

/* Footer Premium */
footer {
  padding: 100px 0 60px;
  background: var(--bg-surface);
}

footer a {
  text-decoration: none; /* フッター内のリンクの下線を削除 */
  color: inherit;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent-glow);
}

footer ul {
  list-style: none; /* フッターメニューのリスト記号を削除 */
  margin-top: 20px;
}

footer ul li {
  margin-bottom: 12px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer-brand h3 {
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(
    --text-muted
  ); /* text-secondary is not defined in root, assuming muted or dim */
}

.footer-links-menu {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.footer-links-menu > li {
  margin-bottom: 0;
}

.footer-contact-info {
  margin-top: 15px;
  color: var(--text-muted);
}

.footer-bottom {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-muted);
}

/* Main Content & Posts */
.main-content {
  padding-top: 160px;
}

.main-content--page {
  padding-top: 0;
}

.page-title {
  text-align: left;
  margin-bottom: 40px;
}

.post-featured-image {
  margin-bottom: 60px;
  border-radius: 40px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-entry-content {
  padding: 60px;
  border-radius: 40px;
  line-height: 1.8;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .post-entry-content {
    padding: 30px;
  }
}

/* Contact Form 7 Custom Styling */
.wpcf7-form {
  max-width: 600px;
  margin: 0 auto;
}

.wpcf7-text,
.wpcf7-textarea {
  width: 100%;
  background: var(--bg-card) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 16px !important;
  padding: 16px 24px !important;
  color: white !important;
  margin-bottom: 20px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.wpcf7-text:focus,
.wpcf7-textarea:focus {
  border-color: var(--accent-glow) !important;
  outline: none;
  background: rgba(255, 255, 255, 0.05) !important;
}

.wpcf7-submit {
  width: 100%;
  padding: 18px !important;
  background: var(--accent-gradient) !important;
  border: none !important;
  border-radius: 100px !important;
  color: white !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.3s ease !important;
}

.wpcf7-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .hero-visual {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  header {
    padding: 16px 0;
  }

  header.scrolled {
    padding: 10px 0;
  }

  main:not(.main-content--page) {
    padding-top: calc(var(--header-offset, 88px) + 12px);
  }

  .nav {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
  }

  .logo {
    width: 100%;
  }

  .logo .site-tagline {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
  }

  .nav-toggle {
    display: inline-flex;
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1200;
  }

  /* Collapsible menu panel on SP */
  .nav-links,
  #menu-main-menu {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 18px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: calc(18px + 44px + 12px);
    z-index: 1250;

    display: flex;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: max-height 0.35s var(--ease-expo), opacity 0.25s ease,
      transform 0.25s ease;
  }

  /* Fallback markup: <div class="nav-links"><ul>...</ul></div> */
  .nav-links > ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  header.nav-open .nav-links,
  header.nav-open #menu-main-menu {
    max-height: 70vh;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    overflow: auto;
  }

  #menu-main-menu > li,
  .nav-links > ul > li {
    padding: 10px 6px;
  }

  .nav-links li a,
  #menu-main-menu li a {
    display: block;
    width: 100%;
    font-size: 1rem;
    color: var(--text-pure) !important;
  }

  /* Global spacing + grids */
  .section-premium {
    padding: 96px 0;
  }

  .section-title-premium {
    margin-bottom: 44px;
  }

  .grid-luxury {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card-luxury {
    padding: 28px;
    border-radius: 24px;
  }

  .card-luxury:hover {
    transform: translateY(-6px);
  }

  .blog-visual {
    height: 210px;
  }

  .blog-body {
    padding: 24px;
  }

  .blog-body h3 {
    font-size: 1.25rem;
  }

  .blog-date {
    bottom: 14px;
    left: 14px;
  }

  /* Media hero */
  .media-hero-inner {
    padding-top: 24px;
    padding-bottom: 64px;
  }

  .media-hero-card {
    border-radius: 24px;
    min-height: 380px;
  }

  .media-hero-card-body {
    padding: 24px;
  }

  .media-hero-meta {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  /* Single */
  .single-post-section {
    padding-top: 24px;
  }

  .single-title {
    font-size: 2.1rem;
  }

  .single-meta {
    flex-wrap: wrap;
    gap: 12px;
  }

  .post-navigation {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .post-navigation .prev,
  .post-navigation .next,
  .post-navigation .list {
    text-align: left;
  }

  /* Archive */
  .archive-main {
    padding-top: 24px;
  }

  .archive-title {
    margin-bottom: 40px;
  }

  .pagination-premium {
    margin-top: 56px;
  }

  /* Page content */
  .main-content {
    padding-top: 24px;
  }

  .main-content--page {
    padding-top: 0;
  }

  .post-featured-image {
    margin-bottom: 32px;
    border-radius: 24px;
  }

  .post-entry-content {
    font-size: 1rem;
  }

  /* Footer */
  footer {
    padding: 72px 0 40px;
  }

  .footer-bottom {
    margin-top: 44px;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 18px;
  }

  .media-hero-card-title {
    font-size: 1.7rem;
  }

  .media-hero-excerpt {
    max-width: none;
  }
}

/* =====================================================================
   High Media Theme (ICS.media-inspired) – Light, readable layout overrides
   Note: This is original CSS inspired by general layout conventions.
   ===================================================================== */

:root {
  --bg-deep: #ffffff;
  --bg-surface: #f6f7f9;
  --bg-card: rgba(255, 255, 255, 0.96);

  --text-pure: #0f172a;
  --text-dim: #1f2937;
  --text-muted: #6b7280;

  --accent-glow: #2563eb;
  --accent-neon: #0ea5e9;
  --accent-secondary: #1d4ed8;
  --accent-gradient: linear-gradient(
    135deg,
    #2563eb 0%,
    #1d4ed8 55%,
    #0ea5e9 100%
  );

  --glass-border: rgba(15, 23, 42, 0.1);
  --glass-reflection: none;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-pure);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo",
    sans-serif;
}

.container {
  max-width: 1120px;
  padding: 0 24px;
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.96);
}

.logo .site-title {
  color: var(--text-pure);
}

.logo .site-tagline {
  color: var(--text-muted);
}

/* Cards / glass -> light card */
.glass {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Lists & links: restore readability for article content */
.entry-content {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.85;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--text-pure);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.entry-content p {
  margin: 0 0 1.2em;
}

.entry-content a {
  color: var(--accent-glow) !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.entry-content a:hover {
  text-decoration-thickness: 2px;
}

.entry-content ul,
.entry-content ol {
  list-style: revert !important;
  padding-left: 1.35em;
  margin: 0 0 1.2em;
}

.entry-content li {
  list-style: inherit !important;
  margin: 0.35em 0;
}

/* Code blocks */
.entry-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  background: var(--bg-surface);
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 0.12em 0.35em;
  border-radius: 6px;
}

.entry-content pre {
  background: var(--bg-surface);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  padding: 16px;
  overflow: auto;
}

.entry-content pre code {
  background: transparent;
  border: 0;
  padding: 0;
}

/* Article layout */
.single-post-section {
  padding-top: calc(var(--header-offset, 72px) + 32px);
  padding-bottom: 64px;
}

.article-content {
  max-width: 820px;
  margin: 0 auto;
}

.single-title {
  color: var(--text-pure);
}

.single-meta {
  color: var(--text-muted);
}

/* Archive / cards */
.archive-main {
  padding-top: calc(var(--header-offset, 72px) + 32px);
}

.blog-luxury {
  background: #ffffff;
}

.blog-luxury:hover {
  border-color: rgba(37, 99, 235, 0.25);
}

.archive-post-title a,
.blog-body h3,
.blog-body h3 a {
  color: var(--text-pure) !important;
  text-decoration: none !important;
}

.link-more {
  color: var(--accent-glow) !important;
}

/* Footer */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--glass-border);
}

.footer-brand h3,
.footer-content h4 {
  color: var(--text-pure);
}

.footer-content p,
.footer-bottom {
  color: var(--text-muted);
}

/* Typography (site-wide) */
h1,
h2,
h3,
h4 {
  font-family: inherit;
  letter-spacing: -0.01em;
}

/* Logo: remove gradient text styling from dark theme */
.logo .site-title {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: var(--text-pure) !important;
  color: var(--text-pure) !important;
  letter-spacing: 0.02em;
}

/* Header navigation: compact + underline on hover */
.nav-links,
#menu-main-menu {
  gap: 22px;
  width: 100%;
}
.nav-links ul {
  display: flex;
  gap: 5%;
  width: 100%;
  padding: 0;
}

.nav-links li a,
#menu-main-menu li a {
  color: var(--text-dim) !important;
  font-weight: 650;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}

.nav-links li a::after,
#menu-main-menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent-glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links li a:hover,
#menu-main-menu li a:hover {
  color: var(--text-pure) !important;
}

.nav-links li a:hover::after,
#menu-main-menu li a:hover::after {
  transform: scaleX(1);
}

/* Sections: reduce vertical space and align headings left */
.section-premium {
  padding: 72px 0;
}

.section-title-premium {
  text-align: left;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  margin-bottom: 24px;
  font-weight: 800;
}

.grid-luxury {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card-luxury {
  padding: 28px;
  border-radius: 16px;
}

.card-luxury:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.22);
}

/* Front-page hero: lighten and reduce effects */
.hero-bg-blur {
  display: none;
}

.media-hero-inner {
  padding-top: calc(var(--header-offset, 72px) + 32px);
  padding-bottom: 56px;
}

.media-hero-title {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: var(--text-pure) !important;
  letter-spacing: 0.02em;
}

.media-hero-subtitle {
  color: var(--text-muted);
}

.media-hero-card-bg {
  opacity: 1;
}

.media-hero-card::after {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.9) 62%,
    rgba(255, 255, 255, 0.98) 100%
  );
}

.media-hero-meta {
  color: var(--text-muted);
}

.media-hero-badge {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  color: var(--text-pure);
}

.media-hero-excerpt {
  color: var(--text-dim);
}

.media-hero-item {
  background: #ffffff;
  border: 1px solid var(--glass-border);
}

/* Blog cards: cleaner like a media list */
.blog-luxury {
  border-radius: 16px;
}

.blog-visual {
  height: 220px;
}

.blog-date {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-pure);
  border: 1px solid var(--glass-border);
}

.blog-body {
  padding: 22px;
}

.blog-body p {
  color: var(--text-dim);
}

/* Page headers */
.page-title-premium {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: var(--text-pure);
}

/* Pagination */
.pagination-premium ul {
  list-style: none !important;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.pagination-premium .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
}

.pagination-premium .page-numbers.current {
  background: var(--bg-surface);
  color: var(--text-pure);
}

.pagination-premium a.page-numbers:hover {
  border-color: rgba(37, 99, 235, 0.25);
}

/* Contact Form 7: light inputs */
.wpcf7-text,
.wpcf7-textarea {
  background: #ffffff !important;
  color: var(--text-pure) !important;
  border: 1px solid var(--glass-border) !important;
}

.wpcf7-text:focus,
.wpcf7-textarea:focus {
  background: #ffffff !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.wpcf7-submit {
  background: var(--accent-glow) !important;
}

/* Remove scroll-reveal effect for a calmer media feel */
.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Loading spinner (ARTICLES filtering) */
.hmt-loading {
  grid-column: 1 / -1;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.hmt-loading-text {
  color: var(--text-muted);
  font-weight: 650;
}

.hmt-spinner {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 3px solid rgba(15, 23, 42, 0.12);
  border-top-color: var(--accent-glow);
  animation: hmt-spin 0.85s linear infinite;
}

@keyframes hmt-spin {
  to {
    transform: rotate(360deg);
  }
}
