/*
Theme Name: Tudum Editorial
Theme URI: https://thriveomatic.com
Author: Thrive-O-Matic Media
Author URI: https://thriveomatic.com
Description: A bold, dark editorial magazine theme inspired by Netflix Tudum. Card-based layouts, hero sections, trending content, and a content-hub aesthetic. Perfect for entertainment, lifestyle, and media sites.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tudum-editorial
Tags: blog, entertainment, dark, magazine, grid-layout, featured-images, custom-menu, editor-style
*/

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --td-black: #0a0a0a;
  --td-dark: #141414;
  --td-card: #1a1a1a;
  --td-card-hover: #222222;
  --td-border: #2a2a2a;
  --td-muted: #888888;
  --td-light: #cccccc;
  --td-white: #ffffff;
  --td-accent: #00c853;
  --td-accent-dark: #00a344;
  --td-red: #e50914;
  --td-font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --td-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --td-radius: 6px;
  --td-radius-lg: 10px;
  --td-container: 1280px;
  --td-gap: 20px;
  --td-section-spacing: 60px;
  --td-transition: 0.25s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--td-font-body);
  background-color: var(--td-black);
  color: var(--td-white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--td-transition);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ============================================
   UTILITIES
   ============================================ */
.td-container {
  width: 100%;
  max-width: var(--td-container);
  margin: 0 auto;
  padding: 0 24px;
}

.td-section {
  padding: var(--td-section-spacing) 0;
}

.td-section + .td-section {
  border-top: 1px solid var(--td-border);
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ============================================
   HEADER & NAV
   ============================================ */
.td-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--td-black);
  border-bottom: 1px solid var(--td-border);
}

.td-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--td-container);
  margin: 0 auto;
}

.td-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.td-logo__text {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--td-accent);
}

.td-logo__sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--td-muted);
  margin-top: 2px;
}

.td-logo img {
  max-height: 40px;
  width: auto;
}

/* Header Actions */
.td-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.td-search-toggle {
  background: none;
  border: none;
  color: var(--td-white);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 8px;
  border-radius: 50%;
  transition: background var(--td-transition);
}

.td-search-toggle:hover {
  background: var(--td-card);
}

/* Mobile menu toggle */
.td-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--td-white);
  cursor: pointer;
  font-size: 1.4rem;
  padding: 8px;
}

/* Main Nav */
.td-nav {
  background: var(--td-dark);
}

.td-nav__list {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: var(--td-container);
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.td-nav__list::-webkit-scrollbar {
  display: none;
}

.td-nav__list li a {
  display: block;
  padding: 12px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--td-light);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all var(--td-transition);
}

.td-nav__list li a:hover,
.td-nav__list li.current-menu-item a,
.td-nav__list li.current_page_item a {
  color: var(--td-white);
  border-bottom-color: var(--td-accent);
}

/* Search Overlay */
.td-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.td-search-overlay.active {
  display: flex;
}

.td-search-overlay__inner {
  width: 90%;
  max-width: 600px;
}

.td-search-overlay input[type="search"] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 3px solid var(--td-accent);
  color: var(--td-white);
  font-size: 2rem;
  font-weight: 700;
  padding: 16px 0;
  outline: none;
  font-family: var(--td-font-display);
}

.td-search-overlay input::placeholder {
  color: var(--td-muted);
}

.td-search-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--td-white);
  font-size: 2rem;
  cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */
.td-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--td-dark);
}

.td-hero__bg {
  position: absolute;
  inset: 0;
}

.td-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.td-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--td-black) 0%,
    rgba(10, 10, 10, 0.7) 40%,
    rgba(10, 10, 10, 0.2) 100%
  );
}

.td-hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--td-container);
  margin: 0 auto;
  padding: 60px 24px 50px;
  width: 100%;
}

.td-hero__category {
  display: inline-block;
  background: var(--td-accent);
  color: var(--td-black);
  padding: 4px 14px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.td-hero__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 750px;
}

