/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #212121;
  --accent: #1a3a6b;
  --accent-light: #e4eaf4;
  --text: #3c4043;
  --text-light: #5f6368;
  --bg: #ffffff;
  --bg-gray: #f8f9fa;
  --border: #e0e0e0;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --radius: 4px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 15px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--primary);
}

.logo-img {
  height: 40px;
  width: auto;
  display: inline-block;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  transition: all var(--transition);
  letter-spacing: 0.1px;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--bg-gray);
}

.nav-links a.active {
  color: var(--accent);
  background: var(--accent-light);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: all var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  margin-top: 64px;
  padding: 72px 0 56px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  display: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 760px;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.hero-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-gray);
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero h1 .highlight {
  color: var(--accent);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

.hero p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 28px;
  max-width: 640px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #122d54;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Section Common ===== */
.section {
  padding: 44px 0;
}

.section-gray {
  background: var(--bg-gray);
}

.section-header {
  margin-bottom: 25px;
}

.section-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

.stat-card {
  text-align: center;
  padding: 28px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-card:hover {
  border-color: var(--accent);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 400;
}

/* ===== News ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.news-card:hover {
  border-color: var(--accent);
}

.news-thumb {
  height: 160px;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.news-body {
  padding: 20px;
}

.news-date {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.news-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.45;
}

.news-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}


/* ===== Spotlights ===== */
/* Spotlights 전용 컨테이너 */
.spotlight-container {
  display: flex;
  flex-direction: column;
  gap: 25px; /* 박스 사이 간격 */
  margin-top: 30px;
}

/* 개별 카드형 박스 */
.spotlight-card {
  display: flex;
  align-items: center; /* 세로 중앙 정렬 */
  background: #ffffff;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.spotlight-card:hover {
  transform: translateY(-5px);
}

/* 이미지 영역: 크기를 강제하지 않고 최대폭만 제한 */
.spotlight-img-area {
  flex: 0 0 35%; /* 이미지 영역이 차지할 너비 (35%) */
  max-width: 35%;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fcfcfc; /* 이미지 배경에 살짝 색을 주어 경계 구분 */
}

.spotlight-img-area img {
  max-width: 100%;
  max-height: 250px; /* 너무 길어지는 것 방지 */
  height: auto;      /* 원본 비율 유지 */
  width: auto;
  border-radius: 4px;
}

/* 텍스트 영역 */
.spotlight-text-area {
  flex: 1;
  padding: 30px 40px 30px 10px;
}

.spotlight-text-area h3 {
  margin: 10px 0;
  font-size: 1.4rem;
  color: #333;
}

.spotlight-text-area p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* 모바일 대응: 화면이 좁아지면 세로로 배치 */
@media (max-width: 768px) {
  .spotlight-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .spotlight-img-area {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    padding: 20px;
  }
  .spotlight-text-area {
    padding: 20px;
  }
}



/* ===== News List ===== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/*
.news-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
*/

.news-item:hover {
  border-color: var(--accent);
}

.news-date-badge {
  flex-shrink: 0;
  min-width: 92px;
  padding: 6px 10px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: var(--radius);
}

a.news-slide {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

/*
.news-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
  line-height: 1.4;
}

.news-content p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}
*/


/* 사각형 박스(테두리)가 포함된 전체 항목 스타일 */
.news-item {
  display: flex;
  align-items: center;       /* 수직 중앙 정렬 */
  padding: 10px 15px;        /* 안쪽 여백 */
  margin-bottom: 3px;       /* 항목 간의 아래쪽 간격 */
  background-color: #ffffff; /* 박스 내부 배경색 (흰색) */
  border: 1px solid #cbd5e1; /* 사각형 박스 테두리 살리기 (은은한 회색/블루 톤) */
  border-radius: 6px;        /* 박스 모서리를 살짝 둥글게 */
}

/* 텍스트 스타일 (이전과 동일) */
.news-content {
  font-size: 0.95rem;
  font-weight: 400;
  color: #333;
  margin: 0;
  padding-left: 15px;
  line-height: 1.5;
}


.news-photo {
  margin-top: 12px;
  max-width: 400px;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

@media (max-width: 480px) {
  .news-item {
    flex-direction: column;
    gap: 8px;
  }
  .news-date-badge {
    width: auto;
    display: inline-block;
    padding: 4px 12px;
  }
}

/* ===== Research Areas (Home) ===== */
.research-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.research-card {
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.research-card:hover {
  border-color: var(--accent);
}

.research-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.research-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.research-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== Page Header (Sub pages) ===== */
.page-header {
  margin-top: 64px;
  padding: 48px 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.page-header p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== Members Page ===== */
.member-section {
  margin-bottom: 48px;
}

.member-section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.member-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: border-color var(--transition);
}

.member-card:hover {
  border-color: var(--accent);
}

.member-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  margin: 0 auto 16px;
  object-fit: cover;
  object-position: center 20%;
}

.member-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.member-role {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 6px;
}

.member-interest {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
}

.member-email {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 6px;
}

.member-card h3 a {
  color: var(--primary);
  transition: color var(--transition);
}

.member-card h3 a:hover {
  color: var(--accent);
}

.member-links {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.member-links a {
  font-size: 0.78rem;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-light);
  transition: all var(--transition);
}

.member-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Professor Card ===== */
.professor-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.professor-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  margin: 0 auto;
  object-fit: cover;
  object-position: center 20%;
}

.professor-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.professor-info h3 a:hover {
  color: var(--accent);
}

.professor-info .member-role {
  margin-bottom: 20px;
}

.professor-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.professor-detail-group h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.professor-detail-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.professor-detail-group li {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

.professor-detail-group a {
  color: var(--accent);
}

.professor-detail-group a:hover {
  text-decoration: underline;
}

/* ===== Member Education ===== */
.member-edu {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.member-edu p {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .professor-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .professor-photo {
    margin: 0 auto;
  }
}

/* ===== Profile Page ===== */
.profile-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}

.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 1px solid var(--border);
}

.profile-info h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.profile-section {
  margin-top: 20px;
}

.profile-section h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.profile-section p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

.profile-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-section li {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

.profile-section a {
  color: var(--accent);
}

.profile-section a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .profile-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .profile-photo {
    margin: 0 auto;
  }
}

/* ===== Publications Page ===== */
.pub-year {
  margin-bottom: 40px;
}

.pub-year h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pub-item {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.pub-item:hover {
  border-left: 3px solid var(--accent);
}

.pub-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
  line-height: 1.5;
}

.pub-authors {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.pub-venue {
  font-size: 0.83rem;
  color: var(--text-light);
  font-weight: 500;
  font-style: italic;
}

.pub-tags {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/*
.pub-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  background: var(--bg-gray);
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 500;
}
*/


/* 공통 태그 스타일 */
/*
.news-content .pub-tag {
  font-size: 0.82rem;
  padding: 0px 4px;
  line-height: 1.5;
}
*/

.pub-tag {
  display: inline-block;
  font-size: 0.62rem;
  padding: 0px 4px;
  border-radius: 2px; /* 첨부 이미지처럼 각진 느낌 (더 둥글게 하려면 4px 등으로 수정) */
  font-weight: 600;
  margin-left: 6px;
  vertical-align: middle;
  background-color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 1. Quality (다크 레드) */
.tag-quality {
  color: #8E242C;
  border: 1px solid #8E242C;
}


/* 2. HW Design (파란색) */
.tag-hw-design {
  color: #1C64A6;
  border: 1px solid #1C64A6;
}

/* 3. AX (초록색) */
.tag-ax {
  color: #429643;
  border: 1px solid #429643;
}

/* 4. AI (보라색) */
.tag-ai {
  color: #693287;
  border: 1px solid #693287;
}




/* ===== Research Page ===== */
.research-detail {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.research-item {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 36px;
  align-items: center;
  padding: 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.research-item:nth-child(even) {
  direction: rtl;
}

.research-item:nth-child(even) > * {
  direction: ltr;
}

.research-item-full {
  grid-template-columns: 1fr;
  direction: ltr;
}

.research-item-banner {
  width: 100%;
  border-radius: var(--radius);
  object-fit: contain;
  background: #fff;
}

.research-item-visual {
  height: 220px;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.research-item-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.research-item-content p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.research-keywords {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.research-keyword {
  font-size: 0.78rem;
  padding: 3px 12px;
  background: var(--bg-gray);
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 500;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.65);
  padding: 48px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.footer-brand h3 span {
  color: #7a9ec9;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-col h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.82rem;
}

/* ===== Gallery Page ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.gallery-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.gallery-item:hover {
  border-color: var(--accent);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.gallery-item p {
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ===== News Slider (Home) ===== */
.news-slider-wrap {
  position: relative;
  padding: 0 4px;
  margin-bottom: 32px;
}

.news-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding: 4px 0;
}

.news-slider::-webkit-scrollbar {
  display: none;
}

.news-slide {
  flex: 0 0 calc((100% - 32px) / 3);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.news-slide:hover {
  border-color: var(--accent);
}

.news-slide-thumb {
  width: 100%;
  height: 170px;
  background: var(--bg-gray);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.news-slide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-slide-body {
  padding: 16px 18px 18px;
}

.news-slide-body .news-date-badge {
  display: inline-block;
  width: auto;
  padding: 4px 10px;
  margin-bottom: 8px;
  font-size: 0.76rem;
}

.news-slide-body h3 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.news-slide-body p {
  font-size: 0.86rem;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.news-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.news-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.news-nav-prev {
  left: -18px;
}

.news-nav-next {
  right: -18px;
}

@media (max-width: 1024px) {
  .news-slide {
    flex-basis: calc((100% - 16px) / 2);
  }
}

@media (max-width: 640px) {
  .news-slide {
    flex-basis: 85%;
  }
  .news-nav {
    display: none;
  }
}

/* ===== Gallery Slider (Home) ===== */
.gallery-slider-wrap {
  position: relative;
}

.gallery-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.gallery-slider::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  flex: 0 0 260px;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.gallery-slide:hover {
  border-color: var(--accent);
}

.gallery-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.gallery-slide p {
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 1024px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid,
  .research-preview {
    grid-template-columns: repeat(2, 1fr);
  }
  .research-item {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .research-item:nth-child(even) {
    direction: ltr;
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    gap: 2px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-image img {
    max-width: 400px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .news-grid,
  .research-preview {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .section {
    padding: 48px 0;
  }
}
