/* ==== Header mặc định (Desktop) ==== */
.site-header {
  width: 100%;
  background-color: #f4f7f6;
  border-bottom: 1px solid #ddd;
}

.header-container {
  max-width: 1200px;
  
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* logo bên trái */
  
}

.logo {
  width: 220px;
  height: auto;
  display: block;
}

/* ==== Responsive Mobile ==== */
@media (max-width: 768px) {
  .header-container {
    justify-content: center; /* căn giữa logo */
    height: 55px;
    padding: 0 10px;
  }

  .logo {
    width: 160px; /* nhỏ hơn chút */
  }
}
.instructions {
  margin: auto;
  font-size: 16px;
  color: var(--color-tone-1);
 background:#374151;
}
.ins1 {
    padding: 40px 40px;
    text-align: center;
    margin-top: 40px;
    color:#fff;
}
.ins1 a {
    color: white;
    font-weight: bold;
}
.ins2{
    background:#1e293b;
    color:#fff;
padding: 40px 40px;}
h2 {
    text-align:center;
    margin:40px 0 20px;
    font-size:28px;
    font-weight:700;
  }
  /* How to Play */
  .howto {
    display:grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    max-width:900px;
    margin:0 auto;
    padding:20px;
  }
  .card1 {
    border-radius:10px;
    padding:24px 16px;
    text-align:center;
    box-shadow:0 2px 6px rgba(0,0,0,0.3);
  }
  .card1:nth-child(odd) { background:#2d3748; }
  .card1:nth-child(even){ background:#374151; }
  .card1 span.icon {
    font-size:32px;
    display:block;
    margin-bottom:12px;
  }
  .card1 h3 {
    margin:0 0 8px;
    font-size:18px;
    font-weight:700;
  }
  .card1 p {
    margin:0;
    font-size:14px;
    color:#cbd5e1;
  }
  .tiles {
    display:flex;
    justify-content:center;
    gap:8px;
    margin:30px 0;
    /* width: auto; */
  }
  .tile {
    width: auto;
    height:50px;
    font-size:22px;
    font-weight:bold;
    border-radius:4px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    padding: 10px;
  }
  .green { background:#6aaa64; }
  .yellow{ background:#c9b458; }
  .gray  { background:#787c7e; }
.tile.green a {
    text-decoration-line: none;
}
/* Why Play Here */
  .features {
    display:grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    max-width:1000px;
    margin:0 auto;
    padding:20px;
  }
  .feature {
    border-radius:10px;
    padding:24px 16px;
    text-align:center;
    box-shadow:0 2px 6px rgba(0,0,0,0.3);
  }
  .feature:nth-child(odd) { background:#2d3748; }
  .feature:nth-child(even){ background:#374151; }
  .feature span.icon {
    font-size:32px;
    display:block;
    margin-bottom:12px;
  }
  .feature h3 {
    margin:0 0 8px;
    font-size:18px;
    font-weight:700;
  }
  .feature p {
    margin:0;
    font-size:14px;
    color:#cbd5e1;
  }
.ins3{margin:0;
    font-family:'Segoe UI',sans-serif;
    background:#fdfaf6;
    color:#1e293b;}
.section {
    text-align:center;
    padding:40px 20px;
  }
  .section h2 {
    font-size:28px;
    font-weight:700;
    margin-bottom:10px;
  }
  .section p {
    font-size:16px;
    color:#4b5563;
    margin:0 0 30px;
  }
  .languages {
    display:grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap:16px;
    max-width:1000px;
    margin:0 auto;
  }
  .lang {
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:8px;
    padding:12px 16px;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    font-weight:600;
    font-size:15px;
    cursor:pointer;
    transition: all 0.2s ease;
  }
  .lang img {
    width:28px;
    height:20px;
    margin-right:12px;
    border-radius:3px;
    object-fit:cover;
  }
  .lang:hover {
    background:#f3f4f6;
    transform:translateY(-2px);
  }
  .highlight {
    color:#059669; /* xanh lÃ¡ ná»•i báº­t */
  }
/* Footer */
   footer {
    display:flex;
    justify-content:end;
    gap:20px;
    padding:20px;
    color: #fff;
    font-size:14px;
    flex-wrap:wrap;
    background: #1e293b;
    border-top: 1px solid #fff;
  }
  footer a {color:#fff;text-decoration:none;}
  footer a:hover{text-decoration:underline;}
.page {
    width: 900px;
    margin: auto;
}.examples {
	border-bottom: 1px solid var(--color-tone-4);
	border-top: 1px solid var(--color-tone-4);
}

.example {
	margin-top: 24px;
	margin-bottom: 24px;
}

game-tile {
	width: 40px;
	height: 40px;
}

:host([page]) section {
	padding: 16px;
	padding-top: 0px;
}
.wordle-mode-container {
  background: #fdfaf6;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 20px 30px;
  text-align: center;
  margin-top: 40px;
  max-width: 100%;
  width: 100%;
}

.wordle-title {
  
  font-weight: 600;
  margin-bottom: 8px;
}

.wordle-subtitle {
  color: #fff;
  margin-bottom: 15px;
text-align: center;
}

.wordle-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.wordle-buttons button {
  background: #fff;
  color: #666;
  border: none;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.wordle-buttons button:hover {
  background: beige;
}
@media (max-width: 480px) {
  .wordle-buttons {
    flex-direction: column;
  }
}
/* Footer */
  footer {
    display:flex;
    justify-content:end;
    gap:20px;
    padding:20px;
    color:#cbd5e1;
    font-size:14px;
    flex-wrap:wrap;
background:#374151;
  }
  footer a {color:#cbd5e1;text-decoration:none;}
  footer a:hover{text-decoration:underline;}
.single-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.post-article {
  background: #fff;
}

.post-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.post-meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 25px;
}

.post-body {
  line-height: 1.7;
  font-size: 1.05rem;
  color: #333;
}

.single-sidebar {
  background: #f8f8f8;
  padding: 20px;
  border-radius: 10px;
  height: fit-content;
}

.related-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
}

.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 10px;
}

.related-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #333;
  transition: color 0.2s ease-in-out;
}

.related-item a:hover .related-title-text {
  color: #6b46f2;
}

.related-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
}

.related-title-text {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
}
.card {
    border-radius:10px;
    padding:24px 16px;
    text-align:center;
    box-shadow:0 2px 6px rgba(0,0,0,0.3);
  }
  .card:nth-child(odd) { background:#2d3748; }
  .card:nth-child(even){ background:#374151; }
  .card span.icon {
    font-size:32px;
    display:block;
    margin-bottom:12px;
  }
  .card h3 {
    margin:0 0 8px;
    font-size:18px;
    font-weight:700;
  }
  .card p {
    margin:0;
    font-size:14px;
    color:#cbd5e1;
  }
@media (max-width: 900px) {
  .single-container {
    grid-template-columns: 1fr;
  }

  .single-sidebar {
    margin-top: 40px;
  }
}