.td-hero__excerpt {
  font-size: 1.05rem;
  color: var(--td-light);
  max-width: 550px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.td-hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--td-muted);
}

.td-hero__meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.td-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}

.td-section-title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: capitalize;
}

.td-section-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--td-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.td-section-link:hover {
  text-decoration: underline;
}

/* ============================================
   POST CARDS
   ============================================ */

/* --- Standard Card --- */
.td-card {
  background: var(--td-card);
  border-radius: var(--td-radius-lg);
  overflow: hidden;
  transition: transform var(--td-transition), background var(--td-transition);
  display: flex;
  flex-direction: column;
}

.td-card:hover {
  transform: translateY(-4px);
  background: var(--td-card-hover);
}

.td-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.td-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.td-card:hover .td-card__thumb img {
  transform: scale(1.05);
}

.td-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--td-accent);
  color: var(--td-black);
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.td-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--td-transition);
}

.td-card:hover .td-card__play {
  opacity: 1;
}

.td-card__play-btn {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid var(--td-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--td-white);
  font-size: 1.2rem;
}

.td-card__body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.td-card__category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--td-accent);
  margin-bottom: 8px;
}

.td-card__title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
}

.td-card__excerpt {
  font-size: 0.85rem;
  color: var(--td-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.td-card__meta {
  font-size: 0.75rem;
  color: var(--td-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- Overlay Card (for spotlight / featured) --- */
.td-card--overlay {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--td-radius-lg);
  overflow: hidden;
}

.td-card--overlay .td-card__thumb {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.td-card--overlay .td-card__body {
  position: relative;
  z-index: 2;
  justify-content: flex-end;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  padding: 24px;
}

.td-card--overlay .td-card__title {
  font-size: 1.1rem;
}

/* --- Horizontal Card --- */
.td-card--horizontal {
  flex-direction: row;
  align-items: stretch;
}

.td-card--horizontal .td-card__thumb {
  width: 200px;
  min-width: 200px;
  aspect-ratio: auto;
}

.td-card--horizontal .td-card__body {
  padding: 16px 20px;
  justify-content: center;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.td-grid {
  display: grid;
  gap: var(--td-gap);
}

.td-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.td-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.td-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Featured layout: 1 big + 2 small */
.td-grid--featured {
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: auto auto;
}

.td-grid--featured > :first-child {
  grid-row: 1 / 3;
}

/* ============================================
   HORIZONTAL SCROLL ROW (Fan Favorites)
   ============================================ */
.td-scroll-row {
  display: flex;
  gap: var(--td-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--td-border) transparent;
}

.td-scroll-row::-webkit-scrollbar {
  height: 4px;
}

.td-scroll-row::-webkit-scrollbar-track {
  background: transparent;
}

.td-scroll-row::-webkit-scrollbar-thumb {
  background: var(--td-border);
  border-radius: 4px;
}

.td-scroll-row > * {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

/* ============================================
   BANNER / CTA STRIP
   ============================================ */
.td-banner {
  position: relative;
  border-radius: var(--td-radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 120px;
  background: var(--td-dark);
}

.td-banner__bg {
  position: absolute;
  inset: 0;
}

.td-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.td-banner__content {
  position: relative;
  z-index: 2;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.td-banner__title {
  font-size: 1.3rem;
  font-weight: 800;
}

.td-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: all var(--td-transition);
}

.td-btn--accent {
  background: var(--td-accent);
  color: var(--td-black);
}

.td-btn--accent:hover {
  background: var(--td-accent-dark);
  color: var(--td-black);
}

.td-btn--outline {
  background: transparent;
  color: var(--td-white);
  border: 2px solid var(--td-white);
}

.td-btn--outline:hover {
  background: var(--td-white);
  color: var(--td-black);
}

/* ============================================
   COUNTDOWN / PROMO WIDGET
   ============================================ */
.td-countdown {
  background: var(--td-card);
  border-radius: var(--td-radius-lg);
  padding: 32px;
  text-align: center;
}

.td-countdown__title {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.td-countdown__digits {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.td-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.td-countdown__number {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--td-accent);
}

.td-countdown__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--td-muted);
  margin-top: 6px;
}

/* ============================================
   TRENDING / VIDEO SECTION
   ============================================ */
.td-video-card {
  position: relative;
  border-radius: var(--td-radius-lg);
  overflow: hidden;
}

.td-video-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.td-video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.td-video-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.td-video-card__title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

/* ============================================
   GREEN ALERT BAR
   ============================================ */
.td-alert {
  background: var(--td-accent);
  color: var(--td-black);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--td-radius);
  margin-bottom: 28px;
  font-size: 0.85rem;
  font-weight: 700;
}

.td-alert a {
  color: var(--td-black);
  text-decoration: underline;
  font-weight: 800;
}

/* ============================================
   EXPLORE MORE (small cards grid)
   ============================================ */
.td-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.td-mini-card {
  border-radius: var(--td-radius);
  overflow: hidden;
  transition: transform var(--td-transition);
}

.td-mini-card:hover {
  transform: translateY(-3px);
}

.td-mini-card__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.td-mini-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.td-mini-card__title {
  padding: 10px 4px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   SINGLE POST
   ============================================ */
.td-single {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.td-single__header {
  margin-bottom: 36px;
}

.td-single__category {
  display: inline-block;
  background: var(--td-accent);
  color: var(--td-black);
  padding: 4px 14px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.td-single__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.td-single__meta {
  font-size: 0.85rem;
  color: var(--td-muted);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.td-single__featured {
  border-radius: var(--td-radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
}

.td-single__content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--td-light);
}

.td-single__content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--td-white);
  margin: 40px 0 16px;
}

.td-single__content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--td-white);
  margin: 32px 0 12px;
}

.td-single__content p {
  margin-bottom: 20px;
}

.td-single__content a {
  color: var(--td-accent);
  text-decoration: underline;
}

.td-single__content blockquote {
  border-left: 3px solid var(--td-accent);
  padding: 12px 24px;
  margin: 28px 0;
  font-style: italic;
  color: var(--td-light);
  background: var(--td-card);
  border-radius: 0 var(--td-radius) var(--td-radius) 0;
}

.td-single__content img {
  border-radius: var(--td-radius);
  margin: 28px 0;
}

.td-single__content ul,
.td-single__content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.td-single__content ul {
  list-style: disc;
}

.td-single__content ol {
  list-style: decimal;
}

.td-single__content li {
  margin-bottom: 8px;
}

/* Related Posts */
.td-related {
  border-top: 1px solid var(--td-border);
  padding-top: 48px;
  margin-top: 48px;
}

/* ============================================
   ARCHIVE / CATEGORY
   ============================================ */
.td-archive__header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--td-border);
  margin-bottom: 40px;
}

.td-archive__title {
  font-size: 2rem;
  font-weight: 900;
}

.td-archive__desc {
  color: var(--td-muted);
  margin-top: 8px;
  max-width: 600px;
}

/* ============================================
   PAGINATION
   ============================================ */
.td-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 48px 0;
}

.td-pagination a,
.td-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all var(--td-transition);
}

