/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: #000000;
  background-color: #ffffff;
  font-size: 17px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
}

h2 {
  font-size: 2rem;
  font-weight: 500;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: #000000;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #111111;
  text-decoration: underline;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.content-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.header {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: #000000;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: #111111;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  font-weight: 400;
  color: #555555;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: #000000;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background-color: #000000;
  margin: 2px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(120deg, var(--accent-light) 0%, #fff 100%);
  border-bottom: 1.5px solid #e0e0e0;
}

.hero-title {
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--accent-dark);
}

.hero-description {
  font-size: 1.125rem;
  color: #555555;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Articles Grid */
.recent-articles {
  padding: 4rem 0;
}

.section-title {
  margin-bottom: 3rem;
  text-align: center;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.article-card {
  padding: 2rem;
  border: 1px solid #e0e0e0;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  background: #fff;
}

.article-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px 0 rgba(75, 140, 255, 0.08);
  transform: translateY(-4px) scale(1.015);
}

.article-card h3 {
  margin-bottom: 1rem;
}

.article-card h3 a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
  position: relative;
}

.article-card h3 a::after {
  content: " →";
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  color: var(--accent);
  font-size: 1.1em;
  position: relative;
  left: 2px;
}

.article-card:hover h3 a::after {
  opacity: 1;
  transform: translateX(4px);
}

.article-card h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.article-excerpt {
  color: #555555;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.article-date {
  color: #555555;
  font-size: 0.875rem;
  font-weight: 300;
}

.view-all {
  text-align: center;
}

.view-all-link {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid #e0e0e0;
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
  font-weight: 500;
  border-bottom: 2px solid var(--accent);
}

.view-all-link:hover {
  color: var(--accent);
  border-color: var(--accent-dark);
}

/* Article Page Styles */
.article-header {
  padding: 3rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}

.article-title {
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.article-meta {
  color: #555555;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.article-content {
  padding: 3rem 0;
}

.article-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content blockquote {
  border-left: 3px solid #e0e0e0;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #555555;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* Articles Listing Page */
.articles-listing {
  padding: 3rem 0;
  background: linear-gradient(120deg, #f7faff 0%, #fff 100%);
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 rgba(75, 140, 255, 0.04);
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.article-item {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
  border-left: 4px solid var(--accent-light);
  border-radius: 8px;
  box-shadow: 0 2px 8px 0 rgba(75, 140, 255, 0.03);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  position: relative;
}

.article-item:hover {
  box-shadow: 0 6px 32px 0 rgba(75, 140, 255, 0.1);
  border-left: 4px solid var(--accent);
  transform: translateY(-2px) scale(1.012);
}

.article-item h2 {
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
  color: var(--accent-dark);
  transition: color 0.2s;
}

.article-item h2 a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.article-item h2 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.article-item .article-excerpt {
  margin-bottom: 0.5rem;
  color: #555;
  font-size: 1rem;
}

.article-item .article-date {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Footer */
.footer {
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
  padding: 2rem 0;
  text-align: center;
  color: #555555;
  font-size: 0.875rem;
}

/* Progress Bar */
.progress-bar {
  position: fixed;
  top: 70px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #000000;
  z-index: 99;
  transition: width 0.1s ease;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: #ffffff;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .container,
  .content-container {
    padding: 0 1rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .article-card {
    padding: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-description {
    font-size: 1rem;
  }
}

/* --- Accent Colors --- */
:root {
  --accent: #4b8cff;
  --accent-light: #eaf2ff;
  --accent-dark: #1a5bb8;
}

/* Nav Active Link */
.nav-menu a.active {
  color: var(--accent-dark);
  border-bottom: 2.5px solid var(--accent);
  font-weight: 600;
  background: var(--accent-light);
  border-radius: 4px 4px 0 0;
  padding: 0.25em 0.7em;
}

/* --- Accent Content Blocks --- */
.mission-block,
.approach-block,
.accent-block {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.article-content h2 {
  color: var(--accent-dark);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.article-content h2::before {
  content: "★";
  color: var(--accent);
  font-size: 1.1em;
  margin-right: 0.5em;
  vertical-align: middle;
}

.article-content ul {
  padding-left: 2em;
  margin-bottom: 1.5rem;
}

.article-content ul li {
  position: relative;
  margin-bottom: 0.5em;
  padding-left: 0.5em;
}

.article-content ul li::before {
  content: "–";
  color: var(--accent);
  position: absolute;
  left: -1em;
  font-weight: bold;
}

.article-content blockquote {
  background: #f7faff;
  border-left: 4px solid var(--accent);
  margin: 1.5em 0;
  padding: 1.2em 2em;
  color: #333;
  font-style: italic;
  border-radius: 6px;
}

.article-content strong {
  color: var(--accent-dark);
  font-weight: 600;
}

/* --- Disable Text Selection (No Copy) --- */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
blockquote,
strong,
em,
span {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
