/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f6f8fa;
  color: #1a1a2e;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== HEADER ===== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.logo {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo a {
  -webkit-text-fill-color: transparent;
}

.main-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

.main-nav a {
  font-weight: 500;
  font-size: 16px;
  color: #2d2d44;
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #4a6cf7;
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a:hover {
  color: #4a6cf7;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #1a1a2e;
  color: #c8c8d4;
  padding: 48px 0 24px;
  margin-top: 60px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand .logo {
  font-size: 24px;
  background: linear-gradient(135deg, #f0f0ff 0%, #a8b5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.8;
  max-width: 320px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: #c8c8d4;
  font-size: 15px;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-copy {
  font-size: 14px;
  opacity: 0.6;
  text-align: right;
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 16px;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 80px 0 60px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74, 108, 247, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 520px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 17px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn.primary {
  background: #4a6cf7;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(74, 108, 247, 0.35);
}

.btn.primary:hover {
  background: #3a5cd9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 108, 247, 0.45);
}

/* ===== ARTICLES GRID ===== */
.articles-section {
  padding: 60px 0 20px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 40px;
  color: #1a1a2e;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #4a6cf7, #7c8cfb);
  border-radius: 4px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

/* ===== ARTICLE CARD ===== */
.article-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.10);
}

.article-card a {
  display: block;
  height: 100%;
}

.article-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.article-card:hover img {
  transform: scale(1.03);
}

.card-body {
  padding: 24px 26px 28px;
}

.card-body h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #1a1a2e;
  transition: color 0.3s ease;
}

.article-card:hover .card-body h3 {
  color: #4a6cf7;
}

.card-body p {
  font-size: 15px;
  color: #4a4a5a;
  line-height: 1.6;
}

/* ===== ARTICLE PAGE ===== */
.article-page {
  padding: 40px 0 60px;
}

.article-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.article-main {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 44px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.article-main h1 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: #1a1a2e;
}

.article-meta {
  font-size: 14px;
  color: #6a6a7a;
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-main img {
  border-radius: 14px;
  margin: 24px 0;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.article-main h2 {
  font-size: 28px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 14px;
  color: #1a1a2e;
  line-height: 1.3;
}

.article-main h3 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 10px;
  color: #1a1a2e;
}

.article-main p {
  font-size: 17px;
  line-height: 1.8;
  color: #2d2d44;
  margin-bottom: 18px;
}

.article-main ul,
.article-main ol {
  margin: 16px 0 20px 24px;
  font-size: 17px;
  line-height: 1.8;
  color: #2d2d44;
}

.article-main li {
  margin-bottom: 6px;
}

.article-main blockquote {
  border-left: 4px solid #4a6cf7;
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: #3a3a4e;
  background: #f8f9fc;
  padding: 20px 24px;
  border-radius: 12px;
}

/* ===== SIDEBAR ===== */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-widget {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 26px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.sidebar-widget h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1a1a2e;
}

.sidebar-articles {
  list-style: none;
}

.sidebar-articles li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f4;
}

.sidebar-articles li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-articles a {
  font-size: 15px;
  color: #2d2d44;
  transition: color 0.3s ease;
  display: block;
  line-height: 1.4;
}

.sidebar-articles a:hover {
  color: #4a6cf7;
}

/* ===== AD BLOCKS ===== */
.ad-block {
  background: #f0f2f6;
  border-radius: 14px;
  padding: 24px;
  margin: 20px auto;
  text-align: center;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #c0c4cc;
  color: #6a6a7a;
  font-size: 14px;
}

.ad-block-inner {
  background: #f0f2f6;
  border-radius: 14px;
  padding: 20px;
  margin: 16px 0;
  text-align: center;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #c0c4cc;
  color: #6a6a7a;
  font-size: 13px;
}

.sidebar .ad-block-inner {
  margin: 0;
  min-height: 200px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .article-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero {
    padding: 56px 0 40px;
  }

  .section-title {
    font-size: 28px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .article-main {
    padding: 24px 20px;
  }

  .article-main h1 {
    font-size: 28px;
  }

  .article-main h2 {
    font-size: 22px;
  }

  .article-main p {
    font-size: 16px;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-copy {
    text-align: center;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
  }

  .main-nav ul {
    gap: 20px;
  }

  .site-header {
    padding: 12px 0;
  }

  .card-body {
    padding: 18px 20px 22px;
  }

  .article-card img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .btn {
    padding: 12px 28px;
    font-size: 15px;
  }

  .article-main {
    padding: 18px 14px;
  }
}