
:root {
  --primary-color: #0A192F;
  --secondary-color: #645CAA;
  --accent-color: #3EFFB7;
  --highlight-color: #FF8C42;
  --background-gradient: linear-gradient(135deg, #0A192F, #1E2D4D);
  --card-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

body {
  font-family: 'Open Sans', sans-serif;
  background: var(--background-gradient);
  color: white;
  line-height: 1.6;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  background: -webkit-linear-gradient(#3EFFB7, #FF8C42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.card {
  background: #1A243D;
  border-radius: 15px;
  padding: 20px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--accent-color);
  border-radius: 5px 5px 0 0;
}

.card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.card p {
  color: #BFC9D9;
  margin-bottom: 15px;
}

.tags {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--accent-color);
}

.interaction {
  text-align: center;
  padding: 10px 20px;
  background: var(--highlight-color);
  color: var(--primary-color);
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.interaction:hover {
  background: #FFAA70;
}

.article-container {
  margin-top: 50px;
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
}

.article-container h2 {
  color: var(--accent-color);
  margin-bottom: 20px;
}

.article-container pre {
  background: #141C2D;
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
}

.article-container code {
  color: #FFD700;
  font-size: 0.9rem;
}

.article-container table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.article-container th,
.article-container td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px;
  text-align: center;
}

.article-container th {
  background: var(--secondary-color);
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  .container {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 15px;
  }
}

