/* ============================================================
   FULLPROGRAMLARINDIR.NET.TR — COMPLETE STYLESHEET v2.0
   Exact clone of fullprogramlarindir.net design
   ============================================================ */

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Oswald:wght@400;500;600&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --primary:       #c0611a;
  --primary-dark:  #a04e14;
  --secondary:     #e8820a;
  --accent:        #f0a500;

  --dark:          #2a1a0a;
  --dark2:         #3d2410;
  --dark3:         #5a3a1a;

  --gray-100:      #f8f6f3;
  --gray-200:      #ede8e2;
  --gray-300:      #d9cfc4;
  --gray-500:      #a8998a;
  --gray-700:      #5c4f42;
  --gray-900:      #2a1a0a;
  --white:         #ffffff;
  --success:       #28a745;
  --warning:       #ffc107;
  --danger:        #dc3545;
  --info:          #17a2b8;

  --header-bg:     #2a1a0a;
  --nav-bg:        #3d2410;
  --nav-hover:     #5a3a1a;
  --nav-active:    #e8820a;

  --font-body:     'Roboto', sans-serif;
  --font-heading:  'Oswald', sans-serif;

  --shadow-sm:     0 1px 3px rgba(0,0,0,.12);
  --shadow:        0 2px 8px rgba(0,0,0,.15);
  --shadow-lg:     0 4px 20px rgba(0,0,0,.2);
  --radius:        4px;
  --radius-lg:     8px;
  --transition:    0.2s ease;

  --content-width: 1200px;
  --sidebar-width: 280px;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family:      var(--font-body);
  background:       var(--gray-100);
  color:            var(--gray-900);
  line-height:      1.65;
  min-height:       100vh;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── CONTAINER ── */
.container {
  max-width: var(--content-width);
  margin:    0 auto;
  padding:   0 15px;
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position:   sticky;
  top:        0;
  z-index:    1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.header-inner {
  display:     flex;
  align-items: center;
  background:  linear-gradient(135deg, #2a1a0a 0%, #3d2410 100%);
  padding:     0 30px;
  min-height:  72px;
  border-bottom: 2px solid var(--secondary);
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.site-logo a { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 44px; width: auto; }
.logo-text {
  font-family:    var(--font-heading);
  font-size:      1.65rem;
  font-weight:    600;
  color:          var(--white);
  white-space:    nowrap;
  letter-spacing: 1px;
  text-shadow:    0 1px 3px rgba(0,0,0,.3);
}
.logo-text span { color: var(--secondary); }

/* Search Bar */
.header-search { flex: 1; }
.search-form {
  display:       flex;
  background:    rgba(0,0,0,.28);
  border:        1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  overflow:      hidden;
  transition:    border-color var(--transition), box-shadow var(--transition);
}
.search-form:focus-within {
  border-color: var(--secondary);
  box-shadow:   0 0 0 3px rgba(232,130,10,.18);
}
.search-form input {
  flex:       1;
  background: transparent;
  border:     none;
  padding:    12px 18px;
  color:      var(--white);
  font-size:  0.92rem;
  outline:    none;
}
.search-form input::placeholder { color: rgba(255,255,255,.35); }
.search-form button {
  padding:     12px 24px;
  color:       var(--white);
  font-size:   1rem;
  background:  var(--secondary);
  transition:  background var(--transition);
  flex-shrink: 0;
}
.search-form button:hover { background: var(--primary); }

/* Hamburger */
.hamburger {
  display:        none;
  flex-direction: column;
  gap:            5px;
  padding:        8px;
  margin-left:    auto;
}
.hamburger span {
  display:          block;
  width:            24px;
  height:           2px;
  background:       var(--white);
  transition:       transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   NAVIGATION
   ============================================================ */
#main-nav {
  background: linear-gradient(90deg, #3d2410 0%, #4a2c14 100%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav-list {
  display:     flex;
  align-items: stretch;
  flex-wrap:   wrap;
  width:       100%;
  padding:     0 20px;
}

.nav-item { position: relative; }

.nav-link {
  display:      flex;
  align-items:  center;
  gap:          6px;
  padding:      11px 14px;
  color:        rgba(255,255,255,0.85);
  font-size:    0.84rem;
  font-weight:  500;
  white-space:  nowrap;
  transition:   background var(--transition), color var(--transition);
  border-bottom: 3px solid transparent;
  border-top:   3px solid transparent;
}
.nav-link:hover,
.nav-item:hover > .nav-link {
  color:          var(--white);
  background:     rgba(255,255,255,.07);
  border-bottom-color: var(--secondary);
}
.nav-link.active {
  color:          var(--white);
  border-bottom-color: var(--accent);
  background:     rgba(255,255,255,.05);
}
.nav-link .arrow {
  font-size: 0.6rem;
  margin-left: 2px;
  transition: transform var(--transition);
}
.nav-item:hover .arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  display:      none;
  position:     absolute;
  top:          100%;
  left:         0;
  min-width:    220px;
  background:   #2a1a0a;
  box-shadow:   0 8px 24px rgba(0,0,0,.4);
  border-top:   2px solid var(--secondary);
  border-radius: 0 0 6px 6px;
  z-index:      999;
  animation:    dropIn 0.15s ease;
}
@keyframes dropIn {
  from { opacity:0; transform:translateY(-8px); }
  to   { opacity:1; transform:translateY(0); }
}
.nav-item:hover > .dropdown { display: block; }

.dropdown li a {
  display:     flex;
  align-items: center;
  gap:         8px;
  padding:     9px 16px;
  color:       rgba(255,255,255,0.78);
  font-size:   0.83rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition:  background var(--transition), color var(--transition), padding-left var(--transition);
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover {
  background:    rgba(255,255,255,.08);
  color:         var(--white);
  padding-left:  22px;
}
.dropdown li a i { font-size: 0.8rem; color: var(--secondary); width: 16px; }

/* Level 2 dropdown */
.dropdown-level2 {
  display:  none;
  position: absolute;
  left:     100%;
  top:      0;
  min-width: 200px;
  background: var(--dark2);
  box-shadow: var(--shadow-lg);
  border-top: 2px solid var(--primary);
}
.dropdown li:hover > .dropdown-level2 { display: block; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-bar {
  background:   #3d2410;
  padding:      8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-top:   1px solid rgba(255,255,255,0.04);
}
.breadcrumb {
  display:     flex;
  flex-wrap:   wrap;
  align-items: center;
  gap:         4px;
  font-size:   0.8rem;
  color:       rgba(255,255,255,0.6);
}
.breadcrumb strong { color: rgba(255,255,255,0.7); margin-right: 6px; }
.breadcrumb a { color: rgba(255,255,255,0.75); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb .sep { color: rgba(255,255,255,0.3); }
.breadcrumb span:last-child { color: var(--white); font-weight: 500; }

/* ============================================================
   PAGE LAYOUT — Main content + Sidebar
   ============================================================ */
#page-wrapper {
  display:     flex;
  gap:         20px;
  padding:     20px 15px;
  align-items: flex-start;
}

/* #main-col = left content area (views inject here) */
#main-col {
  flex:      1;
  min-width: 0;
}

/* .main-layout used inside views for post/category pages */
.main-layout {
  display: block;
  width:   100%;
}

#main-content {
  width:     100%;
  min-width: 0;
}

.single-post-main {
  width: 100%;
}

/* ============================================================
   SLIDER SECTION
   ============================================================ */
.slider-section { margin-bottom: 20px; }

/* ── FULL SLIDER ── */
.fslider {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
  background: #1e1008;
  user-select: none;
}

/* Track */
.fslider__track { position: relative; height: 460px; }

/* Each slide */
.fslider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.03);
}
.fslider__slide.active {
  opacity: 1;
  z-index: 2;
  transform: scale(1);
}
.fslider__slide.slide-out {
  opacity: 0;
  z-index: 1;
  transform: scale(0.97);
}

.fslider__link {
  display: block;
  height: 100%;
  position: relative;
}

/* Image */
.fslider__img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.fslider__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}
.fslider__slide.active .fslider__img {
  transform: scale(1.06);
}

