/* =============================================================================
   TRIATHLON.INFO.PL — THEME CSS
   Based on design mockups v3 (homepage + single post)
   ============================================================================= */

/* =============================================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================================= */

:root {
  --orange: #FC4C02;
  --orange-hover: #E34400;
  --orange-light: #FFF3ED;
  --dark: #1D1D1D;
  --gray-900: #2D2D2D;
  --gray-700: #4A4A4A;
  --gray-500: #7A7A7A;
  --gray-300: #B8B8B8;
  --gray-100: #F0F0F0;
  --white: #FFFFFF;
  --radius: 10px;
  --radius-sm: 6px;
}


/* =============================================================================
   2. RESET & BASE
   ============================================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #F7F7F8;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}


/* =============================================================================
   3. TYPOGRAPHY
   ============================================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

h1 { font-size: 36px; font-weight: 900; letter-spacing: -1px; }
h2 { font-size: 28px; font-weight: 900; letter-spacing: -0.5px; }
h3 { font-size: 22px; font-weight: 800; }
h4 { font-size: 18px; font-weight: 700; }
h5 { font-size: 16px; font-weight: 700; }
h6 { font-size: 14px; font-weight: 700; }

p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
}

strong,
b {
  font-weight: 700;
  color: var(--dark);
}

em,
i {
  font-style: italic;
}


/* =============================================================================
   4. LAYOUT
   ============================================================================= */

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
}


/* =============================================================================
   5. HEADER
   ============================================================================= */

.header {
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header .wrap {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  display: flex;
  align-items: center;
  gap: 2px;
}

.logo-icon .bar {
  width: 4px;
  border-radius: 2px;
  background: var(--orange);
}

.logo-icon .bar:nth-child(1) { height: 20px; }
.logo-icon .bar:nth-child(2) { height: 28px; }
.logo-icon .bar:nth-child(3) { height: 16px; }

.logo-text {
  font-size: 22px;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.8px;
}

.logo-text span {
  color: var(--orange);
}

.logo-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Header right area */
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Search box */
.search-box {
  background: var(--gray-100);
  border: none;
  border-radius: 24px;
  padding: 10px 18px;
  font-size: 13px;
  width: 200px;
  font-family: inherit;
  color: var(--dark);
  outline: none;
  transition: box-shadow 0.15s;
}

.search-box::placeholder {
  color: var(--gray-300);
}

.search-box:focus {
  box-shadow: 0 0 0 2px var(--orange);
}

/* Header social links */
.header-social {
  display: flex;
  gap: 6px;
}

.header-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 600;
  transition: all 0.15s;
}

.header-social a:hover {
  background: var(--orange);
  color: var(--white);
}


/* =============================================================================
   6. NAVIGATION
   ============================================================================= */

.nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav.nav-scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.nav .wrap {
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  color: var(--gray-700);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 14px 14px;
  transition: all 0.15s;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.nav a.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* Mobile nav toggle (hamburger) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--dark);
  font-size: 20px;
  margin-left: auto;
  line-height: 1;
}

.nav-toggle:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* Mobile menu open state */
.nav-open .nav .wrap {
  flex-wrap: wrap;
}

.nav-open .nav a {
  flex-basis: 100%;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}


/* =============================================================================
   7. HERO
   ============================================================================= */

/* Category badge */
.cat {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 3px;
}

/* Hero main grid: big left + two medium right */
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-big {
  grid-row: 1 / 3;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.hero-big .img {
  aspect-ratio: 3 / 4;
  width: 100%;
  background: linear-gradient(135deg, #1a2a3a, #0d1b2a);
}

.hero-big .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.75) 100%);
}

.hero-big .overlay .cat {
  margin-bottom: 12px;
}

.hero-big .overlay h2 {
  color: var(--white);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero-big:hover .overlay h2 {
  color: var(--orange-light);
}

/* Hero side column */
.hero-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.hero-med {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.hero-med .img {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: linear-gradient(135deg, #2a1a1a, #3a2020);
}

.hero-med .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px;
  background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.75) 100%);
}

.hero-med .overlay .cat {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 8px;
  margin-bottom: 8px;
}

