/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f4f4f4;
  color: #1a1a1a;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* === VARIABLES === */
:root {
  --navy: #1c2b3a;
  --orange: #e07b00;
  --orange-hover: #c96f00;
  --bg: #f4f4f4;
  --white: #ffffff;
  --text: #1a1a1a;
  --muted: #666666;
  --border: #e0e0e0;
  --container: 1200px;
}

/* === CONTAINER === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* === HEADER === */
.site-header {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo img {
  height: 38px;
  width: auto;
}
.site-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}
.site-logo-text span {
  color: var(--orange);
}
.site-nav {
  display: flex;
  gap: 4px;
}
.site-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* === HERO === */
.hero {
  background: var(--navy);
  padding: 40px 0 48px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: center;
}
.hero-category {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.hero-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 12px;
}
.hero-title a:hover { color: var(--orange); }
.hero-excerpt {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.hero-meta {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}
.hero-image {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: rgba(255,255,255,0.05);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === MAIN LAYOUT === */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  padding: 40px 0;
}

/* === SECTION TITLE === */
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}

/* === ARTICLES GRID === */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.card-image {
  aspect-ratio: 16/9;
  background: #e8edf2;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.card:hover .card-image img { transform: scale(1.03); }
.card-body { padding: 16px; }
.card-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--orange);
  margin-bottom: 8px;
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text);
}
.card-title a:hover { color: var(--orange); }
.card-meta {
  font-size: 12px;
  color: var(--muted);
}

/* === SIDEBAR === */
.sidebar {}
.sidebar-widget {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 24px;
}
.widget-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.category-list li {
  border-bottom: 1px solid var(--border);
}
.category-list li:last-child { border-bottom: none; }
.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text);
  transition: color 0.2s;
}
.category-list a:hover { color: var(--orange); }
.category-list span {
  background: var(--bg);
  color: var(--muted);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
}
.author-widget { text-align: center; }
.author-widget img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 3px solid var(--orange);
}
.author-widget h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.author-widget p {
  font-size: 13px;
  color: var(--muted);
}

/* === ARTICLE PAGE === */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  padding: 40px 0;
}
.article-header { margin-bottom: 24px; }
.article-category {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.article-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--navy);
}
.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.article-image {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 28px;
  aspect-ratio: 16/8;
  background: #e8edf2;
}
.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-content {
  background: var(--white);
  border-radius: 10px;
  padding: 32px;
  border: 1px solid var(--border);
}
.article-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 14px;
}
.article-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin: 22px 0 10px;
}
.article-content p {
  margin-bottom: 16px;
  line-height: 1.75;
}
.article-content ul, .article-content ol {
  margin: 0 0 16px 20px;
  line-height: 1.75;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 6px; }
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.article-content th {
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
}
.article-content td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
}
.article-content tr:nth-child(even) td { background: #f8f9fa; }
.table-wrapper { overflow-x: auto; }

/* === BREADCRUMBS === */
.breadcrumbs {
  padding: 12px 0;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumbs span { margin: 0 6px; }

/* === FOOTER === */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 40px 0 24px;
  margin-top: 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-logo {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.footer-logo span { color: var(--orange); }
.footer-desc {
  font-size: 13px;
  line-height: 1.6;
}
.footer-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 12px;
  text-align: center;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .main-layout, .article-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .articles-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .hero-title { font-size: 22px; }
  .article-title { font-size: 22px; }
  .article-content { padding: 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
