/* Extracted from inline iframe styles */
:root {
  --primary-color: #00c6ff;
  --secondary-color: #0072ff;
}
.embedded-map {
    border: 0;
    border-radius: 12px;
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    transition: all 0.3s ease;
}
.social {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  justify-content: left;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.icon-btn.facebook:hover { background: #1877f2; }
.icon-btn.linkedin:hover { background: #0a66c2; }
.icon-btn.github:hover { background: #24292e; }
/* Dark Mode Styles */
body.dark-mode {
    background-color: #0a0a0a;
    color: #e8e8e8;
}

body.dark-mode .navbar {
    background: #000000 !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.8) !important;
    border-bottom: 1px solid #555 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

body.dark-mode .nav-logo a {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(255, 255, 255, 0.3);
    font-weight: 700;
    letter-spacing: 0.5px;
}

body.dark-mode .nav-menu a {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body.dark-mode .nav-menu a:hover {
    color: #667eea;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

body.dark-mode .hamburger span {
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body.dark-mode .nav-menu {
    background-color: #1a1a1a;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
}

body.dark-mode .theme-toggle {
    border-color: #667eea;
    color: #667eea;
}

body.dark-mode .theme-toggle:hover {
    background: #667eea;
    color: #0a0a0a;
}

/* Hero Section Dark Mode */
body.dark-mode .hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

body.dark-mode .hero-title {
    color: #e8e8e8;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .hero-subtitle {
    color: #667eea;
}

body.dark-mode .hero-description {
    color: #b8b8b8;
}

body.dark-mode .hero-description strong {
    color: #e8e8e8;
}

body.dark-mode .hero-location .location-info {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

body.dark-mode .hero-location .location-info:hover {
    background: rgba(102, 126, 234, 0.2);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

body.dark-mode .hero-location .location-info i {
    color: #667eea;
}

body.dark-mode .hero-location .location-info span {
    color: #e8e8e8;
}

/* Section Titles */
body.dark-mode .section-title {
    color: #e8e8e8;
}

body.dark-mode .section-subtitle {
    color: #b8b8b8;
}

/* About Section - Dark Mode */

body.dark-mode .about {
    background: #0f0f0f;
}

body.dark-mode .about-text p {
    color: #b8b8b8;
}

body.dark-mode .about-text strong {
    color: #e8e8e8;
}

/* Divider màu nhạt hơn trong dark */
body.dark-mode .section-divider {
    border-top: 2px solid rgba(102, 126, 234, 0.35); /* #667eea với opacity */
}

/* Insight blocks (IQ, Workplace) */
body.dark-mode .insight-block h3 {
    color: #e8e8e8;
}

body.dark-mode .insight-block p {
    color: #b8b8b8;
}

/* Nút xem report */
body.dark-mode .insight-links .btn {
    background: #667eea;
    color: #fff;
}

body.dark-mode .insight-links .btn:hover {
    background: #5062c4;
}

/* Card bên phải */
body.dark-mode .detail-item {
    background: #1a1a1a;
    border-left-color: #667eea;
}

body.dark-mode .detail-item h4 {
    color: #e8e8e8;
}

body.dark-mode .detail-item p {
    color: #b8b8b8;
}

body.dark-mode .detail-item i {
    color: #667eea;
}
/* Research Section */
body.dark-mode .research {
    background: #0a0a0a;
}

body.dark-mode .research-card {
    background: #1a1a1a;
    border-color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .research-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

body.dark-mode .research-card h3 {
    color: #e8e8e8;
}

body.dark-mode .research-card p {
    color: #b8b8b8;
}

/* Education Section */
.education {
  padding: 80px 0;
  background: #f8f9fa;
}

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

.education-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  border-left: 4px solid #667eea;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.education-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: white;
  font-size: 1.5rem;
}

/* ✅ Info boxes inside education card */
.education-info-box {
  background: linear-gradient(135deg, #e0f0ff 0%, #d0e8ff 100%);
  border-left: 4px solid #667eea;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.education-info-box:hover {
  background: linear-gradient(135deg, #d0e4ff 0%, #c0dbff 100%);
  transform: translateY(-3px);
}

.education-info-box h4 {
  margin: 0 0 0.4rem;
  color: #1a1a1a;
  font-size: 1.1rem;
}

.education-info-box p {
  margin: 0;
  color: #333;
  line-height: 1.5;
}

.cert-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cert-list li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.cred-link {
  color: #667eea;
  margin-left: 0.6rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.cred-link:hover {
  color: #764ba2;
  transform: translateY(-1px);
}

/* 🌙 Dark Mode */
body.dark-mode .education {
  background: #0f0f0f;
}

body.dark-mode .education-card {
  background: #1a1a1a;
  border-color: #333;
  border-left: 4px solid #667eea;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .education-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

body.dark-mode .education-info-box {
  background: linear-gradient(135deg, #1e2a40 0%, #152033 100%);
  border-left: 4px solid #667eea;
}

body.dark-mode .education-info-box h4 {
  color: #e8e8e8;
}

body.dark-mode .education-info-box p,
body.dark-mode .cert-list li {
  color: #b8b8b8;
}

body.dark-mode .cred-link {
  color: #667eea;
}

body.dark-mode .cred-link:hover {
  color: #764ba2;
}

/* ===========================
   Experience Section (Updated)
=========================== */
.experience {
  padding: 80px 0;
  background: #f8f9fa;
}

.experience-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.experience-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: #ffffff;
  border-left: 4px solid #764ba2;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;
}

.experience-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(102, 126, 234, 0.25);
}

/* === Icon / Company Logo === */
.experience-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.25);
  transition: all 0.4s ease;
}

.experience-item:hover .experience-icon {
  box-shadow: 0 8px 25px rgba(118, 75, 162, 0.35);
  transform: scale(1.05);
}

.experience-icon img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  transition: transform 0.3s ease;
}
.company-logo {
  width: 65px;
  height: 65px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.35);
}
.experience-item:hover .experience-icon img {
  transform: scale(1.08);
}

/* === Text Content === */
.experience-details h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.experience-details a.hoverline {
  color: #667eea;
  text-decoration: none;
  transition: color 0.3s ease;
}

.experience-details a.hoverline:hover {
  color: #764ba2;
  text-decoration: underline;
}
/* ===========================
   Mini Metrics Badges
=========================== */
.mini-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.6rem 0 1rem;
}

.metric-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: #667eea;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
  display: inline-flex;
  align-items: center;
  transition: all 0.25s ease;
}

.metric-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

/* Color variations for metric types */
.metric-badge.reach {
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
}

.metric-badge.er {
  background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
  color: #222;
}

.metric-badge.revenue {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Dark mode adaptation */
body.dark-mode .metric-badge {
  color: #fff;
  opacity: 0.95;
}

.experience-location {
  font-style: italic;
  color: #666;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.experience-location i {
  color: #667eea;
}

.experience-description {
  list-style-type: disc;
  margin-left: 1.5rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.experience-description li {
  margin-bottom: 0.6rem;
}

.experience-tools {
  font-weight: 500;
  color: #667eea;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.experience-tools i {
  color: #667eea;
}

/* === Animation Reveal === */
.experience-item {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.experience-item.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Dark Mode (Updated)
=========================== */
body.dark-mode .experience {
  background: #0f0f0f;
}

body.dark-mode .experience-item {
  background: #1a1a1a;
  border-left-color: #764ba2;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
}

body.dark-mode .experience-item:hover {
  box-shadow: 0 10px 35px rgba(118, 75, 162, 0.4);
}

body.dark-mode .experience-icon {
  background: #0f0f0f;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.25);
}

body.dark-mode .experience-icon img {
  filter: brightness(0.95) contrast(1.1);
}

body.dark-mode .experience-details h3 {
  color: #e8e8e8;
}

body.dark-mode .experience-location {
  color: #b8b8b8;
}

body.dark-mode .experience-description li {
  color: #b8b8b8;
}

body.dark-mode .experience-tools {
  color: #667eea;
}
/* ===========================
   Experience Toggle Button
=========================== */
.experience-toggle {
  margin: 0 auto;
  margin-top: 0.5rem;
  padding: 0.7rem 1.8rem;
  border-radius: 999px;
  border: 1px solid #667eea;
  background: #ffffff;
  color: #667eea;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 3px 12px rgba(102, 126, 234, 0.2);
  transition: all 0.25s ease;
}

.experience-toggle::after {
  content: "▼";
  font-size: 0.8rem;
  transition: transform 0.25s ease;
}

.experience-toggle:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(102, 126, 234, 0.35);
  transform: translateY(-2px);
}

/* trạng thái khi đã mở hết (JS sẽ thêm class .expanded) */
.experience-toggle.expanded::after {
  transform: rotate(180deg);
}

/* Ẩn các mục extra mặc định */
.experience-item.extra-experience {
  display: none;
}

/* Khi bật lên */
.experience-item.extra-experience.is-visible {
  display: flex;
}

/* Mobile */
@media (max-width: 768px) {
  .experience-toggle {
    margin-top: 1rem;
  }
}

/* Dark mode */
body.dark-mode .experience-toggle {
  background: #1a1a1a;
  color: #dcdcff;
  border-color: #667eea;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .experience-toggle:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}
/* Publications Section */
body.dark-mode .publications {
    background: #0f0f0f;
}

body.dark-mode .publication-item {
    background: #1a1a1a;
    border-left-color: #667eea;
}

body.dark-mode .publication-content h3 {
    color: #e8e8e8;
}

body.dark-mode .publication-authors {
    color: #667eea;
}

body.dark-mode .publication-venue {
    color: #b8b8b8;
}

body.dark-mode .publication-description {
    color: #b8b8b8;
}

body.dark-mode .publication-year {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #0a0a0a;
}

/* ===================== PROJECTS SECTION ===================== */

/* Base Section Background */
.projects {
  background: #f9fafc;
  padding: 5rem 0;
  transition: background 0.3s ease;
}

body.dark-mode .projects {
  background: #121212; /* nền tối đồng nhất */
}

/* ===== Project Card ===== */
.project-card {
  background: #fff;
  border-radius: 1rem;
  border-left: 4px solid #2563eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  transform: translateY(0);
  color: #222;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  
}

/* ===== Image ===== */
.project-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  opacity: 0;
  transform: scale(1.02);
  filter: brightness(95%);
  animation: fadeInImage 1s ease forwards;
  transition: all 0.4s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
  filter: brightness(102%);
}

/* Fade-in animation */
@keyframes fadeInImage {
  to {
    opacity: 1;
    transform: scale(1);
    filter: brightness(100%);
  }
}

/* ===== Description ===== */
.project-description {
  margin: 0.75rem 0 1rem 1.2rem;
  padding: 0;
  list-style: disc;
  color: #333;
  line-height: 1.6;
  font-size: 0.95rem;
}

.project-description li {
  margin-bottom: 0.4rem;
  transition: color 0.25s ease;
}

.project-card:hover .project-description li {
  color: #4f5bd5;
}

/* ===== Tech Tags ===== */
.tech-tag {
  display: inline-block;
  background: #eef2ff;
  color: #333;
  padding: 0.3rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  margin: 0.2rem;
  transition: all 0.25s ease;
}

.tech-tag:hover {
  background: #667eea;
  color: #fff;
  transform: scale(1.08);
}

/* ===== Links ===== */
.project-links {
  margin-top: 0.5rem;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #000;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}

.project-links a:hover {
  color: #667eea;
}

/* ===== Filter Bar ===== */
.project-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem auto 2.5rem auto;
  text-align: center;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 2rem;
  background: #f4f4f8;
  color: #333;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
  background: #667eea;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.filter-btn.active {
  background: linear-gradient(135deg, #5a6cf3, #6b8dfc);
  color: #fff;
  box-shadow: 0 4px 12px rgba(79, 91, 213, 0.35);
}

/* ===================== DARK MODE ===================== */
body.dark-mode .projects {
  background: #0d0d14;
}

body.dark-mode .project-card {
  background: #1c1c27;
  border: 1px solid #2e2e3f;
  border-left: 4px solid #3b82f6;
  color: #e8e8e8;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

body.dark-mode .project-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7);
}

body.dark-mode .project-image {
  filter: brightness(85%);
  border: 1px solid #2b2b3b;
}

body.dark-mode .project-card:hover .project-image {
  filter: brightness(100%);
}

body.dark-mode .project-description {
  color: #cfcfcf;
}

body.dark-mode .project-card:hover .project-description li {
  color: #9da8ff;
}

/* Filter buttons */
body.dark-mode .filter-btn {
  background: #2a2a3b;
  color: #ccc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

body.dark-mode .filter-btn:hover {
  background: #667eea;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

body.dark-mode .filter-btn.active {
  background: linear-gradient(135deg, #5a6cf3, #6b8dfc);
  color: #fff;
  box-shadow: 0 4px 12px rgba(79, 91, 213, 0.45);
}

/* Tags + Links */
body.dark-mode .tech-tag {
  background: #2a2a3b;
  color: #9da8ff;
}

body.dark-mode .tech-tag:hover {
  background: #667eea;
  color: #fff;
}

body.dark-mode .project-links a {
  color: #d0d0d0;
}

body.dark-mode .project-links a:hover {
  color: #8b9fff;
}

/* Section title */
body.dark-mode .section-title {
  color: #f3f3f3;
}
/* ===========================
   Honors & Awards Section (row layout like Activities)
=========================== */
.honors {
  padding: 80px 0;
  background: #f8f9fa;
}

/* Mỗi honor-card là 1 hàng full width */
.honors-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Card style gần giống activity-item */
.honor-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e9ecef;
  border-left: 4px solid #667eea;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.honor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Header: icon/logo bên trái, info bên phải */
.honor-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
}

/* Cụm ảnh/logo giống activity-icon nhưng cho phép nhiều ảnh */
.honor-images {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 90px;               /* kích thước icon column */
}

.honor-images img {
  width: 100%;
  height: 70px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #dee2e6;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.honor-images img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Text bên phải */
.honor-info {
  flex: 1;
}

.honor-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: #212529;
}

.honor-org {
  color: #6c63ff;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.honor-sub {
  font-size: 0.95rem;
  color: #495057;
  text-align: justify;
}

/* Link chung trong Honors */
.honors a {
  text-decoration: none;
}

.honors a:hover {
  text-decoration: underline;
}

/* Dùng chung .cred-link với Activities (nếu muốn 1 style duy nhất) */
/* Nếu mày đã có .cred-link ở trên rồi thì có thể bỏ block này
   hoặc giữ 1 version thôi cho đỡ trùng. */
.cred-link {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6c63ff;
  border: 1px solid #6c63ff;
  border-radius: 10px;
  text-decoration: none;
  background: transparent;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(108, 99, 255, 0.2);
}

.cred-link:hover {
  color: #fff;
  background: linear-gradient(135deg, #6c63ff 0%, #7d6cff 100%);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.35);
}

.cred-link::after {
  content: "↗";
  margin-left: 6px;
  font-size: 0.85rem;
  transition: margin-left 0.3s ease;
}

.cred-link:hover::after {
  margin-left: 10px;
}

/* ===========================
   Responsive Honors
=========================== */
@media (max-width: 768px) {
  .honor-card {
    padding: 1.6rem;
  }

  .honor-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .honor-images {
    width: 70px;
  }

  .honor-sub {
    text-align: justify;
  }
}

/* ===========================
   Dark Mode (giữ lại nhưng update cho layout mới)
=========================== */
body.dark-mode .honors {
  background: #0f0f0f;
}

body.dark-mode .honor-card {
  background: #1a1a1a;
  border-color: #333;
  border-left: 4px solid #667eea;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .honor-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

body.dark-mode .honor-info h3 {
  color: #e8e8e8;
}

body.dark-mode .honor-org,
body.dark-mode .honor-sub {
  color: #b8b8b8;
}

/* Educational Section */
body.dark-mode .educational {
    background: #0f0f0f;
}

body.dark-mode .educational-card {
    background: #1a1a1a;
    border-color: #333;
    border-left-color: #28a745;
}

body.dark-mode .educational-card:hover {
    background: #1f1f1f;
}

body.dark-mode .educational-header h3 {
    color: #e8e8e8;
}

body.dark-mode .educational-description {
    color: #b8b8b8;
}

body.dark-mode .educational-type {
    background: #28a745;
    color: #0a0a0a;
}

body.dark-mode .topic-tag {
    background: #1a3d1a;
    color: #28a745;
}

body.dark-mode .educational-link {
    color: #28a745;
}

body.dark-mode .educational-link:hover {
    color: #1e7e34;
}
/* ===========================
   Honors Toggle Button
=========================== */

/* Ẩn mặc định các honor thêm */
.honor-card.extra-honor {
  display: none;
}

/* Khi JS bật class is-visible thì hiện lại */
.honor-card.extra-honor.is-visible {
  display: flex;
}

/* Nút Show all / Show less dưới danh sách honors */
.honors-toggle {
  margin: 0 auto;                /* giúp center trong container */
  margin-top: 0.5rem;
  padding: 0.7rem 1.8rem;
  border-radius: 999px;
  border: 1px solid #667eea;
  background: #ffffff;
  color: #667eea;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;          /* để căn giữa text + icon nếu có */
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 3px 12px rgba(102, 126, 234, 0.2);
  transition: all 0.25s ease;
}

.honors .honors-toggle::after {
  content: "▼";
  font-size: 0.8rem;
  transition: transform 0.25s ease;
}

.honors .honors-toggle:hover {
  background: linear-gradient(135deg, #667eea 0%, #7d6cff 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(102, 126, 234, 0.35);
  transform: translateY(-2px);
}

/* trạng thái khi đã mở hết (JS thêm .expanded) */
.honors .honors-toggle.expanded::after {
  transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 768px) {
  .honors .honors-toggle {
    margin-top: 1rem;
  }
}

/* Dark mode cho nút */
body.dark-mode .honors .honors-toggle {
  background: #1a1a1a;
  color: #dcdcff;
  border-color: #667eea;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .honors .honors-toggle:hover {
  background: linear-gradient(135deg, #667eea 0%, #7d6cff 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}
/* Media Section */
body.dark-mode .media {
    background: #0a0a0a;
}

body.dark-mode .media-category h3 {
    color: #e8e8e8;
    border-bottom-color: #667eea;
}

body.dark-mode .media-item {
    background: #1a1a1a;
    border-left-color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .media-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

body.dark-mode .media-content h4 {
    color: #e8e8e8;
}

body.dark-mode .media-source {
    color: #667eea;
}

body.dark-mode .media-description {
    color: #b8b8b8;
}

body.dark-mode .media-link {
    color: #667eea;
}

body.dark-mode .media-link:hover {
    color: #764ba2;
}
/* ===========================
   Activities & Leadership Section (Improved)
=========================== */
.activities {
  padding: 80px 0;
  background: #f8f9fa; /* khớp với Honors section */
}

.activities-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.activity-item {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  background: #ffffff;
  border-left: 4px solid #9be7b5;
  border-radius: 18px;
  padding: 2rem;
  align-items: flex-start;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;
}

.activity-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(67, 233, 123, 0.25);
}

/* Icon */
.activity-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(67, 233, 123, 0.25);
  transition: all 0.4s ease;
}

.activity-item:hover .activity-icon {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(67, 233, 123, 0.4);
}

.activity-icon img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  border-radius: 10px;
}

/* Text */
.activity-details {
  flex: 1;
}

.activity-details h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.activity-details a.hoverline {
  color: #43e97b;
  text-decoration: none;
  transition: color 0.3s ease;
}

.activity-details a.hoverline:hover {
  color: #38f9d7;
  text-decoration: underline;
}
/* Gallery inside each activity */
.activity-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.activity-gallery img {
  width: calc(33.333% - 0.8rem);
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(67,233,123,0.3);
}
.activity-location {
  font-style: italic;
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.activity-location i {
  color: #43e97b;
}

.activity-description {
  list-style-type: disc;
  margin-left: 1.5rem;
  color: #444;
  line-height: 1.7;
}

/* Animation */
.activity-item {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.activity-item.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVE FIXES
=========================== */
@media (max-width: 768px) {
  .activity-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
  }

  .activity-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }

  .activity-description {
    margin-left: 0;
    text-align: justify;
  }
}

/* ===========================
   Dark Mode
=========================== */
body.dark-mode .activities {
  background: #0f0f0f;
}

body.dark-mode .activity-item {
  background: #1a1a1a;
  border-left-color: #9be7b5;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
}

body.dark-mode .activity-item:hover {
  box-shadow: 0 10px 35px rgba(56, 249, 215, 0.35);
}

body.dark-mode .activity-icon {
  background: #0f0f0f;
  box-shadow: 0 5px 20px rgba(56, 249, 215, 0.25);
}

body.dark-mode .activity-details h3 {
  color: #e8e8e8;
}

body.dark-mode .activity-description li,
body.dark-mode .activity-location {
  color: #b8b8b8;
}
/* ===========================
   Certificate button + action area (Activities)
   =========================== */

/* Action container inside each activity card */
.activity-action {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-start; /* desktop: left; change to center if you prefer centered buttons */
}

/* Stylish link button matched to green theme */
.cred-link {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #667eea;                 /* main green */
  border: 1px solid #667eea;
  border-radius: 10px;
  text-decoration: none;
  background: transparent;
  box-shadow: 0 2px 8px rgba(67, 233, 123, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

/* Hover state — button lights up and lifts slightly when the card is hovered too */
.cred-link:hover,
.activity-item:hover .cred-link {
  color: #fff;
  background: linear-gradient(135deg, #667eea 0%, #667eea 100%);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(67, 233, 123, 0.22);
}

/* small arrow indicator */
.cred-link::after {
  content: "↗";
  margin-left: 8px;
  opacity: 0.95;
  transition: margin-left 0.25s ease;
}
.cred-link:hover::after { margin-left: 12px; }

/* Ensure good responsive behaviour */
@media (max-width: 768px) {
  .activity-action {
    justify-content: center;
    width: 100%;
  }

  .cred-link {
    width: auto;
    padding: 10px 18px;
  }
}

/* Dark mode variants */
body.dark-mode .cred-link {
  color: #667eea;
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(155, 231, 181, 0.08);
}
body.dark-mode .cred-link:hover,
body.dark-mode .activity-item:hover .cred-link {
  color: #0a0a0a;
  background: linear-gradient(135deg, #667eea 0%, #667eea 100%);
  box-shadow: 0 8px 22px rgba(103, 227, 154, 0.15);
}
/* Location Section */
body.dark-mode .location {
    background: #0f0f0f;
}

body.dark-mode .location-info h3 {
    color: #e8e8e8;
}

body.dark-mode .location-address {
    color: #667eea;
}

body.dark-mode .location-description {
    color: #b8b8b8;
}

body.dark-mode .location-details .detail-item {
    background: #1a1a1a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .location-details .detail-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

body.dark-mode .location-details .detail-item i {
    color: #667eea;
}
/* ===========================
   Show More / Show Less Button
=========================== */
.toggle-activities-btn {
  margin: 40px auto 0;
  padding: 12px 26px;
  font-size: 1rem;
  font-weight: 600;
  color: #43e97b;
  background: #ffffff;
  border: 2px solid #43e97b;
  border-radius: 14px;
  cursor: pointer;
  display: block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(67, 233, 123, 0.15);
}

.toggle-activities-btn:hover {
  background: #43e97b;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(67, 233, 123, 0.25);
}

/* Dark mode */
body.dark-mode .toggle-activities-btn {
  background: #1a1a1a;
  color: #9be7b5;
  border-color: #9be7b5;
  box-shadow: 0 4px 14px rgba(155, 231, 181, 0.12);
}

body.dark-mode .toggle-activities-btn:hover {
  background: #9be7b5;
  color: #0f0f0f;
  box-shadow: 0 8px 20px rgba(155, 231, 181, 0.22);
}

/* Hidden activities */
.activity-item.hidden {
  display: none;
}

/* Contact Section */
body.dark-mode .contact {
    background: #0f0f0f;
}

body.dark-mode .contact-item {
    background: #1a1a1a;
    border-left-color: #667eea;
}

body.dark-mode .contact-item h4 {
    color: #e8e8e8;
}

body.dark-mode .contact-item p {
    color: #b8b8b8;
}

body.dark-mode .contact-item a {
    color: #667eea;
}

body.dark-mode .contact-item a:hover {
    color: #764ba2;
}

body.dark-mode .contact-item i {
    color: #667eea;
}

body.dark-mode .social-link {
    background: #1a1a1a;
    color: #e8e8e8;
    border-color: #333;
}

body.dark-mode .social-link:hover {
    background: #667eea;
    color: #0a0a0a;
}

/* Footer */
/* Footer Base */
.footer {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    background: #f9f9f9;
    color: #555;
    border-top: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.footer a {
    color: #667eea;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.footer a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.footer a:hover {
    color: #764ba2;
}

.footer a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Footer Text Fade-in Animation */
.footer p {
    margin: 0.4rem 0;
    opacity: 0.9;
}

.footer p:first-child {
    font-weight: 500;
}

/* Dark Mode Footer */
body.dark-mode .footer {
    background: #0a0a0a;
    color: #b8b8b8;
    border-top: 1px solid #333;
}

body.dark-mode .footer a {
    color: #9aa7ff;
}

body.dark-mode .footer a::after {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.dark-mode .footer a:hover {
    color: #b2b8ff;
}

/* Buttons */
body.dark-mode .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #0a0a0a;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

body.dark-mode .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

body.dark-mode .btn-secondary {
    background: transparent;
    color: #667eea;
    border-color: #667eea;
}

body.dark-mode .btn-secondary:hover {
    background: #667eea;
    color: #0a0a0a;
}

/* Scroll Progress */
body.dark-mode .scroll-progress {
    background: rgba(0, 0, 0, 0.5);
}

body.dark-mode .scroll-progress-bar {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

/* Scroll to Top Button */
body.dark-mode .scroll-to-top {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #0a0a0a;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

body.dark-mode .scroll-to-top:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(102, 126, 234, 0.1);
    z-index: 9999;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.1s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Latest Section */
.latest {
    padding: 80px 0;
    background: #f8f9fa;
}

.latest-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.latest-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    flex-shrink: 0;
}

.latest-icon i {
    font-size: 1.2rem;
}

.latest-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.latest-content p {
    color: #666;
    line-height: 1.6;
}

/* Dark Mode - Latest */
body.dark-mode .latest {
    background: #0f0f0f;
}

body.dark-mode .latest-card {
    background: #1a1a1a;
    border-color: #333;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

body.dark-mode .latest-content h3 {
    color: #e8e8e8;
}

body.dark-mode .latest-content p {
    color: #b8b8b8;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-menu a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #667eea;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: 2px solid #667eea;
    color: #667eea;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.theme-toggle:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #1a1a1a;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Animated Background */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    opacity: 0.1;
    z-index: 1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { width: 10px; height: 10px; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 15px; height: 15px; left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { width: 8px; height: 8px; left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { width: 12px; height: 12px; left: 40%; animation-delay: 1s; }
.particle:nth-child(5) { width: 6px; height: 6px; left: 50%; animation-delay: 3s; }
.particle:nth-child(6) { width: 14px; height: 14px; left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { width: 9px; height: 9px; left: 70%; animation-delay: 2.5s; }
.particle:nth-child(8) { width: 11px; height: 11px; left: 80%; animation-delay: 4.5s; }
.particle:nth-child(9) { width: 7px; height: 7px; left: 90%; animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    50% { transform: translateY(-20vh) rotate(180deg); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-location {
    margin: 1.5rem 0;
}

.hero-location .location-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-location .location-info:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.hero-location .location-info i {
    color: #667eea;
    font-size: 1.1rem;
}

.hero-location .location-info span {
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.hero-image {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.hero-map {
    width: 100%;
    max-width: 400px;
}

.hero-map .map-container {
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.hero-map .map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.2;
    position: relative;
    z-index: 3;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.3)); }
    100% { filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6)); }
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
}

.avatar-container {
    position: relative;
    display: inline-block;
}

.hero-avatar {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    border: 4px solid white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 2;
}

.hero-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.4);
}

.avatar-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    opacity: 0.3;
    z-index: 1;
    filter: blur(20px);
}

/* 🌞 About Section (Light Mode) */
.about {
  padding: 80px 0;
  background: #f8f9fa; /* cùng tone với Education */
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Text và tiêu đề */
.about-text p {
  color: #333;
  line-height: 1.7;
}

.about-text strong {
  color: #1a1a1a;
}

/* Divider */
.section-divider {
  border: none;
  border-top: 2px solid rgba(102, 126, 234, 0.3);
  margin: 25px 0;
}

/* Insight block (IQ + Workplace) */
.insight-block {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-left: 4px solid #667eea;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.insight-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.insight-block h3 {
  color: #1a1a1a;
  margin-bottom: 10px;
  font-weight: 600;
}

.insight-block p {
  color: #333;
}

/* --- Insight links: 2 nút --- */
.insight-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* primary btn */
.insight-links .btn-primary,
.insight-links .btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* giữ backward compatibility: nếu mày dùng class="btn btn-primary" vẫn ok */
.insight-links .btn-primary:hover,
.insight-links .btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #5a6fe0 0%, #6c3f96 100%);
}

/* outline btn cho file pdf */
.insight-links .btn-outline {
  background: transparent;
  border: 1.8px solid #667eea;
  color: #667eea;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.insight-links .btn-outline:hover {
  background: #667eea;
  color: #fff;
  transform: translateY(-2px);
}

/* Cards bên phải (status, tech, lang) */
.about-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-item {
  background: #ffffff;
  border-left: 4px solid #667eea;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 15px;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.detail-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.detail-item h4 {
  margin-bottom: 8px;
  color: #1a1a1a;
  font-weight: 600;
}

.detail-item p {
  color: #333;
}

/* 📱 Responsive */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  .about-details {
    flex-direction: column;
  }
}

/* 🌙 Dark Mode */
body.dark-mode .about {
  background: #0f0f0f;
}

body.dark-mode .about-text p {
  color: #b8b8b8;
}

body.dark-mode .about-text strong {
  color: #e8e8e8;
}

body.dark-mode .section-divider {
  border-top: 2px solid rgba(102, 126, 234, 0.35);
}

body.dark-mode .insight-block {
  background: #1a1a1a;
  border-color: #333;
  border-left-color: #667eea;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .insight-block:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

body.dark-mode .insight-block h3 {
  color: #e8e8e8;
}

body.dark-mode .insight-block p {
  color: #b8b8b8;
}

/* nút trong dark mode */
body.dark-mode .insight-links .btn,
body.dark-mode .insight-links .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

body.dark-mode .insight-links .btn-outline {
  border-color: #667eea;
  color: #a6b5ff;
}

body.dark-mode .insight-links .btn-outline:hover {
  background: #667eea;
  color: #fff;
}

body.dark-mode .detail-item {
  background: #1a1a1a;
  border-left-color: #667eea;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .detail-item h4 {
  color: #e8e8e8;
}

body.dark-mode .detail-item p {
  color: #b8b8b8;
}

body.dark-mode .detail-item i {
  color: #667eea;
}

/* Research Section */
.research {
    padding: 80px 0;
    background: #f8f9fa;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.research-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.research-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.research-icon i {
    font-size: 1.5rem;
    color: white;
}

.research-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.research-card p {
    color: #666;
    line-height: 1.6;
}

/* Publications Section */
.publications {
    padding: 80px 0;
    background: #ffffff;
}

.publication-item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid #667eea;
}

.publication-year {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    height: fit-content;
    min-width: 80px;
    text-align: center;
}

.publication-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.publication-authors {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.publication-venue {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.publication-description {
    color: #666;
    line-height: 1.6;
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background: #f8f9fa;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
}

.project-year {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: #f0f2f5;
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #764ba2;
}
/* Boxy link buttons for project links (based on .cred-link) */
.project-links {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

/* Reusable project link button */
.cred-link.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 0;
  padding: 8px 14px;
  font-size: 0. nineREM; /* nếu trình biên dịch ko thích sửa thành 0.9rem */
  font-weight: 600;
  color: #6c63ff;
  border: 1px solid #6c63ff;
  border-radius: 10px;
  text-decoration: none;
  background: transparent;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(108,99,255,0.12);
}

/* icon nhỏ gọn */
.cred-link.project-link-btn i {
  font-size: 0.95em;
}

/* hover */
.cred-link.project-link-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, #6c63ff 0%, #7d6cff 100%);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(109,99,255,0.28);
}

/* little arrow / external indicator (optional) */
.cred-link.project-link-btn::after {
  content: "↗";
  margin-left: 6px;
  font-size: 0.85rem;
  opacity: 0.95;
  transition: margin-left 0.2s ease;
}

.cred-link.project-link-btn:hover::after {
  margin-left: 10px;
}

/* Dark mode compatibility (if you have body.dark-mode) */
body.dark-mode .cred-link.project-link-btn {
  color: #cfc8ff;
  border-color: rgba(108,99,255,0.25);
  background: rgba(108,99,255,0.03);
  box-shadow: none;
}

body.dark-mode .cred-link.project-link-btn:hover {
  color: #fff;
  background: linear-gradient(135deg,#6c63ff 0%, #7d6cff 100%);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.cred-link.project-link-btn:focus {
  outline: 3px solid rgba(102,126,234,0.18);
  outline-offset: 2px;
}
/* Educational Resources Section */
.educational {
    padding: 80px 0;
    background: #ffffff;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.educational-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    border-left: 4px solid #28a745;
}

.educational-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: white;
}

.educational-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.educational-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
}

.educational-type {
    background: #28a745;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.educational-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.educational-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.topic-tag {
    background: #e8f5e8;
    color: #28a745;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.educational-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #28a745;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.educational-link:hover {
    color: #1e7e34;
}

/* Media Coverage Section */
.media {
    padding: 80px 0;
    background: #f8f9fa;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.media-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

.media-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.media-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #e879f9;
}

.media-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.media-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.media-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.media-icon i {
    font-size: 1.2rem;
    color: white;
}

.media-content {
    flex: 1;
}

.media-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.media-source {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.media-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.media-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.media-link:hover {
    color: #764ba2;
}

/* Location Map Section */
.location {
    padding: 80px 0;
    background: #f8f9fa;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.location-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.location-address {
    font-size: 1.2rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
}

.location-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.location-details .detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.location-details .detail-item:hover {
    transform: translateY(-3px);
}

.location-details .detail-item i {
    font-size: 1.2rem;
    color: #667eea;
    width: 20px;
}

.map-container {
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}
/* =========================
   Resume Section (Cleaned)
========================= */
.resume {
  padding: 5rem 0;
  text-align: center;
  background: #f8f9fa;
}

.resume-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

/* === Resume Preview (no box wrapper) === */
.resume-preview img {
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resume-preview img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 28px rgba(102, 126, 234, 0.25);
}

/* === Buttons === */
.resume-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.resume-buttons .btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.view-btn {
  background: #667eea;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.view-btn:hover {
  background: #5a6fde;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(102, 126, 234, 0.4);
}

.download-btn {
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
}

.download-btn:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

/* =========================
   Dark Mode (Matched with Experience)
========================= */
body.dark-mode .resume {
  background: #0f0f0f;
}

body.dark-mode .resume .section-title {
  color: #e8e8e8;
}

body.dark-mode .resume .section-subtitle {
  color: #b8b8b8;
}

body.dark-mode .resume-preview img {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
  filter: brightness(0.95) contrast(1.05);
}

body.dark-mode .resume-preview img:hover {
  box-shadow: 0 10px 30px rgba(118, 75, 162, 0.35);
}

body.dark-mode .view-btn {
  background: #667eea;
  color: #fff;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

body.dark-mode .view-btn:hover {
  background: #5a6fde;
}

body.dark-mode .download-btn {
  background: transparent;
  color: #a5b4fc;
  border: 2px solid #667eea;
}

body.dark-mode .download-btn:hover {
  background: #667eea;
  color: #fff;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #ffffff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.contact-item i {
    font-size: 1.5rem;
    color: #667eea;
    margin-top: 0.25rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #764ba2;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    background: #667eea;
    color: white;
    transform: translateX(5px);
}

.social-link i {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.visitor-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.visitor-counter:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.visitor-counter i {
    color: #667eea;
    font-size: 1rem;
}

#visitor-count {
    font-weight: 600;
    color: #667eea;
}

/* Responsive Design */
/* ===== Fix responsive for Honors & Activities on small screens ===== */
@media (max-width: 768px) {
  /* Honors grid -> single column to avoid horizontal overflow */
  .honors-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding: 0.5rem !important;
  }

  .honor-card {
    padding: 1rem !important;
    border-radius: 12px !important;
    margin: 0 auto !important;
    width: calc(100% - 1rem) !important;
  }

  /* Honor header: keep images + text stacked nicely */
  .honor-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .honor-images {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .honor-images img {
    max-width: 48% !important; /* if multiple images, they sit side-by-side */
    width: 48% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 8px !important;
  }

  .honor-info {
    width: 100% !important;
  }

  .honor-sub {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
  }

  /* Activities: make sure items stack and images shrink */
  .activities-content {
    gap: 1rem !important;
    padding: 0.5rem !important;
  }

  .activity-item {
    flex-direction: column !important;
    align-items: center !important;
    text-align: left !important;
    padding: 1rem !important;
    width: calc(100% - 1rem) !important;
    margin: 0 auto !important;
  }

  .activity-icon {
    width: 64px !important;
    height: 64px !important;
    margin-bottom: 0.6rem !important;
  }

  .activity-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .activity-details {
    width: 100% !important;
  }

  /* Avoid any accidental hidden overflow from parents */
  .honors, .activities, .container, .honors-grid, .activities-content {
    overflow: visible !important;
    min-height: auto !important;
  }
}

/* Extra safety for very small phones */
@media (max-width: 420px) {
  .honor-images img { max-width: 100% !important; width: 100% !important; }
  .honor-header { align-items: center !important; text-align: center !important; }
  .honor-info h3, .honor-org, .honor-sub { text-align: center !important; }
  .activity-item { text-align: center !important; }
  .activity-location { justify-content: center !important; }
}
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 999;
    }

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

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-image {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-map {
        max-width: 100%;
    }

    .hero-map .map-container {
        height: 200px;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .publication-item {
        flex-direction: column;
        gap: 1rem;
    }

    .publication-year {
        align-self: flex-start;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .visitor-counter {
        margin-top: 1rem;
    }

    .location-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .map-container {
        height: 300px;
    }

    .nav-controls {
        gap: 0.5rem;
    }

    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .research-grid,
    .projects-grid,
    .educational-grid,
    .media-grid {
        grid-template-columns: 1fr;
    }

    .publications-tabs {
        flex-direction: column;
        align-items: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 80px;
}

/* Reveal Animations */
section, .research-card, .project-card, .educational-card, .media-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

section.reveal, .research-card.reveal, .project-card.reveal, .educational-card.reveal, .media-item.reveal {
    opacity: 1;
    transform: translateY(0);
}
/* --- FIX: Cho phép click vào social buttons --- */
.social {
  position: relative;
  z-index: 5; /* đảm bảo nằm trên hiệu ứng nền */
}

.social a {
  pointer-events: auto;
}

.animated-bg,
.floating-particles {
  pointer-events: none; /* ngăn hiệu ứng nền chặn click */
}
/* Cho phép bấm link trong bản đồ */
.embedded-map {
  pointer-events: auto !important;
}
/* Staggered animation for cards */
.research-card:nth-child(1) { transition-delay: 0.1s; }
.research-card:nth-child(2) { transition-delay: 0.2s; }
.research-card:nth-child(3) { transition-delay: 0.3s; }
.research-card:nth-child(4) { transition-delay: 0.4s; }

.project-card:nth-child(1) { transition-delay: 0.1s; }
.project-card:nth-child(2) { transition-delay: 0.2s; }
.project-card:nth-child(3) { transition-delay: 0.3s; }
.project-card:nth-child(4) { transition-delay: 0.4s; }
.project-card:nth-child(5) { transition-delay: 0.5s; }
.project-card:nth-child(6) { transition-delay: 0.6s; }
.project-card:nth-child(7) { transition-delay: 0.7s; }
.project-card:nth-child(8) { transition-delay: 0.8s; }