.hero-med .overlay h3 {
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.hero-med:hover .overlay h3 {
  color: var(--orange-light);
}

/* Hero strip: 4 small cards in a row */
.hero-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.strip-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.strip-card .img {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #333, #444);
}

.strip-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.strip-card .overlay .cat {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 7px;
  margin-bottom: 6px;
}

.strip-card .overlay h4 {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.strip-card:hover .overlay h4 {
  color: var(--orange-light);
}


/* =============================================================================
   8. SECTION HEADERS
   ============================================================================= */

.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.section-head .bar {
  width: 4px;
  height: 20px;
  background: var(--orange);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-head h2 {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.3px;
}

.section-head .more {
  margin-left: auto;
  font-size: 12px;
  color: var(--orange);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.section-head .more:hover {
  text-decoration: underline;
}


/* =============================================================================
   9. CARDS
   ============================================================================= */

/* News Grid */
.news-section {
  margin-bottom: 40px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  display: block;
  text-decoration: none;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.news-card .img {
  aspect-ratio: 16 / 10;
  width: 100%;
  background: var(--gray-100);
}

.news-card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card .body {
  padding: 16px;
}

.news-card .date {
  font-size: 11px;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 6px;
}

.news-card h3 {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--dark);
  letter-spacing: -0.2px;
}


/* =============================================================================
   10. CATEGORY FEATURED SECTION
   ============================================================================= */

.cat-section {
  margin-bottom: 40px;
}

.cat-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Category featured big post */
.cat-big .img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  margin-bottom: 14px;
  background: var(--gray-100);
  overflow: hidden;
}

.cat-big .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-big .cat-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.cat-big h3 {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
  color: var(--dark);
}

.cat-big h3:hover {
  color: var(--orange);
  cursor: pointer;
}

.cat-big .meta {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.cat-big .excerpt {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
}

/* Category list */
.cat-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cat-list-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: center;
}

.cat-list-item:first-child {
  padding-top: 0;
}

.cat-list-item .thumb {
  width: 96px;
  min-width: 96px;
  height: 68px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  overflow: hidden;
  flex-shrink: 0;
}

.cat-list-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-list-item h4 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dark);
  letter-spacing: -0.1px;
}

.cat-list-item h4:hover {
  color: var(--orange);
  cursor: pointer;
}

.cat-list-item .meta {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 4px;
}


/* =============================================================================
   11. CAROUSEL
   ============================================================================= */

.carousel-section {
  margin-bottom: 40px;
}

.carousel-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.carousel-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.carousel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.carousel-card .img {
  aspect-ratio: 16 / 10;
  width: 100%;
  background: var(--gray-100);
  overflow: hidden;
}

.carousel-card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-card .body {
  padding: 16px;
}

.carousel-card .cat-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.carousel-card h3 {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.2px;
  color: var(--dark);
}

.carousel-card .meta {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 6px;
}

/* Carousel navigation buttons */
.carousel-nav {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.carousel-nav button {
  width: 36px;
  height: 36px;
  border: 2px solid var(--gray-100);
  background: var(--white);
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray-500);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-nav button:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.carousel-nav button:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}


/* =============================================================================
   12. DUAL COLUMNS
   ============================================================================= */

.dual-section {
  margin-bottom: 40px;
}

.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.dual-card .img {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--gray-100);
  overflow: hidden;
}

.dual-card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dual-card .cat-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.dual-card h3 {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
  color: var(--dark);
}

.dual-card h3:hover {
  color: var(--orange);
  cursor: pointer;
}

.dual-card .meta {
  font-size: 11px;
  color: var(--gray-500);
}

.dual-list-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: center;
}

.dual-list-item .thumb {
  width: 56px;
  min-width: 56px;
  height: 42px;
  border-radius: 4px;
  background: var(--gray-100);
  overflow: hidden;
  flex-shrink: 0;
}

.dual-list-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dual-list-item h4 {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

.dual-list-item h4:hover {
  color: var(--orange);
  cursor: pointer;
}


/* =============================================================================
   13. SINGLE POST
   ============================================================================= */

/* Breadcrumb */
.breadcrumb {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 24px 0;
  font-size: 12px;
  color: var(--gray-500);
}

.breadcrumb a {
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: var(--orange);
}

.breadcrumb .sep {
  margin: 0 6px;
}

/* Article header */
.article-header {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 24px 0;
}

.article-header .cat-label {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: var(--dark);
}

.article-header .excerpt {
  font-size: 18px;
  color: var(--gray-700);
  line-height: 1.5;
  margin-bottom: 20px;
  font-weight: 400;
}

/* Article meta bar */
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.author-info .name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.author-info .date {
  font-size: 12px;
  color: var(--gray-500);
}

.meta-right {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.meta-right .share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--gray-500);
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}