/* Dark overlay */
.fslider__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.1) 0%,
    rgba(0,0,0,.25) 50%,
    rgba(0,0,0,.72) 100%
  );
}

/* Info box (bottom) */
.fslider__info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 22px 22px;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.55s ease 0.2s, opacity 0.55s ease 0.2s;
}
.fslider__slide.active .fslider__info {
  transform: translateY(0);
  opacity: 1;
}

.fslider__cat {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.fslider__title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 10px;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fslider__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
  color: rgba(255,255,255,.75);
}
.fslider__meta i { margin-right: 4px; color: var(--secondary); }

.fslider__readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--secondary);
  color: #fff !important;
  padding: 5px 14px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  margin-left: auto;
  transition: background 0.2s;
  letter-spacing: 0.3px;
}
.fslider__readmore:hover { background: var(--primary); }

/* Arrows */
.fslider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.fslider__arrow:hover {
  background: var(--secondary);
  transform: translateY(-50%) scale(1.1);
}
.fslider__arrow--prev { left: 12px; }
.fslider__arrow--next { right: 12px; }

/* Dots */
.fslider__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}
.fslider__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  transition: background 0.25s, width 0.25s, border-radius 0.25s;
  cursor: pointer;
}
.fslider__dot.active {
  background: var(--secondary);
  width: 24px;
  border-radius: 4px;
}

/* Progress bar */
.fslider__progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,.15);
  z-index: 10;
}
.fslider__progress-bar {
  height: 100%;
  background: var(--secondary);
  width: 0%;
  transition: width linear;
}

@media (max-width: 768px) {
  .fslider__track { height: 260px; }
  .fslider__title { font-size: 1.05rem; }
  .fslider__info { padding: 14px 14px 16px; }
  .fslider__arrow { width: 30px; height: 30px; font-size: 0.75rem; }
}
@media (max-width: 480px) {
  .fslider__track { height: 210px; }
  .fslider__title { font-size: 0.92rem; }
  .fslider__readmore { display: none; }
}

/* keep old classes harmless */
.slider-grid, .slider-card, .slider-img-wrap,
.slider-img, .slider-cat, .slider-info,
.slider-title, .slider-read, .slider-side { display: none; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { margin-bottom: 14px; }
.section-title {
  font-family:  var(--font-heading);
  font-size:    1.15rem;
  font-weight:  600;
  color:        var(--dark);
  display:      flex;
  align-items:  center;
  gap:          8px;
  padding:      10px 14px;
  background:   var(--white);
  border-left:  4px solid var(--secondary);
  border-radius: var(--radius);
  box-shadow:   var(--shadow-sm);
}
.section-title i { color: var(--secondary); }

/* ============================================================
   POST CARDS GRID — Beautiful v3.0
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

/* ── Card Base ── */
.post-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.post-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 1;
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
}
.post-card:hover::before { transform: scaleX(1); }

/* ── Thumbnail ── */
.post-card__thumb-link { display: block; }
.post-card__thumb-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--dark);
}
.post-card__thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card__thumb { transform: scale(1.08); }

/* Overlay on hover */
.post-card__thumb-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.5));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.post-card:hover .post-card__thumb-wrap::after { opacity: 1; }

/* Category badge */
.post-card__cat-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--white);
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  z-index: 2;
}

