@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-color: #e2e8f0;
  --accent-color: #0ea5e9;
  --accent-light: rgba(14, 165, 233, 0.05);
  --max-width: 960px;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: var(--accent-color);
  transition: all 0.2s ease-in-out;
}
a:hover {
  opacity: 0.8;
  color: var(--text-main);
}

/* Header */
header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 5%;
  max-width: 1200px;
  margin: 20px auto;
  background-color: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
}

.x-to5k {
  display: flex;
  align-items: center;
}

.y-v2an {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  background-color: var(--accent-light);
  transition: background-color 0.2s;
}
.y-v2an:hover {
  background-color: rgba(37, 99, 235, 0.1);
}
.y-v2an span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--accent-color);
}

.x-01u {
  text-align: center;
}
.x-01u h1 {
  font-size: 26px;
  letter-spacing: -1.5px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-color), #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.y-pkou {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Search Bar (Header Right) */
.ui-ob75 {
  display: flex;
  align-items: center;
  background-color: var(--bg-color);
  border-radius: 30px;
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}
.ui-ob75:focus-within {
  background-color: var(--card-bg);
  border-color: var(--accent-color);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
}
.w-xk3 {
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
  margin-right: 8px;
}
#searchInput {
  border: none;
  background: transparent;
  padding: 4px 0;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  width: 120px;
  color: var(--text-main);
  transition: width 0.3s ease;
}
#searchInput::placeholder {
  color: var(--text-muted);
}
#searchInput:focus {
  width: 180px;
}

/* Main Container */
.app-c8gm {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 5% 100px;
}

/* Horizontal Article List (Index) */
.z-zmre {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

/* Grid Variant */
.z-zmre.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.z-zmre.grid .ui-ohta {
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}
.z-zmre.grid .z-h2jl {
  flex: none;
  width: 100%;
}
.z-zmre.grid .z-h2jl img {
  height: 220px;
}

.ui-ohta {
  display: flex;
  gap: 30px;
  align-items: center;
  background: var(--card-bg);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
  transition: transform 0.3s, box-shadow 0.3s;
}
.ui-ohta:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.z-h2jl {
  flex: 0 0 280px;
  width: 280px;
  overflow: hidden;
  border-radius: 12px;
}
.z-h2jl img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}
.ui-ohta:hover .z-h2jl img {
  transform: scale(1.05);
}

.ui-ewj3 {
  flex: 1;
}

.x-zoj3 {
  font-size: 22px;
  margin-bottom: 10px;
  line-height: 1.3;
}
.x-zoj3 a {
  color: var(--text-main);
}
.x-zoj3 a:hover {
  color: var(--accent-color);
}

.ui-5nu {
  font-size: 12px;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.x-tu38 {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Article Page */
.ui-47k {
  text-align: center;
  margin: 40px 0;
}

.z-87g {
  font-size: 38px;
  margin-bottom: 15px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main);
}

.l-8cs {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Article Featured Image */
.z-qu9 {
  width: 100%;
  margin-bottom: 40px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.y-l8a {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.y-kybd {
  font-size: 18px;
  color: #334155;
  line-height: 1.8;
  max-width: 760px;
  margin: 0 auto;
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.y-kybd h2, .y-kybd h3 {
  margin-top: 40px;
  margin-bottom: 15px;
  color: var(--text-main);
}

.y-kybd p {
  margin-bottom: 25px;
}
.y-kybd ul, .y-kybd ol {
  margin-bottom: 25px;
  padding-left: 24px;
}
.y-kybd li {
  margin-bottom: 10px;
}

/* Links inside content */
.y-kybd a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.y-kybd a:hover {
  text-decoration: none;
  background-color: var(--accent-light);
}

/* Pagination */
.w-y20 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}
.app-auj {
  padding: 10px 20px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: all 0.2s;
}
.app-auj:hover {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}
.page-info {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 5%;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 13px;
  max-width: var(--max-width);
  margin: 40px auto 0;
}

/* Responsive */
@media (max-width: 768px) {
  .ui-ohta {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 20px;
  }
  .z-zmre.grid {
    grid-template-columns: 1fr;
  }
  .z-h2jl {
    flex: none;
    width: 100%;
  }
  .z-h2jl img {
    height: 200px;
  }
  .z-87g {
    font-size: 30px;
  }
  .y-kybd {
    padding: 20px;
  }
  header {
    margin: 10px auto;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}