.meta-right .share-btn:hover {
  background: var(--orange);
  color: var(--white);
}

.read-time {
  font-size: 12px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Featured image */
.featured-img {
  max-width: 800px;
  margin: 0 auto 32px;
  padding: 0 24px;
}

.featured-img .img {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a3040, #0d2030);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.featured-img .caption {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 8px;
  text-align: center;
}

/* Article body */
.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-content {
  max-width: 680px;
}

.article-content p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 24px;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 900;
  color: var(--dark);
  margin: 40px 0 16px;
  letter-spacing: -0.5px;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin: 32px 0 12px;
  letter-spacing: -0.3px;
}

.article-content h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
  margin: 24px 0 8px;
}

.article-content blockquote {
  border-left: 4px solid var(--orange);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(252, 76, 2, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-content blockquote p {
  font-size: 18px;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 0;
  font-weight: 500;
}

.article-content ul,
.article-content ol {
  margin: 0 0 24px 20px;
  list-style: initial;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  font-size: 17px;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.article-content a {
  color: var(--orange);
  text-decoration: underline;
}

.article-content a:hover {
  color: var(--orange-hover);
}

.article-content strong {
  color: var(--dark);
  font-weight: 700;
}

.article-content .img-block {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #2a3040, #1a2030);
  border-radius: var(--radius);
  margin: 32px 0;
  overflow: hidden;
}

.article-content .img-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info box */
.info-box {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
}

.info-box h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-box h4 .dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}

.info-box p {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.6;
  margin: 0;
}


/* =============================================================================
   14. TAGS & AUTHOR BOX
   ============================================================================= */

/* Tags */
.article-tags {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-tags .label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  margin-right: 4px;
}

.tag {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.15s;
}

.tag:hover {
  background: var(--orange);
  color: var(--white);
}

/* Author box */
.author-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.author-box-inner {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.author-box .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 900;
  font-size: 24px;
  min-width: 64px;
  flex-shrink: 0;
}

.author-box h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.author-box p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
  margin: 0;
}

/* Related posts */
.related {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.related-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  display: block;
  text-decoration: none;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.related-card .img {
  aspect-ratio: 16 / 10;
  background: var(--gray-100);
  overflow: hidden;
}

.related-card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card .body {
  padding: 16px;
}

.related-card .date {
  font-size: 11px;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 6px;
}

.related-card h3 {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--dark);
  letter-spacing: -0.2px;
}


/* =============================================================================
   15. ARCHIVE & SEARCH
   ============================================================================= */

/* Archive page */
.archive-header {
  margin-bottom: 32px;
}

.archive-header h1 {
  font-size: 28px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 8px;
}

.archive-header p {
  font-size: 14px;
  color: var(--gray-500);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

/* Search results */
.search-results-header {
  margin-bottom: 24px;
}

.search-results-header h2 {
  font-size: 22px;
  font-weight: 900;
  color: var(--dark);
}

.search-results-header .search-query {
  color: var(--orange);
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
}

.search-result-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: flex-start;
}

.search-result-item .thumb {
  width: 120px;
  min-width: 120px;
  height: 80px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  overflow: hidden;
  flex-shrink: 0;
}

.search-result-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-item h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.search-result-item h3:hover {
  color: var(--orange);
  cursor: pointer;
}

.search-result-item p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
  margin-bottom: 6px;
}

.search-result-item .meta {
  font-size: 11px;
  color: var(--gray-300);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin: 40px 0;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
  color: var(--gray-700);
  background: var(--white);
}

.pagination a:hover {
  background: var(--orange-light);
  color: var(--orange);
}

.pagination .current {
  background: var(--orange);
  color: var(--white);
}

.pagination .dots {
  background: none;
  color: var(--gray-300);
  cursor: default;
}

.pagination .prev,
.pagination .next {
  width: auto;
  padding: 0 14px;
}


