:root {
  --bg-main: #000000;
  --bg-surface: #0a0a0a;
  --bg-card-start: #990000;
  --bg-card-end: #cc0000;
  --border-gold: #d4af37;
  --border-darkred: #800000;
  --btn-blue: #ffe50f;
  --btn-blue-hover: #e6ce0d;
  --btn-back: #ffc107;
  --btn-back-hover: #e0a800;
  --btn-search: #e6a100;
  --btn-search-hover: #cc8e00;
  --text-white: #ffffff;
  --text-muted: #cccccc;
  --text-footer: #666666;
  --table-header-bg: #1e3a1e;
  --table-border: #2e5a2e;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-white);
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.site-header {
  background-color: var(--bg-surface);
  border-bottom: 2px solid #220000;
  padding: 16px 0 10px 0;
  position: relative;
}

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

.header-spacer {
  width: 280px;
}

.header-logo-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.main-logo {
  max-height: 70px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.main-logo:hover {
  transform: scale(1.02);
}

.brand-fallback {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 20px;
  background: linear-gradient(180deg, #1a0505 0%, #0d0000 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.25);
}

.brand-fallback .brand-title {
  font-family: 'Impact', 'Arial Black', sans-serif;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #fff099 0%, #ffcc00 50%, #e6a100 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-fallback .brand-title span {
  -webkit-text-fill-color: #ff2222;
}

.brand-fallback .brand-subtitle {
  font-size: 10px;
  letter-spacing: 4px;
  color: #dddddd;
  font-weight: 700;
}

.search-widget {
  width: 280px;
  display: flex;
  justify-content: flex-end;
}

.search-form {
  display: flex;
  align-items: center;
  width: 100%;
  background-color: #161616;
  border: 1.5px solid #333333;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form:focus-within {
  border-color: var(--btn-search);
  box-shadow: 0 0 8px rgba(230, 161, 0, 0.4);
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 9px 12px;
  color: var(--text-white);
  font-size: 14px;
  font-family: inherit;
}

.search-input::placeholder {
  color: #888888;
}

.search-btn {
  background-color: var(--btn-search);
  border: none;
  outline: none;
  padding: 9px 14px;
  cursor: pointer;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.search-btn:hover {
  background-color: var(--btn-search-hover);
}

.search-btn svg {
  width: 18px;
  height: 18px;
  stroke: #000000;
  stroke-width: 2.5;
  fill: none;
}

.portal-subheading {
  text-align: center;
  margin-top: 14px;
  margin-bottom: 10px;
}

.portal-subheading h1, .portal-subheading h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portal-subheading .icon-info {
  display: inline-block;
  font-size: 22px;
}

.marquee-wrapper {
  background: linear-gradient(90deg, #110000 0%, #290000 50%, #110000 100%);
  border-top: 1px solid #4a0000;
  border-bottom: 1px solid #4a0000;
  padding: 8px 0;
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee-scroll 25s linear infinite;
  color: #ffd700;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.marquee-wrapper:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.main-content {
  flex: 1;
  padding-bottom: 40px;
}

.search-results-info {
  margin-bottom: 20px;
  padding: 12px 18px;
  background: #111111;
  border-left: 4px solid var(--btn-search);
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-results-info .query-text {
  color: #ffc107;
  font-weight: bold;
}

.btn-clear-search {
  font-size: 13px;
  color: #aaaaaa;
  text-decoration: underline;
}

.btn-clear-search:hover {
  color: #ffffff;
}

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

@media (max-width: 1199px) {
  .article-grid {
    grid-template-columns: repeat(3, 1fr); 
  }
  .header-spacer {
    display: none;
  }
}

@media (max-width: 991px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr); 
  }
  .header-top {
    flex-direction: column;
  }
  .search-widget {
    width: 100%;
    max-width: 400px;
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .article-grid {
    grid-template-columns: 1fr; 
  }
  .brand-fallback .brand-title {
    font-size: 26px;
  }
  .portal-subheading h1, .portal-subheading h2 {
    font-size: 17px;
  }
}

.article-card {
  background: linear-gradient(135deg, var(--bg-card-start) 0%, var(--bg-card-end) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(204, 0, 0, 0.4), 0 0 12px rgba(212, 175, 55, 0.3);
  border-color: #ffd700;
}

.card-thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.article-card:hover .card-thumbnail-wrapper img {
  transform: scale(1.04);
}

.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-white);
  line-height: 1.35;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.article-card:hover .card-title {
  color: #ffe50f;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #ffc107;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.card-meta svg {
  width: 13px;
  height: 13px;
  stroke: #ffc107;
  stroke-width: 2;
  fill: none;
}

.card-excerpt {
  font-size: 13px;
  color: #f0f0f0;
  line-height: 1.45;
  margin-bottom: 16px;
  
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #ffe50f;
  color: #000000;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 5px;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  width: 100%;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.btn-read-more:hover {
  background-color: #e6ce0d;
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(255, 229, 15, 0.4);
}

.pagination-wrapper {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pagination {
  display: inline-flex;
  gap: 6px;
  list-style: none;
  background: #0e0e0e;
  padding: 6px 10px;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
}

.page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background-color: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 5px;
  transition: all 0.2s ease;
}

.page-item .page-link:hover {
  background-color: #990000;
  border-color: #ff3333;
  color: #ffffff;
}

.page-item.active .page-link {
  background-color: #cc0000;
  border-color: var(--border-gold);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(204, 0, 0, 0.7);
}

.page-item.disabled .page-link {
  opacity: 0.35;
  pointer-events: none;
  background-color: #111111;
  border-color: #222222;
}

.single-article-header {
  margin-bottom: 24px;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--btn-back);
  color: #000000;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 6px;
  margin-bottom: 18px;
  transition: background-color 0.2s ease, transform 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.btn-back-home:hover {
  background-color: var(--btn-back-hover);
  transform: translateY(-2px);
}

.article-main-title {
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-white);
  line-height: 1.3;
  margin-bottom: 10px;
}

.article-main-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid #222222;
  padding-bottom: 14px;
}

.article-main-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-main-meta svg {
  width: 15px;
  height: 15px;
  stroke: #ffc107;
  fill: none;
}

.article-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.article-content-col {
  flex: 0 0 70%;
  max-width: 70%;
  background: #0d0d0d;
  border: 1px solid #222222;
  border-radius: 8px;
  padding: 24px;
}

.article-sidebar-col {
  flex: 0 0 calc(30% - 28px);
  max-width: calc(30% - 28px);
}

@media (max-width: 991px) {
  .article-layout {
    flex-direction: column;
  }
  .article-content-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .article-sidebar-col {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 30px;
  }
}

.article-featured-banner {
  width: 100%;
  max-height: 320px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid #330000;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-featured-banner img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  padding: 12px;
}

.article-body {
  color: #dddddd;
  font-size: 15px;
  line-height: 1.75;
}

.article-body h2 {
  font-size: 22px;
  color: #ffffff;
  margin-top: 28px;
  margin-bottom: 14px;
  border-left: 4px solid #cc0000;
  padding-left: 12px;
}

.article-body h3 {
  font-size: 18px;
  color: #ffd700;
  margin-top: 24px;
  margin-bottom: 12px;
}

.article-body p {
  margin-bottom: 16px;
}

.article-body ul, .article-body ol {
  margin-left: 24px;
  margin-bottom: 18px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body a {
  color: #3897f0;
  text-decoration: underline;
}

.article-body a:hover {
  color: #69b3f7;
}

.article-body code {
  background: #1e1e1e;
  color: #ff9800;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: monospace;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0 26px 0;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.guide-table thead tr {
  background-color: var(--table-header-bg);
  border-bottom: 2px solid var(--table-border);
}

.guide-table th {
  padding: 12px 16px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--table-border);
}

.guide-table td {
  padding: 11px 16px;
  color: #f1f1f1;
  border: 1px solid var(--table-border);
  background-color: #121212;
}

.guide-table tbody tr:nth-child(even) td {
  background-color: #181818;
}

.guide-table tbody tr:hover td {
  background-color: #242424;
}

.sidebar-widget {
  background: #0d0d0d;
  border: 1px solid #222222;
  border-radius: 8px;
  padding: 18px;
}

.sidebar-widget-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #cc0000;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-cards-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-mini-card {
  background: linear-gradient(135deg, #7a0000 0%, #a30000 100%);
  border: 1px solid #550000;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-mini-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
}

.sidebar-mini-card .mini-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-mini-card .mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.sidebar-mini-card .mini-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-mini-card .mini-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.3;
}

.sidebar-mini-card .mini-date {
  font-size: 11px;
  color: #dddddd;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sidebar-mini-card .btn-read-more {
  padding: 6px 10px;
  font-size: 12px;
  margin-top: 4px;
}

.error-404-container {
  text-align: center;
  padding: 60px 20px;
  background: #0d0d0d;
  border: 1px solid #222222;
  border-radius: 8px;
  max-width: 600px;
  margin: 40px auto;
}

.error-404-code {
  font-size: 72px;
  font-weight: 900;
  color: #cc0000;
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(204, 0, 0, 0.6);
}

.error-404-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #ffffff;
}

.error-404-desc {
  font-size: 14px;
  color: #aaaaaa;
  margin-bottom: 24px;
}

.site-footer {
  background-color: #050505;
  border-top: 1px solid #1a1a1a;
  padding: 24px 0;
  margin-top: auto;
  text-align: center;
}

.footer-text {
  font-size: 13px;
  color: var(--text-footer);
  font-weight: 600;
  letter-spacing: 0.5px;
}
