﻿:root {
      --primary: #1D7BFF;
      --primary-hover: #0056D2;
      --bg-dark: #0A0F1D;
      --text-white: #FFFFFF;
      --text-gray: #94A3B8;
      --text-dark: #0F172A;
      --bg-light: #F4F7FC;
      --border-color: rgba(255, 255, 255, 0.1);
      --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: var(--font-family); background-color: var(--bg-light); color: var(--text-dark); line-height: 1.6; }

    
    .header {
      background-color: var(--bg-dark);
      position: sticky;
      top: 0;
      z-index: 1000;
      border-bottom: 1px solid var(--border-color);
      padding: 15px 0;
    }

    .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
    .header-container { display: flex; justify-content: space-between; align-items: center; }

    .logo {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
    }

    .logo img {
      display: block;
      height: 40px;
      width: auto;
      max-width: 160px;
      object-fit: contain;
      flex-shrink: 0;
    }

    .logo span {
      display: inline-block;
      font-size: 20px;
      font-weight: 800;
      line-height: 1;
      color: var(--text-white);
      white-space: nowrap;
    }

    .nav-menu { display: flex; gap: 24px; align-items: center; }
    .nav-menu a { color: var(--text-gray); text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.3s; }
    .nav-menu a:hover { color: var(--primary); }
    .menu-toggle { display: none; background: none; border: none; color: var(--text-white); font-size: 24px; cursor: pointer; }

    
    .drawer { position: fixed; top: 0; left: -100%; width: 280px; height: 100%; background-color: var(--bg-dark); z-index: 1100; transition: left 0.3s ease; padding: 30px 20px; display: flex; flex-direction: column; gap: 30px; box-shadow: 5px 0 15px rgba(0,0,0,0.5); }
    .drawer.active { left: 0; }
    .drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1050; display: none; }
    .drawer-overlay.active { display: block; }
    .drawer-header { display: flex; justify-content: space-between; align-items: center; }
    .drawer-close { background: none; border: none; color: var(--text-white); font-size: 28px; cursor: pointer; }
    .drawer-menu { display: flex; flex-direction: column; gap: 20px; }
    .drawer-menu a { color: var(--text-gray); text-decoration: none; font-size: 18px; font-weight: 500; }
    .drawer-menu a:hover { color: var(--primary); }

    
    .tag-header {
      background: linear-gradient(135deg, var(--bg-dark) 0%, #111827 100%);
      color: var(--text-white);
      padding: 60px 0;
      margin-bottom: 40px;
    }

    .tag-header h1 { font-size: 32px; font-weight: 800; }
    .tag-header p { color: var(--text-gray); margin-top: 10px; }

    
    .tag-articles {
      display: flex;
      flex-direction: column;
      gap: 30px;
      margin-bottom: 60px;
    }

    .tag-article-card {
      background-color: var(--text-white);
      border-radius: 12px;
      overflow: hidden;
      display: flex;
      border: 1px solid #E2E8F0;
    }

    .tag-article-img {
      width: 260px;
      min-height: 180px;
      background-size: cover;
      background-position: center;
      background-color: #F1F5F9;
      flex-shrink: 0;
    }

    .tag-article-info {
      padding: 24px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      flex-grow: 1;
    }

    .tag-article-meta { font-size: 12px; color: #64748B; margin-bottom: 8px; }
    .tag-article-title { font-size: 20px; font-weight: 700; color: var(--text-dark); text-decoration: none; margin-bottom: 10px; display: block; }
    .tag-article-title:hover { color: var(--primary); }
    .tag-article-summary { font-size: 14px; color: #64748B; margin-bottom: 15px; }

    
    .pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
    .page-btn { padding: 10px 16px; border-radius: 6px; border: 1px solid #E2E8F0; background-color: var(--text-white); color: var(--text-dark); text-decoration: none; font-size: 14px; transition: all 0.3s; }
    .page-btn:hover, .page-btn.active { background-color: var(--primary); color: var(--text-white); border-color: var(--primary); }

    
    .footer {
      background-color: var(--bg-dark);
      color: var(--text-gray);
      padding: 60px 0 30px 0;
      border-top: 1px solid var(--border-color);
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr;
      gap: 50px;
      margin-bottom: 40px;
    }

    .footer-brand .logo { margin-bottom: 20px; }
    .footer-brand p { font-size: 14px; line-height: 1.8; }
    .footer-links h4 { color: var(--text-white); margin-bottom: 20px; font-size: 16px; }
    .footer-links ul { list-style: none; }
    .footer-links li { margin-bottom: 12px; }
    .footer-links a { color: var(--text-gray); text-decoration: none; font-size: 14px; transition: color 0.3s; }
    .footer-links a:hover { color: var(--primary); }
    .footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; text-align: center; font-size: 13px; }

    @media (max-width: 768px) {
      .nav-menu { display: none; }
      .menu-toggle { display: block; }
      .tag-article-card { flex-direction: column; }
      .tag-article-img { width: 100%; height: 200px; }
      .footer-grid { grid-template-columns: 1fr; }
    }