/* =========================
   LAYOUT OVERRIDE
========================= */

body > main > .page-columns > .page-rows-contents {
  margin-right: 220px !important;
}

/* =========================
   GENERAL TEXT
========================= */

p {
  margin-bottom: 0.6rem;
  line-height: 1.65;
  color: var(--ink-600);
}

/* =========================
   HEADINGS
========================= */

h2 {
  margin-top: 1.4rem;
  margin-bottom: 0.6rem;
  font-size: 1.5rem;
  color: var(--ink-900);
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: var(--accent-line);
}

/* =========================
   MODELS GRID
========================= */

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 0.6rem 0 1.2rem;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .info-grid { grid-template-columns: 1fr; }
}

.info-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-green);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--kaist-blue-400);
}

.info-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  color: var(--ink-900);
}

.info-card p {
  margin: 0;
  font-size: 0.93rem;
}

/* =========================
   PROJECT BLOCK
========================= */

.project-block {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem 0.9rem;
  margin: 0 0 1rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.project-block:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--kaist-blue-400);
}

.project-header {
  margin-bottom: 0.5rem;
}

.project-header h3 {
  margin: 0 0 0.1rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-900);
}

.project-subtitle {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  color: var(--kaist-blue-600);
  font-weight: 600;
}

.project-block > p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-600);
}

/* =========================
   PROJECT FIGURE
========================= */

.project-figure {
  margin: 0.7rem 0;
  text-align: center;
}

.project-image {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

/* =========================
   MINI GRID — две колонки
========================= */

.mini-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.75rem !important;
  margin: 0.6rem 0 0.7rem !important;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .mini-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =========================
   MINI CARD
========================= */

.mini-card {
  background: var(--bg-light);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.mini-card:hover {
  border-color: var(--kaist-blue-400);
  background: #ffffff;
}

.mini-card h4 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-800);
  line-height: 1.3;
}

.mini-card p {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-600);
}

.mini-card p:last-child { margin-bottom: 0; }

.mini-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.mini-card li {
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: var(--ink-600);
  line-height: 1.55;
}

.mini-card li:last-child { margin-bottom: 0; }

/* =========================
   LINKS
========================= */

a {
  color: var(--kaist-blue-600);
  text-decoration: none;
  font-weight: 500;
}

a:hover { text-decoration: underline; }

.learn-more {
  margin-top: 0.6rem;
  margin-bottom: 0;
  font-size: 0.92rem;
  color: var(--ink-600);
}
/* mini-card с фоном */
.mini-card {
  background: #f8fafc !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  padding: 0.85rem 1rem !important;
}

/* h4 с зелёной линией */
.mini-card h4 {
  font-size: 0.97rem !important;
  font-weight: 700 !important;
  color: var(--ink-900) !important;
  margin: 0 0 0.5rem !important;
  padding-bottom: 0.3rem !important;
  border-bottom: 2px solid var(--accent-line) !important;
}

/* project-subtitle */
.project-subtitle {
  color: var(--kaist-blue-600) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: block !important;
  margin-bottom: 0.6rem !important;
}

/* project-header h3 */
.project-header h3 {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: var(--ink-900) !important;
  margin: 0 0 0.15rem !important;
}
