/* ==========================================================================
   O Sim BR — Modern Archive Template
   Theme: The Sims nostalgic, light, colorful
   ========================================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Quicksand:wght@400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  /* The Sims-inspired palette — vibrant */
  --plumbob-green: #43A047;
  --plumbob-light: #66BB6A;
  --plumbob-dark: #1B5E20;
  --sims-blue: #1E88E5;
  --sims-blue-dark: #1565C0;
  --sims-yellow: #FDD835;
  --sims-pink: #EC407A;
  --sims-orange: #FF9800;

  /* UI colors */
  --bg-primary: #F5F9F5;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-sidebar: #F0F7F0;
  --bg-nav: linear-gradient(135deg, #1B5E20, #2E7D32, #388E3C);
  --bg-footer: #1B5E20;

  --text-primary: #1A1A2E;
  --text-secondary: #555770;
  --text-light: #9CA3AF;
  --text-white: #FFFFFF;
  --text-link: #1B5E20;

  --border-light: #E8E8E8;
  --border-green: #A5D6A7;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
  --shadow-card: 0 2px 12px rgba(27, 94, 32, 0.08), 0 0 0 1px rgba(27, 94, 32, 0.04);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-primary: 'Nunito', 'Segoe UI', sans-serif;
  --font-secondary: 'Quicksand', 'Segoe UI', sans-serif;

  --max-width: 1200px;
  --nav-height: 70px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--plumbob-green);
}

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

ul, ol {
  list-style: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ---------- Plumbob decoration (CSS-only diamond) ---------- */
.plumbob {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--plumbob-light), var(--plumbob-green));
  transform: rotate(45deg);
  border-radius: 2px;
  flex-shrink: 0;
}

.plumbob--sm {
  width: 8px;
  height: 8px;
}

.plumbob--lg {
  width: 20px;
  height: 20px;
}