/* =============================================================================
   16. SIDEBAR
   ============================================================================= */

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.sidebar-widget h3 {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.2px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
  display: flex;
  align-items: center;
}

.sidebar-widget h3 .bar {
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--orange);
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Support CTA widget */
.support-cta {
  background: linear-gradient(135deg, #FC4C02 0%, #E34400 50%, #C23600 100%);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 16px;
  text-align: center;
}

.support-cta h3 {
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
  border: none;
  padding: 0;
}

.support-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.support-cta .btn {
  display: inline-block;
  background: var(--white);
  color: var(--orange);
  padding: 10px 28px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s;
}

.support-cta .btn:hover {
  transform: scale(1.03);
}

/* Newsletter widget */
.newsletter {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.newsletter h3 {
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 6px;
  border: none;
  padding: 0;
}

.newsletter p {
  color: var(--gray-300);
  font-size: 12px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.newsletter input {
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 8px;
  font-family: inherit;
  outline: none;
}

.newsletter input:focus {
  box-shadow: 0 0 0 2px var(--orange);
}

.newsletter button {
  width: 100%;
  padding: 11px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.newsletter button:hover {
  background: var(--orange-hover);
}

/* Social stats widget */
.social-row {
  display: flex;
  gap: 8px;
}

.social-box {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
}

.social-box .num {
  font-size: 18px;
  font-weight: 900;
  color: var(--dark);
}

.social-box .label {
  font-size: 10px;
  color: var(--gray-500);
  font-weight: 600;
  margin-top: 2px;
}

/* Recommended items */
.rec-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

.rec-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rec-item .thumb {
  width: 60px;
  min-width: 60px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  overflow: hidden;
  flex-shrink: 0;
}

.rec-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rec-item .cat-label {
  font-size: 9px;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.rec-item h4 {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dark);
}

.rec-item h4:hover {
  color: var(--orange);
  cursor: pointer;
}

/* Generic category label class */
.cat-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* =============================================================================
   17. FOOTER
   ============================================================================= */

.footer {
  background: var(--dark);
  margin-top: 48px;
}

.footer .wrap {
  padding: 48px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer h4 {
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}

.footer p {
  color: var(--gray-500);
  font-size: 13px;
  line-height: 1.7;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 10px;
}

.footer a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s;
}

.footer a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid var(--gray-900);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--gray-500);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.15s;
}

.footer-bottom a:hover {
  color: var(--orange);
}

.footer-logo {
  font-size: 18px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-logo span {
  color: var(--orange);
}


/* =============================================================================
   18. 404 PAGE
   ============================================================================= */

.error-404 {
  text-align: center;
  padding: 80px 24px;
  max-width: 600px;
  margin: 0 auto;
}

.error-404 .error-code {
  font-size: 96px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -4px;
}

.error-404 h1 {
  font-size: 28px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 12px;
}

.error-404 p {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 32px;
}

.error-404 .btn-primary {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 12px 32px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.error-404 .btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}


/* =============================================================================
   19. COMMENTS
   ============================================================================= */

.comments-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.comments-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gray-100);
}

/* Comment list */
.comment-list {
  list-style: none;
  margin-bottom: 40px;
}

.comment-list .comment {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100);
}

.comment-list .comment:last-child {
  border-bottom: none;
}

.comment-list .comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gray-300), var(--gray-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.comment-list .comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.comment-list .comment-author {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.comment-list .comment-date {
  font-size: 12px;
  color: var(--gray-300);
}

.comment-list .comment-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-700);
  margin: 0;
}

.comment-list .comment-reply-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
}

.comment-list .comment-reply-link:hover {
  text-decoration: underline;
}

/* Nested comments */
.comment-list .children {
  list-style: none;
  margin-left: 60px;
  margin-top: 0;
}

/* Comment form */
.comment-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
}

.comment-form-wrap h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 20px;
}

.comment-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.comment-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(252, 76, 2, 0.1);
}

.comment-form textarea {
  min-height: 140px;
  resize: vertical;
  margin-bottom: 16px;
}

.comment-form .submit-btn {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.15s;
}

.comment-form .submit-btn:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

/* WordPress default comment form overrides */
#respond {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 32px;
}

#respond h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 20px;
}

.comment-form p {
  margin-bottom: 16px;
}