.td-pagination a {
  background: var(--td-card);
  color: var(--td-white);
}

.td-pagination a:hover {
  background: var(--td-accent);
  color: var(--td-black);
}

.td-pagination .current {
  background: var(--td-accent);
  color: var(--td-black);
}

/* ============================================
   FOOTER
   ============================================ */
.td-footer {
  background: var(--td-dark);
  border-top: 1px solid var(--td-border);
  padding: 48px 0 24px;
}

.td-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.td-footer__brand {
  max-width: 300px;
}

.td-footer__brand-name {
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--td-accent);
  margin-bottom: 12px;
}

.td-footer__brand p {
  font-size: 0.85rem;
  color: var(--td-muted);
  line-height: 1.6;
}

.td-footer__heading {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--td-white);
  margin-bottom: 16px;
}

.td-footer__links li {
  margin-bottom: 10px;
}

.td-footer__links a {
  font-size: 0.85rem;
  color: var(--td-muted);
}

.td-footer__links a:hover {
  color: var(--td-accent);
}

.td-footer__bottom {
  border-top: 1px solid var(--td-border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--td-muted);
}

.td-footer__social {
  display: flex;
  gap: 16px;
}

.td-footer__social a {
  color: var(--td-muted);
  font-size: 1.1rem;
}

.td-footer__social a:hover {
  color: var(--td-accent);
}