/* ---------- Archive Banner ---------- */
.archive-banner {
  background: linear-gradient(90deg, #1B5E20, #2E7D32, #43A047, #2E7D32, #1B5E20);
  color: rgba(255,255,255,0.9);
  text-align: center;
  padding: 6px 16px;
  font-family: var(--font-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.archive-banner a {
  color: var(--sims-yellow);
  text-decoration: underline;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-bottom: 3px solid var(--plumbob-green);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo img {
  height: 40px;
  width: auto;
  transition: transform 0.2s ease;
}

.nav__logo:hover img {
  transform: scale(1.05);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  position: relative;
  padding: 8px 14px;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav__link:hover,
.nav__link--active {
  color: var(--plumbob-dark);
  background: var(--bg-sidebar);
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--plumbob-green);
  border-radius: 2px;
}

/* Dropdown — Level 1 */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-white);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 220px;
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 200;
}

.nav__dropdown:hover > .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav__dropdown-menu a,
.nav__dropdown-menu > .nav__submenu > .nav__submenu-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav__dropdown-menu a:hover {
  background: var(--bg-sidebar);
  color: var(--plumbob-dark);
}

/* Dropdown — Level 2 (accordion inline) */
.nav__submenu {
  position: relative;
}

.nav__submenu-label {
  cursor: pointer;
  font-family: var(--font-secondary);
  font-weight: 600;
}

.nav__submenu-label::after {
  content: "\25BE";
  margin-left: auto;
  font-size: 0.65rem;
  opacity: 0.5;
  transition: transform 0.2s ease;
}

.nav__submenu:hover > .nav__submenu-label::after {
  transform: rotate(-90deg);
}

.nav__submenu-items {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 12px;
  border-left: 2px solid var(--border-green);
  margin-left: 12px;
}

/* Only opens via JS .open class — click, not hover */
.nav__submenu.open > .nav__submenu-items {
  max-height: 600px;
}

.nav__submenu.open > .nav__submenu-label {
  background: var(--bg-sidebar);
  color: var(--plumbob-dark);
}

.nav__submenu.open > .nav__submenu-label::after {
  transform: rotate(180deg);
}

.nav__submenu-items a {
  font-size: 0.8rem !important;
  padding: 5px 10px !important;
}

/* Nested submenu (e.g. Series > Familia Karasinski > Temporadas) */
.nav__submenu .nav__submenu {
  margin-left: 0;
}

.nav__submenu .nav__submenu > .nav__submenu-label {
  font-size: 0.8rem !important;
  padding: 5px 10px !important;
}

.nav__submenu .nav__submenu > .nav__submenu-items {
  border-left-color: var(--plumbob-light);
  margin-left: 8px;
  padding-left: 8px;
}

.nav__submenu .nav__submenu > .nav__submenu-items a {
  font-size: 0.78rem !important;
  padding: 4px 8px !important;
}

/* Divider inside dropdown */
.nav__dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 6px 4px;
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ---------- Hero / Header ---------- */
.hero {
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 30%, #B2DFDB 60%, #E0F2F1 100%);
  padding: 20px 0;
  text-align: center;
  border-bottom: 3px solid var(--plumbob-green);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(67,160,71,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(30,136,229,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__logo-img {
  width: 100%;
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 0 auto 16px;
}

.hero__subtitle {
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 700;
  color: var(--plumbob-dark);
  position: relative;
  margin-bottom: 6px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-xl);
  font-family: var(--font-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--plumbob-dark);
  position: relative;
}

/* ---------- Main Layout ---------- */
.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  padding: 24px 0;
}

.main-layout > main {
  min-width: 0;
  overflow: hidden;
}

/* ---------- Section Headers ---------- */
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: var(--font-secondary);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--plumbob-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section-header__line {
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, var(--plumbob-green), transparent);
  border-radius: 2px;
}

/* ---------- Post Cards ---------- */
.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

.post-card:hover {
  box-shadow: 0 6px 24px rgba(27, 94, 32, 0.12);
  transform: translateY(-1px);
}

.post-card + .post-card {
  margin-top: 20px;
}

.post-card__banner {
  width: 100%;
  height: 80px;
  object-fit: cover;
  filter: brightness(0.95);
}

.post-card__body {
  padding: 16px 20px;
  overflow: hidden;
  min-width: 0;
}

.post-card__body img {
  max-width: 100% !important;
  height: auto !important;
  width: auto;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.post-card__category {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: #E8F5E9;
  color: var(--plumbob-dark);
  border-radius: var(--radius-xl);
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.post-card__category--sims4 { background: #1E88E5; color: #FFF; }
.post-card__category--sims3 { background: #F57C00; color: #FFF; }
.post-card__category--sims2 { background: #E53935; color: #FFF; }
.post-card__category--sims1 { background: #8E24AA; color: #FFF; }
.post-card__category--site  { background: #43A047; color: #FFF; }

.post-card__title {
  font-family: var(--font-secondary);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 8px;
}

.post-card__title a {
  color: inherit;
}

.post-card__title a:hover {
  color: var(--plumbob-green);
}

.post-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.post-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 0.82rem;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--plumbob-green), var(--plumbob-dark));
  border-radius: var(--radius-xl);
  transition: all 0.2s ease;
}

.post-card__read-more:hover {
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(27, 94, 32, 0.3);
  transform: translateY(-1px);
}

.post-card__share {
  display: flex;
  gap: 8px;
}

.post-card__share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.post-card__share a:hover {
  background: var(--plumbob-green);
  color: white;
}

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

.pagination__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.pagination__btn:hover {
  border-color: var(--plumbob-green);
  color: var(--plumbob-green);
}

.pagination__btn--active {
  background: linear-gradient(135deg, var(--plumbob-green), var(--plumbob-dark));
  color: white;
  border-color: var(--plumbob-green);
  box-shadow: 0 2px 8px rgba(27, 94, 32, 0.3);
}

/* ---------- Ad Blocks ---------- */
.ad-block {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  text-align: center;
  min-height: 90px;
  width: 100%;
  overflow: hidden;
}

.ad-block--hero {
  margin-top: 12px;
  border-radius: var(--radius-lg);
  min-height: 50px;
}

.ad-block--inline {
  margin: 24px 0;
}

.ad-block--sidebar {
  min-height: 100px;
}

.ad-block ins {
  display: block !important;
}

/* ---------- Sidebar ---------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar__card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.sidebar__card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #1B5E20, #2E7D32);
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar__card-header .plumbob {
  background: linear-gradient(135deg, var(--sims-yellow), #FFB300);
}

.sidebar__card-body {
  padding: 12px 16px;
}

/* Games navigation in sidebar */
.sidebar__game-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar__game-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.sidebar__game-link:hover {
  background: var(--bg-sidebar);
  color: var(--plumbob-dark);
}

.sidebar__game-link img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* Sub-links (expansions, etc) */
.sidebar__sub-list {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__sub-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.sidebar__sub-link:hover {
  background: var(--bg-sidebar);
  color: var(--plumbob-dark);
}

/* About card */
.sidebar__about {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.sidebar__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.sidebar__stat {
  text-align: center;
  padding: 12px;
  background: linear-gradient(135deg, #E8F5E9, #F1F8E9);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-green);
}

.sidebar__stat-number {
  display: block;
  font-family: var(--font-secondary);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--plumbob-dark);
  line-height: 1.2;
}

.sidebar__stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ---------- Video Wrapper ---------- */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  margin: 20px auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Content Tables ---------- */
.content-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-green);
  table-layout: fixed;
  word-wrap: break-word;
}

.content-table td,
.content-table th {
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

.content-table tr:nth-child(odd) td {
  background: #FAFFF9;
}

.content-table thead td,
.content-table thead th,
.content-table th {
  background: var(--plumbob-green);
  color: white;
  font-weight: 700;
  font-family: var(--font-secondary);
}

/* ---------- Text Center Helper ---------- */
.text-center {
  text-align: center;
}

/* ---------- Single Post Page ---------- */
.post-single {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-green);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.post-single__banner {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-single__body {
  padding: 32px;
}

.post-single__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.post-single__title {
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 24px;
}

.post-single__content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-primary);
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.post-single__content p {
  margin-bottom: 16px;
}

.post-single__content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: var(--radius-md);
  margin: 20px auto;
  box-shadow: var(--shadow-sm);
  display: block;
}

.post-single__content a {
  color: var(--plumbob-green);
  font-weight: 600;
}

.post-single__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.post-single__content td,
.post-single__content th {
  padding: 8px 12px;
  border: 1px solid var(--border-light);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: var(--font-secondary);
  font-size: 0.85rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-secondary);
}

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

.breadcrumb__sep {
  color: var(--text-light);
}

/* ---------- Info Page ---------- */
.info-page {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-green);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.info-page__header {
  padding: 32px;
  background: linear-gradient(135deg, #E8F5E9 0%, #E0F2F1 100%);
  border-bottom: 1px solid var(--border-green);
}

.info-page__title {
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

.info-page__subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.info-page__content {
  padding: 32px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.info-page__content p {
  margin-bottom: 16px;
}

.info-page__content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: var(--radius-md);
  margin: 16px auto;
  box-shadow: var(--shadow-sm);
  display: block;
}

.info-page__content h2,
.info-page__content h3 {
  font-family: var(--font-secondary);
  margin: 24px 0 12px;
}

/* Image gallery */
.info-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 24px 0;
  overflow: hidden;
}

.info-gallery img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-green);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.info-gallery img:hover {
  transform: scale(1.03);
}

/* ---------- Footer ---------- */
.footer {
  background: linear-gradient(180deg, #1B5E20 0%, #0D3B12 100%);
  color: var(--text-white);
  padding: 32px 0 20px;
  margin-top: 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer__brand {
  font-family: var(--font-secondary);
}

.footer__brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer__brand-desc {
  font-size: 0.88rem;
  opacity: 0.85;
  line-height: 1.6;
}

.footer__section-title {
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  opacity: 0.7;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__links a {
  color: var(--text-white);
  opacity: 0.85;
  font-size: 0.88rem;
  transition: opacity 0.2s ease;
}

.footer__links a:hover {
  opacity: 1;
  color: var(--sims-yellow);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
  opacity: 0.7;
}

.footer__archive-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  font-size: 0.78rem;
}

/* ---------- Lightbox / Photo Modal ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  cursor: default;
  transform: scale(0.92);
  transition: transform 0.25s ease;
}

.lightbox-overlay.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Make content images look clickable */
.post-single__content img,
.info-page__content img {
  cursor: zoom-in;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-single__content img:hover,
.info-page__content img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

/* External link icon */
a[target="_blank"]::after {
  content: " \2197";
  font-size: 0.75em;
  opacity: 0.5;
}

/* Don't add icon to image links or nav links */
a[target="_blank"]:has(img)::after,
.nav a[target="_blank"]::after,
.footer a[target="_blank"]::after,
.info-gallery a::after {
  content: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr 280px;
    gap: 24px;
  }

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: var(--bg-white);
    padding: 16px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 300;
  }

  .nav__links--open {
    transform: translateX(0);
  }

  .nav__toggle {
    display: flex;
  }

  /* Top-level nav links on mobile */
  .nav__link {
    display: block;
    padding: 14px 16px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-light);
    border-radius: 0;
  }

  /* Reset dropdown to vertical flow */
  .nav__dropdown {
    width: 100%;
  }

  .nav__dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    max-height: none;
    overflow: visible;
    padding: 0 0 0 16px;
    min-width: 0;
    display: none;
  }

  .nav__dropdown.open .nav__dropdown-menu {
    display: flex;
    flex-direction: column;
  }

  /* All items inside dropdown must be block */
  .nav__dropdown-menu > a,
  .nav__dropdown-menu > .nav__submenu,
  .nav__dropdown-menu > .nav__dropdown-divider {
    display: block;
    width: 100%;
  }

  .nav__dropdown-menu a {
    display: flex;
    width: 100%;
    padding: 10px 12px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    white-space: normal;
  }

  /* Submenu label on mobile */
  .nav__submenu-label {
    display: flex !important;
    width: 100%;
    padding: 10px 12px !important;
    font-size: 0.9rem !important;
  }

  /* Submenu items on mobile */
  .nav__submenu-items {
    margin-left: 4px;
    padding-left: 12px;
  }

  .nav__submenu-items a {
    padding: 9px 10px !important;
    font-size: 0.85rem !important;
  }

  /* Divider on mobile */
  .nav__dropdown-divider {
    height: 1px;
    margin: 6px 0;
  }


  .main-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 32px 0;
  }

  .hero__logo-img {
    height: 140px;
  }

  .sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .post-single__body {
    padding: 20px;
  }

  .post-single__title {
    font-size: 1.4rem;
  }

  .info-page__header,
  .info-page__content {
    padding: 20px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

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

  .post-card__body {
    padding: 16px;
  }

  .sidebar__stats {
    grid-template-columns: 1fr 1fr;
  }

  .info-gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .pagination__btn {
    min-width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }
}