.comment-form p label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.comment-form p input[type="text"],
.comment-form p input[type="email"],
.comment-form p input[type="url"],
.comment-form p textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--dark);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.comment-form p input[type="text"]:focus,
.comment-form p input[type="email"]:focus,
.comment-form p input[type="url"]:focus,
.comment-form p textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(252, 76, 2, 0.1);
}

.comment-form p input[type="submit"] {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  width: auto;
}

.comment-form p input[type="submit"]:hover {
  background: var(--orange-hover);
}


/* =============================================================================
   20. ACCESSIBILITY
   ============================================================================= */

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--orange);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* Screen reader text */
.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;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.2);
  clip: auto !important;
  clip-path: none;
  color: var(--dark);
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Focus outlines for all interactive elements */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* Remove outline for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}


/* =============================================================================
   21. RESPONSIVE
   ============================================================================= */

/* Tablet: 1024px and below */
@media (max-width: 1024px) {

  /* Layout */
  .content-layout {
    grid-template-columns: 1fr;
  }

  .content-layout > .sidebar {
    order: 2;
  }

  /* Hero */
  .hero-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  /* News grid — 2 columns */
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Category layout — keep 2 cols */
  .cat-layout {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer grid */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  /* Related grid */
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Archive grid */
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 768px and below */
@media (max-width: 768px) {

  /* Navigation — mobile menu */
  .nav .wrap {
    flex-wrap: wrap;
    padding: 0;
    position: relative;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-left: auto;
  }

  /* Hide nav links by default on mobile */
  .nav .wrap > a {
    display: none;
    flex-basis: 100%;
    padding: 12px 24px;
    border-bottom: 1px solid var(--gray-100);
    border-left: none;
    border-right: none;
  }

  /* Show links when nav is open */
  .nav-open .nav .wrap > a {
    display: block;
  }

  .nav-toggle-label {
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 48px;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
  }

  /* Hero — single column */
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .hero-big {
    grid-row: auto;
  }

  .hero-side {
    grid-template-rows: 1fr 1fr;
  }

  .hero-med .img {
    aspect-ratio: 16 / 9;
  }

  /* Hero strip — 2 cols on mobile */
  .hero-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Layout */
  .main {
    padding: 16px;
  }

  /* News grid — 2 cols on mobile */
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Cat layout — single column */
  .cat-layout {
    grid-template-columns: 1fr;
  }

  /* Carousel — single column */
  .carousel-track {
    grid-template-columns: 1fr;
  }

  /* Dual grid — single column */
  .dual-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Related grid — 2 cols */
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Archive grid — single column */
  .archive-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Article */
  .article-header h1 {
    font-size: 26px;
    letter-spacing: -0.5px;
  }

  .article-header .excerpt {
    font-size: 16px;
  }

  .article-content p,
  .article-content li {
    font-size: 16px;
  }

  .article-content h2 {
    font-size: 22px;
  }

  .article-content h3 {
    font-size: 18px;
  }

  .article-content blockquote p {
    font-size: 16px;
  }

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

  .meta-right {
    margin-left: 0;
  }

  /* Author box */
  .author-box-inner {
    flex-direction: column;
    text-align: center;
  }

  /* Tags */
  .article-tags {
    padding: 24px 16px;
  }

  /* Header */
  .header .wrap {
    flex-wrap: wrap;
    gap: 12px;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .search-box {
    flex: 1;
    max-width: 100%;
    width: auto;
  }

  /* Comment form */
  .comment-form .form-row {
    grid-template-columns: 1fr;
  }

  /* Section head */
  .section-head h2 {
    font-size: 16px;
  }

  /* Error 404 */
  .error-404 .error-code {
    font-size: 72px;
  }

  .error-404 h1 {
    font-size: 22px;
  }
}

/* Very small screens: 480px and below */
@media (max-width: 480px) {

  /* News grid — single column */
  .news-grid {
    grid-template-columns: 1fr;
  }

  /* Hero strip — single column */
  .hero-strip {
    grid-template-columns: 1fr;
  }

  /* Related grid — single column */
  .related-grid {
    grid-template-columns: 1fr;
  }

  .wrap {
    padding: 0 16px;
  }

  .main {
    padding: 12px 16px;
  }
}