/* ============================================
   WIDGETS / SIDEBAR
   ============================================ */
.widget {
  margin-bottom: 32px;
}

.widget-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--td-accent);
  margin-bottom: 16px;
}

/* ============================================
   COMMENTS
   ============================================ */
.td-comments {
  border-top: 1px solid var(--td-border);
  padding-top: 40px;
  margin-top: 40px;
}

.td-comments .comment-reply-title,
.td-comments .comments-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.td-comments .comment-form input[type="text"],
.td-comments .comment-form input[type="email"],
.td-comments .comment-form input[type="url"],
.td-comments .comment-form textarea {
  width: 100%;
  background: var(--td-card);
  border: 1px solid var(--td-border);
  color: var(--td-white);
  padding: 12px 16px;
  border-radius: var(--td-radius);
  font-family: var(--td-font-body);
  font-size: 0.9rem;
  margin-bottom: 12px;
  transition: border-color var(--td-transition);
}

.td-comments .comment-form input:focus,
.td-comments .comment-form textarea:focus {
  outline: none;
  border-color: var(--td-accent);
}

.td-comments .comment-form .submit {
  background: var(--td-accent);
  color: var(--td-black);
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--td-transition);
}

.td-comments .comment-form .submit:hover {
  background: var(--td-accent-dark);
}

.comment-list .comment {
  border-bottom: 1px solid var(--td-border);
  padding: 20px 0;
}

.comment-author {
  font-weight: 700;
  margin-bottom: 8px;
}

.comment-content {
  color: var(--td-light);
  font-size: 0.9rem;
}

/* ============================================
   404
   ============================================ */
.td-404 {
  text-align: center;
  padding: 120px 24px;
}

.td-404__number {
  font-size: 8rem;
  font-weight: 900;
  color: var(--td-accent);
  line-height: 1;
}

.td-404__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 16px 0;
}

.td-404__text {
  color: var(--td-muted);
  margin-bottom: 32px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .td-grid--4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .td-grid--featured {
    grid-template-columns: 1fr 1fr;
  }

  .td-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --td-section-spacing: 40px;
    --td-gap: 16px;
  }

  .td-menu-toggle {
    display: block;
  }

  .td-nav {
    display: none;
  }

  .td-nav.active {
    display: block;
  }

  .td-nav__list {
    flex-direction: column;
    padding: 8px 24px 16px;
  }

  .td-nav__list li a {
    padding: 10px 0;
    border-bottom: none;
  }

  .td-hero {
    min-height: 50vh;
  }

  .td-grid--2,
  .td-grid--3,
  .td-grid--4 {
    grid-template-columns: 1fr;
  }

  .td-grid--featured {
    grid-template-columns: 1fr;
  }

  .td-grid--featured > :first-child {
    grid-row: auto;
  }

  .td-card--horizontal {
    flex-direction: column;
  }

  .td-card--horizontal .td-card__thumb {
    width: 100%;
    min-width: 100%;
    aspect-ratio: 16 / 9;
  }

  .td-footer__grid {
    grid-template-columns: 1fr;
  }

  .td-footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .td-mini-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .td-scroll-row > * {
    flex: 0 0 240px;
  }

  .td-mini-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ============================================
   ADMIN BAR FIX
   ============================================ */
body.admin-bar .td-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .td-header {
    top: 46px;
  }
}
