
:root {
  --primary-color: #2D9CDB;
  --secondary-color: #27AE60;
  --accent-color: #F2994A;
  --background-color: #F5F5F5;
  --text-color: #333333;
  --code-bg-color: #f9f9f9;
  --code-text-color: #1a1a1a;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 40px 20px;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  margin: 0;
  font-weight: bold;
}

header p {
  font-size: 1.2rem;
  margin-top: 10px;
}

.container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 20px auto;
  padding: 0 20px;
}

.section {
  grid-column: span 12;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .section {
    grid-column: span 8;
    justify-self: center;
  }
}

.article-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article-content h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 20px;
}

.article-content h3 {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-top: 25px;
  margin-bottom: 15px;
}

.article-content p {
  font-size: 1rem;
  margin-bottom: 15px;
}

pre {
  background: var(--code-bg-color);
  color: var(--code-text-color);
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  font-size: 0.9rem;
}

code {
  font-family: 'Courier New', Courier, monospace;
}

.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.grid-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.grid-gallery img:hover {
  transform: scale(1.05);
}

.data-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.data-list-item {
  background: #eef7ff;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.data-list-item:hover {
  background: #d9edff;
}

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

th, td {
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
}

th {
  background: var(--primary-color);
  color: white;
}

td {
  background: #f9f9f9;
}

button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: var(--accent-color);
}

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

  .article-content h2 {
    font-size: 1.75rem;
  }

  pre {
    font-size: 0.8rem;
  }
}

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

  .article-content h2 {
    font-size: 1.5rem;
  }

  pre {
    font-size: 0.7rem;
  }

  .grid-gallery {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}