/* ── Body ── */
.post-card__body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}
.post-card__title a {
  color: var(--gray-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.post-card__title a:hover { color: var(--primary); }

.post-card__meta-info {
  display: flex;
  gap: 12px;
  font-size: 0.74rem;
  color: var(--gray-500);
  align-items: center;
}
.post-card__meta-info span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.post-card__meta-info i { color: var(--primary); font-size: 0.7rem; }

.post-card__excerpt {
  font-size: 0.82rem;
  color: var(--gray-700);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ── Footer ── */
.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  margin-top: auto;
}

.post-card__stats {
  display: flex;
  gap: 12px;
  font-size: 0.74rem;
  color: var(--gray-600);
}
.post-card__stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.post-card__stats i { font-size: 0.72rem; color: var(--gray-400); }

.post-card__read-more {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  background: var(--primary);
  padding: 5px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.post-card__read-more:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateX(2px);
}

/* ============================================================
   POPULAR SECTION (list style)
   ============================================================ */
.popular-section { margin-top: 24px; }

.popular-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   10px;
}

.popular-row { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.popular-row:hover { box-shadow: var(--shadow); }

.popular-row__link {
  display:   flex;
  gap:       10px;
  padding:   8px;
  color:     inherit;
}
.popular-row__link img {
  width:      120px;
  height:     70px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.popular-row__info {
  flex:           1;
  display:        flex;
  flex-direction: column;
  gap:            4px;
  min-width:      0;
}
.popular-row__title {
  font-size:    0.82rem;
  font-weight:  500;
  color:        var(--gray-900);
  display:      -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:     hidden;
  line-height:  1.35;
}
.popular-row__meta {
  display:   flex;
  gap:       8px;
  font-size: 0.73rem;
  color:     var(--gray-700);
  flex-wrap: wrap;
}
.popular-row__cat {
  background: var(--primary);
  color:      var(--white);
  padding:    1px 6px;
  border-radius: var(--radius);
  font-size:  0.68rem;
  font-weight: 600;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display:     flex;
  align-items: center;
  gap:         5px;
  flex-wrap:   wrap;
  margin:      20px 0;
  padding:     14px;
  background:  var(--white);
  border-radius: var(--radius);
  box-shadow:  var(--shadow-sm);
}
.pager-info {
  font-size:  0.8rem;
  color:      var(--gray-700);
  margin-right: auto;
}
.page-btn {
  display:       inline-flex;
  align-items:   center;
  justify-content: center;
  min-width:     34px;
  height:        34px;
  padding:       0 8px;
  border-radius: var(--radius);
  font-size:     0.85rem;
  font-weight:   500;
  color:         var(--gray-700);
  background:    var(--gray-100);
  border:        1px solid var(--gray-300);
  transition:    all var(--transition);
}
.page-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.page-btn--active { background: var(--primary); color: var(--white); border-color: var(--primary); cursor: default; }
.page-btn--prev, .page-btn--next { background: var(--dark); color: var(--white); border-color: var(--dark); }
.page-btn--prev:hover, .page-btn--next:hover { background: var(--primary); border-color: var(--primary); }
.page-dots { color: var(--gray-500); padding: 0 4px; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-main { max-width: 100%; }

.single-post {
  background:    var(--white);
  border-radius: var(--radius-lg);
  box-shadow:    var(--shadow-sm);
  overflow:      hidden;
  margin-bottom: 20px;
}

/* Post Header */
.post-header {
  padding:       20px 24px 16px;
  border-bottom: 1px solid var(--gray-200);
}
.post-title {
  font-family:   var(--font-heading);
  font-size:     1.6rem;
  font-weight:   600;
  color:         var(--dark);
  line-height:   1.3;
  margin-bottom: 12px;
}

.post-meta {
  display:   flex;
  flex-wrap: wrap;
  gap:       12px;
  font-size: 0.8rem;
  color:     var(--gray-700);
}
.meta-item { display: flex; align-items: center; gap: 5px; }
.meta-item i { color: var(--primary); }
.meta-item a:hover { color: var(--primary); }

/* Post Thumbnail */
.post-thumbnail { background: var(--dark); }
.post-main-img {
  width:       100%;
  max-height:  450px;
  object-fit:  cover;
}

/* Post Content */
.post-content {
  padding:    20px 24px;
  font-size:  0.95rem;
  line-height: 1.75;
  color:      var(--gray-900);
}
.post-content p       { margin-bottom: 10px; }
.post-content h2      { font-family: var(--font-heading); font-size: 1.3rem; color: var(--dark); margin: 20px 0 10px; }
.post-content h3      { font-family: var(--font-heading); font-size: 1.1rem; margin: 16px 0 8px; }
.post-content strong  { font-weight: 700; color: var(--dark); }
.post-content a       { color: var(--primary); text-decoration: underline; }
.post-content ul, .post-content ol { margin: 10px 0 10px 20px; }
.post-content li      { margin-bottom: 6px; }
.post-content img     { border-radius: var(--radius); margin: 10px 0; }
.post-content hr      { border: none; border-top: 2px solid var(--gray-200); margin: 20px 0; }

/* System Requirements */
.sys-req-box {
  margin:        20px 24px;
  border:        1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  overflow:      hidden;
}
.sys-req-box h3 {
  font-family:  var(--font-heading);
  font-size:    1rem;
  font-weight:  600;
  padding:      10px 16px;
  background:   var(--dark);
  color:        var(--white);
  display:      flex;
  align-items:  center;
  gap:          8px;
}
.sys-req-box h3 i { color: var(--primary); }
.sys-req-table { width: 100%; border-collapse: collapse; }
.sys-req-table tr { border-bottom: 1px solid var(--gray-200); }
.sys-req-table tr:last-child { border-bottom: none; }
.sys-req-table tr:nth-child(even) { background: var(--gray-100); }
.sys-req-table th {
  width:       160px;
  padding:     10px 16px;
  text-align:  left;
  font-size:   0.85rem;
  font-weight: 600;
  color:       var(--dark);
  background:  var(--gray-100);
  white-space: nowrap;
}
.sys-req-table th i { color: var(--primary); margin-right: 6px; }
.sys-req-table td {
  padding:   10px 16px;
  font-size: 0.85rem;
  color:     var(--gray-700);
}

/* Program Info Bar */
.prog-info-bar {
  display:       flex;
  flex-wrap:     wrap;
  gap:           0;
  margin:        0 24px 16px;
  border:        1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow:      hidden;
  background:    var(--white);
}
.prog-info-item {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  justify-content: center;
  padding:        12px 20px;
  flex:           1;
  min-width:      100px;
  border-right:   1px solid var(--gray-200);
  text-align:     center;
  gap:            4px;
}
.prog-info-item:last-child { border-right: none; }
.prog-info-item i { font-size: 1.2rem; color: var(--primary); }
.prog-info-label { font-size: 0.68rem; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.prog-info-val { font-size: 0.88rem; font-weight: 700; color: var(--dark); }

/* Download Box */
.download-box {
  margin:        16px 24px;
  border:        2px solid var(--primary);
  border-radius: var(--radius-lg);
  overflow:      hidden;
}
.download-box__header {
  background:  var(--primary);
  color:       var(--white);
  padding:     10px 16px;
  font-family: var(--font-heading);
  font-size:   1rem;
  font-weight: 600;
  display:     flex;
  align-items: center;
  gap:         8px;
}
.download-box__links {
  padding:  16px;
  display:  flex;
  flex-wrap: wrap;
  gap:      10px;
  background: var(--gray-100);
}

.dl-btn {
  display:       inline-flex;
  align-items:   center;
  gap:           8px;
  padding:       11px 22px;
  color:         var(--white);
  font-weight:   700;
  font-size:     0.9rem;
  border-radius: var(--radius);
  transition:    filter var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space:   nowrap;
  background:    var(--primary);
  box-shadow:    0 2px 8px rgba(192,97,26,.3);
}
.dl-btn:hover { filter: brightness(1.12); transform: translateY(-2px); color: var(--white); box-shadow: 0 4px 14px rgba(192,97,26,.4); }
.dl-btn i { font-size: 1rem; }
.dl-btn--torrent { background: #dc6a0a !important; }
.dl-btn--patch   { background: #7c4dca !important; }

/* Post Screenshots */
.post-screenshots {
  display:  flex;
  flex-wrap: wrap;
  gap:      10px;
  padding:  0 24px 16px;
}
.screenshot-img {
  width:         200px;
  height:        130px;
  object-fit:    cover;
  border-radius: var(--radius);
  border:        2px solid var(--gray-300);
  transition:    border-color var(--transition);
}
.screenshot-link:hover .screenshot-img { border-color: var(--primary); }

/* Tags */
.post-tags {
  padding:    0 24px 16px;
  display:    flex;
  flex-wrap:  wrap;
  align-items: center;
  gap:        6px;
  font-size:  0.82rem;
}
.post-tags i { color: var(--gray-500); }
.tag-link {
  background:    var(--gray-100);
  border:        1px solid var(--gray-300);
  border-radius: 20px;
  padding:       3px 10px;
  font-size:     0.78rem;
  color:         var(--gray-700);
  transition:    all var(--transition);
}
.tag-link:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Author Box */
.author-box {
  display:       flex;
  gap:           16px;
  align-items:   flex-start;
  margin:        0 24px 20px;
  padding:       16px;
  background:    var(--gray-100);
  border:        1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  border-left:   4px solid var(--secondary);
}
.author-box__avatar img {
  width:         80px;
  height:        80px;
  border-radius: 50%;
  object-fit:    cover;
  border:        3px solid var(--white);
  box-shadow:    var(--shadow);
  flex-shrink:   0;
}
.author-box__info h4 { font-family: var(--font-heading); font-size: 1rem; margin-bottom: 6px; }
.author-box__info h4 a:hover { color: var(--primary); }
.author-quote {
  font-style:  italic;
  color:       var(--gray-700);
  font-size:   0.85rem;
  white-space: pre-line;
  line-height: 1.6;
}

/* Prev/Next Nav */
.post-nav {
  display:   flex;
  gap:       1px;
  margin:    0 24px 24px;
  background: var(--gray-200);
  border-radius: var(--radius);
  overflow:  hidden;
}
.post-nav__prev, .post-nav__next {
  flex:          1;
  padding:       14px 16px;
  background:    var(--white);
  transition:    background var(--transition);
  display:       flex;
  flex-direction: column;
  gap:           4px;
}
.post-nav__next { text-align: right; }
.post-nav__prev:hover, .post-nav__next:hover { background: var(--gray-100); }
.post-nav__label { font-size: 0.75rem; color: var(--gray-500); font-weight: 600; }
.post-nav__title { font-size: 0.88rem; font-weight: 500; color: var(--dark); line-height: 1.35; }

/* ============================================================
   RELATED POSTS
   ============================================================ */
.related-posts { margin-bottom: 20px; }
.related-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   12px;
}
.related-card {
  background:    var(--white);
  border-radius: var(--radius);
  overflow:      hidden;
  box-shadow:    var(--shadow-sm);
  transition:    transform var(--transition), box-shadow var(--transition);
}
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.related-card__link { display: block; color: inherit; }
.related-card__link img {
  width:       100%;
  height:      130px;
  object-fit:  cover;
  transition:  transform 0.4s ease;
}
.related-card:hover .related-card__link img { transform: scale(1.05); }
.related-card__title {
  padding:      8px 10px 4px;
  font-size:    0.82rem;
  font-weight:  500;
  color:        var(--dark);
  display:      -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:     hidden;
  line-height:  1.35;
}
.related-card__read {
  display:   block;
  padding:   0 10px 8px;
  font-size: 0.73rem;
  color:     var(--primary);
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-section {
  background:    var(--white);
  border-radius: var(--radius-lg);
  padding:       20px 24px;
  box-shadow:    var(--shadow-sm);
  margin-bottom: 20px;
}
.comment-count {
  font-size:   0.85rem;
  background:  var(--primary);
  color:       var(--white);
  border-radius: 20px;
  padding:     2px 10px;
  margin-left: 8px;
}
.no-comments {
  text-align:  center;
  color:       var(--gray-500);
  padding:     30px;
  font-size:   0.9rem;
}

/* Comment Item */
.comment-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }

.comment {
  display: flex;
  gap:     12px;
}
.comment--reply {
  margin-left: 48px;
  margin-top:  10px;
  padding-top: 10px;
  border-top:  1px dashed var(--gray-200);
}
.comment__avatar img {
  width:         46px;
  height:        46px;
  border-radius: 50%;
  object-fit:    cover;
  border:        2px solid var(--gray-200);
  flex-shrink:   0;
}
.comment--reply .comment__avatar img { width: 36px; height: 36px; }

.comment__body { flex: 1; }
.comment__header {
  display:     flex;
  align-items: center;
  flex-wrap:   wrap;
  gap:         8px;
  margin-bottom: 6px;
}
.comment__name { font-size: 0.9rem; font-weight: 600; color: var(--dark); }
.comment__date { font-size: 0.75rem; color: var(--gray-500); }
.comment__reply-btn {
  font-size:  0.75rem;
  color:      var(--primary);
  font-weight: 500;
  display:    flex;
  align-items: center;
  gap:        4px;
  margin-left: auto;
  cursor:     pointer;
  padding:    2px 8px;
  border-radius: var(--radius);
  border:     1px solid var(--primary);
  transition: all var(--transition);
}
.comment__reply-btn:hover { background: var(--primary); color: var(--white); }
.comment__text { font-size: 0.88rem; color: var(--gray-700); line-height: 1.65; }

/* Comment Form */
.comment-form-wrap {
  border-top:  2px solid var(--gray-200);
  padding-top: 20px;
  margin-top:  10px;
}
.comment-form-wrap h4 {
  font-family:  var(--font-heading);
  font-size:    1rem;
  margin-bottom: 14px;
  display:      flex;
  align-items:  center;
  gap:          8px;
  color:        var(--dark);
}
.comment-form-wrap h4 i { color: var(--primary); }

.reply-notice {
  display:       flex;
  align-items:   center;
  gap:           8px;
  background:    #e8f4fd;
  border:        1px solid var(--primary);
  border-radius: var(--radius);
  padding:       8px 12px;
  font-size:     0.85rem;
  color:         var(--dark);
  margin-bottom: 12px;
}
.reply-notice i { color: var(--primary); }
.cancel-reply {
  margin-left:   auto;
  font-size:     0.78rem;
  color:         var(--danger);
  cursor:        pointer;
  padding:       2px 8px;
  border:        1px solid var(--danger);
  border-radius: var(--radius);
  background:    transparent;
  transition:    all var(--transition);
}
.cancel-reply:hover { background: var(--danger); color: var(--white); }

.form-row {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   12px;
}
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--gray-700); margin-bottom: 5px; }
.form-group .req { color: var(--danger); }
.form-group input,
.form-group textarea {
  width:         100%;
  padding:       9px 12px;
  border:        1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size:     0.88rem;
  color:         var(--gray-900);
  background:    var(--white);
  transition:    border-color var(--transition), box-shadow var(--transition);
  outline:       none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow:   0 0 0 3px rgba(26,115,232,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-submit {
  padding:       10px 24px;
  background:    var(--primary);
  color:         var(--white);
  border-radius: var(--radius);
  font-size:     0.9rem;
  font-weight:   700;
  display:       inline-flex;
  align-items:   center;
  gap:           8px;
  transition:    background var(--transition), transform var(--transition);
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }
.moderation-note { font-size: 0.78rem; color: var(--gray-500); }
.moderation-note i { color: var(--info); }

/* ============================================================
   SIDEBAR
   ============================================================ */
#sidebar {
  width:       var(--sidebar-width);
  flex-shrink: 0;
  display:     flex;
  flex-direction: column;
  gap:         16px;
}

.widget {
  background:    var(--white);
  border-radius: var(--radius-lg);
  overflow:      hidden;
  box-shadow:    var(--shadow-sm);
}
.widget-categories {
  overflow: visible;
}
.widget-categories .widget-title {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.widget-title {
  font-family:  var(--font-heading);
  font-size:    0.95rem;
  font-weight:  600;
  padding:      10px 14px;
  background:   var(--nav-bg);
  color:        var(--white);
  display:      flex;
  align-items:  center;
  gap:          8px;
  border-bottom: 2px solid var(--secondary);
}
.widget-title i { color: var(--secondary); }

/* Categories Widget */
.cat-list { padding: 4px 0; }

/* Main category row */
.cat-item {
  position: relative;
}
.cat-item > a {
  display:       flex;
  align-items:   center;
  gap:           8px;
  padding:       9px 14px;
  font-size:     0.83rem;
  font-weight:   600;
  color:         var(--gray-900);
  transition:    background 0.18s, color 0.18s;
  border-bottom: 1px solid var(--gray-100);
}
.cat-item > a:hover { background: var(--gray-100); color: var(--primary); }
.cat-item > a i.cat-icon { color: var(--primary); width: 16px; font-size: 0.78rem; flex-shrink:0; }
.cat-item > a .cat-arrow {
  margin-left: auto;
  font-size: 0.65rem;
  color: var(--gray-400);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.cat-count {
  background:    var(--primary);
  color:         var(--white);
  font-size:     0.62rem;
  font-weight:   700;
  padding:       1px 6px;
  border-radius: 10px;
  margin-left:   auto;
  flex-shrink:   0;
}

/* Subcategory dropdown — hidden by default, show on hover */
.sub-cat-list {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  width: 220px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
  z-index: 9999;
  padding: 4px 0;
}
.cat-item:hover > .sub-cat-list { display: block; }

.sub-cat-list li a {
  display:    flex;
  align-items: center;
  gap:        7px;
  padding:    8px 14px;
  font-size:  0.8rem;
  color:      var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.sub-cat-list li:last-child a { border-bottom: none; }
.sub-cat-list li a:hover { color: var(--primary); background: var(--gray-50); }
.sub-cat-list li a i { font-size: 0.68rem; color: var(--primary); width: 12px; }

/* Popular Widget — hidden */
.widget-popular { display: none; }
.popular-list { padding: 6px 0; }
.popular-item { border-bottom: 1px solid var(--gray-100); }
.popular-item:last-child { border-bottom: none; }
.popular-link {
  display:  flex;
  gap:      8px;
  padding:  8px 12px;
  align-items: center;
  transition: background var(--transition);
}
.popular-link:hover { background: var(--gray-100); }
.rank {
  font-family:    var(--font-heading);
  font-size:      1.1rem;
  font-weight:    700;
  color:          var(--gray-300);
  width:          22px;
  flex-shrink:    0;
  text-align:     center;
}
.popular-item:nth-child(1) .rank { color: #ffd700; }
.popular-item:nth-child(2) .rank { color: #c0c0c0; }
.popular-item:nth-child(3) .rank { color: #cd7f32; }
.popular-link img {
  width:         60px;
  height:        45px;
  object-fit:    cover;
  border-radius: var(--radius);
  flex-shrink:   0;
}
.popular-info { flex: 1; min-width: 0; }
.popular-title {
  font-size:    0.8rem;
  font-weight:  500;
  color:        var(--gray-900);
  display:      -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:     hidden;
  line-height:  1.3;
}
.popular-views { font-size: 0.72rem; color: var(--gray-500); margin-top: 2px; display: block; }
.popular-views i { color: var(--gray-400); }

/* Recent Widget */
.recent-list { padding: 6px 0; }
.recent-item { border-bottom: 1px solid var(--gray-100); }
.recent-item:last-child { border-bottom: none; }
.recent-item a {
  display:    flex;
  gap:        8px;
  padding:    8px 12px;
  align-items: center;
  color:      inherit;
  transition: background var(--transition);
}
.recent-item a:hover { background: var(--gray-100); }
.recent-item img {
  width:         60px;
  height:        45px;
  object-fit:    cover;
  border-radius: var(--radius);
  flex-shrink:   0;
}
.recent-info { flex: 1; min-width: 0; }
.recent-title {
  font-size:    0.8rem;
  font-weight:  500;
  color:        var(--gray-900);
  display:      -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:     hidden;
  line-height:  1.3;
}
.recent-date { font-size: 0.71rem; color: var(--gray-500); margin-top: 2px; display: block; }
.recent-date i { margin-right: 3px; }

/* Warning Banner */
.warning-banner {
  background:  linear-gradient(135deg, #ff6b35, #e8460a);
  color:       var(--white);
  padding:     14px 16px;
  text-align:  center;
  font-size:   0.85rem;
  font-weight: 600;
  line-height: 1.4;
  transition:  filter var(--transition);
}
.warning-banner:hover { filter: brightness(1.1); }
.warning-banner i { font-size: 1.2rem; display: block; margin-bottom: 4px; }

/* ============================================================
   ARCHIVE HEADERS (Category / Author / Search)
   ============================================================ */
.archive-header {
  display:       flex;
  align-items:   center;
  gap:           14px;
  padding:       16px 20px;
  background:    var(--white);
  border-radius: var(--radius-lg);
  box-shadow:    var(--shadow-sm);
  margin-bottom: 16px;
  border-left:   5px solid var(--primary);
}
.archive-header i { font-size: 2.2rem; }
.archive-title { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; color: var(--dark); }
.archive-desc  { font-size: 0.85rem; color: var(--gray-700); margin-top: 4px; }
.archive-count { font-size: 0.8rem; color: var(--gray-500); margin-top: 4px; display: block; }

/* Author Archive Header */
.author-header {
  display:       flex;
  gap:           16px;
  align-items:   center;
  background:    var(--white);
  border-radius: var(--radius-lg);
  padding:       20px;
  margin-bottom: 16px;
  box-shadow:    var(--shadow-sm);
}
.author-avatar {
  width:         80px;
  height:        80px;
  border-radius: 50%;
  object-fit:    cover;
  border:        3px solid var(--primary);
}

/* Sub-category chips */
.sub-cats {
  display:    flex;
  flex-wrap:  wrap;
  gap:        8px;
  margin-bottom: 16px;
}
.sub-cat-chip {
  display:       inline-flex;
  align-items:   center;
  gap:           5px;
  padding:       5px 12px;
  background:    var(--white);
  border:        1px solid var(--gray-300);
  border-radius: 20px;
  font-size:     0.8rem;
  color:         var(--gray-700);
  transition:    all var(--transition);
  box-shadow:    var(--shadow-sm);
}
.sub-cat-chip:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.sub-cat-chip i { font-size: 0.75rem; }
.sub-cat-chip span { color: var(--gray-500); font-size: 0.72rem; }
.sub-cat-chip:hover span { color: rgba(255,255,255,0.7); }

/* ============================================================
   NO POSTS / EMPTY
   ============================================================ */
.no-posts {
  text-align:    center;
  padding:       50px 20px;
  background:    var(--white);
  border-radius: var(--radius-lg);
  color:         var(--gray-500);
}
.no-posts i { font-size: 3rem; margin-bottom: 12px; display: block; }
.no-posts p { font-size: 1rem; }

/* ============================================================
   STATIC PAGES
   ============================================================ */
.static-page {
  background:    var(--white);
  border-radius: var(--radius-lg);
  overflow:      hidden;
  box-shadow:    var(--shadow);
}

/* Header banner */
.static-header {
  background:  linear-gradient(135deg, #2a1a0a 0%, #5a3a1a 100%);
  padding:     32px 28px;
  border-bottom: 3px solid var(--secondary);
}
.static-header__inner {
  display:     flex;
  align-items: center;
  gap:         20px;
}
.static-header__icon {
  width:           60px;
  height:          60px;
  border-radius:   50%;
  background:      rgba(232,130,10,.2);
  border:          2px solid var(--secondary);
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
}
.static-header__icon i {
  font-size: 1.6rem;
  color:     var(--secondary);
}
.static-title {
  font-family:   var(--font-heading);
  font-size:     1.8rem;
  font-weight:   600;
  color:         var(--white);
  line-height:   1.3;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.static-subtitle {
  font-size: 0.88rem;
  color:     rgba(255,255,255,.65);
  line-height: 1.5;
}

/* Body */
.static-body {
  padding: 28px 28px 32px;
}
.static-body.post-content {
  padding: 28px 28px 32px;
}
.static-body.post-content a { color: var(--secondary); }
.static-body.post-content h2 {
  color:        var(--dark);
  border-left:  3px solid var(--secondary);
  padding-left: 12px;
  margin-top:   24px;
}
.static-body.post-content h3 {
  color: var(--dark);
  padding-left: 8px;
  border-left:  2px solid var(--gray-300);
}
.static-body.post-content blockquote {
  border-left:  4px solid var(--secondary);
  background:   #fdf6ee;
  padding:      12px 16px;
  margin:       16px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  color:        var(--gray-700);
  font-style:   italic;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  text-align:    center;
  padding:       60px 20px;
  background:    var(--white);
  border-radius: var(--radius-lg);
  box-shadow:    var(--shadow-sm);
}
.error-404__code {
  font-family:  var(--font-heading);
  font-size:    8rem;
  font-weight:  700;
  color:        var(--gray-200);
  line-height:  1;
  margin-bottom: 10px;
}
.error-404__title { font-size: 1.6rem; font-weight: 600; color: var(--dark); margin-bottom: 10px; }
.error-404__desc  { color: var(--gray-700); margin-bottom: 24px; }
.error-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  padding:       10px 22px;
  background:    var(--primary);
  color:         var(--white);
  border-radius: var(--radius);
  font-weight:   600;
  display:       inline-flex;
  align-items:   center;
  gap:           7px;
  transition:    background var(--transition);
}
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-secondary {
  padding:       10px 22px;
  background:    var(--gray-100);
  color:         var(--gray-900);
  border:        1px solid var(--gray-300);
  border-radius: var(--radius);
  font-weight:   600;
  display:       inline-flex;
  align-items:   center;
  gap:           7px;
  transition:    all var(--transition);
}
.btn-secondary:hover { background: var(--dark); color: var(--white); }

/* ============================================================
   SEARCH FORM (standalone page)
   ============================================================ */
.search-form--page {
  background:    var(--white);
  border-radius: var(--radius-lg);
  padding:       16px;
  box-shadow:    var(--shadow-sm);
  margin-bottom: 16px;
  display:       flex;
  gap:           10px;
}
.search-form--page input {
  flex:          1;
  padding:       10px 14px;
  border:        1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size:     0.95rem;
  outline:       none;
}
.search-form--page input:focus { border-color: var(--primary); }
.search-form--page button {
  padding:       10px 20px;
  background:    var(--primary);
  color:         var(--white);
  border-radius: var(--radius);
  font-weight:   600;
  display:       flex;
  align-items:   center;
  gap:           7px;
  transition:    background var(--transition);
}
.search-form--page button:hover { background: var(--primary-dark); }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  display:       flex;
  align-items:   center;
  gap:           10px;
  padding:       12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size:     0.88rem;
  font-weight:   500;
}
.alert-success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; }
.alert-error   { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; }
.alert i       { font-size: 1.1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background:  linear-gradient(180deg, #2a1a0a 0%, #1e1008 100%);
  color:       rgba(255,255,255,0.78);
  margin-top:  40px;
  border-top:  3px solid var(--secondary);
}

.footer-inner { padding: 44px 15px 28px; }

.footer-cols {
  display:               grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap:                   36px;
  margin-bottom:         36px;
}
.footer-col h4 {
  font-family:   var(--font-heading);
  font-size:     1rem;
  letter-spacing: 0.5px;
  color:         var(--white);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary);
  display:       flex;
  align-items:   center;
  gap:           7px;
}
.footer-col h4 i { color: var(--secondary); font-size: 0.85rem; }
.footer-col p { font-size: 0.83rem; line-height: 1.75; color: rgba(255,255,255,0.55); }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a {
  font-size:  0.82rem;
  color:      rgba(255,255,255,0.58);
  display:    flex;
  align-items: center;
  gap:        7px;
  transition: color var(--transition), padding-left var(--transition);
}
.footer-col ul li a:hover { color: var(--secondary); padding-left: 5px; }
.footer-col ul li a i { font-size: 0.65rem; color: var(--secondary); }
.footer-logo-text {
  font-family:  var(--font-heading);
  font-size:    1.15rem;
  color:        var(--white);
  margin-top:   12px;
  letter-spacing: 0.5px;
}

/* Copyright Box */
.footer-copyright-box {
  border-top:    1px solid rgba(255,255,255,0.08);
  padding-top:   22px;
  font-size:     0.79rem;
  color:         rgba(255,255,255,0.45);
  line-height:   1.75;
  background:    rgba(0,0,0,.15);
  margin: 0 -15px -28px;
  padding: 22px 15px 28px;
}
.footer-copyright-box h4 {
  font-family:   var(--font-heading);
  color:         rgba(255,255,255,.7);
  margin-bottom: 10px;
  font-size:     0.9rem;
  letter-spacing: 0.5px;
}
.footer-copyright-box p { margin-bottom: 6px; }
.footer-copyright-box strong { color: rgba(255,255,255,0.7); }
.footer-copyright-box a { color: var(--secondary); }
.footer-copyright-box a:hover { text-decoration: underline; }

/* Footer Bottom Bar */
.footer-bottom {
  background:  rgba(0,0,0,0.45);
  padding:     14px 0;
  text-align:  center;
  font-size:   0.78rem;
  color:       rgba(255,255,255,0.4);
  border-top:  1px solid rgba(255,255,255,.06);
}
.footer-bottom a { color: var(--secondary); }
.footer-bottom a:hover { text-decoration: underline; color: var(--accent); }
.footer-bottom p { margin-bottom: 3px; }

/* Scroll to Top */
#scroll-top {
  position:      fixed;
  bottom:        24px;
  right:         24px;
  width:         42px;
  height:        42px;
  background:    var(--primary);
  color:         var(--white);
  border-radius: 50%;
  display:       flex;
  align-items:   center;
  justify-content: center;
  font-size:     1rem;
  box-shadow:    var(--shadow-lg);
  opacity:       0;
  transform:     translateY(20px);
  transition:    opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
  z-index:       999;
}
#scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
#scroll-top:hover   { background: var(--secondary); }

/* ============================================================
   RESPONSIVE — TABLET (≤ 992px)
   ============================================================ */
@media (max-width: 992px) {
  :root { --sidebar-width: 240px; }

  .hamburger { display: flex; }

  /* Nav */
  #nav-list {
    display:    none;
    flex-direction: column;
    position:   absolute;
    top:        100%;
    left:       0;
    right:      0;
    background: var(--dark2);
    border-top: 2px solid var(--secondary);
    box-shadow: var(--shadow-lg);
    z-index:    998;
    max-height: 80vh;
    overflow-y: auto;
  }
  #nav-list.nav-open { display: flex; }

  .nav-item { width: 100%; }
  .nav-link { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-link .arrow { margin-left: auto; }

  .dropdown {
    position:  static;
    display:   none;
    background: rgba(0,0,0,0.2);
    border:    none;
    box-shadow: none;
    animation: none;
  }
  .nav-item.open > .dropdown { display: block; }
  .dropdown li a { padding-left: 24px; }

  /* Slider */
  .slider-grid { display: block; }
  .slider-side { display: none; }

  /* Footer */
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }

  /* Related */
  .related-grid { grid-template-columns: repeat(2, 1fr); }

  /* Popular */
  .popular-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --sidebar-width: 100%; }

  #page-wrapper {
    flex-direction: column;
    padding:        12px;
  }

  .main-layout { flex-direction: column; }

  #sidebar { width: 100%; }

  /* Header */
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .header-search { order: 3; width: 100%; max-width: none; }

  /* Posts Grid */
  .posts-grid { grid-template-columns: 1fr 1fr; }

  /* Post */
  .post-title    { font-size: 1.3rem; }
  .post-header   { padding: 14px; }
  .post-content  { padding: 14px; }
  .sys-req-box, .download-box, .author-box, .post-nav { margin: 0 14px 14px; }
  .post-screenshots, .post-tags { padding: 0 14px 12px; }

  /* Sys Req */
  .sys-req-table th { width: 110px; }

  /* Download */
  .download-box__links { gap: 8px; }
  .dl-btn { padding: 9px 14px; font-size: 0.82rem; }

  /* Post Nav */
  .post-nav { flex-direction: column; }

  /* Related */
  .related-grid { grid-template-columns: repeat(2, 1fr); }

  /* Comments */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-cols { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .posts-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }

  .archive-header i { display: none; }
  .popular-grid  { grid-template-columns: 1fr; }
  .search-form--page { flex-direction: column; }
}

/* ============================================================
   BLOCK 3: MOST DOWNLOADED — v2.3 (list style)
   ============================================================ */
.most-dl-section { margin-top: 24px; margin-bottom: 10px; }

/* Single column list */
.most-dl-list {
  display:        flex;
  flex-direction: column;
  gap:            8px;
}

.most-dl-item {
  background:    var(--white);
  border-radius: var(--radius-lg);
  overflow:      hidden;
  box-shadow:    var(--shadow-sm);
  transition:    box-shadow var(--transition), transform var(--transition);
  border-left:   3px solid transparent;
}
.most-dl-item:hover {
  box-shadow:  var(--shadow);
  transform:   translateX(3px);
  border-left-color: var(--primary);
}

.most-dl-link {
  display:     flex;
  gap:         12px;
  padding:     10px 14px;
  align-items: center;
  color:       inherit;
}

/* Thumb */
.most-dl-thumb {
  width:         150px;
  height:        85px;
  flex-shrink:   0;
  border-radius: var(--radius);
  overflow:      hidden;
  background:    var(--dark);
}
.most-dl-thumb img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.most-dl-item:hover .most-dl-thumb img { transform: scale(1.05); }

/* Info */
.most-dl-info {
  flex:           1;
  min-width:      0;
  display:        flex;
  flex-direction: column;
  gap:            6px;
}

.most-dl-title {
  font-size:    0.9rem;
  font-weight:  600;
  color:        var(--gray-900);
  line-height:  1.4;
  display:      -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:     hidden;
}
.most-dl-item:hover .most-dl-title { color: var(--primary); }

.most-dl-meta {
  display:     flex;
  align-items: center;
  gap:         10px;
  flex-wrap:   wrap;
}

.most-dl-cat {
  display:       inline-block;
  padding:       3px 10px;
  font-size:     0.72rem;
  font-weight:   700;
  color:         var(--white);
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space:   nowrap;
}

.most-dl-count {
  font-size:   0.82rem;
  color:       var(--gray-700);
  font-weight: 600;
  display:     flex;
  align-items: center;
  gap:         5px;
}
.most-dl-count i { color: var(--secondary); }

@media (max-width: 600px) {
  .most-dl-thumb { width: 100px; height: 65px; }
}
/* ============================================================
   POST LIST — Card style (home.php BLOCK 2)
   ============================================================ */
.post-list-section { display: flex; flex-direction: column; gap: 16px; }

/* ── Card wrapper ── */
.pli {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  border: 1px solid var(--gray-200);
}
.pli:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.13);
}

/* ── Top: thumbnail left + content right ── */
.pli__top {
  display: flex;
  flex-direction: row;
  flex: 1;
  min-height: 200px;
}

/* Thumbnail */
.pli__thumb {
  display: block;
  overflow: hidden;
  flex-shrink: 0;
  width: 300px;
  position: relative;
  background: var(--gray-200);
}
.pli__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(42,26,10,0) 70%, rgba(42,26,10,.35) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.pli:hover .pli__thumb::after { opacity: 1; }

.pli__thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94);
}
.pli:hover .pli__thumb img { transform: scale(1.08); }

/* Body */
.pli__body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  position: relative;
}

/* Animated left accent bar */
.pli__body::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--secondary);
  border-radius: 3px;
  transform: scaleY(0);
  transition: transform 0.35s ease;
}
.pli:hover .pli__body::before { transform: scaleY(1); }

