@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&display=swap");

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #f7fafd 0%, #fbeee6 100%);
  color: #222;
  margin: 0;
  padding: 0;
  line-height: 1.7;
  font-size: 1.08rem;
  min-height: 100vh;
  background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="1" cy="1" r="1" fill="%23ff6f61" fill-opacity="0.08"/></svg>');
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
}
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1rem;
}
header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 0.5rem 0 0.5rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.2s;
}
header h1 {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: 1px;
  font-weight: 700;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
}
header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.2rem;
}
header nav a {
  text-decoration: none;
  color: #2a5d9f;
  font-weight: 600;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-size: 1.08rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-bottom 0.2s;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
}
header nav a:hover {
  color: #ff6f61;
  border-bottom: 2px solid #ff6f61;
}
header nav a.active {
  color: #ff6f61;
  border-bottom: 2px solid #ff6f61;
}
main {
  margin-bottom: 2rem;
}
.featured-articles {
  margin: 1.2rem 0 1.2rem 0;
}
.featured-articles h2,
.articles-list h2,
.about h2 {
  font-size: 1.7rem;
  margin-bottom: 1.2rem;
  color: #2a5d9f;
  font-weight: 700;
  letter-spacing: 0.5px;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
}
.blog-layout {
  display: flex;
  gap: 2.2rem;
  margin-top: 1rem;
}
.main-content {
  flex: 2;
  padding-top: 0.3rem;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
}
.sidebar {
  flex: 1;
  background: linear-gradient(135deg, #fff6f3 0%, #f7fafd 100%);
  border-radius: 18px;
  padding: 1.1rem 0.7rem;
  box-shadow: 0 4px 16px rgba(255, 111, 97, 0.07);
  border: 1.5px solid #ffe1db;
  min-width: 220px;
  max-width: 320px;
  margin-top: 0.2rem;
  align-self: flex-start;
}
.sidebar-section + .sidebar-section {
  margin-top: 2rem;
}
.sidebar h3 {
  font-size: 1.15rem;
  color: #ff6f61;
  margin-bottom: 0.7em;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
}
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}
.category-list li {
  margin-bottom: 0.5em;
}
.category-list a {
  background: #ffedea;
  color: #ff6f61;
  border-radius: 999px;
  padding: 0.3em 1em;
  font-size: 0.98em;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border: 1px solid #ff6f61;
  display: inline-block;
}
.category-list a:hover {
  background: #ff6f61;
  color: #fff;
}
.category-list a.active {
  background: #ff6f61;
  color: #fff;
  border-color: #ff6f61;
  cursor: default;
  pointer-events: none;
}
.section-title {
  font-size: 1.4rem;
  color: #ff6f61;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.articles-list article {
  background: #fff;
  border-radius: 18px;
  padding: 1.2rem 1.2rem 1.2rem 0.7rem;
  box-shadow: 0 4px 24px rgba(255, 111, 97, 0.09);
  border-left: 6px solid #ff6f61;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  position: relative;
  margin: 1rem 0;
}
.articles-list article:hover {
  box-shadow: 0 8px 32px rgba(255, 111, 97, 0.18);
  transform: translateY(-2px) scale(1.01);
  border-left: 6px solid #2a5d9f;
}
.article-thumb {
  width: 110px;
  height: 110px;
  background: #e3eaf6;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 2px 8px rgba(42, 93, 159, 0.07);
}
.articles-list .article-content {
  flex: 1;
}
.articles-list h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
}
.articles-list h3 a {
  color: #1a3a5e;
  text-decoration: none;
  transition: color 0.2s;
}
.articles-list h3 a:hover {
  color: #ff6f61;
}
.articles-list .meta {
  font-size: 0.97rem;
  color: #888;
  margin-bottom: 0.3rem;
}
.articles-list .tag-badge {
  margin-right: 0.3em;
  margin-bottom: 0.1em;
  background: #ffedea;
  color: #ff6f61;
  border-radius: 999px;
  padding: 0.18em 0.9em;
  font-size: 0.92em;
  font-weight: 600;
  border: 1px solid #ff6f61;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}
.articles-list .tag-badge:hover {
  background: #ff6f61;
  color: #fff;
}
.articles-list .summary {
  color: #555;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}
.byline {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 0.7em;
}
.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #e3eaf6;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(42, 93, 159, 0.07);
}
.byline .author-name {
  font-weight: 500;
  color: #2a5d9f;
  font-size: 1em;
}
.more-articles,
.btn {
  display: inline-block;
  margin-top: 1.5rem;
  color: #fff;
  background: #ff6f61;
  text-decoration: none;
  font-weight: 600;
  padding: 0.6em 1.3em;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(255, 111, 97, 0.09);
  border: none;
  cursor: pointer;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}
.more-articles:hover,
.btn:hover {
  background: #2a5d9f;
  color: #fff;
  box-shadow: 0 4px 16px rgba(42, 93, 159, 0.13);
}
footer {
  background: #f8f9fa;
  border-top: 1px solid #e5e5e5;
  text-align: center;
  padding: 1.2rem 0;
  margin-top: 2rem;
  font-size: 1rem;
  color: #666;
}
footer a {
  color: #ff6f61;
  text-decoration: underline;
}
footer a:hover {
  color: #2a5d9f;
}
.about {
  background: #fff6f3;
  border-radius: 18px;
  padding: 2rem 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(255, 111, 97, 0.07);
  border: 1.5px solid #ffe1db;
}
.about p {
  margin-bottom: 1.1em;
  color: #333;
  font-size: 1.08rem;
}
article {
  background: #fff;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 2px 8px rgba(42, 93, 159, 0.06);
  border: 1px solid #e5eaf2;
}
article h2 {
  color: #2a5d9f;
  font-size: 1.7rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
article h3 {
  color: #1a3a5e;
  font-size: 1.15rem;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  font-weight: 600;
}
article ul,
article ol {
  margin-left: 1.2em;
  margin-bottom: 1em;
}
article li {
  margin-bottom: 0.4em;
}
article a {
  color: #2a5d9f;
  text-decoration: underline;
  transition: color 0.2s;
}
article a:hover {
  color: #1a3a5e;
}
article .meta {
  font-size: 0.97rem;
  color: #888;
  margin-bottom: 0.7em;
}
article .summary {
  color: #555;
  margin-bottom: 1.1em;
  font-size: 1.08rem;
}
img,
.article-image {
  max-width: 100%;
  border-radius: 8px;
  margin: 1.2em 0;
  display: block;
}
blockquote {
  border-left: 4px solid #2a5d9f;
  background: #f4f7fb;
  color: #444;
  margin: 1.5em 0;
  padding: 1em 1.5em;
  font-style: italic;
  border-radius: 6px;
}
pre,
code {
  background: #f4f7fb;
  color: #1a3a5e;
  border-radius: 4px;
  padding: 0.2em 0.5em;
  font-family: "Fira Mono", "Consolas", monospace;
  font-size: 0.98em;
}
pre {
  padding: 1em;
  overflow-x: auto;
  margin: 1.2em 0;
}
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
  }
  .blog-layout {
    gap: 1.2rem;
  }
  .articles-list article {
    margin: 0.5rem 0;
  }
}
@media (max-width: 900px) {
  .blog-layout {
    flex-direction: column;
    gap: 1.2rem;
  }
  .sidebar {
    max-width: 100%;
    min-width: 0;
    margin-top: 1rem;
    align-self: stretch;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 0.3rem;
  }
  .header-flex {
    gap: 0.2rem;
  }
  .logo {
    font-size: 1.1rem;
  }
  .main-content {
    padding-top: 0.2rem;
  }
  .sidebar {
    padding: 0.7rem 0.3rem;
  }
  .featured-articles {
    margin: 0.7rem 0 0.7rem 0;
  }
  .section-title {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
  }
  .articles-list article {
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem 0.5rem 0.7rem 0.5rem;
    border-left: 4px solid #ff6f61;
  }
  .article-thumb {
    width: 100%;
    height: 180px;
    margin-bottom: 0.7em;
  }
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.logo {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ff6f61;
  letter-spacing: 2px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5em;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(255, 111, 97, 0.07);
}
.logo:hover,
.logo:focus {
  color: #d94c3a;
  text-decoration: none;
}
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.3s;
}
.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
.burger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #ff6f61;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s;
}
@media (max-width: 900px) {
  .header-flex {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .burger {
    display: flex;
  }
  #main-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff6f3;
    border-bottom: 1px solid #ffe1db;
    box-shadow: 0 2px 8px rgba(255, 111, 97, 0.04);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 1.5rem 1.5rem 1.5rem;
    z-index: 1000;
    animation: fadeInNav 0.3s;
  }
  #main-nav.open {
    display: flex;
  }
  #main-nav ul {
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
  }
  #main-nav ul li {
    width: 100%;
  }
  #main-nav ul li a {
    width: 100%;
    display: block;
    padding: 0.7em 0;
    font-size: 1.1em;
  }
}
@keyframes fadeInNav {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.article-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(255, 111, 97, 0.09);
  border-left: 6px solid #ff6f61;
  padding: 2.2rem 2rem 2rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.article-card:hover {
  box-shadow: 0 8px 32px rgba(255, 111, 97, 0.18);
  border-left: 6px solid #2a5d9f;
}
.article-hero {
  width: 100%;
  max-width: 520px;
  height: auto;
  max-height: 340px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(42, 93, 159, 0.09);
  display: block;
}
.article-card h2 {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-size: 2rem;
  color: #ff6f61;
  font-weight: 700;
  margin-bottom: 0.7rem;
  text-align: center;
}
.article-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.1em;
}
.article-card .summary {
  color: #555;
  margin-bottom: 1.1em;
  font-size: 1.08rem;
  text-align: center;
}
.article-card section {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.article-card h3 {
  color: #1a3a5e;
  font-size: 1.15rem;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  font-weight: 600;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}
@media (max-width: 900px) {
  .article-card {
    padding: 1.2rem 0.7rem 1.2rem 0.7rem;
  }
  .article-hero {
    max-width: 100%;
    max-height: 220px;
  }
}
@media (max-width: 600px) {
  .article-card {
    padding: 0.7rem 0.3rem 0.7rem 0.3rem;
    border-left: 4px solid #ff6f61;
  }
  .article-hero {
    max-width: 100%;
    max-height: 160px;
    margin-bottom: 1rem;
  }
  .article-card h2 {
    font-size: 1.2rem;
  }
}
.hero {
  background: linear-gradient(120deg, #fbeee6 60%, #f7fafd 100%);
  padding: 3.5rem 0 2.5rem 0;
  text-align: center;
  position: relative;
  margin-bottom: 2.5rem;
}
.hero-inner {
  max-width: 700px;
  margin: 0 auto;
}
.hero-title {
  font-size: 2.5rem;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  color: #ff6f61;
  margin-bottom: 1.1rem;
  letter-spacing: 1px;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: #2a5d9f;
  margin-bottom: 2.2rem;
  font-weight: 500;
}
.hero-btn {
  display: inline-block;
  background: #ff6f61;
  color: #fff;
  font-size: 1.13rem;
  font-weight: 700;
  padding: 0.85em 2.2em;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(255, 111, 97, 0.13);
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  letter-spacing: 0.5px;
}
.hero-btn:hover {
  background: #2a5d9f;
  color: #fff;
  box-shadow: 0 8px 32px rgba(42, 93, 159, 0.13);
  transform: translateY(-2px) scale(1.03);
}
@media (max-width: 600px) {
  .hero-title {
    font-size: 1.5rem;
  }
  .hero-subtitle {
    font-size: 1.02rem;
  }
  .hero {
    padding: 2rem 0 1.2rem 0;
  }
}