.pli__title {
  font-family: var(--font-heading);
  font-size: 1.15rem; font-weight: 700;
  color: var(--dark); line-height: 1.4;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.pli__title a { color: inherit; }
.pli:hover .pli__title a { color: var(--primary); }

.pli__excerpt {
  font-size: 0.86rem; color: var(--gray-700);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Footer bar ── */
.pli__footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  background: linear-gradient(90deg, #4a2c14 0%, #5a3a1a 100%);
  padding: 0;
  min-height: 42px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.pli__footer-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  font-size: 0.69rem;
  font-weight: 700;
  color: #deb887;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-right: 1px solid rgba(255,255,255,.1);
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}
.pli__footer-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.pli__footer-item i { font-size: 0.7rem; color: var(--secondary); }
.pli__footer-item a { color: inherit; }
.pli__footer-item a:hover { color: #fff; }

/* Readmore */
.pli__footer-readmore {
  margin-left: auto;
  border-right: none;
  border-left: 1px solid rgba(255,255,255,.1);
  color: #fff;
  font-weight: 800;
  background: rgba(232,130,10,.15);
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s;
}
.pli__footer-readmore i { color: #fff; }
.pli__footer-readmore:hover { background: var(--secondary); color: #fff; }

@media (max-width: 768px) {
  .pli__thumb { width: 200px; }
}
@media (max-width: 640px) {
  .pli__thumb { width: 130px; }
  .pli__title { font-size: 0.95rem; }
  .pli__body { padding: 12px 14px; }
}
@media (max-width: 480px) {
  .pli__top { flex-direction: column; }
  .pli__thumb { width: 100%; height: 180px; }
}



/* ============================================================
   DOWNLOAD TIMER PAGE
   ============================================================ */

/* Full width - no sidebar */
body.page-download #page-wrapper { display: block; }
body.page-download #main-col     { width: 100%; max-width: 100%; }
body.page-download #sidebar      { display: none; }

.dl-page {
  max-width:  860px;
  margin:     30px auto;
  padding:    0 16px 50px;
}

/* Breadcrumb */
.dl-breadcrumb {
  display:     flex;
  align-items: center;
  gap:         6px;
  font-size:   0.78rem;
  color:       #64748b;
  margin-bottom: 22px;
  flex-wrap:   wrap;
}
.dl-breadcrumb a       { color: #64748b; }
.dl-breadcrumb a:hover { color: #c0611a; }
.dl-breadcrumb .sep    { font-size: 0.55rem; color: #cbd5e1; }

/* Card */
.dl-card {
  display:       flex;
  gap:           30px;
  background:    #fff;
  border-radius: 14px;
  box-shadow:    0 6px 30px rgba(0,0,0,.10);
  border:        1px solid #e2e8f0;
  padding:       30px;
  margin-bottom: 18px;
}

/* Left column */
.dl-left {
  flex-shrink:    0;
  width:          200px;
  display:        flex;
  flex-direction: column;
  gap:            14px;
}
.dl-thumb-wrap   { position: relative; border-radius: 10px; overflow: hidden; }
.dl-thumb        { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.dl-thumb-badge  {
  position: absolute; inset: 0;
  background: rgba(192,97,26,.75);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2.2rem;
}
.dl-meta-box     { display: flex; flex-direction: column; gap: 7px; }
.dl-meta-row     {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: #475569;
  padding: 6px 10px;
  background: #f8fafc;
  border-radius: 7px;
}
.dl-meta-row i   { color: #c0611a; width: 13px; text-align: center; }

/* Right column */
.dl-right {
  flex:           1;
  display:        flex;
  flex-direction: column;
  align-items:    center;
  text-align:     center;
  gap:            14px;
}
.dl-title        { font-family: 'Oswald', sans-serif; font-size: 1.35rem; color: #2a1a0a; margin: 0; line-height: 1.3; }
.dl-subtitle     { font-size: 0.86rem; color: #64748b; margin: 0; }
.dl-subtitle i   { color: #c0611a; }

/* Timer */
.dl-timer-wrap   { position: relative; width: 130px; height: 130px; }
.dl-timer-svg    { width: 130px; height: 130px; display: block; }
.dl-timer-inner  {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.dl-timer-num    { font-family: 'Oswald', sans-serif; font-size: 2.6rem; font-weight: 700; color: #2a1a0a; line-height: 1; }
.dl-timer-lbl    { font-size: 0.68rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }

/* Status */
.dl-status       { font-size: 0.84rem; color: #64748b; margin: 0; min-height: 22px; }

/* Download button */
.dl-btn {
  display:     inline-flex;
  align-items: center;
  gap:         10px;
  padding:     13px 30px;
  background:  #c0611a;
  color:       #fff !important;
  font-family: 'Oswald', sans-serif;
  font-size:   1.05rem;
  font-weight: 600;
  border-radius: 8px;
  box-shadow:  0 4px 16px rgba(192,97,26,.4);
  transition:  transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  animation:   dlPop 0.4s ease;
}
.dl-btn:hover  { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(192,97,26,.5); color: #fff !important; }
.dl-btn i      { font-size: 1.1rem; }
@keyframes dlPop {
  from { opacity: 0; transform: scale(0.9) translateY(8px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

/* Back link */
.dl-back-link       { font-size: 0.8rem; color: #94a3b8; }
.dl-back-link:hover { color: #c0611a; }

/* Warning */
.dl-warn-box {
  display:       flex;
  align-items:   flex-start;
  gap:           12px;
  background:    #fef3c7;
  border:        1px solid #fde68a;
  border-radius: 10px;
  padding:       14px 18px;
  font-size:     0.83rem;
  color:         #92400e;
}
.dl-warn-box > i { font-size: 1rem; color: #d97706; margin-top: 2px; flex-shrink: 0; }
.dl-warn-box a   { color: #c0611a; text-decoration: underline; }

/* Responsive */
@media (max-width: 600px) {
  .dl-card  { flex-direction: column; padding: 18px; gap: 18px; }
  .dl-left  { width: 100%; }
  .dl-title { font-size: 1.1rem; }
}